diff --git a/src/common/device_helpers.hip.h b/src/common/device_helpers.hip.h index 93362986a..3c5acfb3f 100644 --- a/src/common/device_helpers.hip.h +++ b/src/common/device_helpers.hip.h @@ -999,8 +999,8 @@ auto Reduce(Policy policy, InputIt first, InputIt second, Init init, Func reduce // Get the raw pointers for debugging auto raw_begin = thrust::raw_pointer_cast(&*begin_it); auto raw_end = thrust::raw_pointer_cast(&*end_it); - std::cerr << "Raw pointers - begin: " << static_cast(raw_begin) - << ", end: " << static_cast(raw_end) << std::endl; + std::cerr << "Raw pointers - begin: " << (const void*)raw_begin + << ", end: " << (const void*)raw_end << std::endl; // Check if the pointers are valid device pointers hipPointerAttribute_t attrs;