@@ -294,6 +294,22 @@ def parse_hook_lammps_remove_deps_for_CI_aarch64(ec, *args, **kwargs):
294
294
raise EasyBuildError ("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!" )
295
295
296
296
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
+
297
313
def pre_prepare_hook_highway_handle_test_compilation_issues (self , * args , ** kwargs ):
298
314
"""
299
315
Solve issues with compiling or running the tests on both
@@ -693,6 +709,7 @@ def inject_gpu_property(ec):
693
709
'CGAL' : parse_hook_cgal_toolchainopts_precise ,
694
710
'fontconfig' : parse_hook_fontconfig_add_fonts ,
695
711
'LAMMPS' : parse_hook_lammps_remove_deps_for_CI_aarch64 ,
712
+ 'CP2K' : parse_hook_CP2K_remove_deps_for_aarch64 ,
696
713
'OpenBLAS' : parse_hook_openblas_relax_lapack_tests_num_errors ,
697
714
'pybind11' : parse_hook_pybind11_replace_catch2 ,
698
715
'Qt5' : parse_hook_qt5_check_qtwebengine_disable ,
0 commit comments