diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-12 15:04:42 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-12 15:04:42 +0200 |
commit | e4e49a117702945066e3e279fa0f005200400cb7 (patch) | |
tree | 3e9bab0804083461c9ef0732a47abba1fb8a9fdf /modules/remote-sycl | |
parent | 6831edddd22d2d8dbb73c88fb612c0bdd5b8ba19 (diff) |
Separated Encoding and Storage approaches
Diffstat (limited to 'modules/remote-sycl')
-rw-r--r-- | modules/remote-sycl/c++/remote.hpp | 6 | ||||
-rw-r--r-- | modules/remote-sycl/examples/sycl_basic.cpp | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/modules/remote-sycl/c++/remote.hpp b/modules/remote-sycl/c++/remote.hpp index d311ca5..d956314 100644 --- a/modules/remote-sycl/c++/remote.hpp +++ b/modules/remote-sycl/c++/remote.hpp @@ -190,14 +190,12 @@ public: /** * Rpc call */ - template<string_literal Name> + template<string_literal Name, typename ClientAllocation> error_or< id< typename schema_member_type<Name, Iface>::type::ResponseT > - > call(data_or_id<typename schema_member_type<Name, Iface>::type::RequestT, Encoding> input){ - - + > call(data_or_id<typename schema_member_type<Name, Iface>::type::RequestT, ClientAllocation> input){ /** * First check if it's data or an id. diff --git a/modules/remote-sycl/examples/sycl_basic.cpp b/modules/remote-sycl/examples/sycl_basic.cpp index 3f92cdb..41aa2a1 100644 --- a/modules/remote-sycl/examples/sycl_basic.cpp +++ b/modules/remote-sycl/examples/sycl_basic.cpp @@ -21,9 +21,9 @@ int main(){ auto rpc_server = listen_basic_sycl(remote_ctx, *rmt_addr); - saw::id<schema::UInt64> next_id{0u}; + saw::id<schema::Array<schema::UInt64>> next_id{0u}; { - auto eov = rpc_server.template call<"increment">(saw::data<schema::UInt64, saw::encode::Native<saw::rmt::Sycl>>{1u}); + auto eov = rpc_server.template call<"increment">(saw::data<schema::Array<schema::UInt64>, saw::encode::Native<saw::rmt::Sycl>>{1u}); if(eov.is_error()){ auto& err = eov.get_error(); std::cerr<<"Error: "<<err.get_category()<<" : "<<err.get_message()<<std::endl; |