24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2881  |  回复: 16
本帖产生 1 个 1ST强帖 ,点击这里进行查看
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

[求助] 编译VASP报错,求解释!

大家帮忙看下报错信息!谢谢了!
cp makefile.linux_ifc_P4  makefile
打开makefile文件修改FC=ifort 保存文件
make
之后的报错信息如下:

./preprocess fftw3d.f90  -DHOST=\"LinuxIFC\" -Dkind8 -DNGXhalf -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc
ifort  -FR -lowercase -assume byterecl  -O3 -xW -tpp7  -c fftw3d.f90
fortcom: Error: fftw3d.f90, line 427: Cannot open include file 'fftw3.f'
       include 'fftw3.f'
---------------^
fortcom: Error: fftw3d.f90, line 436: This name does not have a type, and must have an explicit type.   [FFTW_FORWARD]
                           FFTW_FORWARD, FFTW_ESTIMATE)
---------------------------^
fortcom: Error: fftw3d.f90, line 436: This name does not have a type, and must have an explicit type.   [FFTW_ESTIMATE]
                           FFTW_FORWARD, FFTW_ESTIMATE)
-----------------------------------------^
fortcom: Error: fftw3d.f90, line 440: This name does not have a type, and must have an explicit type.   [FFTW_BACKWARD]
                           FFTW_BACKWARD, FFTW_ESTIMATE)
---------------------------^
fortcom: Error: fftw3d.f90, line 456: Cannot open include file 'fftw3.f'
       include 'fftw3.f'
---------------^
fortcom: Error: fftw3d.f90, line 463: This name does not have a type, and must have an explicit type.   [FFTW_FORWARD]
                           FFTW_FORWARD, FFTW_EXHAUSTIVE)
---------------------------^
fortcom: Error: fftw3d.f90, line 463: This name does not have a type, and must have an explicit type.   [FFTW_EXHAUSTIVE]
                           FFTW_FORWARD, FFTW_EXHAUSTIVE)
-----------------------------------------^
fortcom: Error: fftw3d.f90, line 467: This name does not have a type, and must have an explicit type.   [FFTW_BACKWARD]
                           FFTW_BACKWARD, FFTW_EXHAUSTIVE)
---------------------------^
fftw3d.f90(318) : (col. 16) remark: LOOP WAS VECTORIZED.
compilation aborted for fftw3d.f90 (code 1)
make: *** [fftw3d.o] Error 1
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfc

金虫 (正式写手)

【答案】应助回帖

★ ★
franch(金币+2): 谢谢回帖交流 2011-05-09 21:08:27
gmy1990(金币+10): 谢谢啊! 2011-05-09 22:58:31
所需文件
l_fc_p_9.1.032.tar.gz    l_cluster_mkl_p_8.0.022.tgz   编译器和数学库的license( NCOM_L_CMP_FOR_NJ24-HBKJM779.lic  commercial_clmkl_l_LRC5-V5PV4BXT.lic )

as i know, the compiler and the mkl must be the same version. you can download the newest version-ifort from the http://software.intel.com including the intel mkl.

4  进入放文件的目录 cd  
  解压vasp.4.6.28.climb.tar.gz    和   vasp.4.6.lib.tar
进入 vasp.4.6.lib
cp makefile.linux_pg makefile

产生libdmy.a
也没有初出现报错!

here the 4th step. as you mentioned in the txt file, you are using the ifc compiler so here you should cp makefile.linux_ makefile_ifc_P4 makefile and change the compiler option in the makefile.

and i didn't install fftw-3.2.2.tar.gz as said on the 10th floor ,so i cannot give you more advise.sorry.
14楼2011-05-09 19:19:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 17 个回答

guohuazhong

至尊木虫 (职业作家)

★ ★
mazuju028(金币+2): 谢谢交流 2011-05-08 22:39:59
建议把-assume byterecl  -O3 -xW -tpp7  编译选项去掉试试
2楼2011-05-08 19:16:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfc

金虫 (正式写手)

【答案】应助回帖

★ ★
gmy1990(金币+5): 嗯,我试试,谢啦! 2011-05-08 21:17:04
mazuju028(金币+2): 谢谢交流 2011-05-08 22:40:12
并行编译那块的设置问题?
BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

SCA= $(SCA_)/libscalapack.a  \
$(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/blacs_MPI-LINUX-0.a $(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a

SCA=/opt/intel/composerxe-2011.3.174/mkl/lib/ia32/libmkl_scalapack_core.a  /opt/intel/composerxe-2011.3.174/mkl/lib/ia32/libmkl_blacs_intelmpi.a

#-----------------------------------------------------------------------
# libraries for mpi
#-----------------------------------------------------------------------

#LIB     = -L../vasp.4.lib -ldmy  \
#      ../vasp.4.lib/linpack_double.o $(LAPACK) \
#      $(SCA) $(BLAS)

# FFT: fftmpi.o with fft3dlib of Juergen Furthmueller
FFT3D   = fftmpi.o fftmpi_map.o fft3dlib.o   ##这里改改试一下?

# fftw.3.0.1 is slighly faster and should be used if available
#FFT3D   = fftmpiw.o fftmpi_map.o fft3dlib.o  /opt/intel/composerxe-2011.3.174/mkl/interfaces/fftw3xf/libfftw3xf_intel.a
3楼2011-05-08 21:14:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

引用回帖:
Originally posted by mengfc at 2011-05-08 21:14:59:
并行编译那块的设置问题?
BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

SCA= $(SCA_)/libscalapack.a  \
$(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/ ...

还是不行,报错:compilation aborted for fftmpi_map.f90 (code 1)
4楼2011-05-08 21:22:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见