Skip to content

Commit d56cd31

Browse files
author
lara
committed
add hook for missing installation check on aarch64
1 parent ba8de24 commit d56cd31

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

eb_hooks.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,22 @@ def parse_hook_lammps_remove_deps_for_CI_aarch64(ec, *args, **kwargs):
294294
raise EasyBuildError("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!")
295295

296296

297+
def parse_hook_CP2K_remove_deps_for_aarch64(ec, *args, **kwargs):
298+
"""
299+
Remove x86_64 specific dependencies for the CI and missing installations to pass on aarch64
300+
"""
301+
if ec.name == 'CP2K' and ec.version in ('2023.1',):
302+
if os.getenv('EESSI_CPU_FAMILY') == 'aarch64':
303+
# LIBXSMM is not supported on ARM with GCC 12.2.0 and 12.3.0
304+
# See https://www.cp2k.org/dev:compiler_support
305+
# See https://github.com/easybuilders/easybuild-easyconfigs/pull/20951
306+
# we need this hook because we check for missing installations for all CPU targets
307+
# on an x86_64 VM in GitHub Actions (so condition based on ARCH in LAMMPS easyconfig is always true)
308+
ec['dependencies'] = [dep for dep in ec['dependencies'] if dep[0] not in ('libxsmm',)]
309+
else:
310+
raise EasyBuildError("CP2K-specific hook triggered for non-CP2K easyconfig?!")]
311+
312+
297313
def pre_prepare_hook_highway_handle_test_compilation_issues(self, *args, **kwargs):
298314
"""
299315
Solve issues with compiling or running the tests on both
@@ -693,6 +709,7 @@ def inject_gpu_property(ec):
693709
'CGAL': parse_hook_cgal_toolchainopts_precise,
694710
'fontconfig': parse_hook_fontconfig_add_fonts,
695711
'LAMMPS': parse_hook_lammps_remove_deps_for_CI_aarch64,
712+
'CP2K': parse_hook_CP2K_remove_deps_for_aarch64,
696713
'OpenBLAS': parse_hook_openblas_relax_lapack_tests_num_errors,
697714
'pybind11': parse_hook_pybind11_replace_catch2,
698715
'Qt5': parse_hook_qt5_check_qtwebengine_disable,

0 commit comments

Comments
 (0)