Skip to content

Commit 190156b

Browse files
committed
rename --cuda-sanity-check-error-on-fail to --cuda-sanity-check-error-on-failed-checks + improve help text for --cuda-sanity-check-* configuration options
1 parent a17a42c commit 190156b

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

easybuild/framework/easyblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3360,7 +3360,7 @@ def sanity_check_cuda(self, cuda_dirs=None):
33603360

33613361
fail_msgs = []
33623362
cfg_ccs = build_option('cuda_compute_capabilities') or self.cfg.get('cuda_compute_capabilities', None)
3363-
ignore_failures = not build_option('cuda_sanity_check_error_on_fail')
3363+
ignore_failures = not build_option('cuda_sanity_check_error_on_failed_checks')
33643364
strict_cc_check = build_option('cuda_sanity_check_strict')
33653365
accept_ptx_as_devcode = build_option('cuda_sanity_check_accept_ptx_as_devcode')
33663366
accept_missing_ptx = build_option('cuda_sanity_check_accept_missing_ptx')

easybuild/tools/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def mk_full_default_path(name, prefix=DEFAULT_PREFIX):
299299
'container_build_image',
300300
'cuda_sanity_check_accept_ptx_as_devcode',
301301
'cuda_sanity_check_accept_missing_ptx',
302-
'cuda_sanity_check_error_on_fail',
302+
'cuda_sanity_check_error_on_failed_checks',
303303
'cuda_sanity_check_strict',
304304
'debug',
305305
'debug_lmod',

easybuild/tools/options.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -406,30 +406,31 @@ def override_options(self):
406406
"--cuda-sanity-check-accept-ptx-as-devcode, "
407407
"or made more stringent using --cuda-sanity-check-strict.",
408408
'strlist', 'extend', None),
409-
'cuda-sanity-check-accept-missing-ptx': ("CUDA sanity check also passes if PTX code for the highest "
409+
'cuda-sanity-check-accept-missing-ptx': ("Relax CUDA sanity check to accept that PTX code for the highest "
410410
"requested CUDA compute capability is not present (but will "
411411
"print a warning)",
412412
None, 'store_true', False),
413-
'cuda-sanity-check-accept-ptx-as-devcode': ("CUDA sanity check also passes if requested device code is "
414-
"not present, as long as PTX code is present that can be "
415-
"JIT-compiled for each target in --cuda-compute-capabilities "
416-
"E.g. if --cuda-compute-capabilities=8.0 and a binary is "
417-
"found in the installation that does not have device code for "
418-
"8.0, but it does have PTX code for 7.0, the sanity check "
419-
"will pass if, and only if, this option is True. "
413+
'cuda-sanity-check-accept-ptx-as-devcode': ("Relax CUDA sanity check to accept that requested device code "
414+
"is not present, as long as PTX code is present that can be "
415+
"JIT-compiled for each target in --cuda-compute-capabilities. "
416+
"For example, if --cuda-compute-capabilities=8.0 and a binary "
417+
"is found in the installation that does not have device code "
418+
"for 8.0, but it does have PTX code for 7.0, the sanity check "
419+
"will pass if, and only if, this option is enabled. "
420420
"Note that JIT-compiling means the binary will work on the "
421421
"requested architecture, but is it not necessarily as well "
422422
"optimized as when actual device code is present for the "
423423
"requested architecture ",
424424
None, 'store_true', False),
425-
'cuda-sanity-check-error-on-fail': ("If True, failures in the CUDA sanity check will produce an error. "
426-
"If False, the CUDA sanity check will be performed, and failures will "
427-
"be reported, but they will not result in an error",
428-
None, 'store_true', False),
425+
'cuda-sanity-check-error-on-failed-checks': ("If enabled, failures in the CUDA sanity check will produce "
426+
"an error. If disabled, the CUDA sanity check will be "
427+
"performed and failures will be reported through warnings, "
428+
"but they will not result in an error",
429+
None, 'store_true', False),
429430
'cuda-sanity-check-strict': ("Perform strict CUDA sanity check. Without this option, the CUDA sanity "
430431
"check will fail if the CUDA binaries don't contain code for (at least) "
431-
"all compute capabilities defined in --cude-compute-capabilities, but will "
432-
"accept if code for additional compute capabilities is present. "
432+
"all compute capabilities defined in --cude-compute-capabilities, "
433+
"but will accept if code for additional compute capabilities is present. "
433434
"With this setting, the sanity check will also fail if code is present for "
434435
"more compute capabilities than defined in --cuda-compute-capabilities.",
435436
None, 'store_true', False),

easybuild/tools/systemtools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
2828
Authors:
2929
30+
* Kenneth Hoste (Ghent University)
3031
* Jens Timmerman (Ghent University)
3132
* Ward Poelmans (Ghent University)
3233
* Jasper Grimm (UoY)
3334
* Jan Andre Reuter (Forschungszentrum Juelich GmbH)
35+
* Caspar van Leeuwen (SURF)
3436
"""
3537
import csv
3638
import ctypes

0 commit comments

Comments
 (0)