|
11 | 11 |
|
12 | 12 | import numpy as np
|
13 | 13 | import pytest
|
14 |
| -from conftest import skipif_compute_sanitizer_is_running |
| 14 | +from conftest import skipif_testing_with_compute_sanitizer |
15 | 15 |
|
16 | 16 | import cuda.cuda as cuda
|
17 | 17 | import cuda.cudart as cudart
|
@@ -84,7 +84,7 @@ def test_cuda_memcpy():
|
84 | 84 | assert err == cuda.CUresult.CUDA_SUCCESS
|
85 | 85 |
|
86 | 86 |
|
87 |
| -@skipif_compute_sanitizer_is_running |
| 87 | +@skipif_testing_with_compute_sanitizer |
88 | 88 | def test_cuda_array():
|
89 | 89 | (err,) = cuda.cuInit(0)
|
90 | 90 | assert err == cuda.CUresult.CUDA_SUCCESS
|
@@ -238,7 +238,7 @@ def test_cuda_uuid_list_access():
|
238 | 238 | assert err == cuda.CUresult.CUDA_SUCCESS
|
239 | 239 |
|
240 | 240 |
|
241 |
| -@skipif_compute_sanitizer_is_running |
| 241 | +@skipif_testing_with_compute_sanitizer |
242 | 242 | def test_cuda_cuModuleLoadDataEx():
|
243 | 243 | (err,) = cuda.cuInit(0)
|
244 | 244 | assert err == cuda.CUresult.CUDA_SUCCESS
|
@@ -626,7 +626,7 @@ def test_cuda_coredump_attr():
|
626 | 626 | assert err == cuda.CUresult.CUDA_SUCCESS
|
627 | 627 |
|
628 | 628 |
|
629 |
| -@skipif_compute_sanitizer_is_running |
| 629 | +@skipif_testing_with_compute_sanitizer |
630 | 630 | def test_get_error_name_and_string():
|
631 | 631 | (err,) = cuda.cuInit(0)
|
632 | 632 | assert err == cuda.CUresult.CUDA_SUCCESS
|
@@ -956,7 +956,7 @@ def test_CUmemDecompressParams_st():
|
956 | 956 | assert int(desc.dstActBytes) == 0
|
957 | 957 |
|
958 | 958 |
|
959 |
| -@skipif_compute_sanitizer_is_running |
| 959 | +@skipif_testing_with_compute_sanitizer |
960 | 960 | def test_all_CUresult_codes():
|
961 | 961 | max_code = int(max(cuda.CUresult))
|
962 | 962 | # Smoke test. CUDA_ERROR_UNKNOWN = 999, but intentionally using literal value.
|
@@ -989,21 +989,21 @@ def test_all_CUresult_codes():
|
989 | 989 | assert num_good >= 76 # CTK 11.0.3_450.51.06
|
990 | 990 |
|
991 | 991 |
|
992 |
| -@skipif_compute_sanitizer_is_running |
| 992 | +@skipif_testing_with_compute_sanitizer |
993 | 993 | def test_cuKernelGetName_failure():
|
994 | 994 | err, name = cuda.cuKernelGetName(0)
|
995 | 995 | assert err == cuda.CUresult.CUDA_ERROR_INVALID_VALUE
|
996 | 996 | assert name is None
|
997 | 997 |
|
998 | 998 |
|
999 |
| -@skipif_compute_sanitizer_is_running |
| 999 | +@skipif_testing_with_compute_sanitizer |
1000 | 1000 | def test_cuFuncGetName_failure():
|
1001 | 1001 | err, name = cuda.cuFuncGetName(0)
|
1002 | 1002 | assert err == cuda.CUresult.CUDA_ERROR_INVALID_VALUE
|
1003 | 1003 | assert name is None
|
1004 | 1004 |
|
1005 | 1005 |
|
1006 |
| -@skipif_compute_sanitizer_is_running |
| 1006 | +@skipif_testing_with_compute_sanitizer |
1007 | 1007 | @pytest.mark.skipif(
|
1008 | 1008 | driverVersionLessThan(12080) or not supportsCudaAPI("cuCheckpointProcessGetState"),
|
1009 | 1009 | reason="When API was introduced",
|
|
0 commit comments