Overview

Using

Use the module name lammps to discover versions available and to load the application.

Multicore

The lmp command can be used across multiple nodes (mpi) and cores (openmp). In general you can simply use the srun command. There is an early version on Teton that requires mpirun - see the table below.

General Rules

Beartooth Update History

Module Version

LAMMPS Stable Version

Packages Enabled

20230118

22 Dec 2022

ADIOS, ATC, DIFFRACTION, KSPACE, MANYBODY, MEAM, ML-IAP, MOLECULE, REAXFF, REPLICA, RIGID and VORONOI

20220623

23 Jun 2022

ADIOS, ATC, DIFFRACTION, KSPACE, MANYBODY, MEAM, MOLECULE, REAXFF, REPLICA, RIGID and VORONOI

Teton Update History:

Module Version

LAMMPS Stable Version

Packages Enabled

20220623

23 Jun 2022

ADIOS, ATC, DIFFRACTION, KSPACE, MANYBODY, MEAM, MOLECULE, REAXFF, REPLICA, RIGID, and VORONOI

srun lmp -in SC.in

20210809

29 Oct 2020

KSPACE, MANYBODY, MOLECULE, RIGID, REPLICA, USER-ADIOS, USER-ATC, USER-DIFFRACTION, USER-MEAMC, USER-REAXC and VORONOI

20201001

3 Mar 2020

KSPACE, MANYBODY, MOLECULE, RIGID, REPLICA, USER-ADIOS, USER-ATC, USER-MEAMC, USER-REAXC and VORONOI

Note: CPM fails to build with the later version of LAMMPS.

20200324

CPM, KSPACE, MANYBODY, MOLECULE, RIGID, USER-ADIOS, USER-ATC, USER-MEAMC, USER-REAXC, and VORONOI

20200305

CPM, KSPACE, MANYBODY, MOLECULE, USER-ADIOS, USER-ATC, USER-MEAMC, USER-REAXC, and VORONOI

20200227

MANYBODY, MOLECULE, VORONOI, USER-ATC, USER-MEAMC, USER-REAXC, and USER-ADIOS

20190807

MOLECULE and USER-REAXC

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=16
mpirun -np 16 lmp -in SC.in

#SBATCH --nodes=2
#SBATCH --ntasks-per-node=32
mpirun -np 64 lmp -in SC.in

#SBATCH --nodes=4
#SBATCH --ntasks-per-node=16
#SBATCH --cpus-per-task=2
export OMP_NUM_THREADS=2
TOTAL_NP=$(($SLURM_JOB_NUM_NODES*$SLURM_CPUS_ON_NODE/$SLURM_CPUS_PER_TASK))
mpirun -np $TOTAL_NP lmp -in SC.in

Using Version 20201001 with REPLICA Package

Details of the Multi-replica simulations:

To run this on Teton, the value of the partition configuration must match the total number of tasks requested. For example:

srun lmp -partition 4x1 -in in.neb.hop1

So, with 4x1 = 4 then you’ll need to request four tasks, which can be requested in a number of nodes/ntasks_per_node configurations:

#SBATCH --nodes=4 / #SBATCH --ntasks-per-node=1
#SBATCH --nodes=2 / #SBATCH --ntasks-per-node=2
#SBATCH --nodes=1 / #SBATCH --ntasks-per-node=4

In each case nodes x ntasks-per-node: = 4

If you require:

srun lmp -partition 3x3 -in in.neb.hop1

Then you’ll need a total of 3x3=9 tasks.

Which one to choose? This will depend on: