Skip to content

Commit

Permalink
[LAMMPS] Update to include ML-PACE package (#4425)
Browse files Browse the repository at this point in the history
* Update to include ML-PACE package

ML-PACE allows the use of the performant atomic cluster expansion pair style.

* filter out aarch64-*-gfortran4

* Update L/LAMMPS/build_tarballs.jl

* Update build_tarballs.jl

* Update L/LAMMPS/build_tarballs.jl

* Update build_tarballs.jl

Co-authored-by: Dallas Foster <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
3 people authored Feb 10, 2022
1 parent 1754c66 commit 6ea5a5c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions L/LAMMPS/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ cmake -C ../cmake/presets/most.cmake -C ../cmake/presets/nolib.cmake ../cmake -D
-DBUILD_SHARED_LIBS=ON \
-DLAMMPS_EXCEPTIONS=ON \
-DPKG_MPI=ON \
-DPKG_SNAP=ON \
-DPKG_SNAP=ON \
-DPKG_ML-PACE=ON \
-DPKG_DPD-BASIC=OFF \
-DPKG_DPD-MESO=OFF \
-DPKG_DPD-REACT=OFF \
-DPKG_USER-MESODPD=OFF \
-DPKG_USER-DPD=OFF \
-DPKG_USER-SDPD=OFF \
-DPKG_DPD-SMOOTH=OFF
-DPKG_DPD-MESO=OFF \
-DPKG_DPD-REACT=OFF \
-DPKG_USER-MESODPD=OFF \
-DPKG_USER-DPD=OFF \
-DPKG_USER-SDPD=OFF \
-DPKG_DPD-SMOOTH=OFF
make -j${nproc}
make install
Expand All @@ -49,6 +50,8 @@ platforms = expand_gfortran_versions(platforms)
# libgfortran3 does not support `!GCC$ ATTRIBUTES NO_ARG_CHECK`. (We
# could in principle build without Fortran support there.)
platforms = filter(p -> libgfortran_version(p) v"3", platforms)
# Compiler failure
filter!(p -> !(Sys.islinux(p) && arch(p) == "aarch64" && libc(p) =="glibc" && libgfortran_version(p) == v"4") , platforms)

platforms = expand_cxxstring_abis(platforms)

Expand All @@ -61,8 +64,8 @@ products = [
# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="CompilerSupportLibraries_jll")),
Dependency(PackageSpec(name="MPItrampoline_jll"), compat="2"),
Dependency(PackageSpec(name="MicrosoftMPI_jll"))
Dependency(PackageSpec(name="MPItrampoline_jll"); compat="2", platforms=filter(!Sys.iswindows, platforms)),
Dependency(PackageSpec(name="MicrosoftMPI_jll"); platforms=filter(Sys.iswindows, platforms)),
]

# Build the tarballs, and possibly a `build.jl` as well.
Expand Down

0 comments on commit 6ea5a5c

Please sign in to comment.