From 1d578450dc82843bd4b24f3a6aad2c1a82bbda5e Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Tue, 17 Sep 2024 11:21:05 +0200 Subject: Managed to get hip to compile --- modules/remote-hip/c++/device.tmpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/remote-hip/c++/device.tmpl.hpp') diff --git a/modules/remote-hip/c++/device.tmpl.hpp b/modules/remote-hip/c++/device.tmpl.hpp index 6edf431..0517f67 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, Encoding> { static error_or apply(data& from, data** to){ typename native_data_type::type* dat{}; hipError_t data_malloc_err = hipMalloc(&dat,sizeof(typename native_data_type::type) * from.size()); - hipError_t data_copy_err = hipMemcpy(&dat, &(from.get_raw_data()),sizeof(typename native_data_type::type) * from.size(), hipMemcpyHostToDevice); + hipError_t data_copy_err = hipMemcpy(&dat, (from.get_raw_data()),sizeof(typename native_data_type::type) * from.size(), hipMemcpyHostToDevice); if(from.size() == 0u){ // Everything is fine. We just don't want to allocate data which doesn't exist. -- cgit v1.2.3