Skip to content

Commit 48dbd4f

Browse files
committed
Break cuda.bindings for cuda.core
1 parent b162f64 commit 48dbd4f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cuda_bindings/cuda/bindings/nvml.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21516,6 +21516,10 @@ cpdef init_v2():
2151621516

2151721517
.. seealso:: `nvmlInit_v2`
2151821518
"""
21519+
import sys
21520+
if "cuda.core" in sys.modules:
21521+
raise RuntimeError("Not for you, cuda.core!")
21522+
2151921523
with nogil:
2152021524
__status__ = nvmlInit_v2()
2152121525
check_status(__status__)

0 commit comments

Comments
 (0)