From 142aec37e12a59531dede2b5f85fd114c786d0c3 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 11 Sep 2024 14:43:11 +0200 Subject: Fixing and testing constexpr'ness --- modules/remote-hip/examples/hip_transfer_data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/remote-hip/examples') 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 -__global__ void print_value(saw::data* val){ +__global__ void print_value(saw::data* val){ int v = val->get(); printf("Hello world: %d", v); } @@ -42,9 +42,9 @@ saw::error_or real_main(){ } auto dfind = eo_dfind.get_value(); - auto& val = dfind(); + auto& v = dfind(); - print_value<<>>(&val); + print_value<<>>(*(v.get_device_data())); return make_void(); } -- cgit v1.2.3