From 1f4154d756dc6769237adbe6e2e1f799abd425f4 Mon Sep 17 00:00:00 2001 From: Hendrik Groove Date: Mon, 21 Oct 2024 00:29:38 +0200 Subject: [PATCH] fix --- src/common/device_helpers.hip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;