summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/remote-hip/examples/hip_transfer_data.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/remote-hip/examples/hip_transfer_data.cpp b/modules/remote-hip/examples/hip_transfer_data.cpp
index 71ef9a8..9f9c521 100644
--- a/modules/remote-hip/examples/hip_transfer_data.cpp
+++ b/modules/remote-hip/examples/hip_transfer_data.cpp
@@ -3,7 +3,7 @@
#include <iostream>
-__global__ void print_value(int16_t val){
+__global__ void print_value(data<saw::schema::UInt16,encode::Native>* val){
printf("Hello world: %d", val);
}
@@ -41,7 +41,9 @@ saw::error_or<void> real_main(){
}
auto dfind = eo_dfind.get_value();
- print_value<<<dim3(2),dim3(2),0,hipStreamDefault>>>(dfind());
+ auto& val = dfind();
+
+ print_value<<<dim3(2),dim3(2),0,hipStreamDefault>>>(&val);
return make_void();
}