File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ cdef int _cuPythonInit() except -1 nogil:
519519 cdef char libPath[260]
520520
521521 with gil, __symbol_lock:
522- usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)
522+ usePTDS = bool(int( os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)) )
523523
524524 # Load library
525525 libPath[0] = 0
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ cdef int _cudaPythonInit() except -1 nogil:
1515 global __usePTDS
1616
1717 with gil:
18- __usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=False )
18+ __usePTDS = bool(int( os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0)) )
1919 __cudaPythonInit = True
2020 return __usePTDS
2121
Original file line number Diff line number Diff line change 1+ .. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+ .. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
3+
4+ .. module :: cuda.bindings
5+
6+ ``cuda-bindings `` 13.2.1 Release notes
7+ ======================================
8+
9+ Bugfixes
10+ --------
11+
12+ * Per-thread default stream mode would be used whenever the
13+ ``CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM `` environment variable was set,
14+ even if it was set to ``0 ``.
You can’t perform that action at this time.
0 commit comments