Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
2416dd36
Commit
2416dd36
authored
Mar 08, 2024
by
Aarni Koskela
Committed by
Titus
Mar 11, 2024
Browse files
Add additional guard for "no NVIDIA driver"
parent
62249b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tests/conftest.py
tests/conftest.py
+5
-0
No files found.
tests/conftest.py
View file @
2416dd36
...
@@ -13,6 +13,11 @@ def pytest_runtest_call(item):
...
@@ -13,6 +13,11 @@ def pytest_runtest_call(item):
if
str
(
ae
)
==
"Torch not compiled with CUDA enabled"
:
if
str
(
ae
)
==
"Torch not compiled with CUDA enabled"
:
pytest
.
skip
(
"Torch not compiled with CUDA enabled"
)
pytest
.
skip
(
"Torch not compiled with CUDA enabled"
)
raise
raise
except
RuntimeError
as
re
:
# CUDA-enabled Torch build, but no CUDA-capable device found
if
"Found no NVIDIA driver on your system"
in
str
(
re
):
pytest
.
skip
(
"No NVIDIA driver found"
)
raise
@
pytest
.
fixture
(
scope
=
"session"
)
@
pytest
.
fixture
(
scope
=
"session"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment