summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/examples/sycl_basic_kernel.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-06-13 17:34:22 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-06-13 17:34:22 +0200
commit57f6eacfcdbdba31185eb66b9a573a8923eecf16 (patch)
tree1683da4209744fabbe87a949134701d617c0d5f9 /modules/remote-sycl/examples/sycl_basic_kernel.cpp
parent0f317186de9fb11d336e564f808e4732386c4074 (diff)
Possible fix for transferring primitives to device without dropping STL
Diffstat (limited to 'modules/remote-sycl/examples/sycl_basic_kernel.cpp')
-rw-r--r--modules/remote-sycl/examples/sycl_basic_kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/remote-sycl/examples/sycl_basic_kernel.cpp b/modules/remote-sycl/examples/sycl_basic_kernel.cpp
index 94583b9..888f905 100644
--- a/modules/remote-sycl/examples/sycl_basic_kernel.cpp
+++ b/modules/remote-sycl/examples/sycl_basic_kernel.cpp
@@ -7,7 +7,7 @@ saw::rpc_server<schema::BasicInterface, saw::encode::Native, saw::rmt::Sycl> lis
q->submit([&](cl::sycl::handler& h){
h.parallel_for(cl::sycl::range<1>(1u), [&] (cl::sycl::id<1> it){
- in.at(0u) += 1u;
+ in.at(0u).set(in.at(0u).get() + 1u);
});
});
q->wait();