@@ -3270,7 +3270,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
32703270
32713271 # Test case 1a: test with default options, --cuda-compute-capabilities=8.0 and a binary that contains
32723272 # 8.0 device code
3273- # This should succeed (since the default for --cuda-sanity-check-error-on-fail is False)
3273+ # This should succeed (since the default for --cuda-sanity-check-error-on-failed-checks is False)
32743274 # as to not break backwards compatibility
32753275 write_file (cuobjdump_file , cuobjdump_txt_shebang ),
32763276 write_file (cuobjdump_file , cuobjdump_txt_sm80 , append = True )
@@ -3287,7 +3287,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
32873287 # Note that the difference with 1a is the presense of additional device code, PTX code foor the right
32883288 # architecture, but missing device code for the requested architecture
32893289 # It should not matter for the result, but triggers slightly different code paths in easyblock.py
3290- # This should succeed (since the default for --cuda-sanity-check-error-on-fail is False)
3290+ # This should succeed (since the default for --cuda-sanity-check-error-on-failed-checks is False)
32913291 # as to not break backwards compatibility
32923292 write_file (cuobjdump_file , cuobjdump_txt_shebang ),
32933293 write_file (cuobjdump_file , cuobjdump_txt_sm90 , append = True )
@@ -3305,9 +3305,9 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
33053305 self .assertTrue (device_missing_80_code_regex .search (outtxt ), msg )
33063306 assert_cuda_report (missing_cc = 1 , additional_cc = 1 , missing_ptx = 0 , log = outtxt , stdout = stdout )
33073307
3308- # Test case 2: same as Test case 1, but add --cuda-sanity-check-error-on-fail
3308+ # Test case 2: same as Test case 1, but add --cuda-sanity-check-error-on-failed-checks
33093309 # This is expected to fail since there is missing device code for CC80
3310- args = ['--cuda-compute-capabilities=8.0' , '--cuda-sanity-check-error-on-fail ' ]
3310+ args = ['--cuda-compute-capabilities=8.0' , '--cuda-sanity-check-error-on-failed-checks ' ]
33113311 # We expect this to fail, so first check error, then run again to check output
33123312 error_pattern = r"Files missing CUDA device code: 1."
33133313 with self .mocked_stdout_stderr ():
@@ -3325,7 +3325,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
33253325 # This is expected to succeed, since now the PTX code for CC80 will be accepted as
33263326 # device code. Note that also PTX code for the highest requested compute architecture (also CC80)
33273327 # is present, so also this part of the sanity check passes
3328- args = ['--cuda-compute-capabilities=8.0' , '--cuda-sanity-check-error-on-fail ' ,
3328+ args = ['--cuda-compute-capabilities=8.0' , '--cuda-sanity-check-error-on-failed-checks ' ,
33293329 '--cuda-sanity-check-accept-ptx-as-devcode' ]
33303330 # We expect this to pass, so no need to check errors
33313331 with self .mocked_stdout_stderr ():
@@ -3340,7 +3340,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
33403340
33413341 # Test case 4: same as Test case 2, but run with --cuda-compute-capabilities=9.0
33423342 # This is expected to fail: device code is present, but PTX code for the highest CC (9.0) is missing
3343- args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-fail ' ]
3343+ args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-failed-checks ' ]
33443344 # We expect this to fail, so first check error, then run again to check output
33453345 error_pattern = r"Files missing CUDA PTX code: 1"
33463346 with self .mocked_stdout_stderr ():
@@ -3354,7 +3354,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
33543354
33553355 # Test case 5: same as Test case 4, but add --cuda-sanity-check-accept-missing-ptx
33563356 # This is expected to succeed: device code is present, PTX code is missing, but that's accepted
3357- args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-fail ' ,
3357+ args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-failed-checks ' ,
33583358 '--cuda-sanity-check-accept-missing-ptx' ]
33593359 # We expect this to pass, so no need to check errors
33603360 warning_pattern = r"Configured highest compute capability was '9\.0', "
@@ -3373,7 +3373,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
33733373 # Test case 6: same as Test case 5, but add --cuda-sanity-check-strict
33743374 # This is expected to fail: device code is present, PTX code is missing (but accepted due to option)
33753375 # but additional device code is present, which is not allowed by --cuda-sanity-check-strict
3376- args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-fail ' ,
3376+ args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-failed-checks ' ,
33773377 '--cuda-sanity-check-accept-missing-ptx' , '--cuda-sanity-check-strict' ]
33783378 # We expect this to fail, so first check error, then run again to check output
33793379 error_pattern = r"Files with additional CUDA device code: 1"
@@ -3392,7 +3392,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
33923392 toy_whitelist_ec = os .path .join (self .test_prefix , 'toy-0.0-cuda-whitelist.eb' )
33933393 write_file (toy_whitelist_ec , read_file (toy_ec ) + '\n cuda_sanity_ignore_files = ["bin/toy"]' )
33943394
3395- args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-fail ' ,
3395+ args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-failed-checks ' ,
33963396 '--cuda-sanity-check-accept-missing-ptx' , '--cuda-sanity-check-strict' ]
33973397 # We expect this to succeed, so check output for expected patterns
33983398 with self .mocked_stdout_stderr ():
@@ -3402,7 +3402,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
34023402 self .assertTrue (device_additional_70_code_regex .search (outtxt ), msg )
34033403 assert_cuda_report (missing_cc = 0 , additional_cc = 1 , missing_ptx = 1 , log = outtxt , stdout = stdout )
34043404
3405- # Test case 8: try with --cuda-sanity-check-error-on-fail --cuda-compute-capabilities=9.0,9.0a
3405+ # Test case 8: try with --cuda-sanity-check-error-on-failed-checks --cuda-compute-capabilities=9.0,9.0a
34063406 # and --cuda-sanity-check-strict
34073407 # on a binary that contains 9.0 and 9.0a device code, and 9.0a ptx code. This tests the correct
34083408 # ordering (i.e. 9.0a > 9.0). It should pass, since device code is present for both CCs and PTX
@@ -3413,7 +3413,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
34133413 write_file (cuobjdump_file , cuobjdump_txt_sm90a , append = True )
34143414 write_file (cuobjdump_file , cuobjdump_txt_sm90a_ptx , append = True )
34153415 adjust_permissions (cuobjdump_file , stat .S_IXUSR , add = True ) # Make sure our mock cuobjdump is executable
3416- args = ['--cuda-compute-capabilities=9.0,9.0a' , '--cuda-sanity-check-error-on-fail ' ,
3416+ args = ['--cuda-compute-capabilities=9.0,9.0a' , '--cuda-sanity-check-error-on-failed-checks ' ,
34173417 '--cuda-sanity-check-strict' ]
34183418 # We expect this to pass, so no need to check errors
34193419 with self .mocked_stdout_stderr ():
@@ -3431,7 +3431,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
34313431
34323432 # Test case 9: same as 8, but no --cuda-compute-capabilities are defined
34333433 # We expect this to lead to a skip of the CUDA sanity check, and a success for the overall sanity check
3434- args = ['--cuda-sanity-check-error-on-fail ' , '--cuda-sanity-check-strict' ]
3434+ args = ['--cuda-sanity-check-error-on-failed-checks ' , '--cuda-sanity-check-strict' ]
34353435 # We expect this to pass, so no need to check errors
34363436 with self .mocked_stdout_stderr ():
34373437 outtxt = self ._test_toy_build (ec_file = toy_ec , extra_args = args , raise_error = True )
@@ -3446,7 +3446,7 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
34463446 self .assertTrue (expected_result .search (outtxt ), msg )
34473447
34483448 # Test case 10: running with default options and a binary that does not contain ANY CUDA device code
3449- # This is expected to succeed, since the default is --disable-cuda-sanity-check-error-on-fail
3449+ # This is expected to succeed, since the default is --disable-cuda-sanity-check-error-on-failed-checks
34503450 write_file (cuobjdump_file , cuobjdump_txt_shebang )
34513451 write_file (cuobjdump_file , cuobjdump_txt_no_cuda , append = True )
34523452 adjust_permissions (cuobjdump_file , stat .S_IXUSR , add = True ) # Make sure our mock cuobjdump is executable
@@ -3466,9 +3466,9 @@ def assert_cuda_report(missing_cc, additional_cc, missing_ptx, log, stdout=None,
34663466 self .assertTrue (expected_result .search (outtxt ), msg )
34673467 assert_cuda_report (missing_cc = 0 , additional_cc = 0 , missing_ptx = 0 , log = outtxt , stdout = stdout , num_checked = 0 )
34683468
3469- # Test case 11: same as Test case 10, but add --cuda-sanity-check-error-on-fail
3469+ # Test case 11: same as Test case 10, but add --cuda-sanity-check-error-on-failed-checks
34703470 # This should pass: if it's not a CUDA binary, it shouldn't fail the CUDA sanity check
3471- args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-fail ' ]
3471+ args = ['--cuda-compute-capabilities=9.0' , '--cuda-sanity-check-error-on-failed-checks ' ]
34723472 # We expect this to pass, so no need to check errors
34733473 with self .mocked_stdout_stderr ():
34743474 outtxt = self ._test_toy_build (ec_file = toy_ec , extra_args = args , raise_error = True )
0 commit comments