Versions Compared

Key

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

...

Column
width900px


Code Block
languagebash
themeEmacs
titleListing 1. Example job script for running LAMMPS
linenumberstrue
#!/bin/bash --login
  
# Replace "[your-project]" with the appropriate project code
# Maximum wall-clock time limit 24 hours (--time=24:00:00)
#SBATCH --job-name=lammps
#SBATCH --nodes=1
#SBATCH --exclusive
#SBATCH --account=[your-project]
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=1


# Load the lammps module so we can find the "lmp_mpi"
# executable
  
module load lammps/20210929.3
  
# Launch with srun (essential) using 128 MPI tasks ("-n 128")
  
srun --export=all -N 1 -n 128 -c 1 lmp -in lammps.inp -log lammps.log



To run the GPU-accelerated version, load the module lammps-amd-gpu instead.

Restarting a LAMMPS job

Column


Info
titleImportant

Checkpoint or restart is an important aspect in running codes on HPC resources due to wall time constraints and LAMMPS has capabilities for restart simulations.


...