Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions easybuild/easyblocks/l/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ def extra_options():
'test_suite_ignore_timeouts': [False, "Do not treat timedoud tests as failures", CUSTOM],
'test_suite_include_benchmarks': [False, "Include benchmarks in the LLVM tests (default False)", CUSTOM],
'test_suite_max_failed': [0, "Maximum number of failing tests (does not count allowed failures)", CUSTOM],
'test_suite_max_parallel': [1, "Maximum number LIT tasks to use for tests. "
"Limitted by the global parallel setting.", CUSTOM],
'test_suite_timeout_single': [None, "Timeout for each individual test in the test suite", CUSTOM],
'test_suite_timeout_total': [None, "Timeout for total running time of the testsuite", CUSTOM],
'use_pic': [True, "Build with Position Independent Code (PIC)", CUSTOM],
Expand Down Expand Up @@ -644,10 +646,9 @@ def _configure_final_build(self):
self._cmakeopts[cmake_flag] = include_benchmarks
self.runtimes_cmake_args[cmake_flag] = include_benchmarks

# Make sure tests are not running with more than 'parallel' tasks
parallel = self.cfg.parallel
if not build_option('mpi_tests'):
parallel = 1
# Set parallel LIT tasks. Limit by set max-parallelism and in absence of that
# use --mpi-tests to determine if parallelism is desired.
parallel = min(self.cfg.parallel, self.cfg['test_suite_max_parallel'])
lit_args = [f'-j {parallel}']
if self.cfg['debug_tests']:
lit_args += ['-v']
Expand Down