From 6f2cabfa4311eb71d70ec03a0a46b9ab55fd0820 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 28 Jan 2024 16:03:29 +0100 Subject: device-hip, remote-kokkos: Moving to kokkos. Easier to manage --- modules/remote-kokkos/c++/rpc.hpp | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 modules/remote-kokkos/c++/rpc.hpp (limited to 'modules/remote-kokkos/c++/rpc.hpp') 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 + +namespace saw { +namespace rmt { +struct DeviceHip {}; +} + +template<> +class remote { +private: +public: + template + error_or> connect(){ + return make_error(); + } +}; + +error_or> create_remote(){ + auto rc = hipInit(0); + + return make_error(); +} + +template +class rpc_client { +public: + template + struct request { + std::tuple...> ids; + + error_or>> wait(); + }; +}; + +template +class rpc_server { +private: + /** + * Needs a variant ptr of all possible return types + */ + struct data_storage { + }; + +}; +} -- cgit v1.2.3