24小时热门版块排行榜    

查看: 1300  |  回复: 3

尉惭3562

新虫 (初入文坛)

[求助] 在CentOS下采用ifort 、impi编译VASP出现报错 已有2人参与

安装运行VASP时遇到如下报错,请问如何处理
[root@localhost vasp.5.4.1]# make all
mkdir build/std ; \
        cp src/makefile src/.objects makefile.include build/std ; \
        make -C build/std VERSION=std all
mkdir: cannot create directory `build/std': File exists
make[1]: Entering directory `/home/renhaowen/Desktop/vasp-install/vasp.5.4.1/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib
make[2]: Entering directory `/home/renhaowen/Desktop/vasp-install/vasp.5.4.1/build/std/lib'
mpif90 -O1 -free -names lowercase -c -o preclib.o preclib.f90
/opt/intel/impi/5.0.2.044/intel64/bin/mpif90: line 581: gfortran: command not found
/opt/intel/impi/5.0.2.044/intel64/bin/mpif90: line 760: gfortran: command not found
make[2]: *** [preclib.o] Error 127
make[2]: Leaving directory `/home/renhaowen/Desktop/vasp-install/vasp.5.4.1/build/std/lib'
make[1]: *** [lib] Error 2
make[1]: Leaving directory `/home/renhaowen/Desktop/vasp-install/vasp.5.4.1/build/std'
make: *** [std] Error 2
相应的Makefile.include如下
# Precompiler options

#CPP_OPTIONS= -DMPI -DHOST=\"IFC91_ompi\" -DIFC \

             -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc \

             -DMPI_BLOCK=8000 -DscaLAPACK -Duse_collective \

             -DnoAugXCmeta -Duse_bse_te \

             -Duse_shmem -Dtbdyn

CPP_OPTIONS= -DMPI -DHOST=\"LinuxIFC\" -DIFC \

             -DCACHE_SIZE=8000 -DPGF90 -Davoidalloc \

             -DMPI_BLOCK=8000 -DscaLAPACK -Duse_collective \

             -DnoAugXCmeta -Duse_bse_te \

             -Duse_shmem -Dtbdyn -DRPROMU_DGEMV -DRACCMU_DGEMV



CPP        = fpp -f_com=no -free -w0  $*$(FUFFIX) $*$(SUFFIX) $(CPP_OPTIONS)



FC         = mpif90

FCL        = mpif90 -mkl



FREE       = -free -names lowercase



#FFLAGS     = -assume byterecl

FFLAGS     = -assume byterecl -FR -heap-arrays

#OFLAG      = -O2

OFLAG      = -O1 -ip

OFLAG_IN   = $(OFLAG)

#DEBUG      = -O0

DEBUG      = -O0 -FR



MKLROOT    =/opt/intel/composer_xe_2013_sp1.2.144/mkl

MKL_PATH   = $(MKLROOT)/lib/intel64

BLAS       =-L$(MKL_PATH) -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread

LAPACK     =-L$(MKL_PATH) -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread

#BLACS      = -lmkl_blacs_intelmpi_lp64

BLACS      =-L$(MKL_PATH) -lmkl_blacs_intelmpi_lp64

SCALAPACK  = $(MKL_PATH)/libmkl_scalapack_lp64.a $(MKL_PATH)/libmkl_scalapack_ilp64.a $(BLACS)



#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_2013_sp1.2.144/mkl/interfaces/fftw3xf/libfftw3xf_intel.a

INCS       =-I/opt/intel/composer_xe_2013_sp1.2.144/mkl/include



LLIBS      = $(SCALAPACK) $(LAPACK) $(BLAS)



OBJECTS_O1 += fft3dfurth.o fftw3d.o fftmpi.o fftmpiw.o

OBJECTS_O2 += fft3dlib.o



# For what used to be vasp.5.lib

CPP_LIB    = $(CPP)

FC_LIB     = $(FC)

CC_LIB     = icc

CFLAGS_LIB = -O

FFLAGS_LIB = -O1

FREE_LIB   = $(FREE)



OBJECTS_LIB= linpack_double.o getshmem.o



# Normally no need to change this

SRCDIR     = ../../src

BINDIR     = ../../bin
急需解决,万分感激
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

未岸亡灵

铁杆木虫 (著名写手)

暂时离开小木虫


【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
尉惭3562: 金币+30, ★★★★★最佳答案, 编译成功,问题解决,万分感谢 2018-11-06 10:13:08
mpif90改为mpiifort
2楼2018-11-06 09:22:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

風易辭

铁虫 (初入文坛)

【答案】应助回帖

感谢参与,应助指数 +1
使用intel套件么?可以不用修改内容 直接编译即可(前提是你已经设置好各种intel环境变量)
3楼2018-11-06 17:11:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xwz2018

新虫 (小有名气)

4楼2019-03-16 19:57:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 尉惭3562 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +5 yuleib84 2026-08-26 6/300 2026-08-28 00:02 by yudaoqian88
[教师之家] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 XLGfUIdOmEAO 2026-08-27 4/200 2026-08-27 22:26 by 3RAFyYXYSwGS
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 5/250 2026-08-27 20:50 by gdfollow
[基金申请] 基金不中,共勉 +10 eulota 2026-08-26 10/500 2026-08-27 17:23 by lqllinqiaoli
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[文学芳草园] 梦想 +3 myrtle 2026-08-26 3/150 2026-08-27 10:01 by angelyueyi
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 系统查不到 +10 董八千 2026-08-26 10/500 2026-08-26 16:30 by Equinoxhua
[基金申请] 2026国自然函评费到账 +22 羊腰板 2026-08-21 25/1250 2026-08-26 15:00 by zuocuiping
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 明天应该可查了!? +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[教师之家] 跳槽后在研项目怎么办? +5 简单化xn 2026-08-22 10/500 2026-08-23 12:38 by 简单化xn
信息提示
请填处理意见