-
Notifications
You must be signed in to change notification settings - Fork 785
{chem}[foss/2023a] LAMMPS v29Aug2024_update2 w/ kokkos with deepmd plugin #23166
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
Open
laraPPr
wants to merge
4
commits into
easybuilders:develop
Choose a base branch
from
laraPPr:20250620125435_new_pr_LAMMPS29Aug2024_update2
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
9 changes: 9 additions & 0 deletions
9
easybuild/easyconfigs/l/LAMMPS/LAMMPS-29Aug2024_install-deepmd-plugin.patch
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| diff -ruN lammps-stable_29Aug2024.orig/cmake/CMakeLists.txt lammps-stable_29Aug2024/cmake/CMakeLists.txt | ||
| --- lammps-stable_29Aug2024.orig/cmake/CMakeLists.txt 2024-08-30 02:47:52.000000000 +0200 | ||
| +++ lammps-stable_29Aug2024/cmake/CMakeLists.txt 2025-06-20 10:17:41.184817337 +0200 | ||
| @@ -1091,3 +1091,5 @@ | ||
| message(STATUS "Collecting code coverage data") | ||
| endif() | ||
| endif() | ||
| + | ||
| +include(${deepmd_source_dir}/source/lmp/builtin.cmake) | ||
191 changes: 191 additions & 0 deletions
191
...ild/easyconfigs/l/LAMMPS/LAMMPS-29Aug2024_update2-foss-2023a-kokkos-with-deepmd-plugin.eb
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,191 @@ | ||
| name = 'LAMMPS' | ||
| version = '29Aug2024_update2' | ||
| versionsuffix = '-kokkos' + "-with-deepmd-plugin" | ||
| local_DeePMDkit_version = '3.0.1' | ||
|
|
||
| homepage = 'https://www.lammps.org' | ||
| description = """LAMMPS is a classical molecular dynamics code, and an acronym | ||
| for Large-scale Atomic/Molecular Massively Parallel Simulator. LAMMPS has | ||
| potentials for solid-state materials (metals, semiconductors) and soft matter | ||
| (biomolecules, polymers) and coarse-grained or mesoscopic systems. It can be | ||
| used to model atoms or, more generically, as a parallel particle simulator at | ||
| the atomic, meso, or continuum scale. LAMMPS runs on single processors or in | ||
| parallel using message-passing techniques and a spatial-decomposition of the | ||
| simulation domain. The code is designed to be easy to modify or extend with new | ||
| functionality. | ||
| """ | ||
|
|
||
| toolchain = {'name': 'foss', 'version': '2023a'} | ||
| toolchainopts = {'openmp': True, 'usempi': True} | ||
|
|
||
| # 'https://github.com/lammps/lammps/archive/' | ||
| source_urls = [ | ||
| GITHUB_LOWER_SOURCE, | ||
| 'https://github.com/deepmodeling/deepmd-kit/archive/refs/tags/', | ||
| ] | ||
| sources = [ | ||
| 'stable_%(version)s.tar.gz', | ||
| 'v%s.tar.gz' % local_DeePMDkit_version, | ||
| ] | ||
| patches = [ | ||
| 'LAMMPS-2Aug2023_install_lammps_python_package_in_eb_software_module.patch', | ||
| 'LAMMPS-29Aug2024_install-deepmd-plugin.patch', | ||
| ] | ||
| checksums = [ | ||
| {'stable_29Aug2024_update2.tar.gz': 'f8ca3f021a819ced8658055f7750e235c51b4937ddb621cf1bd7bee08e0b6266'}, | ||
| {'v3.0.1.tar.gz': 'e842edbc2714bc948ce708c411e5fed751e67c88d5c493c2978f11c849027dca'}, | ||
| {'LAMMPS-2Aug2023_install_lammps_python_package_in_eb_software_module.patch': | ||
| '723c944b62b9d28427d25e80a7a67049631702d344df49268a6846aa0cd0fe04'}, | ||
| {'LAMMPS-29Aug2024_install-deepmd-plugin.patch': | ||
| '1723b0c1175c31b9e1f41a87750fddd00225e35a14ac9f9107323360fb69a698'}, | ||
| ] | ||
|
|
||
| builddependencies = [ | ||
| ('CMake', '3.26.3'), | ||
| ('pkgconf', '1.9.5'), | ||
| ('archspec', '0.2.5'), | ||
| ] | ||
| dependencies = [ | ||
| ('Python', '3.11.3'), | ||
| ('libpng', '1.6.39'), | ||
| ('libjpeg-turbo', '2.1.5.1'), | ||
| ('netCDF', '4.9.2'), | ||
| ('GSL', '2.7'), | ||
| ('zlib', '1.2.13'), | ||
| ('gzip', '1.12'), | ||
| ('cURL', '8.0.1'), | ||
| ('HDF5', '1.14.0'), | ||
| ('PCRE', '8.45'), | ||
| ('libxml2', '2.11.4'), | ||
| ('FFmpeg', '6.0'), | ||
| ('Voro++', '0.4.6'), | ||
| ('kim-api', '2.3.0'), | ||
| ('Eigen', '3.4.0'), | ||
| ('PLUMED', '2.9.0'), | ||
| ('SciPy-bundle', '2023.07'), | ||
| # VTK package is auto-disabled if this dep is not available | ||
| ('VTK', '9.3.0'), | ||
| # We use a custom build of MDI | ||
| ('MDI', '1.4.26'), | ||
| ('DeePMD-kit', local_DeePMDkit_version) | ||
| ] | ||
| if ARCH == 'x86_64': | ||
| # TBB and ScaFaCos are an optional dependency when building on Intel arch | ||
| dependencies += [ | ||
| ('tbb', '2021.11.0'), | ||
| ('ScaFaCoS', '1.0.4'), | ||
| ] | ||
|
|
||
| # To use additional custom configuration options, use the 'configopts' easyconfig parameter | ||
| # See docs and lammps easyblock for more information. | ||
| # https://github.com/lammps/lammps/blob/master/cmake/README.md#lammps-configuration-options | ||
|
|
||
| # OpenMP-Kokkos build is default in the current easyblock. One can switch to serial backend of Kokkos, | ||
| # which is claimed to be faster in pure MPI calculations | ||
| # configopts = "-DKokkos_ENABLE_SERIAL=yes " | ||
|
|
||
|
|
||
| # packages auto-enabled by easyblock | ||
| # 'GPU' - if cuda package is present and kokkos is disabled | ||
| # 'KOKKOS' - if kokkos is enabled (by default) | ||
| # 'INTEL' - if builing on Intel CPU | ||
| # 'OPENMP' - if OpenMP swithed on in 'toolchainopts' | ||
|
|
||
| # include the following extra packages into the build | ||
| general_packages = [ | ||
| 'AMOEBA', | ||
| 'ASPHERE', | ||
| 'ATC', | ||
| 'AWPMD', | ||
| 'BOCS', | ||
| 'BODY', | ||
| 'BPM', | ||
| 'BROWNIAN', | ||
| 'CG-DNA', | ||
| 'CG-SPICA', | ||
| 'CLASS2', | ||
| 'COLLOID', | ||
| 'COLVARS', | ||
| 'COMPRESS', | ||
| 'CORESHELL', | ||
| 'DIELECTRIC', | ||
| 'DIFFRACTION', | ||
| 'DIPOLE', | ||
| 'DPD-BASIC', | ||
| 'DPD-MESO', | ||
| 'DPD-REACT', | ||
| 'DPD-SMOOTH', | ||
| 'DRUDE', | ||
| 'EFF', | ||
| 'ELECTRODE', | ||
| 'EXTRA-COMPUTE', | ||
| 'EXTRA-DUMP', | ||
| 'EXTRA-FIX', | ||
| 'EXTRA-MOLECULE', | ||
| 'EXTRA-PAIR', | ||
| 'FEP', | ||
| 'GRANULAR', | ||
| 'H5MD', | ||
| 'INTERLAYER', | ||
| 'KIM', | ||
| 'KSPACE', | ||
| 'LATBOLTZ', | ||
| 'LEPTON', | ||
| 'MACHDYN', | ||
| 'MANIFOLD', | ||
| 'MANYBODY', | ||
| 'MC', | ||
| 'MDI', | ||
| 'MEAM', | ||
| 'MGPT', | ||
| 'MISC', | ||
| 'ML-IAP', | ||
| 'ML-PACE', | ||
| 'ML-POD', | ||
| 'ML-RANN', | ||
| 'ML-SNAP', | ||
| 'MOFFF', | ||
| 'MOLECULE', | ||
| 'MOLFILE', | ||
| 'MPIIO', | ||
| 'NETCDF', | ||
| 'OPT', | ||
| 'ORIENT', | ||
| 'PERI', | ||
| 'PHONON', | ||
| 'PLUGIN', | ||
| 'PLUMED', | ||
| 'POEMS', | ||
| 'PTM', | ||
| 'PYTHON', | ||
| 'QEQ', | ||
| 'QTB', | ||
| 'REACTION', | ||
| 'REAXFF', | ||
| 'REPLICA', | ||
| 'RIGID', | ||
| 'SCAFACOS', | ||
| 'SHOCK', | ||
| 'SMTBQ', | ||
| 'SPH', | ||
| 'SPIN', | ||
| 'SRD', | ||
| 'TALLY', | ||
| 'UEF', | ||
| 'VORONOI', | ||
| 'VTK', | ||
| 'YAFF', | ||
| ] | ||
|
|
||
| # Excluded packages due to requiring additional (non-trivial) deps | ||
| # - ADIOS | ||
| # - LATTE | ||
| # - MESONT (requires very large files downloaded during build) | ||
| # - ML-HDNNP (requires N2P2) | ||
| # - ML-QUIP | ||
| # - MSCG | ||
| # - QMMM (setup seems complex) | ||
|
|
||
| configopts = '-Ddeepmd_source_dir=%(builddir)s/deepmd-kit-3.0.1' | ||
|
laraPPr marked this conversation as resolved.
Outdated
|
||
|
|
||
| moduleclass = 'chem' | ||
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.
Uh oh!
There was an error while loading. Please reload this page.