安装vasp前准备

apt-get install make cmake build-essential gcc g++ gfortran vim openssh-server

准备oneApI及vasp安装包

wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7deeaac4-f605-4bcf-a81b-ea7531577c61/l_BaseKit_p_2023.1.0.46401_offline.sh
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/1ff1b38a-8218-4c53-9956-f0b264de35a4/l_HPCKit_p_2023.1.0.46346_offline.sh

先安装oneapi

./l_BaseKit_p_2023.1.0.46401_offline.sh根据提示安装就行

./l_HPCKit_p_2023.1.0.46346_offline.sh根据提示安装就行

安装顺序不能错

安装完写环境变量

vim /etc/profile

source /opt/intel/oneapi/setvars.sh intel64 --force

source /etc/profile

安装vasp

cd vasp...
cp arch/makefile.include.linux_intel makefile.include
vim makefile.include
OFLAG      = -O2 -xhost(添加)

make all

完成之后会在bin下面生成vasp_std vasp_gam vasp_ncl

添加环境变量

vim /etc/profile

export PATH=$PATH:/opt/vasp.../bin

测试,找个测试包
cd vasp_test
mpirun -np 4 vasp_std INCAR

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