diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-19 16:23:49 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-19 16:23:49 +0100 |
| commit | 2d9cd68ba5f79453487b0f6be4d984a0d556077a (patch) | |
| tree | f699da7a36806e8aa899881e824af49dd106fd17 /modules/remote-sycl/c++/device.hpp | |
| parent | 45104cfba44c9aead0b14ef831f3eef7893e1931 (diff) | |
| download | forstio-forstio-2d9cd68ba5f79453487b0f6be4d984a0d556077a.tar.gz | |
Sycl changes and CT multiply
Diffstat (limited to 'modules/remote-sycl/c++/device.hpp')
| -rw-r--r-- | modules/remote-sycl/c++/device.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
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<typename Schema, typename Encoding> - error_or<data<Schema, encode::Sycl<Encoding>>> copy_to_device(const data<Schema, Encoding>& host_data){ + error_or<data<Schema, encode::Sycl<Encoding>>> copy_to_device(const data<Schema, Encoding>& host_data, data<Schema, encode::Sycl<Encoding>>& sycl_data){ + return data<Schema, encode::Sycl<Encoding>>{host_data}; } template<typename Schema, typename Encoding> error_or<data<Schema, encode::Sycl<Encoding>>> allocate_on_device(const data<typename meta_schema<Schema>::MetaSchema, Encoding>& host_meta){ - return copy_to_device(data<Schema, Encoding>{host_meta}); + data<Schema,Encoding> host_data{host_meta}; + data<Schema,encode::Sycl<Encoding>> 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<err::not_implemented>("device<rmt::Sycl>::copy_to_host"); } /** |
