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 dbace7a commit 797900dCopy full SHA for 797900d
test/context.py
@@ -55,8 +55,9 @@
55
56
try:
57
from hip import hip
58
+ hip.hipDriverGetVersion()
59
hip_present = True
-except ImportError:
60
+except (ImportError, RuntimeError):
61
hip_present = False
62
63
skip_if_no_pycuda = pytest.mark.skipif(
@@ -78,7 +79,7 @@
78
79
)
80
skip_if_no_openmp = pytest.mark.skipif(not openmp_present, reason="No OpenMP found")
81
skip_if_no_openacc = pytest.mark.skipif(not openacc_present, reason="No nvc++ on PATH")
-skip_if_no_hip = pytest.mark.skipif(not hip_present, reason="No HIP Python found")
82
+skip_if_no_hip = pytest.mark.skipif(not hip_present, reason="No HIP Python found or no HIP device detected")
83
84
85
def skip_backend(backend: str):
0 commit comments