diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-13 09:57:49 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-13 09:57:49 +0200 |
commit | 6b9e221a0c439ce3ee9b728bc9ead8f5c2c82ceb (patch) | |
tree | 49d70b45f0aa65e8e872ff76deccebd6c1f92198 /modules/remote-sycl/c++/remote.hpp | |
parent | 0f8abfb2d48497e804d87e6e47a41c70e728901a (diff) |
renamed to sycl since opencl does not support c++
Diffstat (limited to 'modules/remote-sycl/c++/remote.hpp')
-rw-r--r-- | modules/remote-sycl/c++/remote.hpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/remote-sycl/c++/remote.hpp b/modules/remote-sycl/c++/remote.hpp new file mode 100644 index 0000000..3073b23 --- /dev/null +++ b/modules/remote-sycl/c++/remote.hpp @@ -0,0 +1,42 @@ +#pragma once + +#include <forstio/io_codec/rpc.hpp> + +namespace saw { +namespace rmt { +struct OpenCl {}; +} + +template<> +class remote<rmt::OpenCl> { +private: + SAW_FORBID_COPY(remote); + SAW_FORBID_MOVE(remote); +public: + remote(){} + + /* + error_or<void> create_remote(){ + return remote<rmt::OpenCl>{*this}; + } + */ +}; + +template<> +struct remote_address<rmt::OpenCl> { +private: + remote<rmt::OpenCl>* ctx_; + + SAW_FORBID_COPY(remote_address); + SAW_FORBID_MOVE(remote_address); +public: + remote_address(remote<rmt::OpenCl>& r_ctx): + ctx_{&r_ctx} + {} + + /* + template<typename Iface> + error_or<void> foo(); + */ +}; +} |