Build spec
A build spec describes one LAMMPS executable. verlet checks it against the machine, turns it into a
Spack spec, builds it under ~/.verlet, and registers ~/.verlet/bin/<name>. See
Prepare a machine for the workflow.
name: lmp-gcc-omplammps: 20250722packages: [MOLECULE, KSPACE, RIGID, MANYBODY, EXTRA-PAIR]compiler: gcc@13optimization: nativempi: systemaccelerators: [openmp]lapack: autofft: fftw3modules: [gcc/13.2, openmpi/4.1.6]jobs: 8| Key | Values | Default | Becomes |
|---|---|---|---|
name | lowercase letters, digits and dashes, at most 40 | required | ~/.verlet/bin/<name>; a name not starting with lmp gets lmp- in front |
lammps | a release date such as 20250722, or stable, or latest | stable | lammps@20250722; stable and latest let Spack pick its preferred release |
packages | LAMMPS package names, any case | none | +molecule +kspace … |
compiler | gcc, clang, oneapi or nvhpc, optionally @version | newest gcc found | %gcc@13.3.0 |
optimization | none, O2, O3, native | native | cxxflags and cflags; native is -O3 -march=native |
mpi | system, spack, none | system | system: the machine’s MPI, never rebuilt; spack: build OpenMPI; none: ~mpi |
accelerators | list of openmp, kokkos-openmp, kokkos-cuda, gpu-cuda, gpu-opencl, intel | none | see below |
lapack | auto, openblas, mkl, system | auto | ^openblas, ^intel-oneapi-mkl, or the machine’s BLAS/LAPACK |
fft | auto, fftw3, kiss, mkl | auto | fft=…; auto uses MKL when the machine has it, otherwise FFTW3 |
modules | module names | none | module load before every Spack command and before every run |
jobs | a number, at least 1 | cores, at most 16 | spack install -j |
extra.cmake | a list of -D options | none | accepted, but not yet passed to the LAMMPS build |
Accelerators
Section titled “Accelerators”| Value | Spack variants | Needs |
|---|---|---|
openmp | +openmp +openmp-package | nothing extra; adds the OPENMP package’s /omp styles |
kokkos-openmp | +kokkos +openmp | nothing extra |
kokkos-cuda | +kokkos +cuda cuda_arch=… | the CUDA toolkit; the architecture comes from the GPU the scan found |
gpu-cuda | +gpu +cuda gpu_precision=mixed | the CUDA toolkit |
gpu-opencl | +gpu +opencl gpu_precision=mixed | an OpenCL runtime |
intel | +intel | works with any compiler; fastest with oneapi |
kokkos-cuda and gpu-cuda cannot be combined, and only one Kokkos backend can be chosen.
What is checked
Section titled “What is checked”The spec is checked as you type, and again against the machine before the build starts.
Errors stop the build:
- unknown keys, or values outside the lists above;
- unknown package names, or packages that do not exist in the chosen release;
- pre-2021 names such as
USER-MISC, with the modern name to use instead; - a compiler that is not on the machine, or
mpi: systemwhen no MPI was found; - CUDA accelerators when the machine has no CUDA toolkit;
lapack: mklwithout oneapi or MKL on the machine.
Warnings are allowed:
- no packages at all, so only the core styles will exist;
- packages that need an extra library Spack will build, such as VORONOI (voro++), ML-PACE or KIM;
intelwithout theoneapicompiler.
What verlet writes
Section titled “What verlet writes”For a build named lmp-minimal:
~/.verlet/builds/lmp-minimal/ spec.yaml your spec, as submitted spack.yaml the Spack environment generated from it spack.lock every dependency and version Spack chose env.sh module loads and paths for this build build.log everything Spack printed result.json the outcome: state, executable, packages, duration, size view/bin/lmp the binary~/.verlet/bin/lmp-minimal the wrapper verlet registers and runsPackages
Section titled “Packages”Names are case-insensitive. Packages marked with a last release were removed from later LAMMPS versions.
| Package | First release | Last release |
|---|---|---|
ADIOS | 2021-07-02 | current |
AMOEBA | 2022-08-03 | current |
ASPHERE | all | current |
ATC | 2021-07-02 | 2025-07-22 |
AWPMD | 2021-07-02 | 2025-07-22 |
BOCS | 2021-07-02 | current |
BODY | all | current |
BPM | 2022-05-04 | current |
BROWNIAN | 2021-07-02 | current |
CG-DNA | 2021-07-02 | current |
CG-SDK | 2021-07-02 | 2022-06-23 |
CG-SPICA | 2022-08-03 | current |
CLASS2 | all | current |
COLLOID | all | current |
COLVARS | 2021-07-02 | current |
COMPRESS | all | current |
CORESHELL | all | current |
DIELECTRIC | 2021-07-02 | current |
DIFFRACTION | 2021-07-02 | current |
DIPOLE | all | current |
DPD-BASIC | 2021-07-02 | current |
DPD-MESO | 2021-07-02 | current |
DPD-REACT | 2021-07-02 | current |
DPD-SMOOTH | 2021-07-02 | current |
DRUDE | 2021-07-02 | current |
EFF | 2021-07-02 | current |
ELECTRODE | 2022-05-04 | current |
EXTRA-COMMAND | 2024-08-29 | current |
EXTRA-COMPUTE | 2021-07-28 | current |
EXTRA-DUMP | 2021-07-28 | current |
EXTRA-FIX | 2021-07-28 | current |
EXTRA-MOLECULE | 2021-07-28 | current |
EXTRA-PAIR | 2021-07-28 | current |
FEP | 2021-07-02 | current |
GRANSURF | 2026-07-04 | current |
GRANULAR | all | current |
GRAPHICS | 2026-02-11 | current |
H5MD | 2021-07-02 | current |
INTEL | 2021-07-02 | current |
INTERLAYER | 2021-07-28 | current |
KIM | all | current |
KOKKOS | 2020-10-29 | current |
KSPACE | all | current |
LATBOLTZ | 2021-07-02 | current |
LATTE | 2017-09-22 | 2023-03-28 |
LEPTON | 2023-02-08 | current |
MACHDYN | 2021-07-02 | current |
MANIFOLD | 2021-07-02 | current |
MANYBODY | all | current |
MC | all | current |
MDI | 2021-07-02 | current |
MEAM | 2021-07-02 | current |
MESONT | 2021-07-02 | current |
MGPT | 2021-07-02 | current |
MISC | all | current |
ML-HDNNP | 2021-07-02 | current |
ML-IAP | 2021-07-02 | current |
ML-PACE | 2021-07-02 | current |
ML-POD | 2022-12-22 | current |
ML-RANN | 2021-07-02 | current |
ML-SNAP | 2021-07-02 | current |
ML-UF3 | 2024-06-27 | current |
MLIAP | 2020-06-30 | 2021-05-27 |
MOFFF | 2021-07-02 | current |
MOLECULE | all | current |
MOLFILE | 2021-07-02 | current |
MPIIO | all | 2023-08-02 |
NETCDF | 2021-07-02 | current |
OPENMP | all | current |
OPT | all | current |
ORIENT | 2021-07-28 | current |
PERI | all | current |
PHONON | 2021-07-02 | current |
PLUGIN | 2021-04-08 | current |
PLUMED | 2021-07-02 | current |
POEMS | all | 2025-07-22 |
PTM | 2021-07-02 | current |
PYTHON | all | current |
QEQ | all | current |
QTB | 2021-07-02 | current |
REACTION | 2021-07-02 | current |
REAX | all | 2018-12-12 |
REAXFF | 2021-07-02 | current |
REPLICA | all | current |
RHEO | 2024-08-29 | current |
RIGID | all | current |
SCAFACOS | 2021-07-02 | current |
SHOCK | all | current |
SMTBQ | 2021-07-02 | current |
SNAP | all | 2021-05-27 |
SPH | 2021-07-02 | current |
SPIN | 2018-06-29 | current |
SRD | all | current |
TALLY | 2021-07-02 | current |
UEF | 2021-07-02 | current |
VORONOI | all | current |
VTK | 2021-07-02 | current |
YAFF | 2021-07-02 | current |