Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
easyconfigs:
- LAMMPS-22Jul2025-foss-2024a-kokkos-CUDA-12.6.0.eb:
Comment thread
laraPPr marked this conversation as resolved.
# https://github.com/easybuilders/easybuild-easyblocks/pull/4175
options:
include-easyblocks-from-commit: bcc86f327b79edd5f06f71c5401a5a7665a39a68
13 changes: 13 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,18 @@ def pre_test_hook_Siesta_ignore_failure_with_crosscompilation(self, *args, **kwa
self.cfg['testopts'] = re.sub(r"-E '(.*)'", rf"-E '\1|{extra_testopts}'", testopts)


def pre_test_hook_LAMMPS_skip_ctest_with_crosscompilation(self, *args, **kwargs):
"""
Ignore failing tests when crosscompiling without gpu present.
"""
if self.name == 'LAMMPS':
if self.version in ['22Jul2025']:
if 'CUDA' in self.cfg['versionsuffix']:
cuda_cc = build_option('cuda_compute_capabilities')
if cuda_cc and not get_gpu_info():
self.cfg['runtest'] = False


def pre_single_extension_hook(ext, *args, **kwargs):
"""Main pre-extension: trigger custom functions based on software name."""
if ext.name in PRE_SINGLE_EXTENSION_HOOKS:
Expand Down Expand Up @@ -2249,6 +2261,7 @@ def post_easyblock_hook(self, *args, **kwargs):
'netCDF': pre_test_hook_ignore_failing_tests_netCDF,
'OpenBabel': pre_test_hook_ignore_failing_tests_OpenBabel_a64fx,
'PyTorch': pre_test_hook_increase_max_failed_tests_arm_PyTorch,
'LAMMPS': pre_test_hook_LAMMPS_skip_ctest_with_crosscompilation,
}

PRE_SINGLE_EXTENSION_HOOKS = {
Expand Down
Loading