diff options
-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)} {} |