Skip to content

Commit cc85ad1

Browse files
authored
Merge pull request #472 from laraPPr/add_lammps_2023a
{2023.06}[foss/2023a] LAMMPS 2Aug2023
2 parents dc5b906 + 7b8890b commit cc85ad1

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.0-2023a.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ easyconfigs:
1818
- snakemake-8.4.2-foss-2023a.eb:
1919
options:
2020
from-pr: 19646
21+
- LAMMPS-2Aug2023_update2-foss-2023a-kokkos.eb:
22+
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/19471
23+
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3036
24+
options:
25+
from-pr: 19471
26+
include-easyblocks-from-pr: 3036

eb_hooks.py

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,19 @@ def parse_hook_ucx_eprefix(ec, eprefix):
246246
raise EasyBuildError("UCX-specific hook triggered for non-UCX easyconfig?!")
247247

248248

249+
def parse_hook_lammps_remove_deps_for_CI_aarch64(ec, *args, **kwargs):
250+
"""
251+
Remove x86_64 specific dependencies for the CI to pass on aarch64
252+
"""
253+
if ec.name == 'LAMMPS':
254+
if ec.version == '2Aug2023_update2':
255+
if os.getenv('EESSI_CPU_FAMILY') == 'aarch64':
256+
ec['dependencies'].remove(('ScaFaCoS', '1.0.4'))
257+
ec['dependencies'].remove(('tbb', '2021.11.0'))
258+
else:
259+
raise EasyBuildError("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!")
260+
261+
249262
def pre_configure_hook(self, *args, **kwargs):
250263
"""Main pre-configure hook: trigger custom functions based on software name."""
251264
if self.name in PRE_CONFIGURE_HOOKS:
@@ -318,24 +331,6 @@ def pre_configure_hook_wrf_aarch64(self, *args, **kwargs):
318331
raise EasyBuildError("WRF-specific hook triggered for non-WRF easyconfig?!")
319332

320333

321-
def pre_configure_hook_LAMMPS_aarch64(self, *args, **kwargs):
322-
"""
323-
pre-configure hook for LAMMPS:
324-
- set kokkos_arch on Aarch64
325-
"""
326-
327-
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
328-
if self.name == 'LAMMPS':
329-
if self.version == '23Jun2022':
330-
if get_cpu_architecture() == AARCH64:
331-
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
332-
self.cfg['kokkos_arch'] = 'ARM80'
333-
else:
334-
self.cfg['kokkos_arch'] = 'ARM81'
335-
else:
336-
raise EasyBuildError("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!")
337-
338-
339334
def pre_configure_hook_atspi2core_filter_ld_library_path(self, *args, **kwargs):
340335
"""
341336
pre-configure hook for at-spi2-core:
@@ -586,6 +581,7 @@ def inject_gpu_property(ec):
586581
'pybind11': parse_hook_pybind11_replace_catch2,
587582
'Qt5': parse_hook_qt5_check_qtwebengine_disable,
588583
'UCX': parse_hook_ucx_eprefix,
584+
'LAMMPS': parse_hook_lammps_remove_deps_for_CI_aarch64,
589585
}
590586

591587
POST_PREPARE_HOOKS = {
@@ -597,7 +593,6 @@ def inject_gpu_property(ec):
597593
'MetaBAT': pre_configure_hook_metabat_filtered_zlib_dep,
598594
'OpenBLAS': pre_configure_hook_openblas_optarch_generic,
599595
'WRF': pre_configure_hook_wrf_aarch64,
600-
'LAMMPS': pre_configure_hook_LAMMPS_aarch64,
601596
'at-spi2-core': pre_configure_hook_atspi2core_filter_ld_library_path,
602597
}
603598

0 commit comments

Comments
 (0)