Skip to content

Commit b6ed1cf

Browse files
committed
[gtfn] Fix to detect CUPY gpu runtime
1 parent 75fede7 commit b6ed1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gt4py/next/allocators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
CUPY_DEVICE: Final[Literal[None, core_defs.DeviceType.CUDA, core_defs.DeviceType.ROCM]] = (
4545
None
4646
if not cp
47-
else (core_defs.DeviceType.ROCM if cp.cuda.get_hipcc_path() else core_defs.DeviceType.CUDA)
47+
else (core_defs.DeviceType.ROCM if cp.cuda.runtime.is_hip else core_defs.DeviceType.CUDA)
4848
)
4949

5050

0 commit comments

Comments
 (0)