diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-01-28 16:03:29 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-01-28 16:03:29 +0100 |
commit | 6f2cabfa4311eb71d70ec03a0a46b9ab55fd0820 (patch) | |
tree | 39401fc71ad2d804f10cf1c7296acb35e75dde59 /modules/device-hip/c++ | |
parent | ae75e63bfaf927e10e9f2642b3a1a9dae04b7dbc (diff) |
device-hip, remote-kokkos: Moving to kokkos. Easier to manage
Diffstat (limited to 'modules/device-hip/c++')
-rw-r--r-- | modules/device-hip/c++/SConscript | 38 | ||||
-rw-r--r-- | modules/device-hip/c++/rpc.hpp | 47 |
2 files changed, 0 insertions, 85 deletions
diff --git a/modules/device-hip/c++/SConscript b/modules/device-hip/c++/SConscript deleted file mode 100644 index b66ce79..0000000 --- a/modules/device-hip/c++/SConscript +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/false - -import os -import os.path -import glob - - -Import('env') - -dir_path = Dir('.').abspath - -# Environment for base library -dev_hip_env = env.Clone(); - -dev_hip_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) -dev_hip_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) - -env.sources += dev_hip_env.sources; -env.headers += dev_hip_env.headers; - -## Shared lib -objects_shared = [] -dev_hip_env.add_source_files(objects_shared, dev_hip_env.sources, shared=True); -env.library_shared = dev_hip_env.SharedLibrary('#build/forstio-device-hip', [objects_shared]); - -## Static lib -objects_static = [] -dev_hip_env.add_source_files(objects_static, dev_hip_env.sources, shared=False); -env.library_static = dev_hip_env.StaticLibrary('#build/forstio-device-hip', [objects_static]); - -# Set Alias -env.Alias('library_device-hip', [env.library_shared, env.library_static]); - -env.targets += ['library_device-hip']; - -# Install -env.Install('$prefix/lib/', [env.library_shared, env.library_static]); -env.Install('$prefix/include/forstio/device/hip/', [dev_hip_env.headers]); diff --git a/modules/device-hip/c++/rpc.hpp b/modules/device-hip/c++/rpc.hpp deleted file mode 100644 index 5bce553..0000000 --- a/modules/device-hip/c++/rpc.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#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 { - }; - -}; -} |