Skip to content

Commit 78d6a88

Browse files
committed
Add LAMMPS hook to ignore failing ctest on ARM generic
1 parent 693e5ac commit 78d6a88

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

eb_hooks.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,20 @@ def pre_test_hook_ignore_failing_tests_OpenBabel_a64fx(self, *args, **kwargs):
15751575
self.cfg['testopts'] = "|| echo ignoring failing tests"
15761576

15771577

1578+
def pre_test_hook_ignore_failing_tests_LAMMPS_ARM_generic(self, *args, **kwargs):
1579+
"""
1580+
Pre-test hook for LAMMPS: skip failing ctest for selected LAMMPS version on ARM generic.
1581+
1582+
See: https://github.com/lammps/lammps/issues/4926
1583+
"""
1584+
if ec.name == 'LAMMPS' and ec.version in ('22Jul2025',):
1585+
if os.getenv('EESSI_CPU_FAMILY') == 'aarch64':
1586+
mcpu_generic = '-DKokkos_ARCH_ARMV80=yes'
1587+
cflags = os.getenv('CFLAGS')
1588+
if mcpu_generic in cflags:
1589+
self.cfg['testopts'] = "|| echo ignoring failing tests"
1590+
1591+
15781592
def pre_single_extension_hook(ext, *args, **kwargs):
15791593
"""Main pre-extension: trigger custom functions based on software name."""
15801594
if ext.name in PRE_SINGLE_EXTENSION_HOOKS:
@@ -1986,6 +2000,7 @@ def post_easyblock_hook(self, *args, **kwargs):
19862000
'netCDF': pre_test_hook_ignore_failing_tests_netCDF,
19872001
'OpenBabel': pre_test_hook_ignore_failing_tests_OpenBabel_a64fx,
19882002
'PyTorch': pre_test_hook_increase_max_failed_tests_arm_PyTorch,
2003+
'LAMMPS': pre_test_hook_ignore_failing_tests_LAMMPS_ARM_generic,
19892004
}
19902005

19912006
PRE_SINGLE_EXTENSION_HOOKS = {

0 commit comments

Comments
 (0)