NPAR = 4 # Number of bands groups (tune) LPLANE = .TRUE. # Planar FFT decomposition Example run_vasp.slurm script for a cluster:
#!/bin/bash #SBATCH --job-name=VASP #SBATCH --nodes=2 #SBATCH --ntasks-per-node=16 #SBATCH --cpus-per-task=2 #SBATCH --time=48:00:00 module load intel/2023.0 mkl/2023.0 export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
cp ~/software/vasp.5.4.4/testsuite/tests/si_base/POSCAR . cp ~/software/vasp.5.4.4/testsuite/tests/si_base/INCAR . cp ~/software/vasp.5.4.4/testsuite/tests/si_base/KPOINTS . cp ~/software/vasp.5.4.4/testsuite/tests/si_base/POTCAR_Si . mv POTCAR_Si POTCAR Run on 4 cores: vasp 5.4.4 installation
Adjust the MKLROOT path to your actual Intel MKL installation. Step 4: Compilation – The Two-Step Process VASP 5.4.4 has a two-stage build: first the preprocess executable, then the main code. Clean previous builds make veryclean Build the standard version (production) make std This creates vasp_std in the parent directory. Wait 5–30 minutes depending on your CPU. Build additional variants (optional but useful) make gam # For gamma-only calculations (faster for molecules/clusters) make ncl # For non-collinear magnetism / spin-orbit coupling After successful compilation, you should see:
LLIBS = $(SCALAPACK) $(LAPACK) $(BLAS) USE_ACCEL = no NPAR = 4 # Number of bands groups (tune) LPLANE =
Introduction: Why VASP 5.4.4 Still Matters VASP (Vienna Ab initio Simulation Package) is one of the most widely used software packages for electronic structure calculations and quantum-mechanical molecular dynamics. While newer versions (5.4.4+, 6.x) exist, version 5.4.4 remains a popular "stable classic" – robust, extensively benchmarked, and compatible with a vast ecosystem of post-processing tools (VASPKIT, VESTA, p4vasp, etc.).
FFLAGS = -assume byterecl -w -O2 -xHost OFLAG = -O2 OFLAG_IN = $(OFLAG) cp ~/software/vasp
# Default precompiler options CPP_OPTIONS = -DHOST=\"LinuxIFC\" \ -DMPI -DMPI_BLOCK=8000 \ -Duse_collective \ -DscaLAPACK \ -DCACHE_SIZE=4000 \ -Davoidalloc \ -Dvasp6_memory \ -Duse_bse_te \ -Dtbdyn_casl \ -Duse_shmem CPP = fpp -f_com=no -free -w0 $ $(FUFFIX) $ $(SUFFIX) $(CPP_OPTIONS)