-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance LAMMPS easyblock dynamically add ARMV81
and A64FX
to Kokkos CPU mapping based on LAMMPS version + fix installation of Python bindings for LAMMPS >= 2Aug2023 + fix sanity check by doing MPI_Finalize
#3036
Merged
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
885f92c
Update KOKKOS_CPU_MAPPING for AArch64 in LAMMPS
ca5c67c
add recent LAMMPS mappings from https://docs.lammps.org/Build_extras.…
6eda3d9
add mapping for neoverse_v1, neoverse_n1 and a64fx
842b662
fix tyle errors
7123531
Fix CI error
2c8dfa3
fix update_kokkos_cpu_mapping function
a7a15f3
fix functions update_kokkos_cpu_mapping() and get_kokkos_arch()
9f6ac78
fix style errors in CI
c209141
fix style errors in CI
7e0824b
Resolve merge conflict
0fde983
Merge branch 'develop' into LAMMPS_ARM
laraPPr 4db6eae
update function translate_lammps_version to accomodate version naming…
ac49192
add command to install lammps python package
5ce473a
fix line too long
80eb5ad
add docs
bf46283
add docs
e47ff4a
add docs
4070d2f
use kokkos_cpu_mapping rather than mapping for first argument to get_…
boegel 75c491d
add to sanity check commands
f62c76d
Merge branch 'LAMMPS_ARM' of github.com:laraPPr/easybuild-easyblocks …
bfac735
make sanity fix for mpi run dependend on versions of LAMMPS older tha…
c389b2a
Update easybuild/easyblocks/l/lammps.py
laraPPr ac1e4a2
Update easybuild/easyblocks/l/lammps.py
laraPPr 08b4cf6
Update easybuild/easyblocks/l/lammps.py
laraPPr 0e7ff3c
break up long line
b9ae418
Merge branch 'LAMMPS_ARM' of github.com:laraPPr/easybuild-easyblocks …
ed1f1d4
disable auto download if MDI is a dependency
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laraPPr Did you check whether more recent LAMMPS versions supported better targets for
neoverse_v1
?If so, we can refine this for more recent LAMMPS versions (or use a better target by default, and fall back to
ARMV81
for older LAMMPS versions).Should we also include
A64FX
here (whicharchspec
should recognize as such by producinga64fx
, see https://github.com/archspec/archspec-json/blob/d844bb36b21dfb9ff5d04727edfc08f592fc06af/cpu/microarchitectures.json#L2716There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recent LAMMPS mapping is at https://docs.lammps.org/Build_extras.html#available-architecture-settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the most recent mappings but they do not seem to include better targets for
neoverse_v1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are in a tricky situation here as you also need to update the
KOKKOS_CPU_MAPPING
andKOKKOS_GPU_ARCH_TABLE
to match up the new architectures introduced but this has to be done in a backwards compatible way. Probably we need to allow that the values of these dictionaries may be dictionaries themselves with version keys and the appropriate return values.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I than test this easyblock with older easyconfigs of LAMMPS to see if anything is broken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or update the "constants" based on the LAMMPS version in the easyblock constructor?
Maybe using constants was just wrong here, and it needs to be done via class variables like
self.kokkos_cpu_mapping
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could start doing something like this to update the mapping for particular versions of LAMMPS:
and keep
KOKKOS_CPU_MAPPING
as is, assuming that it's correct for all LAMMPS versions we care aboutARMV81
is supported sincestable_29Oct2020
it seems, see lammps/lammps@60864e3There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARMv80
,ARMv81
,ARMv8-ThunderX
are actually supported sincestable_31Mar2017
, see lammps/lammps@a9f0b7dThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARMv8-TX2
is available sincestable_29sep2021
(see lammps/lammps@39786b1) andA64FX
is available sincestable_29Sep2021
(see lammps/lammps@eea14c5)