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 d2978aa commit bc41afeCopy full SHA for bc41afe
1 file changed
cuda_bindings/tests/test_cudart.py
@@ -1411,3 +1411,14 @@ def test_getLocalRuntimeVersion():
1411
else:
1412
assertSuccess(err)
1413
assert version >= 12000 # CUDA 12.0
1414
+
1415
1416
+def test_getLocalRuntimeVersion_can_be_called_multiple_times():
1417
+ try:
1418
+ cudart.getLocalRuntimeVersion()
1419
+ err, version = cudart.getLocalRuntimeVersion()
1420
+ except pathfinder.DynamicLibNotFoundError:
1421
+ pytest.skip("cudart dynamic lib not available")
1422
+ else:
1423
+ assertSuccess(err)
1424
+ assert version >= 12000 # CUDA 12.0
0 commit comments