diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-20 16:35:25 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-06-20 16:35:25 +0200 |
commit | 601113a445658d8b15273dd91c66cf20daf50d30 (patch) | |
tree | bcb6c2a77e85bb64d6beb9b3f93a5f7bc5a6e400 /modules/remote-sycl/tests/calculator.cpp | |
parent | c1d352270add2f205d038d7e4f69c1b4f35f014d (diff) |
Changing towards a better allocated structure for sycl
Diffstat (limited to 'modules/remote-sycl/tests/calculator.cpp')
-rw-r--r-- | modules/remote-sycl/tests/calculator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<schema::Calculator, encode::Native<storage::Default>, cl::sycl::queue*> cl_iface { -[](data<schema::Tuple<schema::Int64, schema::Int64>> in, cl::sycl::queue* cmd) -> data<schema::Int64> { +[](data<schema::Tuple<schema::Int64, schema::Int64>>& in, cl::sycl::queue* cmd) -> data<schema::Int64> { std::array<int64_t,2> h_xy{in.get<0>().get(), in.get<1>().get()}; int64_t res{}; cl::sycl::buffer<int64_t,1> d_xy { h_xy.data(), h_xy.size() }; @@ -37,7 +37,7 @@ SAW_TEST("Sycl Interface Calculator"){ cmd->wait(); return data<schema::Int64>{res}; }, - [](data<schema::Tuple<schema::Int64, schema::Int64>> in, cl::sycl::queue* cmd) -> data<schema::Int64> { + [](data<schema::Tuple<schema::Int64, schema::Int64>,encode::Native,rmt::Sycl>& in, cl::sycl::queue* cmd) -> data<schema::Int64> { return data<schema::Int64>{in.get<0>().get() * in.get<1>().get()}; } }; |