diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-11 18:24:47 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-11 18:24:47 +0200 |
commit | 204aeb03daf43e73546077c8f72538ad3b6ac75b (patch) | |
tree | 91525622dd7dddb9586ad176b298b579cbdf6a16 /modules/remote-opencl/c++/rpc.hpp | |
parent | 5969e94c88f7db8cfe017190a27faf86b42b1a5f (diff) |
codec, remote-opencl: Trying out opencl and ammending parts of codec for
it
Diffstat (limited to 'modules/remote-opencl/c++/rpc.hpp')
-rw-r--r-- | modules/remote-opencl/c++/rpc.hpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/remote-opencl/c++/rpc.hpp b/modules/remote-opencl/c++/rpc.hpp new file mode 100644 index 0000000..bddb60d --- /dev/null +++ b/modules/remote-opencl/c++/rpc.hpp @@ -0,0 +1,44 @@ +#pragma once + +namespace saw { +namespace rmt { +struct DeviceKokkos {}; +} + +template<> +class remote<rmt::DeviceKokkos> { +private: +public: + template<typename Iface> + error_or<rpc_client<rmt::DeviceKokkos, Iface>> connect(){ + return make_error<err::not_implemented>(); + } +}; + +error_or<remote<rmt::DeviceKokkos>> create_remote(){ + auto rc = hipInit(0); + + return make_error<err::not_implemented>(); +} + +template<typename Iface> +class rpc_client<rmt::DeviceKokkos, Iface> { +public: + template<typename... T> + struct request { + std::tuple<id<T>...> ids; + + error_or<data<schema::Tuple<T...>>> wait(); + }; +}; + +template<typename Iface> +class rpc_server<rmt::DeviceKokkos, Iface> { +private: + /** + * Needs a variant ptr of all possible return types + */ + struct data_storage { + }; +}; +} |