summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/c++/device.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-06-26 12:30:30 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-06-26 12:30:30 +0200
commiteda37df9c399b23dc5bdb668730101a87f4770ce (patch)
tree1c8272cf2e724617f144aed8a9cd185408f02ef3 /modules/remote-sycl/c++/device.hpp
parent729307460e77f62a532ee9841dcaed9c47f46419 (diff)
Attempting to fix async errors
Diffstat (limited to 'modules/remote-sycl/c++/device.hpp')
-rw-r--r--modules/remote-sycl/c++/device.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/remote-sycl/c++/device.hpp b/modules/remote-sycl/c++/device.hpp
index 6d133ae..46644b4 100644
--- a/modules/remote-sycl/c++/device.hpp
+++ b/modules/remote-sycl/c++/device.hpp
@@ -21,7 +21,7 @@ public:
*/
template<typename Schema, typename Encoding, typename Storage>
error_or<data<Schema, Encoding, rmt::Sycl>> copy_to_device(const data<Schema, Encoding, Storage>& host_data){
- return data<Schema, Encoding, rmt::Sycl>::copy_to_device(host_data, *this);
+ return data<Schema, Encoding, rmt::Sycl>{host_data};
}
/**
@@ -29,7 +29,7 @@ public:
*/
template<typename Schema, typename Encoding, typename Storage>
error_or<data<Schema, Encoding, Storage>> copy_to_host(const data<Schema, Encoding, rmt::Sycl>& dev_data){
- return dev_data.copy_to_host();
+ return {};
}
/**