Loading LAMMPS
- module
lammps/a100-gpu/2Aug2023 - module
lammps/a100-gpu/23Jun2022 - module
lammps/a100-gpu/29Sep2021 - module
lammps/gcc13.2/mvapich2.3.7/2Aug2023 - module
lammps/intel/2022.2/29Oct2020 - module
lammps/intel/2022.2/03Aug2022 - module
lammps/intel/2023.1/2Aug2023 - module
lammps/intel/2024.0/29Aug2024 - module
lammps/aocc/4.0/2Aug2023 - module
lammps/aocc/4.0/29Aug2024 - module
lammps/intel/2023.1/2Aug2023
which after loading.Commands
BUILD_TOOLSBuild tools for managing and compiling LAMMPSPKG_SMTBQProvides support for the SMTBQ packagePKG_MCMonte Carlo methods for simulationsPKG_MEAMModified Embedded Atom Method potentialPKG_VORONOIComputes Voronoi tessellationsPKG_MANYBODYSupport for many-body potentialsPKG_MOLECULESupport for molecular simulationsPKG_PYTHONEnables Python scripting interfacePKG_COMPRESSEnables support for compressed file I/OPKG_OPTPerformance optimization packagePKG_KSPACELong-range electrostatics and van der Waals interactionsPKG_QEQCharge equilibrium method for atomic systemsPKG_REACTIONReactive force fields for chemical reactionsPKG_RIGIDTools for rigid body dynamics simulationsPKG_BODYSupport for complex body simulationsPKG_SPHSmoothed Particle Hydrodynamics (SPH) packagePKG_GRANULARGranular material simulationsPKG_DIPOLEPolarization and dipole interactionsPKG_SHOCKShockwave and impact simulationsPKG_SRDStochastic rotation dynamics for mesoscale flowsPKG_CORESHELLCore-shell particle interactionsPKG_VOROVoronoi-based analysis toolsPKG_REPLICAMethods for replica exchange simulationsPKG_PERIPeridynamics modeling packagePKG_MISCMiscellaneous features and utilitiesPKG_OPENMPEnables OpenMP parallelizationWITH_PNGEnables PNG image supportWITH_JPEGEnables JPEG image supportFFT=MKLUses Intel MKL for FFT computationsPKG_MPIIOEnables MPI-IO support for parallel I/O
Example usage
Load a LAMMPS module (general form)
module load lammps/<compiler>/<version>
Load a CPU (Intel) LAMMPS module
module load lammps/intel/2024.0/29Aug2024
Load an A100 GPU LAMMPS module
module load lammps/a100-gpu/2Aug2023
Run LAMMPS in parallel with MPI
mpirun -np <number_of_processes> lmp -in <input_file>
Enable GPU package in a LAMMPS input
package gpu 1 neigh yes newton on
Run LAMMPS on 40 CPU cores
mpirun -np 40 lmp_mpi -in input.lammps -log log.lammps
Run GPU-enabled LAMMPS
mpirun -np 4 lmp_gpu -in input.lammps -log log.lammps -var GPU 1
CPU Slurm job script example
#!/bin/bash #SBATCH --job-name=lammps_cpu #SBATCH --output=lammps_%j.out #SBATCH --error=lammps_%j.err #SBATCH -p short-40core #SBATCH --time=24:00:00 #SBATCH --nodes=1 #SBATCH --ntasks=40 module load lammps/intel/2024.0/29Aug2024 INPUT="input.lammps" LOG="log.lammps" mpirun -np $SLURM_NTASKS lmp_mpi -in $INPUT -log $LOG
GPU Slurm job script example
#!/bin/bash #SBATCH --job-name=lammps_gpu #SBATCH --output=lammps_%j.out #SBATCH --error=lammps_%j.err #SBATCH --time=2:00:00 #SBATCH --nodes=1 #SBATCH -p a100 #SBATCH --gres=gpu:4 #SBATCH --ntasks=4 module load lammps/a100-gpu/2Aug2023 INPUT="input.lammps" LOG="log.lammps" mpirun -np $SLURM_NTASKS lmp_gpu -in $INPUT -log $LOG
Availability
LAMMPS is available on: SeaWulf, NVwulf.