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 bd1ef45 commit e31eae4Copy full SHA for e31eae4
cuda_core/tests/conftest.py
@@ -20,13 +20,14 @@ def init_cuda():
20
device = Device()
21
device.set_current()
22
yield
23
+ _device_unset_current()
24
+
25
+def _device_unset_current():
26
handle_return(driver.cuCtxPopCurrent())
27
with _device._tls_lock:
28
del _device._tls.devices
29
30
@pytest.fixture(scope="function")
31
def deinit_cuda():
32
- handle_return(driver.cuCtxPopCurrent())
- with _device._tls_lock:
- del _device._tls.devices
33
0 commit comments