cd /path/to/VASP tar -xvf vasp.5.4.4.tar.gz
cd vasp.5.4.4
export INCLUDE=/path/to/hypermpi/hmpi/include export PATH=/path/to/hypermpi/hmpi/bin:/path/to/hypermpi/ucx/bin:$PATH export OPAL_PREFIX=/path/to/hypermpi/hmpi/ export LD_LIBRARY_PATH=/path/to/hypermpi/hmpi/lib:/path/to/hypermpi/ucx/lib:$LD_LIBRARY_PATH export PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/bin:$PATH export LD_LIBRARY_PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/path/to/OPENBLAS/lib:/path/to/SCALAPACK:/path/to/FFTW/lib:$LD_LIBRARY_PATH
毕昇编译器和Hyper MPI的环境变量需要在配置编译环境之前设置。
vi makefile.include
##Precompiler options CPP_OPTIONS= -DHOST=\"LinuxGNU\" \ -DMPI -DMPI_BLOCK=8000 \ -Duse_collective \ -DscaLAPACK \ -DCACHE_SIZE=5000 \ -Davoidalloc \ -Duse_bse_te \ -Dtbdyn \ -Duse_shmem CPP = flang -E -P -C -w $*$(FUFFIX) >$*$(SUFFIX) $(CPP_OPTIONS) FC = mpif90 FCL = mpif90 FREE = -ffree-form -ffree-line-length-none FFLAGS = -w OFLAG = -O1 -ffp-contract=fast -ffpe-trap=invalid,zero,overflow OFLAG_IN = $(OFLAG) DEBUG = -O0 LLIBS = -L/path/to/SCALAPACK -lscalapack -L/path/to/OPENBLAS/lib -lopenblas FFTW ?= /path/to/FFTW LLIBS += -L$(FFTW)/lib -lfftw3 INCS = -I$(FFTW)/include 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 = clang CFLAGS_LIB = -O FFLAGS_LIB = -O1 FREE_LIB = $(FREE) OBJECTS_LIB= linpack_double.o getshmem.o # For the parser library CXX_PARS = clang++ LIBS += parser LLIBS += -Lparser -lparser -lstdc++ # Normally no need to change this SRCDIR = ../../src BINDIR = ../../bin
make std
若还需要生成“vasp_gam”和“vasp_ncl”,则执行以下命令。
make all
VTST过渡态工具安装。
cd /path/to/VASP tar -xvf vtstcode-179.tgz
cp vasp.5.4.4/src/chain.F vasp.5.4.4/src/chain.F_bak
cp vtstcode-179/* vasp.5.4.4/src/
make std
若还需要生成vasp_gam和vasp_ncl,则执行以下命令。
make all
VASPsol工具安装。
cd /path/to/VASP wget https://github.com/henniggroup/VASPsol/archive/refs/tags/V1.0.tar.gz tar -xvf V1.0.tar.gz
cp VASPsol-1.0/src/solvation.F vasp.5.4.4/src/
vi makefile.include
make std
若还需要生成“vasp_gam”和“vasp_ncl”,则执行以下命令。
make all
cd /path/to/VASP tar -xvf wannier90-1.2.tar.gz
cd wannier90-1.2 cp config/make.sys.gfort make.sys
make wannier lib test
生成libwannnier.a函数库,此函数库要加入VASP安装编译中。
cd /path/to/VASP/vasp.5.4.4 vi makefile.include
将第10行修改为:
-Duse_shmem -Dtbdyn -DVASP2WANNIER90
在第18与19行之间增加:
WANNIER90 = /path/to/VASP/wannier90-1.2/libwannier.a
修改第20行的内容在LLIBS加入wannier接口参数:
LLIBS = $(WANNIER90) -L/path/to/SCALAPACK -lscalapack -L/path/to/OPENBLAS/lib -lopenblas
make std