summaryrefslogtreecommitdiff
path: root/modules/remote-hip/c++/device.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-09-18 20:26:52 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-09-18 20:26:52 +0200
commit9dd079f6c90405622e4b08a3337fb91f2a9935ff (patch)
tree4599380af1e1460e35d636af5b9be32fbf933c74 /modules/remote-hip/c++/device.hpp
parent90acc8c3d29a7f3309aef212ae1548494aec494a (diff)
wip
Diffstat (limited to 'modules/remote-hip/c++/device.hpp')
-rw-r--r--modules/remote-hip/c++/device.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/remote-hip/c++/device.hpp b/modules/remote-hip/c++/device.hpp
index f760024..ed2b42f 100644
--- a/modules/remote-hip/c++/device.hpp
+++ b/modules/remote-hip/c++/device.hpp
@@ -22,15 +22,30 @@ public:
error_or<void> copy_to_device(data<Schema, Encoding>& from, data<Schema, encode::Hip<Encoding>>& to){
auto dev_data = to.get_device_data();
-
auto eov = impl::hip_copy_to_device<Schema,Encoding>::apply(from, dev_data);
return eov;
}
template<typename Schema, typename Encoding>
error_or<void> copy_to_host(data<Schema,encode::Hip<Encoding>>& from, data<Schema,Encoding>& to){
+ auto dev_data = from.get_device_data();
+ auto eov = impl::hip_copy_to_host<Schema,Encoding>::apply(dev_data,to);
+ return make_error<err::not_implemented>();
+ }
+
+ template<typename Schema, typename Encoding>
+ error_or<void> erase_from_device(data<Schema,encode::Hip<Encoding>>& dev_dat){
+ (void) dev_dat;
return make_error<err::not_implemented>();
}
+
+ template<typename Schema, typename Encoding>
+ error_or<void> allocate_on_device(const typename data<SchemaEncoding>::Init& from, data<Schema,encode::Hip<Encoding>>& to){
+ (void) from;
+ (void) to;
+ return make_error<err::not_implemented>();
+ }
+
};
}