summaryrefslogtreecommitdiff
path: root/modules/remote-kokkos/c++/rpc.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-01-28 16:03:29 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-01-28 16:03:29 +0100
commit6f2cabfa4311eb71d70ec03a0a46b9ab55fd0820 (patch)
tree39401fc71ad2d804f10cf1c7296acb35e75dde59 /modules/remote-kokkos/c++/rpc.hpp
parentae75e63bfaf927e10e9f2642b3a1a9dae04b7dbc (diff)
device-hip, remote-kokkos: Moving to kokkos. Easier to manage
Diffstat (limited to 'modules/remote-kokkos/c++/rpc.hpp')
-rw-r--r--modules/remote-kokkos/c++/rpc.hpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/modules/remote-kokkos/c++/rpc.hpp b/modules/remote-kokkos/c++/rpc.hpp
new file mode 100644
index 0000000..5bce553
--- /dev/null
+++ b/modules/remote-kokkos/c++/rpc.hpp
@@ -0,0 +1,47 @@
+#pragma once
+
+#include <hip.hpp>
+
+namespace saw {
+namespace rmt {
+struct DeviceHip {};
+}
+
+template<>
+class remote<rmt::DeviceHip> {
+private:
+public:
+ template<typename Iface>
+ error_or<rpc_client<rmt::DeviceHip, Iface>> connect(){
+ return make_error<err::not_implemented>();
+ }
+};
+
+error_or<remote<rmt::DeviceHip>> create_remote(){
+ auto rc = hipInit(0);
+
+ return make_error<err::not_implemented>();
+}
+
+template<typename Iface>
+class rpc_client<rmt::DeviceHip, 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::DeviceHip, Iface> {
+private:
+ /**
+ * Needs a variant ptr of all possible return types
+ */
+ struct data_storage {
+ };
+
+};
+}