diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-11 18:23:43 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-04-11 18:23:43 +0200 |
commit | 5969e94c88f7db8cfe017190a27faf86b42b1a5f (patch) | |
tree | eb1f4f1ead45980c6fd7e5adbe800cc48755993e /modules/remote-kokkos/c++/remote.hpp | |
parent | 188692a048b28361f91150b2e93804dfb944bf9c (diff) |
remote-kokkos: Remove kokkos for now
Diffstat (limited to 'modules/remote-kokkos/c++/remote.hpp')
-rw-r--r-- | modules/remote-kokkos/c++/remote.hpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/modules/remote-kokkos/c++/remote.hpp b/modules/remote-kokkos/c++/remote.hpp deleted file mode 100644 index 549b9ec..0000000 --- a/modules/remote-kokkos/c++/remote.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once - -#include <Kokkos_Core.hpp> - -namespace saw { -namespace rmt { -struct Kokkos {}; -} - -template<typename T> -struct remote; - -template<typename T> -struct remote_ctx; - -template<> -class remote_ctx<rmt::Kokkos> { -private: - Kokkos::ScopeGuard guard_; - - SAW_FORBID_COPY(remote_ctx); - SAW_FORBID_MOVE(remote_ctx); -public: - remote_ctx(Kokkos::InitializationSettings init_settings): - guard_{std::move(init_settings)} - {} - - error_or<void> create_remote(){ - return remote<rmt::Kokkos>{*this}; - } -}; - -template<> -struct remote<rmt::Kokkos> { -private: - remote_ctx<rmt::Kokkos>* ctx_; - - SAW_FORBID_COPY(remote); - SAW_FORBID_MOVE(remote); -public: - remote(remote_ctx<rmt::Kokkos>& r_ctx): - ctx_{&r_ctx} - {} - - template<typename Iface> - error -}; -} |