diff options
Diffstat (limited to 'modules/remote-sycl/tests')
-rw-r--r-- | modules/remote-sycl/tests/data.cpp | 8 | ||||
-rw-r--r-- | modules/remote-sycl/tests/sycl_basics.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/remote-sycl/tests/data.cpp b/modules/remote-sycl/tests/data.cpp index 027f277..798b7a5 100644 --- a/modules/remote-sycl/tests/data.cpp +++ b/modules/remote-sycl/tests/data.cpp @@ -24,8 +24,8 @@ SAW_TEST("SYCL Data Management"){ bra = 123; auto& baz = host_data.template get<"baz">(); baz = {1024}; - for(uint64_t i = 0; i < baz.size(); ++i){ - baz.at(i) = static_cast<double>(i*3); + for(data<schema::UInt64> i = 0; i < baz.size(); ++i){ + baz.at(i) = static_cast<double>(i.get()*3); } saw::event_loop loop; @@ -86,9 +86,9 @@ SAW_TEST("SYCL Data Management"){ if(baz.size() != baz_b.size()){ expected_values = false; err_msg = "baz not equal. "; - err_msg += std::to_string(baz.size()); + err_msg += std::to_string(baz.size().get()); err_msg += " - "; - err_msg += std::to_string(baz_b.size()); + err_msg += std::to_string(baz_b.size().get()); return; } }, [&](auto err){ 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; |