From 8ea9179a00175f4d44c8239c166a679f1d895e81 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Wed, 2 Jun 2021 15:46:57 -0400 Subject: [PATCH] Correct device pointer datatype in HIP UCL_Const --- lib/gpu/geryon/hip_texture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gpu/geryon/hip_texture.h b/lib/gpu/geryon/hip_texture.h index 9117adc879..8738f6e2ea 100644 --- a/lib/gpu/geryon/hip_texture.h +++ b/lib/gpu/geryon/hip_texture.h @@ -128,12 +128,12 @@ class UCL_Const { _cq)); } /// Get device ptr associated with object - inline const void* begin() const { return &_global; } + inline const hipDeviceptr_t * begin() const { return &_global; } inline void clear() {} private: hipStream_t _cq; - void* _global; + hipDeviceptr_t _global; size_t _global_bytes; friend class UCL_Kernel; };