summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-17 11:48:00 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-17 11:48:00 +0200
commit81a5bc78c326181dd7f8d5181e146979d12ba753 (patch)
tree511fb54d780e869784a8907572170ab661996aca
parent516a1eda11195c7830e5b818ba16c67bf5daee25 (diff)
wip
-rw-r--r--modules/remote-hip/c++/device.tmpl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/remote-hip/c++/device.tmpl.hpp b/modules/remote-hip/c++/device.tmpl.hpp
index cf31336..ce8b4ed 100644
--- a/modules/remote-hip/c++/device.tmpl.hpp
+++ b/modules/remote-hip/c++/device.tmpl.hpp
@@ -33,7 +33,7 @@ struct hip_copy_to_device<schema::Array<T,Dim>, Encoding> {
static error_or<void> apply(data<Schema, Encoding>& from, data<Schema,Encoding>** to){
typename native_data_type<T>::type* dat{};
hipError_t data_malloc_err = hipMalloc(&dat,sizeof(typename native_data_type<T>::type) * from.size());
- hipError_t data_copy_err = hipMemcpy(&dat, (from.get_raw_data()),sizeof(typename native_data_type<T>::type) * from.size(), hipMemcpyHostToDevice);
+ hipError_t data_copy_err = hipMemcpy(dat, (from.get_raw_data()),sizeof(typename native_data_type<T>::type) * from.size(), hipMemcpyHostToDevice);
if(from.size() == 0u){
// Everything is fine. We just don't want to allocate data which doesn't exist.