diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-26 14:41:18 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-26 14:41:18 +0200 |
commit | df7789cbef7ffa9658c61525edf75bebaa6398ff (patch) | |
tree | 8b004a208910a9c38f20ec312fbb0e74a5a2c279 /modules/remote-sycl/c++/data.hpp | |
parent | eda37df9c399b23dc5bdb668730101a87f4770ce (diff) |
Got double free :/
Diffstat (limited to 'modules/remote-sycl/c++/data.hpp')
-rw-r--r-- | modules/remote-sycl/c++/data.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/remote-sycl/c++/data.hpp b/modules/remote-sycl/c++/data.hpp index 42bc3b1..e436e72 100644 --- a/modules/remote-sycl/c++/data.hpp +++ b/modules/remote-sycl/c++/data.hpp @@ -21,10 +21,18 @@ public: return data_; } + const auto& get_handle() const { + return data_; + } + template<cl::sycl::access::mode AccessMode> auto access(cl::sycl::handler& h){ return data_.template get_access<AccessMode>(h); } + + template<cl::sycl::access::mode AccessMode> + auto access(cl::sycl::handler& h) const { + return data_.template get_access<AccessMode>(h); + } }; - } |