Skip to content

Commit 6daf5c3

Browse files
authored
Merge branch 'main' into eessi-extend-amd
2 parents 9316878 + 1867d06 commit 6daf5c3

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

eb_hooks.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,25 @@ def pre_test_hook_ignore_failing_tests_FFTWMPI(self, *args, **kwargs):
14871487
self.cfg['testopts'] = "|| echo ignoring failing tests"
14881488

14891489

1490+
def pre_test_hook_lammps_ignore_failure_arm_generic(self, *args, **kwargs):
1491+
"""
1492+
Ignore failing tests on ARM generic target for LAMMPS version 22Jul2025
1493+
"""
1494+
# Ignore failing ctest for LAMMPS/22Jul2025 on aarch64/generic
1495+
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
1496+
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
1497+
if self.name == 'LAMMPS' and self.version == '22Jul2025':
1498+
# This command matches what is in
1499+
# https://github.com/easybuilders/easybuild-easyblocks/blob/71b010288084e1777fbdd0e3db319f0104134b1d/easybuild/easyblocks/l/lammps.py#L682
1500+
# If a test_cmd is already defined, the easyblock linked above should not overwrite it anymore
1501+
test_cmd = 'ctest '
1502+
test_cmd += '--no-tests=error '
1503+
test_cmd += '-LE unstable -E "TestMliapPyUnified|AtomicPairStyle:meam_spline|KSpaceStyle:scafacos.*" '
1504+
test_cmd += f' || echo "Ignoring failing tests when installing for {cpu_target}"'
1505+
self.log.debug(f"Running tests using test_cmd = '{test_cmd}' as test_cmd")
1506+
self.cfg['test_cmd'] = test_cmd
1507+
1508+
14901509
def pre_test_hook_ignore_failing_tests_SciPybundle(self, *args, **kwargs):
14911510
"""
14921511
Pre-test hook for SciPy-bundle: skip failing tests for selected SciPy-bundle versions
@@ -1968,18 +1987,6 @@ def post_easyblock_hook(self, *args, **kwargs):
19681987
print_warning(f"Not enabling the post_easybuild_hook, as it requires EasyBuild 5.1.1 or newer (you are using {EASYBUILD_VERSION}).")
19691988

19701989

1971-
def pre_run_shell_cmd_hook(cmd, work_dir=None, **kwargs):
1972-
"""Main pre_shell_cmd_hook: trigger custom funtions based on software name."""
1973-
1974-
# Ignore failing ctest for LAMMPS/22Jul2025 on aarch64/generic
1975-
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
1976-
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
1977-
if bool(re.search('LAMMPS', work_dir)) and bool(re.search('22Jul2025', work_dir)):
1978-
if isinstance(cmd, str) and cmd.startswith('ctest') and '-LE unstable' in cmd:
1979-
cmd = cmd + f' || echo "Ignoring failing tests when installing for {cpu_target}"'
1980-
return cmd
1981-
1982-
19831990
PARSE_HOOKS = {
19841991
'casacore': parse_hook_casacore_disable_vectorize,
19851992
'CGAL': parse_hook_cgal_toolchainopts_precise,
@@ -2037,6 +2044,7 @@ def pre_run_shell_cmd_hook(cmd, work_dir=None, **kwargs):
20372044
'ESPResSo': pre_test_hook_ignore_failing_tests_ESPResSo,
20382045
'FFTW.MPI': pre_test_hook_ignore_failing_tests_FFTWMPI,
20392046
'Highway': pre_test_hook_exclude_failing_test_Highway,
2047+
'LAMMPS': pre_test_hook_lammps_ignore_failure_arm_generic,
20402048
'SciPy-bundle': pre_test_hook_ignore_failing_tests_SciPybundle,
20412049
'netCDF': pre_test_hook_ignore_failing_tests_netCDF,
20422050
'OpenBabel': pre_test_hook_ignore_failing_tests_OpenBabel_a64fx,

scripts/gpu_support/nvidia/install_cuda_and_libraries.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ echo "Created temporary directory '${tmpdir}'"
9393
SAVE_MODULEPATH=${MODULEPATH}
9494

9595
for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
96-
echo -e "Processing easystack file ${easystack_file}...\n\n"
96+
echo -e "Processing easystack file ${EASYSTACK_FILE}...\n\n"
9797

9898
# determine version of EasyBuild module to load based on EasyBuild version included in name of easystack file
9999
eb_version=$(echo ${EASYSTACK_FILE} | sed 's/.*eb-\([0-9.]*\).*.yml/\1/g')
@@ -104,7 +104,7 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
104104
if [[ $? -eq 0 ]]; then
105105
echo_green ">> Found an EasyBuild/${eb_version} module"
106106
else
107-
echo_yellow ">> No EasyBuild/${eb_version} module found: skipping step to install easystack file ${easystack_file} (see output in ${module_avail_out})"
107+
echo_yellow ">> No EasyBuild/${eb_version} module found: skipping step to install easystack file ${EASYSTACK_FILE} (see output in ${module_avail_out})"
108108
continue
109109
fi
110110
# Safer to unload EESSI-extend before loading an EasyBuild version, in case unload behavior ever becomes dependent on EasyBuild version

0 commit comments

Comments
 (0)