Skip to content

Commit 324a48a

Browse files
USE_NV_BINDING
1 parent 9b301a8 commit 324a48a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

numba_cuda/numba/cuda/cudadrv/driver.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@
6969
Stream as ExperimentalStream,
7070
)
7171

72-
# For backwards compatibility: indicate that the NVIDIA CUDA Python bindings are
73-
# in use. Older code checks this flag to branch on binding-specific behavior.
74-
USE_NV_BINDING = True
7572

7673
# There is no definition of the default stream in the Nvidia bindings (nor
7774
# is there at the C/C++ level), so we define it here so we don't need to
@@ -2076,7 +2073,7 @@ def __int__(self):
20762073
def __cuda_stream__(self):
20772074
if not self.handle.value:
20782075
return (0, drvapi.CU_STREAM_DEFAULT)
2079-
return (0, self.handle.value if USE_NV_BINDING else self.handle)
2076+
return (0, self.handle.value)
20802077

20812078
def __repr__(self):
20822079
default_streams = {

0 commit comments

Comments
 (0)