/third_party/boost/libs/compute/test/ |
D | test_copy.cpp | 222 int host_data[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; in BOOST_AUTO_TEST_CASE() local 231 bc::copy_async(host_data, host_data + 8, device_data.begin(), queue); in BOOST_AUTO_TEST_CASE() 241 std::fill(host_data, host_data + 8, int(0)); in BOOST_AUTO_TEST_CASE() 245 bc::copy_async(device_data.begin(), device_data.end(), host_data, queue); in BOOST_AUTO_TEST_CASE() 251 BOOST_CHECK_EQUAL(host_data[0], int(1)); in BOOST_AUTO_TEST_CASE() 252 BOOST_CHECK_EQUAL(host_data[1], int(2)); in BOOST_AUTO_TEST_CASE() 253 BOOST_CHECK_EQUAL(host_data[2], int(3)); in BOOST_AUTO_TEST_CASE() 254 BOOST_CHECK_EQUAL(host_data[3], int(4)); in BOOST_AUTO_TEST_CASE() 255 BOOST_CHECK_EQUAL(host_data[4], int(5)); in BOOST_AUTO_TEST_CASE() 256 BOOST_CHECK_EQUAL(host_data[5], int(6)); in BOOST_AUTO_TEST_CASE() [all …]
|
D | test_lambda.cpp | 551 compute::uint_ host_data[] = { 1, 3, 5, 7, 9 }; in BOOST_AUTO_TEST_CASE() local 552 compute::vector<compute::uint_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE() 568 compute::short_ host_data[] = { 1, 3, 5, 7, 9 }; in BOOST_AUTO_TEST_CASE() local 569 compute::vector<compute::short_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE() 585 compute::uchar_ host_data[] = { 1, 3, 5, 7, 9 }; in BOOST_AUTO_TEST_CASE() local 586 compute::vector<compute::uchar_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE() 602 compute::char_ host_data[] = { 1, 3, 5, 7, 9 }; in BOOST_AUTO_TEST_CASE() local 603 compute::vector<compute::char_> device_vector(host_data, host_data + 5, queue); in BOOST_AUTO_TEST_CASE()
|
/third_party/boost/libs/compute/example/ |
D | copy_data.cpp | 28 int host_data[] = { 1, 3, 5, 7, 9 }; in main() local 35 host_data, host_data + 5, device_vector.begin(), queue in main()
|
/third_party/boost/libs/compute/perf/ |
D | perf_accumulate.cpp | 122 std::vector<int> host_data(size); in main() local 123 std::generate(host_data.begin(), host_data.end(), rand_int); in main() 127 host_data.begin(), host_data.end(), queue in main()
|
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/ |
D | tensorrt_allocator.cc | 94 int TensorRTAllocator::SyncMemInHostAndDevice(void *host_data, const std::string &device_tensor_nam… in SyncMemInHostAndDevice() argument 96 if (host_data == nullptr || cuda_tensor_map_.find(device_tensor_name) == cuda_tensor_map_.end()) { in SyncMemInHostAndDevice() 113 void *src_ptr = is_host2device ? host_data : device_ptr; in SyncMemInHostAndDevice() 114 void *dst_ptr = is_host2device ? device_ptr : host_data; in SyncMemInHostAndDevice()
|
D | tensorrt_allocator.h | 47 …int SyncMemInHostAndDevice(void *host_data, const std::string &device_tensor_name, size_t data_siz…
|
/third_party/mindspore/mindspore/ccsrc/cxx_api/ |
D | types.cc | 302 auto host_data = tensor.Data(); in TensorToStringChars() local 303 const int32_t *data = reinterpret_cast<const int32_t *>(host_data.get()); in TensorToStringChars()
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | tensor_py.cc | 305 auto host_data = static_cast<char *>(host_addr); in MemCopyFromCacheToHost() local 317 …memcpy_s(host_data + host_offset, host_max - host_offset, cache_data + cache_offset, single_col_by… in MemCopyFromCacheToHost()
|
/third_party/toybox/generated/ |
D | globals.h | 662 struct host_data { struct 1504 struct host_data host;
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/ |
D | cache_embedding.cc | 144 auto host_data = static_cast<char *>(host_addr); in MemCopyFromHostToCache() local 156 …memcpy_s(cache_data + cache_offset, cache_max - cache_offset, host_data + host_offset, single_col_… in MemCopyFromHostToCache()
|