VASP
Introduction
The Vienna Ab initio Simulation Package (VASP) is a proprietary computer program used to perform first-principles quantum-mechanical materials modeling and electronic structure calculations.
Note:VASP is a licensed application, and HPCC does not provide a license. Faculty members and PIs must provide proof of a VASP license compatible with VASP 6 or 5, with enough seats available, to HPCC staff so their group members can be granted access to the installed versions of VASP, VAST-VTST, and VASPSol.
Running VASP in HPCC
Multiple versions of VASP, VASP-VTST, and VASPSol are available for CPU and GPU partitions. Please visit the HPCC Software list page to find the specific version and module set for each version.
Create a job submission script with the following contents as a reference, customized for each partition:
#!/bin/bash
#SBATCH --job-name=vasp_hybrid
#SBATCH --partition=nocona
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=32
#SBATCH --cpus-per-task=4
#SBATCH --output=%N.%j.out
#SBATCH --error=%N.%j.err
module load aocc/4.2.0 openmpi/5.0.5 vasp/6.5.1-aocl-mpi
export OMP_NUM_THREADS=4
export OMP_PLACES=cores
export OMP_PROC_BIND=close
# Select 32 MPI tasks per node with 4 CPU cores per task, then launch the MPI job
# by placing the VASP processes on each group of 4 cores, which share a L3Cache
# in AMD ROAM architecture. Then each process will spawn 4 OMP threads across
# those L3Cache cores. This is the most efficient way to run VASP on the Nocona partition.
mpirun --map-by l3cache --bind-to core vasp_std
#!/bin/bash
#SBATCH --job-name=vasp
#SBATCH --partition=quanah
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=36
#SBATCH --output=%N.%j.out
#SBATCH --error=%N.%j.err
module load intel-oneapi/2024.2.1 oneapi-mpi/2021.13.1 vasp/6.5.1-mkl-mpi
mpirun vasp_std
#!/bin/bash
#SBATCH --job-name=VASP_GPU
#SBATCH --output=%x.%j.out
#SBATCH --error=%x.%j.out
#SBATCH --partition matador
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=2
#SBATCH --gpus-per-node=2
$SBATCH --tres-bind=closest
module load nvhpc/25.7-cuda-11.8 openmpi/5.0.5-nvhpc-cuda vasp-gpu/6.5.1-nvhpc-cuda11-mpi
export MKL_THREADING_LAYER=INTEL
mpirun vasp_std
- According to the VASP documentation, since the GPU will handle all calculations, the correct way to run an MPI job is
to spawn one MPI rank per GPU device. However, in specific cases, you can let each
MPI rank spawn multiple threads if necessary.
- Pay attention to the KPAR and NSIM parameters, and always keep NCORE=1, as VASP resets NCORE to 1 on GPU nodes for any value greater than 1.
Then submit this job using the sbatch command. Please make sure to edit the following Slurm parameters as needed:
Number of nodes (--nodes): If you want to scale out your job to run across multiple worker nodes.
Number of MPI tasks (--ntasks-per-node): We recommend setting this parameter to the maximum number of available CPU cores
per node on each partition.
Wall time (--time): If your job wont take longer than 10 hours, leave it as it is. Adjust the wall time
based on how long you estimate your job will take.
Please contact HPCC support at hpccsupport@ttu.edu if you have any questions.
High Performance Computing Center
-
Phone
806.742.4350 -
Email
hpccsupport@ttu.edu