Skip to content

Commit

Permalink
Update runtime conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAbeyta authored and AdrianAbeyta committed Feb 29, 2024
1 parent 913b4d8 commit ba32d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cupy_backends/cuda/api/runtime.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -715,13 +715,13 @@ cpdef PointerAttributes pointerGetAttributes(intptr_t ptr):
cdef _PointerAttributes attrs
status = cudaPointerGetAttributes(&attrs, <void*>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,
<intptr_t>attrs.devicePointer,
<intptr_t>attrs.hostPointer,
attrs.type)
ELIF 0 < CUPY_HIP_VERSION < 60000000:
ELIF 0 < CUPY_HIP_VERSION < 60032830:
return PointerAttributes(
attrs.device,
<intptr_t>attrs.devicePointer,
Expand Down

0 comments on commit ba32d2d

Please sign in to comment.