Home
last modified time | relevance | path

Searched refs:host_data (Results 1 – 10 of 10) sorted by relevance

/third_party/boost/libs/compute/test/
Dtest_copy.cpp222 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 …]
Dtest_lambda.cpp551 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/
Dcopy_data.cpp28 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/
Dperf_accumulate.cpp122 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/
Dtensorrt_allocator.cc94 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()
Dtensorrt_allocator.h47 …int SyncMemInHostAndDevice(void *host_data, const std::string &device_tensor_name, size_t data_siz…
/third_party/mindspore/mindspore/ccsrc/cxx_api/
Dtypes.cc302 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/
Dtensor_py.cc305 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/
Dglobals.h662 struct host_data { struct
1504 struct host_data host;
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/
Dcache_embedding.cc144 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()