diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-09-17 14:08:06 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-09-17 14:08:06 +0200 |
commit | 60686e33f312093720f2551360bd0431e306ebc8 (patch) | |
tree | 9c79438b7215ee987a5a611c82d9928cb7029f0e /modules/remote-hip/c++/device.tmpl.hpp | |
parent | 58f79a944d48e3570519ac78b8444d4dc90796ed (diff) |
wip
Diffstat (limited to 'modules/remote-hip/c++/device.tmpl.hpp')
-rw-r--r-- | modules/remote-hip/c++/device.tmpl.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/remote-hip/c++/device.tmpl.hpp b/modules/remote-hip/c++/device.tmpl.hpp index 2ee991d..dd4aee7 100644 --- a/modules/remote-hip/c++/device.tmpl.hpp +++ b/modules/remote-hip/c++/device.tmpl.hpp @@ -1,3 +1,5 @@ +#include <iostream> + namespace saw { namespace impl { template<typename Schema, typename Encoding> @@ -37,6 +39,10 @@ struct hip_copy_to_device<schema::Array<T,Dim>, Encoding> { hipError_t data_copy_err = hipMemcpy(dat, (from.get_raw_data()),sizeof(typename native_data_type<T>::type) * from.size(), hipMemcpyHostToDevice); } + for(uint64_t i = 0; i < from.size(); ++i){ + std::cout<<from.at(i).get()<<" "; + } + std::cout<<std::endl; // auto from_dat = &from.at(0); data<Schema,Encoding> tmp_fake_dat; { |