24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2874  |  回复: 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的回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

引用回帖:
Originally posted by mengfc at 2011-05-09 14:06:22:
sorry i cannot type chinese now.
OFLAG=-O3 -xW -tpp7 #delete '-tpp7' and have a try

#-----------------------------------------------------------------------
# fft libraries:
# VASP.4.6 can us ...

好的,我试试去,有点小崩溃了,呵呵...谢谢啦!
11楼2011-05-09 14:12:04
已阅   回复此楼   关注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的回帖
信息提示
请填处理意见