From 5202f24921e2136b284eadb54783519fb38967a3 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 21 Aug 2024 17:22:17 +0200 Subject: Trying to fix the old storage approach --- modules/remote-sycl/c++/device.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 3561da7..6d4dbbf 100644 --- a/modules/remote-sycl/c++/device.hpp +++ b/modules/remote-sycl/c++/device.hpp @@ -21,21 +21,21 @@ public: /** * Copy data to device */ - template - error_or> copy_to_device(const data& host_data){ - return data{host_data}; + template + error_or>> copy_to_device(const data& host_data){ + return data>{host_data}; } - template - error_or> allocate_on_device(const data::MetaSchema, Encoding, Storage>& host_meta){ - return copy_to_device(data{host_meta}); + template + error_or>> allocate_on_device(const data::MetaSchema, Encoding>& host_meta){ + return copy_to_device(data{host_meta}); } /** * Copy data to host */ - template - error_or> copy_to_host(data& dev_data){ + template + error_or> copy_to_host(data>& dev_data){ /** data host_data; cmd_queue_.submit([&](cl::sycl::handler& h){ -- cgit v1.2.3