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 ++++++---- modules/remote-sycl/c++/remote.hpp | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'modules/remote-sycl/c++') 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"); } /** diff --git a/modules/remote-sycl/c++/remote.hpp b/modules/remote-sycl/c++/remote.hpp index 65f645e..ef11d50 100644 --- a/modules/remote-sycl/c++/remote.hpp +++ b/modules/remote-sycl/c++/remote.hpp @@ -1,6 +1,8 @@ #pragma once #include "common.hpp" +#include "transfer.hpp" +#include "rpc.hpp" namespace saw { @@ -72,7 +74,7 @@ public: } /** - * Spin up data server + * Spin up a data server */ template error_or>> data_listen(remote_address& dev){ -- cgit v1.2.3