Skip to content

Commit

Permalink
Merge pull request EESSI#323 from trz42/nessi-2023.06-lammps-2023a
Browse files Browse the repository at this point in the history
{2023.06}[foss/2023a] LAMMPS v2Aug2023_update2
  • Loading branch information
poksumdo authored Apr 14, 2024
2 parents 55e5bbf + 218dfa6 commit 13db6c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
easyconfigs:
- BWA-0.7.17-20220923-GCCcore-12.3.0.eb
- PyQt5-5.15.10-GCCcore-12.3.0.eb
- LAMMPS-2Aug2023_update2-foss-2023a-kokkos.eb:
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/19471
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3036
options:
from-pr: 19471
include-easyblocks-from-pr: 3036
11 changes: 11 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,17 @@ def parse_hook_lammps_remove_deps_for_CI_aarch64(ec, *args, **kwargs):
# we need this hook because we check for missing installations for all CPU targets
# on an x86_64 VM in GitHub Actions (so condition based on ARCH in LAMMPS easyconfig is always true)
ec['dependencies'] = [dep for dep in ec['dependencies'] if dep[0] not in ('ScaFaCoS', 'tbb')]
# if optarch is GENERIC, we also set 'kokkos_arch' to 'ARMV80'
# if not set the easyblock will run
# "python -c 'from archspec.cpu import host; print(host())'"
# which returns the host architecture which is then mapped to some
# identifier corresponding to the architecture;
# however, this may not be correct if we want to build for
# `aarch64/generic`
if build_option('optarch') == OPTARCH_GENERIC:
ec['kokkos_arch'] = 'ARMV80'
print_msg("Set kokkos_arch = 'ARMV80' (cpu family: %s, optarch: %s)",
os.getenv('EESSI_CPU_FAMILY'), build_option('optarch'))
else:
raise EasyBuildError("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!")

Expand Down

0 comments on commit 13db6c9

Please sign in to comment.