Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Multicore

Lammps The lmp command can be used across multiple nodes (mpi) and cores (openmp). In general you can simply use the srun command. There is some variation on how to execute this depending on the version being usedan early version on Teton that requires mpirun - see the table below.

General Rules

  • You have to request, allocate, and match the number of MPI slots for LAMMPS.

  • Use the three parameters: nodesntasks-per-node, and cpus-per-task:

    • nodes x ntasks-per-node defines the number of slots.

    • cpus-per-task defines the number of OpenMP threads.

  • By default, only one OpenMP thread is used. If you wish to increase this you must define and set the OMP_NUM_THREADS environment variable.

    • Use: export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK

Beartooth Update History

Use srun to call the lmp command

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

srun lmp -in SC.in

srun lmp -in SC.in

srun lmp -in SC.in

srun lmp -in SC.in

Module Version

LAMMPS Stable VersionCall Examples

Packages Enabled

20220623

23 Jun 2022

Code Block

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

20210809

29 Oct 2020

Code Block
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

Code Block

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

Code Block

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

20200305

Code Block

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

20200227

Code Block

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

20190807

MOLECULE and USER-REAXC

Code Block
#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
MOLECULE and USER-REAXC

Using Version 20201001 with REPLICA Package

...

Code Block
#SBATCH --nodes=4 / #SBATCH --ntasks-per-node=1

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

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

...