发布时间 : 星期一 文章原创 单机4核(intel core2 quard)32位vasp并行安装更新完毕开始阅读05493485b9d528ea81c77901
#which mpicc #which mpiexec #which mpirun
10、修改/etc/mpd.conf文件,添加内容为secretword=myword #vi /etc/mpd.conf 添加 secretword=myword 设置文件读取权限和修改时间 #touch /etc/mpd.conf #chmod 600 /etc/mpd.conf 1、本地测试 #mpd & 启动
#mpdtrace 观看启动机器 #mpdallexit 退出 三。
6.进入vasp.4.lib所在目录 cd /root/vasp/vasp.4.lib
cp makefile.linux_ifc_P4 makefile 根据自己机子的情况选择合适的makefile 编辑makfile
19行的 FC=ifc 修改为 FC=ifort make
如果编译通过,说明前面安装的数学库和编译器等都是正确的
7.进入vasp.4.6所在目录 cd /root/vasp/vasp.4.6
cp makefile.linux_ifc_P4 makefile 编辑 makefile
对makefile做如下修改: 50行, 52行 前加 # 80行前加 #
BLAS=-L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl_intel_lp64 –lmkl_blacs_lp64 –lmkl_intel_thread –lmkl_core -liomp5 -lpthread
LAPACK=-L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl_intel_lp64 –lmkl_blacs_lp64 –lmkl_intel_thread –lmkl_core -liomp5 -lpthread
128行 的 #BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4 -lpthread
修改为 BLAS=-L/opt/intel/mkl/9.1.023/lib/32 -lmkl_p4 -lsvml -lvml -lguide -lpthread 136行前加 #
145 行 的 #LAPACK= -lmkl_lapack 修改為LAPACK= -lmkl_lapack 或
LAPACK=-L/opt/intel/mkl/9.1.023/lib/32 -lmkl_lapack -lsvml -lvml -lguide –lpthread 也可以 149行 前 加 # 166行 前 加 #
201行 的 #FC=mpif77 修改為 FC=mpif90 202行的 #FCL=$(FC) 修改為 FCL=$(FC)
211-214行 前面的 # 去掉 修改為
CPP = $(CPP_) -DMPI -DHOST=\\\
-Dkind8 -DNGZhalf -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc \\ -DMPI_BLOCK=500 \\
-DRPROMU_DGEMV -DRACCMU_DGEMV 224行 前 加 # 227行 前 加 #
233-235行 前 的 # 去掉 238行 前 的 # 去掉 343行 的 -e95 去掉 保存退出后 编译make
编译通过则 cp vasp /bin 在任何目录下vasp命令都可以调用了
这时编译的vasp只能在root用户下使用
四.重启电脑,以普通用户(XXX代表普通用户名)的身份登陆
1. 进入 /home/XXX目录找到隐藏的 .bashrc文件(在窗口的工具栏中点击“查看”,选
择显示隐藏文件)
.bashrc 文件如下
# Sample .bashrc for SuSE Linux # Copyright (c) SuSE GmbH Nuernberg
# There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all # settings made here will also take effect in a login shell. #
# NOTE: It is recommended to make language settings in ~/.profile rather than # here, since multilingual X sessions would not work properly if LANG is over- # ridden in every subshell.
# Some applications read the EDITOR variable to determine your favourite text # editor. So uncomment the line below and enter the editor of your choice :-) #export EDITOR=/usr/bin/vim #export EDITOR=/usr/bin/mcedit
# For some news readers it makes sense to specify the NEWSSERVER variable here #export NEWSSERVER=your.news.server