summaryrefslogtreecommitdiff
path: root/modules/device-hip/c++/rpc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/device-hip/c++/rpc.hpp')
-rw-r--r--modules/device-hip/c++/rpc.hpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/modules/device-hip/c++/rpc.hpp b/modules/device-hip/c++/rpc.hpp
new file mode 100644
index 0000000..0bcda0c
--- /dev/null
+++ b/modules/device-hip/c++/rpc.hpp
@@ -0,0 +1,47 @@
+#pragma once
+
+#include <hip.h>
+
+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 {
+ };
+
+};
+}