How to build VASP¶
Software
|
Version
|
Cluster
|
---|---|---|
VASP
|
6.4.2-vanilla
|
Dardel
|
Load necessary modules¶
module load PDC/23.03
module load cpeGNU/23.03
module load cray-fftw/3.3.10.3
Copy makefile.include to the base directory¶
makefile.include
should be under /path/to/vasp.6.4.2
.
# Default precompiler options
CPP_OPTIONS = -DHOST=\"Dardel\" \
-DMPI -DMPI_BLOCK=65536 -Duse_collective \
-DscaLAPACK \
-DCACHE_SIZE=65536 \
-Davoidalloc \
-Dvasp6 \
-Duse_bse_te \
-Dtbdyn \
-Dfock_dblbuf \
-D_OPENMP -DnoSTOPCAR
CPP = gcc -E -C -w $*$(FUFFIX) >$*$(SUFFIX) $(CPP_OPTIONS)
FC = ftn -fopenmp
FCL = ftn -fopenmp
FREE = -ffree-form -ffree-line-length-none
FFLAGS = -w -ffpe-summary=none
OFLAG = -O2
OFLAG_IN = $(OFLAG)
DEBUG = -O0
OBJECTS = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o
OBJECTS_O1 += fftw3d.o fftmpi.o fftmpiw.o
OBJECTS_O2 += fft3dlib.o
# For what used to be vasp.5.lib
CPP_LIB = $(CPP)
FC_LIB = $(FC)
CC_LIB = gcc
CFLAGS_LIB = -O
FFLAGS_LIB = -O1
FREE_LIB = $(FREE)
OBJECTS_LIB = linpack_double.o
# For the parser library
CXX_PARS = g++
LLIBS = -lstdc++
# For gcc-10 and higher (comment out for older versions)
FFLAGS += -fallow-argument-mismatch
Build¶
make
Create symbolic links¶
cd bin
ln -s vasp_std vasp
ln -s vasp_ncl vasp_noncollinear
ln -s vasp_gam vasp_gamma
Disclaimer¶
PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.