We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d61ec commit b769845Copy full SHA for b769845
onedal/datatypes/data_conversion.cpp
@@ -43,7 +43,8 @@ static dal::array<T> transfer_to_host(const dal::array<T>& array) {
43
}
44
if (memory_kind == sycl::usm::alloc::device) {
45
auto host_array = dal::array<T>::empty(array.get_count());
46
- opt_queue->memcpy(host_array.get_mutable_data(), device_data, array.get_size());
+ opt_queue->memcpy(host_array.get_mutable_data(), device_data, array.get_size())
47
+ .wait_and_throw();
48
return host_array;
49
50
0 commit comments