We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401491a commit fde06d5Copy full SHA for fde06d5
cuda_core/tests/conftest.py
@@ -41,8 +41,9 @@ def _device_unset_current():
41
# no active context, do nothing
42
return
43
handle_return(driver.cuCtxPopCurrent())
44
- with _device._tls_lock:
45
- del _device._tls.devices
+ if hasattr(_device._tls, "devices"):
+ with _device._tls_lock:
46
+ del _device._tls.devices
47
48
49
@pytest.fixture(scope="function")
0 commit comments