From 668e53e42e210d2cedf29281eb187e8d7f129651 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 18 Nov 2025 17:46:04 +0100 Subject: Working on tests in sycl --- modules/remote-sycl/tests/sycl_basics.cpp | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'modules/remote-sycl/tests/sycl_basics.cpp') diff --git a/modules/remote-sycl/tests/sycl_basics.cpp b/modules/remote-sycl/tests/sycl_basics.cpp index 4ad3cf7..970f4d6 100644 --- a/modules/remote-sycl/tests/sycl_basics.cpp +++ b/modules/remote-sycl/tests/sycl_basics.cpp @@ -18,6 +18,14 @@ using Foo = Interface< Member, "foo"> >; } +SAW_TEST("SYCL Basics"){ + using namespace saw; + + acpp::sycl::queue q; + data> host_data; +} + +/* SAW_TEST("SYCL Test Setup"){ using namespace saw; @@ -41,33 +49,21 @@ SAW_TEST("SYCL Test Setup"){ data> device_data{host_data}; - interface,cl::sycl::queue*> cl_iface { -[&](data>& in, cl::sycl::queue* cmd) -> error_or { + interface,acpp::sycl::queue*> cl_iface { +[&](data>& in, acpp::sycl::queue* cmd) -> error_or { - cmd->submit([&](cl::sycl::handler& h){ + cmd->submit([&](acpp::sycl::handler& h){ - auto acc_buff = in.template access(h); + auto acc_buff = in.template access(h); auto si = host_data.template get<"doubles">().size(); - h.parallel_for(cl::sycl::range<1>(si.get()), [=] (cl::sycl::id<1> it){ + h.parallel_for(acpp::sycl::range<1>(si.get()), [=] (acpp::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; }); }); - /* - cmd->submit([&](cl::sycl::handler& h){ - auto acc_buff = in.template access(h); - h.copy(acc_buff, &host_data); - }); - */ - - /** - cl::sycl::host_accessor result{in.get_handle()}; - std::cout<().get()<().get()<(device_data, &(device.get_handle())); device.get_handle().wait(); } +*/ } -- cgit v1.2.3