summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/tests/data.cpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-22 18:03:01 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-22 18:03:01 +0200
commit185b51c1385a828170ba63243eba137b5aa77b64 (patch)
tree3dc6261cae2166ac4e4c4c317678b2e4229f46c3 /modules/remote-sycl/tests/data.cpp
parent1fb10980808d66dfa6dec4ac87857d5c13bf7298 (diff)
wip
Diffstat (limited to 'modules/remote-sycl/tests/data.cpp')
-rw-r--r--modules/remote-sycl/tests/data.cpp7
1 files changed, 4 insertions, 3 deletions
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 <forstio/test/suite.hpp>
+#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<tmpl_group<schema::TestStruct>, encode::Native, rmt::Sycl>{device};
+ auto our_device = share<device<rmt::Sycl>>();
+ auto& device = *our_device;
+ auto data_srv = data_server<tmpl_group<schema::TestStruct>, encode::Native, rmt::Sycl>{our_device};
auto data_cl = data_client<tmpl_group<schema::TestStruct>, encode::Native, rmt::Sycl>{data_srv};
auto eov = data_cl.send(host_data);