Skip to content

Commit dffc603

Browse files
committed
Add to the new test_all_CUresult_codes() to also exercise cuGetErrorString() CUDA_ERROR_INVALID_VALUE
1 parent 9dd2630 commit dffc603

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cuda_bindings/tests/test_cuda.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,9 @@ def test_all_CUresult_codes(max_code=1000):
970970
# (example: cuda-bindings built with CTK 12.8, driver from CTK 12.0)
971971
assert name is None
972972
assert err_name == cuda.CUresult.CUDA_ERROR_INVALID_VALUE
973+
err_desc, desc = cuda.cuGetErrorString(error)
974+
assert err_desc == cuda.CUresult.CUDA_ERROR_INVALID_VALUE
975+
assert desc is None
973976
# Super-simple smoke check: Do we have at least some "good" codes?
974977
# The number will increase over time as new enums are added and support for
975978
# old CTKs is dropped, but it is not critical that this number is updated.

0 commit comments

Comments
 (0)