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 cfb3a03 commit bd98f21Copy full SHA for bd98f21
1 file changed
cuda_bindings/tests/test_cudart.py
@@ -9,6 +9,7 @@
9
10
import cuda.bindings.driver as cuda
11
import cuda.bindings.runtime as cudart
12
+from cuda import pathfinder
13
from cuda.bindings import runtime
14
15
@@ -1403,6 +1404,10 @@ def test_struct_pointer_comparison(target):
1403
1404
1405
1406
def test_getLocalRuntimeVersion():
- err, version = cudart.getLocalRuntimeVersion()
1407
- assertSuccess(err)
1408
- assert version >= 12000 # CUDA 12.0
+ try:
+ err, version = cudart.getLocalRuntimeVersion()
1409
+ except pathfinder.DynamicLibraryNotFoundError:
1410
+ pass
1411
+ else:
1412
+ assertSuccess(err)
1413
+ assert version >= 12000 # CUDA 12.0
0 commit comments