diff options
Diffstat (limited to 'modules/remote-sycl/c++')
-rw-r--r-- | modules/remote-sycl/c++/device.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/remote-sycl/c++/device.hpp b/modules/remote-sycl/c++/device.hpp index 5e63a1d..e6f3fe3 100644 --- a/modules/remote-sycl/c++/device.hpp +++ b/modules/remote-sycl/c++/device.hpp @@ -29,13 +29,16 @@ public: */ template<typename Schema, typename Encoding, typename Storage> error_or<data<Schema, Encoding, Storage>> copy_to_host(data<Schema, Encoding, rmt::Sycl>& dev_data){ + /** data<Schema,Encoding, Storage> host_data; cmd_queue_.submit([&](cl::sycl::handler& h){ auto acc_buff = dev_data.template access<cl::sycl::access::mode::read>(h); h.copy(acc_buff, &host_data); }); cmd_queue_.wait(); - return host_data; + */ + cl::sycl::host_accessor result{dev_data.get_handle()}; + return result[0]; } /** |