From 2d9cd68ba5f79453487b0f6be4d984a0d556077a Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 19 Jan 2026 16:23:49 +0100 Subject: Sycl changes and CT multiply --- modules/remote-sycl/c++/device.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/remote-sycl/c++/device.hpp') diff --git a/modules/remote-sycl/c++/device.hpp b/modules/remote-sycl/c++/device.hpp index 05bb17a..6667711 100644 --- a/modules/remote-sycl/c++/device.hpp +++ b/modules/remote-sycl/c++/device.hpp @@ -22,13 +22,16 @@ public: * Copy data to device */ template - error_or>> copy_to_device(const data& host_data){ + error_or>> copy_to_device(const data& host_data, data>& sycl_data){ + return data>{host_data}; } template error_or>> allocate_on_device(const data::MetaSchema, Encoding>& host_meta){ - return copy_to_device(data{host_meta}); + data host_data{host_meta}; + data> sycl_dat{host_data}; + return sycl_dat; } /** @@ -44,8 +47,7 @@ public: }); cmd_queue_.wait(); */ - acpp::sycl::host_accessor result{dev_data.get_handle()}; - return result[0]; + return make_error("device::copy_to_host"); } /** -- cgit v1.2.3