Skip to content

Commit 3f0ceb3

Browse files
committed
Restoring USE_NV_BINDING so we don't customer code.
1 parent c1e11ce commit 3f0ceb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

numba_cuda/numba/cuda/cudadrv/driver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
ObjectCode,
6363
)
6464

65+
# For backwards compatibility: indicate that the NVIDIA CUDA Python bindings are
66+
# in use. Older code checks this flag to branch on binding-specific behavior.
67+
USE_NV_BINDING = True
68+
6569
# There is no definition of the default stream in the Nvidia bindings (nor
6670
# is there at the C/C++ level), so we define it here so we don't need to
6771
# use a magic number 0 in places where we want the default stream.

0 commit comments

Comments
 (0)