-
Notifications
You must be signed in to change notification settings - Fork 6
LAMMPS MLIAP in Expanse
Qiang Zhu edited this page Sep 29, 2021
·
2 revisions
Below is a short instruction regarding the compilation of lammps and how to use it in XSEDE/Expanse
- Download the version of lammps you want and copy it to your Expanse area.
- In your Expanse area load the openmpi module:
module load openmpi
- Go to the src folder inside lammps folder and build lammps:
cd lammps/src/
make mpi
-
Check if the ML-IP and ML-SNAP packages are loaded.
make ps
-
If not, install these two packages.
make yes-ML-SNAP
make yes-ML-IAP
make mpi
- Check your project name
module load sdsc
expanse-client user -p
- Build your jobscript
#!/bin/bash
#SBATCH --job-name="jobname"
#SBATCH --output="outputfile"
#SBATCH --partition=compute
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=64
#SBATCH --mem=248G
#SBATCH --account=projectname
#SBATCH --export=ALL
#SBATCH -t 48:00:00
#This job runs with 1 nodes, 64 cores per node for a total of 64 tasks.
## Environment
module purge
module load cpu
module load slurm
module load cpu
module load gcc
module load openmpi
srun --mpi=pmi2 -n 64 --cpus-per-task=1 ~/lammps/src/lmp_mpi -in inputfile
- Try to run some example (inputfile)
sbatch jobscript
- check your job status
squeue -u username