- VASP input sample
- VASP with GPUs
- VASP with CPUs
- VASP input sample The input files to run these test can be obtained with:
VASP
To use VASP, please obtain the source code and license from the VASP developers, then contact the HPC staff for assistance in installation. The Vienna Ab initio Simulation Package (VASP), is a package for performing ab initio quantum mechanical calculations using either Vanderbilt pseudopotentials, or the projector augmented wave method, and a plane wave basis set. See the online Manual for VASP documentation. Here we provide sample files, and give instructions how to run it on the CPUs and GPUs with the staff supported version on Hazel HPC.External Links:
VASP website
Version 5.4.1 runs on CPUs and the newer GPUs (NVIDIA):
cp /usr/local/apps/vasp-examples/Si_Liquid_Freezing.tar . tar -xvf Si_Liquid_Freezing.tar cd Si_Liquid_FreezingThis example is the same Si_Liquid_Freezing example shown on VASP's online documentation:
VASP Si_Liquid_Freezing example
It does 400 steps of Molecular Dynamics. The example, which takes about 26 minutes, can be shortened by changing NSW in the INCAR file.
To interactively test VASP for GPUs (not recommended for production jobs) do
salloc --ntasks=1 --time=00:10:00 --partition=gpu --gres=gpu:k20m:1
module load PrgEnv-intel/2022.1.0
export PATH="/usr/local/usrapps/{your installation pathway piece}/vasp/vasp.6.4.2/bin:$PATH"
srun vasp_gpu
The interactive way above is NOT recommended for running production jobs. However, because there are many VASP input parameters that conflict with each other, it is useful for quickly debugging input scripts.The P100 GPU also works - the P100 GPU has the highest double-precision performance. Both the K20M and the P100 GPUs have high double-precison performance, so it is recommended to only run VASP on those nodes.
To test in batch mode (the recommended way), create "testGPU.sh" with the following lines:
#!/bin/bash
#SBATCH --ntasks=1
#SBATCH --time=00:20:00
#SBATCH --partition=gpu
#SBATCH --gres=gpu:k20m:1
#SBATCH --output=out.%j
#SBATCH --error=err.%j
module load PrgEnv-intel/2022.1.0
export PATH="/usr/local/usrapps/{your installation pathway piece}/vasp/vasp.6.4.2/bin:$PATH"
srun vasp_gpu
Run this batch job with:
sbatch testGPU.shSample output is shown below, and there were no errors.
salloc --ntasks=1 --time=00:10:00
module load PrgEnv-intel/2022.1.0
export PATH="/usr/local/usrapps/{your installation pathway piece}/vasp/vasp.6.4.2/bin:$PATH"
srun vasp_std
To do the same thing in batch mode, create "testCPU.sh" with the following lines:
#!/bin/bash
#SBATCH --ntasks=1
#SBATCH --time=00:10:00
#SBATCH --output=out.%j
#SBATCH --error=err.%j
module load PrgEnv-intel/2022.1.0
export PATH="/usr/local/usrapps/{your installation pathway piece}/vasp/vasp.6.4.2/bin:$PATH"
srun vasp_std
Run this batch job with:
sbatch testCPU.sh
Last modified: March 14 2026 09:24:26.