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 62249b4 commit 2416dd3Copy full SHA for 2416dd3
tests/conftest.py
@@ -13,6 +13,11 @@ def pytest_runtest_call(item):
13
if str(ae) == "Torch not compiled with CUDA enabled":
14
pytest.skip("Torch not compiled with CUDA enabled")
15
raise
16
+ except RuntimeError as re:
17
+ # CUDA-enabled Torch build, but no CUDA-capable device found
18
+ if "Found no NVIDIA driver on your system" in str(re):
19
+ pytest.skip("No NVIDIA driver found")
20
+ raise
21
22
23
@pytest.fixture(scope="session")
0 commit comments