summaryrefslogtreecommitdiff
path: root/modules/remote-hip/examples
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-hip/examples')
-rw-r--r--modules/remote-hip/examples/hip_transfer_data.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/remote-hip/examples/hip_transfer_data.cpp b/modules/remote-hip/examples/hip_transfer_data.cpp
index a7c1b8c..9fbf674 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(saw::data<saw::schema::UInt16,saw::encode::Native>* val){
+__global__ void print_value(saw::data<saw::schema::Int16,saw::encode::Native>* val){
int v = val->get();
printf("Hello world: %d", v);
}
@@ -42,9 +42,9 @@ saw::error_or<void> real_main(){
}
auto dfind = eo_dfind.get_value();
- auto& val = dfind();
+ auto& v = dfind();
- print_value<<<dim3(2),dim3(2),0,hipStreamDefault>>>(&val);
+ print_value<<<dim3(2),dim3(2),0,hipStreamDefault>>>(*(v.get_device_data()));
return make_void();
}