diff options
Diffstat (limited to 'modules/remote-hip/c++/device.hpp')
-rw-r--r-- | modules/remote-hip/c++/device.hpp | 17 |
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>(); + } + }; } |