linux系统安装vasp(oneapi)

安装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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值