summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/c++/device.hpp
diff options
context:
space:
mode:
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 {};
}
/**