From ba32d2d08847250f5fa15cf5f060f97ba037fd2c Mon Sep 17 00:00:00 2001 From: AdrianAbeyta Date: Thu, 29 Feb 2024 21:56:54 +0000 Subject: [PATCH] Update runtime conditionals --- cupy_backends/cuda/api/runtime.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cupy_backends/cuda/api/runtime.pyx b/cupy_backends/cuda/api/runtime.pyx index 7a3f508321a..b582c092b57 100644 --- a/cupy_backends/cuda/api/runtime.pyx +++ b/cupy_backends/cuda/api/runtime.pyx @@ -715,13 +715,13 @@ cpdef PointerAttributes pointerGetAttributes(intptr_t ptr): cdef _PointerAttributes attrs status = cudaPointerGetAttributes(&attrs, ptr) check_status(status) - IF CUPY_CUDA_VERSION > 0 or CUPY_HIP_VERSION > 60000000: + IF CUPY_CUDA_VERSION > 0 or CUPY_HIP_VERSION > 60032830: return PointerAttributes( attrs.device, attrs.devicePointer, attrs.hostPointer, attrs.type) - ELIF 0 < CUPY_HIP_VERSION < 60000000: + ELIF 0 < CUPY_HIP_VERSION < 60032830: return PointerAttributes( attrs.device, attrs.devicePointer,