From 1fb10980808d66dfa6dec4ac87857d5c13bf7298 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Thu, 22 Aug 2024 11:45:47 +0200 Subject: Removing storage as a parameter --- modules/remote-sycl/c++/device.hpp | 2 +- modules/remote-sycl/c++/rpc.hpp | 10 +++++----- modules/remote-sycl/c++/transfer.hpp | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/remote-sycl/c++') diff --git a/modules/remote-sycl/c++/device.hpp b/modules/remote-sycl/c++/device.hpp index 6d4dbbf..a050078 100644 --- a/modules/remote-sycl/c++/device.hpp +++ b/modules/remote-sycl/c++/device.hpp @@ -37,7 +37,7 @@ public: template error_or> copy_to_host(data>& dev_data){ /** - data host_data; + data host_data; cmd_queue_.submit([&](cl::sycl::handler& h){ auto acc_buff = dev_data.template access(h); h.copy(acc_buff, &host_data); diff --git a/modules/remote-sycl/c++/rpc.hpp b/modules/remote-sycl/c++/rpc.hpp index da2eeaa..8cb4d8d 100644 --- a/modules/remote-sycl/c++/rpc.hpp +++ b/modules/remote-sycl/c++/rpc.hpp @@ -48,14 +48,14 @@ public: /** * Wait for the data */ - error_or> wait(){ + error_or> wait(){ return make_error(); } /** * Request data asynchronously */ - // conveyor> on_receive(); /// Stopped here + // conveyor> on_receive(); /// Stopped here }; /** @@ -151,7 +151,7 @@ public: > > call(const data_or_id::type::RequestT, Encoding>& input){ auto next_free_id = srv_->template next_free_id::type::ResponseT>(); - return srv_->template call(input, next_free_id); + return srv_->template call(input, next_free_id); } }; @@ -180,7 +180,7 @@ private: /** * The interface including the relevant context class. */ - interface cl_interface_; + interface cl_interface_; public: @@ -205,7 +205,7 @@ public: /** template - remote_data request_data(id dat_id){ + remote_data request_data(id dat_id){ return {dat_id, std::get>(storage_.maps), device_->get_handle()}; } */ diff --git a/modules/remote-sycl/c++/transfer.hpp b/modules/remote-sycl/c++/transfer.hpp index e39165b..b6a21f0 100644 --- a/modules/remote-sycl/c++/transfer.hpp +++ b/modules/remote-sycl/c++/transfer.hpp @@ -131,7 +131,7 @@ public: * Requests data from the server */ template - error_or> receive(id store_id){ + error_or> receive(id store_id){ auto& vals = std::get>>>(values_); auto find_res = vals.find(store_id.get_value()); if(find_res == vals.end()){ -- cgit v1.2.3