diff options
Diffstat (limited to 'modules')
-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; { |