From 6fab34d4ad063421f1ea0a16ad35a904e70817b4 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 7 Apr 2025 18:08:14 +0200 Subject: Updating the calculator example a bit --- modules/remote-sycl/tests/calculator.foo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/remote-sycl/tests/calculator.foo b/modules/remote-sycl/tests/calculator.foo index 745bd3d..7360283 100644 --- a/modules/remote-sycl/tests/calculator.foo +++ b/modules/remote-sycl/tests/calculator.foo @@ -20,8 +20,8 @@ SAW_TEST("SYCL Interface Calculator"){ cl::sycl::queue cmd_queue; - interface, cl::sycl::queue*> cl_iface { -[](data>& in, cl::sycl::queue* cmd) -> data { + interface, cl::sycl::queue*> cl_iface { +[](data, encode::Sycl>& in, cl::sycl::queue* cmd) -> data { std::array h_xy{in.get<0>().get(), in.get<1>().get()}; int64_t res{}; cl::sycl::buffer d_xy { h_xy.data(), h_xy.size() }; @@ -37,7 +37,7 @@ SAW_TEST("SYCL Interface Calculator"){ cmd->wait(); return data{res}; }, - [](data,encode::Native,rmt::Sycl>& in, cl::sycl::queue* cmd) -> data { + [](data,encode::Sycl>& in, cl::sycl::queue* cmd) -> data { return data{in.get<0>().get() * in.get<1>().get()}; } }; -- cgit v1.2.3