From fdf1b23129d73b27b28756e77da9b02215878721 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 21 Jul 2024 23:03:23 +0200 Subject: Fake remote allocation. --- modules/remote-sycl/c++/device.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/remote-sycl/c++/device.hpp') diff --git a/modules/remote-sycl/c++/device.hpp b/modules/remote-sycl/c++/device.hpp index ae19524..3561da7 100644 --- a/modules/remote-sycl/c++/device.hpp +++ b/modules/remote-sycl/c++/device.hpp @@ -25,6 +25,11 @@ public: error_or> copy_to_device(const data& host_data){ return data{host_data}; } + + template + error_or> allocate_on_device(const data::MetaSchema, Encoding, Storage>& host_meta){ + return copy_to_device(data{host_meta}); + } /** * Copy data to host -- cgit v1.2.3