summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-sycl/c++')
-rw-r--r--modules/remote-sycl/c++/device.hpp10
-rw-r--r--modules/remote-sycl/c++/remote.hpp4
2 files changed, 9 insertions, 5 deletions
diff --git a/modules/remote-sycl/c++/device.hpp b/modules/remote-sycl/c++/device.hpp
index 05bb17a..6667711 100644
--- a/modules/remote-sycl/c++/device.hpp
+++ b/modules/remote-sycl/c++/device.hpp
@@ -22,13 +22,16 @@ public:
* Copy data to device
*/
template<typename Schema, typename Encoding>
- error_or<data<Schema, encode::Sycl<Encoding>>> copy_to_device(const data<Schema, Encoding>& host_data){
+ error_or<data<Schema, encode::Sycl<Encoding>>> copy_to_device(const data<Schema, Encoding>& host_data, data<Schema, encode::Sycl<Encoding>>& sycl_data){
+
return data<Schema, encode::Sycl<Encoding>>{host_data};
}
template<typename Schema, typename Encoding>
error_or<data<Schema, encode::Sycl<Encoding>>> allocate_on_device(const data<typename meta_schema<Schema>::MetaSchema, Encoding>& host_meta){
- return copy_to_device(data<Schema, Encoding>{host_meta});
+ data<Schema,Encoding> host_data{host_meta};
+ data<Schema,encode::Sycl<Encoding>> sycl_dat{host_data};
+ return sycl_dat;
}
/**
@@ -44,8 +47,7 @@ public:
});
cmd_queue_.wait();
*/
- acpp::sycl::host_accessor result{dev_data.get_handle()};
- return result[0];
+ return make_error<err::not_implemented>("device<rmt::Sycl>::copy_to_host");
}
/**
diff --git a/modules/remote-sycl/c++/remote.hpp b/modules/remote-sycl/c++/remote.hpp
index 65f645e..ef11d50 100644
--- a/modules/remote-sycl/c++/remote.hpp
+++ b/modules/remote-sycl/c++/remote.hpp
@@ -1,6 +1,8 @@
#pragma once
#include "common.hpp"
+#include "transfer.hpp"
+#include "rpc.hpp"
namespace saw {
@@ -72,7 +74,7 @@ public:
}
/**
- * Spin up data server
+ * Spin up a data server
*/
template<typename Schema, typename Encoding>
error_or<own<data_server<Schema, Encoding, rmt::Sycl>>> data_listen(remote_address<rmt::Sycl>& dev){