diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-16 21:37:22 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-16 21:37:22 +0200 |
commit | 5d0cf1219b4fa4935f3eb63a32a6b76b85402fb0 (patch) | |
tree | c9f3f2a340aa01a700b044a33e226f7a6f990893 /modules/remote-sycl | |
parent | e231ba3cc9a6b64696e7bed9b1bf01a3739f0f2c (diff) |
Fixing sycl
Diffstat (limited to 'modules/remote-sycl')
-rw-r--r-- | modules/remote-sycl/c++/remote.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/remote-sycl/c++/remote.hpp b/modules/remote-sycl/c++/remote.hpp index fe13612..e1dc677 100644 --- a/modules/remote-sycl/c++/remote.hpp +++ b/modules/remote-sycl/c++/remote.hpp @@ -1,18 +1,20 @@ #pragma once +#include "common.hpp" + namespace saw { template<> struct remote_address<rmt::Sycl> { private: - remote<rmt::Sycl>* ctx_; + ptr<remote<rmt::Sycl>> ctx_; our<device<rmt::Sycl>> device_; SAW_FORBID_COPY(remote_address); SAW_FORBID_MOVE(remote_address); public: remote_address(remote<rmt::Sycl>& r_ctx, our<device<rmt::Sycl>> d_ctx): - ctx_{&r_ctx}, + ctx_{r_ctx}, device_{std::move(d_ctx)} {} |