From 601113a445658d8b15273dd91c66cf20daf50d30 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 20 Jun 2024 16:35:25 +0200 Subject: Changing towards a better allocated structure for sycl --- modules/remote-sycl/tests/calculator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/remote-sycl/tests/calculator.cpp') diff --git a/modules/remote-sycl/tests/calculator.cpp b/modules/remote-sycl/tests/calculator.cpp index 730838d..6d061ad 100644 --- a/modules/remote-sycl/tests/calculator.cpp +++ b/modules/remote-sycl/tests/calculator.cpp @@ -21,7 +21,7 @@ SAW_TEST("Sycl Interface Calculator"){ cl::sycl::queue cmd_queue; interface, cl::sycl::queue*> cl_iface { -[](data> in, cl::sycl::queue* cmd) -> data { +[](data>& 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> in, cl::sycl::queue* cmd) -> data { + [](data,encode::Native,rmt::Sycl>& in, cl::sycl::queue* cmd) -> data { return data{in.get<0>().get() * in.get<1>().get()}; } }; -- cgit v1.2.3