From 185b51c1385a828170ba63243eba137b5aa77b64 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Thu, 22 Aug 2024 18:03:01 +0200 Subject: wip --- modules/remote-sycl/tests/data.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/remote-sycl/tests/data.cpp') diff --git a/modules/remote-sycl/tests/data.cpp b/modules/remote-sycl/tests/data.cpp index de09c92..027f277 100644 --- a/modules/remote-sycl/tests/data.cpp +++ b/modules/remote-sycl/tests/data.cpp @@ -1,5 +1,6 @@ #include +#include "../c++/transfer.hpp" #include "../c++/remote.hpp" namespace { @@ -41,10 +42,10 @@ SAW_TEST("SYCL Data Management"){ wait.poll(); SAW_EXPECT(rmt_addr, "Remote address hasn't been filled"); - auto device = rmt_addr->copy_device_reference(); - - auto data_srv = data_server, encode::Native, rmt::Sycl>{device}; + auto our_device = share>(); + auto& device = *our_device; + auto data_srv = data_server, encode::Native, rmt::Sycl>{our_device}; auto data_cl = data_client, encode::Native, rmt::Sycl>{data_srv}; auto eov = data_cl.send(host_data); -- cgit v1.2.3