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 +- modules/remote-sycl/examples/sycl_basic.cpp | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/remote-sycl') 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()){ diff --git a/modules/remote-sycl/examples/sycl_basic.cpp b/modules/remote-sycl/examples/sycl_basic.cpp index bc4d997..a4bc595 100644 --- a/modules/remote-sycl/examples/sycl_basic.cpp +++ b/modules/remote-sycl/examples/sycl_basic.cpp @@ -21,7 +21,7 @@ int main(){ auto device = remote_ctx.connect_device(*rmt_addr); auto rpc_server = listen_basic_sycl(remote_ctx, device, *rmt_addr); - saw::rpc_client client{rpc_server}; + saw::rpc_client client{rpc_server}; saw::id> id_zero{0u}; saw::data, saw::encode::Native> ex_data{1u}; @@ -38,7 +38,7 @@ int main(){ id_zero = eov.get_value(); } { - auto rmt_data = rpc_server.request_data, saw::storage::Default>(id_zero); + auto rmt_data = rpc_server.request_data>(id_zero); auto eo_rd = rmt_data.wait(); if(eo_rd.is_error()){ auto& err = eo_rd.get_error(); @@ -64,7 +64,7 @@ int main(){ id_one = eov.get_value(); } { - auto rmt_data = rpc_server.request_data, saw::storage::Default>(id_one); + auto rmt_data = rpc_server.request_data>(id_one); auto eo_rd = rmt_data.wait(); if(eo_rd.is_error()){ auto& err = eo_rd.get_error(); -- cgit v1.2.3