From 48dbd4f2f25e5e390c2136e928004788c9d0da30 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 22 Apr 2026 08:54:13 -0400 Subject: [PATCH] Break cuda.bindings for cuda.core --- cuda_bindings/cuda/bindings/nvml.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cuda_bindings/cuda/bindings/nvml.pyx b/cuda_bindings/cuda/bindings/nvml.pyx index 0e2493a764..b28b33cdef 100644 --- a/cuda_bindings/cuda/bindings/nvml.pyx +++ b/cuda_bindings/cuda/bindings/nvml.pyx @@ -21516,6 +21516,10 @@ cpdef init_v2(): .. seealso:: `nvmlInit_v2` """ + import sys + if "cuda.core" in sys.modules: + raise RuntimeError("Not for you, cuda.core!") + with nogil: __status__ = nvmlInit_v2() check_status(__status__)