| 5 | 1/1 | 返回列表 |
| 查看: 2852 | 回復(fù): 11 | ||||
| 當(dāng)前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | ||||
gleerat木蟲 (正式寫手)
|
[求助]
使用ifort+MKL編譯VASP,出錯信息卻是gfortran
|
|||
|
mts@unity-ubuntu:~/vasp.5.2$ make -f makefile.linux_ifc_P4 ./preprocess mpif90 -I/opt/intel/mkl/include/fftw -FR -lowercase -assume byterecl -O3 -c base.f90 gfortran: error: byterecl: No such file or directory gfortran: error: unrecognized option '-assume' make: *** [base.o] Error 1 mts@unity-ubuntu:~/vasp.5.2$ which ifort /opt/intel/composer_xe_2011_sp1.11.339/bin/intel64/ifort 我在makefile中指定了編譯器為ifort和mpif90,編譯提示出錯信息為gfortran。 這是makefile,省去了一些注釋,只有修改的部分使用黑體標(biāo)識。 .SUFFIXES: .inc .f .f90 .F # all CPP processed fortran files have the extension .f90 SUFFIX=.f90 #----------------------------------------------------------------------- # fortran compiler and linker #----------------------------------------------------------------------- FC=ifort #修改fortran編譯器為ifort # fortran linker FCL=$(FC) CPP_ = ./preprocess <$*.F | /usr/bin/cpp -P -C -traditional >$*$(SUFFIX) CPP = $(CPP_) -DHOST=\"LinuxIFC\" \ -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf \ -DRPROMU_DGEMV -DRACCMU_DGEMV #取消對CPP的注釋 #----------------------------------------------------------------------- # general fortran flags (there must a trailing blank on this line) # byterecl is strictly required for ifc, since otherwise # the WAVECAR file becomes huge #----------------------------------------------------------------------- FFLAGS = -I/opt/intel/mkl/include/fftw -FR -lowercase -assume byterecl #指定fftw # ifc.9.1, ifc.10.1 recommended OFLAG=-O3 OFLAG_HIGH = $(OFLAG) OBJ_HIGH = OBJ_NOOPT = DEBUG = -FR -O0 INLINE = $(OFLAG) #----------------------------------------------------------------------- # the following lines specify the position of BLAS and LAPACK # VASP works fastest with the libgoto library # so that's what we recommend #----------------------------------------------------------------------- # mkl.10.0 # set -DRPROMU_DGEMV -DRACCMU_DGEMV in the CPP lines BLAS=-L/opt/intel/mkl/lib/intel64 -lmkl_em64t -lmkl_intel_thread -lguide -lmkl_intel_lp64 -lmkl_blacs_lp64 -lmkl_core -liomp5 -lpthread # use the mkl Intel lapack LAPACK= -L/opt/intel/mkl/lib/intel64 -lmkl_em64t -lmkl_intel_thread -lguide -lmkl_intel_lp64 -lmkl_blacs_lp64 -lmkl_core -liomp5 -lpthread #修改數(shù)學(xué)庫 #----------------------------------------------------------------------- #LIB = -L../vasp.5.lib -ldmy \ # ../vasp.5.lib/linpack_double.o $(LAPACK) \ # $(BLAS) #注釋掉vasp的庫,以及下面緊接著的FFT3D,在MPI部分重新指定FFT3D # options for linking, nothing is required (usually) LINK = #----------------------------------------------------------------------- # fft libraries: # VASP.5.2 can use fftw.3.1.X (http://www.fftw.org) # since this version is faster on P4 machines, we recommend to use it #----------------------------------------------------------------------- #FFT3D = fft3dfurth.o fft3dlib.o # alternatively: fftw.3.1.X is slighly faster and should be used if available #FFT3D = fftw3d.o fft3dlib.o /opt/libs/fftw-3.1.2/lib/libfftw3.a #======================================================================= # MPI section, uncomment the following lines until #======================================================================= #----------------------------------------------------------------------- # fortran linker for mpi #----------------------------------------------------------------------- FC=mpif90 #指定編譯器為mpif90 FCL=$(FC) #CPP = $(CPP_) -DMPI -DHOST=\"LinuxIFC\" -DIFC \ # -Dkind8 -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DNGZhalf \ # -DMPI_BLOCK=8000 ## -DRPROMU_DGEMV -DRACCMU_DGEMV #注釋CPP,使用前面的CPP #----------------------------------------------------------------------- # location of SCALAPACK # if you do not use SCALAPACK simply leave that section commented out #----------------------------------------------------------------------- SCA= /opt/intel/mkl/lib/intel64/libmkl_scalapack_lp64.a /opt/intel/mkl/lib/intel64/libmkl_blacs_openmpi_lp64.a #修改SCA #----------------------------------------------------------------------- # libraries for mpi #----------------------------------------------------------------------- LIB = -L../vasp.5.lib -ldmy \ ../vasp.5.lib/linpack_double.o $(LAPACK) \ $(SCA) $(BLAS) #取消注釋 # FFT: fftmpi.o with fft3dlib of Juergen Furthmueller #FFT3D = fftmpi.o fftmpi_map.o fft3dfurth.o fft3dlib.o # alternatively: fftw.3.1.X is slighly faster and should be used if available FFT3D = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o /opt/intel/mkl/lib/intel64/libfftw3xf_intel.a #使用指定的fftw3xf |
Photochemistry |

