summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/tests/sycl_basics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-sycl/tests/sycl_basics.cpp')
-rw-r--r--modules/remote-sycl/tests/sycl_basics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/remote-sycl/tests/sycl_basics.cpp b/modules/remote-sycl/tests/sycl_basics.cpp
index 7d0bdb2..4ad3cf7 100644
--- a/modules/remote-sycl/tests/sycl_basics.cpp
+++ b/modules/remote-sycl/tests/sycl_basics.cpp
@@ -48,9 +48,9 @@ SAW_TEST("SYCL Test Setup"){
auto acc_buff = in.template access<cl::sycl::access::mode::write>(h);
- uint64_t si = host_data.template get<"doubles">().size();
+ auto si = host_data.template get<"doubles">().size();
- h.parallel_for(cl::sycl::range<1>(si), [=] (cl::sycl::id<1> it){
+ h.parallel_for(cl::sycl::range<1>(si.get()), [=] (cl::sycl::id<1> it){
acc_buff[0u].template get<"foo">() = acc_buff[0u].template get<"doubles">().size();
auto& dbls = acc_buff[0u].template get<"doubles">();
dbls.at(it[0u]) = it[0u] * 2.0;