Skip to content

Commit 374b9ef

Browse files
authored
Merge branch 'easybuilders:develop' into 20250604092520_new_pr_llvm
2 parents d56e66a + 0df8bf4 commit 374b9ef

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

easybuild/easyblocks/l/llvm.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,11 +1082,11 @@ def _para_test_step(self, parallel=1):
10821082
basedir = self.final_dir
10831083

10841084
# From grep -E "^[A-Z]+: " LOG_FILE | cut -d: -f1 | sort | uniq
1085-
OUTCOMES_LOG = [
1085+
OUTCOME_FAIL = [
10861086
'FAIL',
10871087
'TIMEOUT',
10881088
]
1089-
# OUTCOMES_OK = [
1089+
# OUTCOME_OK = [
10901090
# 'PASS',
10911091
# 'UNSUPPORTED',
10921092
# 'XFAIL',
@@ -1114,7 +1114,7 @@ def _para_test_step(self, parallel=1):
11141114
failed_pattern_matches = 0
11151115
if ignore_patterns:
11161116
for line in out.splitlines():
1117-
if any(line.startswith(f'{x}: ') for x in OUTCOMES_LOG):
1117+
if any(line.startswith(f'{x}: ') for x in OUTCOME_FAIL):
11181118
if any(patt in line for patt in ignore_patterns):
11191119
self.log.info("Ignoring test failure: %s", line)
11201120
ignored_pattern_matches += 1
@@ -1144,7 +1144,7 @@ def _para_test_step(self, parallel=1):
11441144

11451145
if num_failed != failed_pattern_matches:
11461146
msg = f"Number of failed tests ({num_failed}) does not match "
1147-
msg += f"number identified va line-by-line pattern matching: {failed_pattern_matches}"
1147+
msg += f"Number identified via line-by-line pattern matching: {failed_pattern_matches}"
11481148
self.log.warning(msg)
11491149

11501150
if num_failed is not None and ignored_pattern_matches:
@@ -1160,15 +1160,14 @@ def test_step(self):
11601160
self._create_compiler_config_file(self.final_dir)
11611161

11621162
# For nvptx64 tests, find out if 'ptxas' exists in $PATH. If not, ignore all nvptx64 test failures
1163-
pxtas_path = which('ptxas', on_error=IGNORE)
1164-
if self.nvptx_target_cond and not pxtas_path:
1163+
if not which('ptxas', on_error=IGNORE):
11651164
self.ignore_patterns += ['nvptx64-nvidia-cuda', 'nvptx64-nvidia-cuda-LTO']
11661165
self.log.warning("PTXAS not found in PATH, ignoring failing tests for NVPTX target")
11671166
# If the AMDGPU target is built, tests will be run if libhsa-runtime64.so is found.
11681167
# However, this can cause issues if the system libraries are used, due to other loaded modules.
11691168
# Therefore, ignore failing tests if ROCr-Runtime is not in the dependencies and
11701169
# warn about this in the logs.
1171-
if self.amdgpu_target_cond and 'rocr-runtime' not in self.deps:
1170+
if 'rocr-runtime' not in self.deps:
11721171
self.ignore_patterns += ['amdgcn-amd-amdhsa']
11731172
self.log.warning("ROCr-Runtime not in dependencies, ignoring failing tests for AMDGPU target.")
11741173

easybuild/easyblocks/m/mpich.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,20 @@ def add_mpich_configopts(self):
137137
device, ', '.join(DEVICES_WITH_UCX_SUPPORT)
138138
)
139139
device += ':ucx'
140-
add_configopts.append('--with-ucx=%s' % ucx_root)
140+
add_configopts.append(f'--with-ucx={ucx_root}')
141141
self.log.info("Enabling UCX support, using UCX root: %s", ucx_root)
142142

143+
hwloc_root = get_software_root('hwloc')
144+
if hwloc_root:
145+
if LooseVersion(self.version) < LooseVersion('4'):
146+
add_configopts.append(f'--with-hwloc-prefix={hwloc_root}')
147+
else:
148+
add_configopts.append(f'--with-hwloc={hwloc_root}')
149+
self.log.info("Enabling hwloc support, using hwloc root: %s", hwloc_root)
150+
else:
151+
add_configopts.append('--without-hwloc')
152+
self.log.info("hwloc dependency not found, disabling hwloc support")
153+
143154
if self.cfg['mpi_abi']:
144155
if LooseVersion(self.version) < LooseVersion('4.3'):
145156
raise EasyBuildError("MPI ABI compatibility is not supported in MPICH < 4.3")

0 commit comments

Comments
 (0)