计算化学公社

 找回密码 Forget password
 注册 Register
Views: 59230|回复 Reply: 20
打印 Print 上一主题 Last thread 下一主题 Next thread

[VASP] VASP5.4.4编译安装

[复制链接 Copy URL]

3

帖子

0

威望

50

eV
积分
53

Level 2 能力者

跳转到指定楼层 Go to specific reply
楼主
VASP5.4.4软件包链接:https://pan.baidu.com/s/1nwAtedV 密码:gkno
需要更多的Q(156449799,备注JH)
安装步骤:
1、安装iforticc
#mount TLF-SOFT-Intel.Cluster.Toolkit.Compiler.Edition.3.2.1.015.LINUX-SPYRAL.iso /mnt -o loop(ifortiso文件
#cd /mnt/
  #./install.sh
  #vi /etc/profile写入:
source /opt/intel/composer_xe_2015.0.090/bin/iccvars.sh intel64
source /opt/intel/composer_xe_2015.0.090/bin/ifortvars.sh intel64

2、安装openmpi             (新CPU一定要用最新版本的openmpi
  #mkdir /opt/openmpi   
# ./configure --prefix=/opt/openmpi CC=icc FC=ifort CXX=icpc --enable-mpi-fortran
  #make
  #make install
  #vi /etc/profile写人:
export MPI_HOME=/opt/openmpi   
export PATH=$MPI_HOME/bin:$PATH   
export LD_LIBRARY_PATH=$MPI_HOME/lib:$LD_LIBRARY_PATH   


3、安装fftw:
   #mkdir /opt/fftw
   #./configure --prefix=/opt/fftw CC=gcc MPICC=mpicc FC=ifort F77=ifort  --enable-mpi  --enable-openmp  --enable-threads   --enable-avx
   #make
   #make install

4、安装vasp.5.lib
   #cp makefile.linux_ifc_P4 makefile
   #vi makefile修改:
    CPP     = icc -E -P -C $*.F >$*.f
FC=ifort
   #make

5、修改makfile.include
  # 修改 makefile.include 文件  
cp ./arch/makefile.include.linux_intel  ../makefile.include  
  # 备注:该步骤为主要修改部分,请仔细修改。  
  vim makefile.include   

将:
FC = mpiifort
FCL = mpiifort -mkl
修改为:
FC = mpif90
FCL = mpif90 -mkl
说明:
默认是使用intelmpi,即为mpiifort。但是如果使用的是例如mpich/openmpi的话,那么需要修改为mpif90

OFLAG=-O3 -ip  

将:BLACS      = -lmkl_blacs_openmpi_lp64
修改为:BLACS      = -lmkl_blacs_intelmpi_lp64
说明:
检查BLACS ,如果默认就是 -lmkl_blacs_intelmpi_lp64则不需要修改(针对impimpich等);如果使用openmpi的时候则需要设置为 -lmkl_blacs_openmpi_lp64

将:OBJECTS = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o $(MKLROOT)/interfaces/fftw3xf/libfftw3xf_intel.a
修改为:OBJECTS = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /opt/intel/composer_xe_2015.0.090/mkl/interfaces/fftw3xf/libfftw3xf_intel.a
说明:
如果是在安装intel compiler后手动编译了libfftw3xf_intel.a 则不需要修改,否则它会找不到这个fftw库。
我们需要手动编译这个库,并把/path/to”设置为实际的路径。

编译vasp
现在可以开始编译vasp了,默认情况下,可以选择:
make all

这样可以在编译后生成三个可执行文件,如下:
vasp_std  默认版本
vasp_ncl   支持自旋轨道耦合的版本
vasp_gam 支持gamma的版本。

6、把vasp.5.4/bin里的vasp_std拷贝到/usr/bin目录下:cp vasp_std  /usr/bin(或者cp vasp_std /usr/bin/vasp,这样就可以输入vasp运行)

7Vi /etc/profile写入:
   ulimit -s unlimited

作业测试:
在作业目录下,输入:mpirun -np 36 vasp_std(或vasp> out&            36为核数)
如果能正常运行,则为安装成功。

评分 Rate

参与人数
Participants 2
eV +5 收起 理由
Reason
1xiaohua1 + 3
obaica + 2 赞!

查看全部评分 View all ratings

1

帖子

0

威望

35

eV
积分
36

Level 2 能力者

21#
发表于 Post on 2020-6-12 11:19:52 | 只看该作者 Only view this author
啦啦黑还黑 发表于 2018-10-18 13:58
5.4 版本不用编译lib了

5.4不用编译lib吗?赝势库如何加进去?

2

帖子

0

威望

13

eV
积分
15

Level 1 能力者

20#
发表于 Post on 2020-1-20 11:46:16 | 只看该作者 Only view this author
直接用intel cluster全套工具就简单多了

32

帖子

0

威望

1824

eV
积分
1856

Level 5 (御坂)

19#
发表于 Post on 2020-1-15 14:10:22 | 只看该作者 Only view this author
链接失效,可以发邮箱么?fanmo93@sina.com 谢谢

3

帖子

0

威望

21

eV
积分
24

Level 1 能力者

18#
发表于 Post on 2020-1-3 10:50:32 | 只看该作者 Only view this author
楼主,可否再提供下下载链接?失效了。谢谢!

11

帖子

0

威望

731

eV
积分
742

Level 4 (黑子)

17#
发表于 Post on 2019-11-15 11:33:13 | 只看该作者 Only view this author
kekexili_08 发表于 2018-2-21 22:28
楼主的共享文件里, src目录下是不是少了mpi.f文件?
编译过程中提示少了mpi.f90。 找了另一处下载到的, ...

我也遇到同样的问题,能否发我一下mpi.f 文件  hewei8912@163.com

126

帖子

0

威望

2428

eV
积分
2554

Level 5 (御坂)

16#
发表于 Post on 2019-10-26 15:33:11 | 只看该作者 Only view this author
网盘链接失效了

3

帖子

0

威望

135

eV
积分
138

Level 2 能力者

15#
发表于 Post on 2019-9-18 16:29:50 | 只看该作者 Only view this author
链接失效了

3

帖子

0

威望

43

eV
积分
46

Level 2 能力者

14#
发表于 Post on 2019-8-10 13:03:02 | 只看该作者 Only view this author
第一个链接的 torrent下不动欸

2

帖子

0

威望

39

eV
积分
41

Level 2 能力者

13#
发表于 Post on 2019-4-15 11:07:06 | 只看该作者 Only view this author
kekexili_08 发表于 2018-2-21 22:28
楼主的共享文件里, src目录下是不是少了mpi.f文件?
编译过程中提示少了mpi.f90。 找了另一处下载到的, ...

您好,您能给我也发一份mpi.f90么?谢谢您邮箱bitlingchen@163.com

19

帖子

0

威望

325

eV
积分
344

Level 3 能力者

12#
发表于 Post on 2018-11-9 16:42:29 | 只看该作者 Only view this author
kekexili_08 发表于 2018-2-21 22:28
楼主的共享文件里, src目录下是不是少了mpi.f文件?
编译过程中提示少了mpi.f90。 找了另一处下载到的, ...

您好!您能把你的安装包发我一份吗?qq1114336562,邮箱也是这个,我从这下载的,也是提示缺少mpi.90文件

19

帖子

0

威望

325

eV
积分
344

Level 3 能力者

11#
发表于 Post on 2018-11-7 23:14:24 | 只看该作者 Only view this author
大佬,我安装时找不到OBJECTS = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /opt/intel/composer_xe_2015.0.090/mkl/interfaces/fftw3xf/libfftw3xf_intel.a这个呀,我装的是2019版本,您能帮忙解答一下吗?

28

帖子

3

威望

832

eV
积分
920

Level 4 (黑子)

10#
发表于 Post on 2018-10-27 15:49:21 | 只看该作者 Only view this author
此贴必火,VASP5.4.4肯定会很多人安装!

186

帖子

0

威望

4126

eV
积分
4312

Level 6 (一方通行)

9#
发表于 Post on 2018-10-18 14:34:26 | 只看该作者 Only view this author
有没有gold cpu的优化参数?
有关-xcore-avx512的

119

帖子

2

威望

2149

eV
积分
2308

Level 5 (御坂)

8#
发表于 Post on 2018-10-18 13:58:51 | 只看该作者 Only view this author
5.4 版本不用编译lib了

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2025-8-17 03:57 , Processed in 0.188387 second(s), 29 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list