木蟲 (正式寫手)
|
7樓: Originally posted by sjzxbe at 2012-07-25 08:14:57 intel環(huán)境編譯 (1) source /opt/intel/Compiler/11.1/080/bin/ifortvars.sh intel64 (2)安裝openmpi tar jxf openmpi-1.4.3.tar.bz2 cd openmpi-1.4.3 ./configure --prefix=/opt/openmpi-intel CC=icc ... mpif90的問題我已經(jīng)解決,我現(xiàn)在的問題是我在五樓提到的編譯出錯問題。正是你略過的第四步。 由于原帖不能編輯,所以我在五樓提出了問題。 |

木蟲 (正式寫手)

專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +174 |
|
3樓: Originally posted by gleerat at 2012-07-24 16:23:54 mts@unity-ubuntu:~$ which mpif90 /usr/bin/mpif90 mts@unity-ubuntu:~$ ... 你的MPI不是用ifort編譯的,而是用gfortran編譯的。用 mpif90 --version 就可以看到了。 建議下載MPI重新編譯,編譯時加上FC=ifort一句~ |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿北化085600材料專碩275|有文章專利|求調(diào)劑 +14 | Micky11223 2026-03-25 | 15/750 |
|
|---|---|---|---|---|
|
[考研] 一志愿 南京航空航天大學(xué) ,080500材料科學(xué)與工程學(xué)碩 +5 | @taotao 2026-03-30 | 5/250 |
|
|
[考研] 22408 359分調(diào)劑 +4 | Qshers 2026-03-27 | 8/400 |
|
|
[考研] 08工科求調(diào)劑286 +5 | tgs_001 2026-03-28 | 5/250 |
|
|
[考研] 085601 329分調(diào)劑 +4 | yzsa12 2026-03-31 | 4/200 |
|
|
[考研] 材料與化工調(diào)劑一志愿大連海事085600,349 +6 | 吃的不少 2026-03-30 | 6/300 |
|
|
[考研] 材料科學(xué)與工程求調(diào)劑 +10 | 深V宿舍吧 2026-03-29 | 10/500 |
|
|
[考研] 332求調(diào)劑 +14 | 032500 2026-03-25 | 14/700 |
|
|
[考研] 284求調(diào)劑 +14 | junqihahaha 2026-03-26 | 15/750 |
|
|
[考研] 求調(diào)劑 +7 | 青春裁為三截 2026-03-29 | 7/350 |
|
|
[碩博家園] 求調(diào)劑 有機化學(xué)考研356分 +10 | Nadiums 2026-03-25 | 11/550 |
|
|
[考研] 375求調(diào)劑 +6 | 雨夏整夜 2026-03-29 | 6/300 |
|
|
[考研] 337求調(diào)劑 +6 | 《樹》 2026-03-29 | 6/300 |
|
|
[考研] 0856求調(diào)劑 +8 | 楒桉 2026-03-28 | 8/400 |
|
|
[考研] 求調(diào)劑 +10 | 張zz111 2026-03-27 | 11/550 |
|
|
[考研] 壓國家一區(qū)線,求導(dǎo)師收留,有恩必謝! +7 | 迷人的哈哈 2026-03-28 | 7/350 |
|
|
[考研] 086000調(diào)劑 +3 | 7901117076 2026-03-26 | 3/150 |
|
|
[有機交流]
高溫高壓反應(yīng)求助
10+4
|
chibby 2026-03-25 | 4/200 |
|
|
[考研] 機械學(xué)碩310分,數(shù)一英一,一志愿211本科雙非找調(diào)劑信息 +3 | @357 2026-03-25 | 3/150 |
|
|
[考研] 334分 一志愿武理-080500 材料求調(diào)劑 +4 | 李李不服輸 2026-03-25 | 4/200 |
|