From b192777212c3de6a9d25c5519269d9047865b2d1 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 7 Apr 2025 14:20:16 +0200 Subject: Fixed Sycl compilation issues to to recursive use --- modules/remote-sycl/tests/data.cpp | 8 ++++---- modules/remote-sycl/tests/sycl_basics.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/remote-sycl/tests') 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(i*3); + for(data i = 0; i < baz.size(); ++i){ + baz.at(i) = static_cast(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(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; -- cgit v1.2.3