vasp-6.4.2极简编译办法
1、提前准备好intel oneapi套件,包含l_BaseKit_p_2024.2.0.634.sh l_HPCKit_p_2024.2.0.635.sh,并安装好,默认选项就好;(其他oneapi版本也可以)
2、加载intel编译器及intelmpi、MKL的环境变量:source /opt/intel/oneapi/setvars.sh;
3、tar -xvf vasp-6.4.2 cd vasp-6.4.2/arch && cp makefile.include.intel …/ makefile.include && vim makefile.include ,修改其中的mpiifort 为 mpiifx 、 icc修改为icx 、icpc修改为icpx ,并修改MKLROOT路径,改为MKLROOT ?= /opt/intel/oneapi/mkl/2024.2 (其他版本以实际路径为准) ,修改完毕后:wq 保存makefile.include 文件;
4、make all 等待半个小时到1个小时即可编译成功;
5、enjoy your work。