| 5 | 1/1 | 返回列表 |
| 查看: 10027 | 回復(fù): 85 | ||
| 【獎(jiǎng)勵(lì)】 本帖被評(píng)價(jià)67次,作者zhangguangping增加金幣 53 個(gè) | ||
| 本帖產(chǎn)生 1 個(gè) 1ST強(qiáng)帖 ,點(diǎn)擊這里進(jìn)行查看 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
zhangguangping木蟲 (著名寫手)
|
[資源]
ifort(10.1.012) + MKL(10.0.2.018) + OpenMPI(1.4.4)編譯并行vasp-5.2.2
|
|
|
ifort,MKL以及OpenMPI的安裝不多贅述,可以參考 http://www.gaoyang168.com/bbs/viewthread.php?tid=1930406 http://www.gaoyang168.com/bbs/viewthread.php?tid=4433857 0.編譯MKL中的fftw 3.x Fortran wrapper library cd /opt/intel/mkl/10.1.0.015/interfaces/fftw3xf make libem64t compiler=intel 如果沒有安裝icc的話,需要使用gcc,則 make libem64t compiler=gnu 1.解壓vasp軟件包 tar zxvf vasp.5.2.tar.gz tar zxvf vasp.5.lib.tar.gz 2. 編譯 VASP帶的lib得到libdmy.a cd vasp.5.lib cp makefile.linux_ifc_P4 makefile vi makefile 修改 FC=ifort make 3.編譯vasp cd vasp.5.2 cp makefile.linux_ifc_P4 makefile 修改整個(gè)文件如附件 主要要修改的地方如下:(一定注意將重復(fù)的部分去掉,因?yàn)檫@個(gè)makefile的模版比較雜亂,可以直接用附件的文件根據(jù)自己情況修改) FC=mpif90 FCL=$(FC) CPP_ = ./preprocess <$*.F | /usr/bin/cpp -P -C -traditional >$*$(SUFFIX) CPP = $(CPP_) -DMPI -DHOST=\"LinuxIFC\" -DIFC \ -Dkind8 -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DNGZhalf \ -DMPI_BLOCK=8000 \ -DRPROMU_DGEMV -DRACCMU_DGEMV -DscaLAPACK FFLAGS = -I/opt/intel/mkl/10.0.2.018/include/fftw -FR -lower_case OFLAG=-O3 OFLAG_HIGH = $(OFLAG) OBJ_HIGH = OBJ_NOOPT = DEBUG = -FR -O0 INLINE = $(OFLAG) BLAS= -L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread LAPACK= -L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread SCA= /opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_scalapack_lp64.a /opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_blacs_openmpi_lp64.a LIB = -L../vasp.5.lib -ldmy \ ../vasp.5.lib/linpack_double.o $(LAPACK) \ $(SCA) $(BLAS) FFT3D = fftmpi.o fftmpi_map.o fftw3d.o fft3dlib.o /opt/intel/mkl/10.0.2.018/lib/em64t/libfftw3xf_intel.a 編譯完畢. make ~/bin cp vasp ~/bin 測(cè)試:(測(cè)試文件見附件) mpirun -np 8 ~/bin/vasp >vasp.out &[ Last edited by zhangguangping on 2012-6-6 at 21:33 ] 需要注意的是在編譯intel的fftw3xf的時(shí)候,雖然有兩種方法: make libem64t compiler=intel 和 make libem64t compiler=gnu, 如果你沒有icc,也不要使用gnu的這個(gè)命令,因?yàn)榫幾g到最后會(huì)報(bào)如下錯(cuò)誤: fftw3d.o: In function `fftmakeplan_': 。。。等等 這個(gè)時(shí)候需要的是修改makefile為: ifeq ($(compiler),gnu) override CC=gcc -D_GNU else override compiler=intel override CC=gcc endif 或者把gnu下面的gcc的參數(shù)去掉: ifeq ($(compiler),gnu) override CC=gcc else override compiler=intel override CC=icc endif 這樣的話,make libem64t compiler=gnu編譯也是可以的。 也就是說即使指明用intel,也要用gcc編譯。這樣生成的文件大小和用gnu大小都是不一樣的。 [ Last edited by zhangguangping on 2014-1-11 at 12:11 ] vasp 5.3.2編譯時(shí)不能直接用vasp 5.2的makefile.附件中上傳了5.3.2的makefile.其中, FC=mpif90 -I/home/software/intel/composer_xe_2013.5.192/mkl/include/fftw中的-I/home/software/intel/composer_xe_2013.5.192/mkl/include/fftw是為了編譯fftmpiw.F時(shí)用的。因?yàn)榫幾gfftmpiw.F的規(guī)則是 fftmpiw.o : fftmpiw.F $(CPP) $(FC) -FR -lowercase -O1 $(INCS) -c $*$(SUFFIX) 或者將/home/software/intel/composer_xe_2013.5.192/mkl/include/fftw目錄下的fftw3.f文件拷貝到當(dāng)下編譯目錄中也可以。[ Last edited by zhangguangping on 2014-12-11 at 07:19 ] |
榮譽(yù)版主 (著名寫手)
木蟲 (著名寫手)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調(diào)劑 +5 | 家佳佳佳佳佳 2026-03-29 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 311求調(diào)劑 +6 | 冬十三 2026-03-24 | 6/300 |
|
|
[考研] 291求調(diào)劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[考研] 求收留 +5 | 1943443204 2026-03-28 | 5/250 |
|
|
[考研] 調(diào)劑求院校招收 +6 | 鶴鯨鴿 2026-03-28 | 6/300 |
|
|
[考研] 330分求調(diào)劑 +5 | qzenlc 2026-03-29 | 5/250 |
|
|
[考研] 316求調(diào)劑 +7 | 江辭666 2026-03-26 | 7/350 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動(dòng)285求調(diào)劑 +3 | AZMK 2026-03-27 | 5/250 |
|
|
[考研] 材料277求調(diào)劑 +7 | min3 2026-03-24 | 7/350 |
|
|
[考研] 308求調(diào)劑 +7 | 墨墨漠 2026-03-27 | 7/350 |
|
|
[考研] 0703化學(xué)求調(diào)劑,各位老師看看我。! +5 | 祁祺祺 2026-03-25 | 5/250 |
|
|
[考研] 070300化學(xué)求調(diào)劑 +4 | 起個(gè)名咋這么難 2026-03-27 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | question挽風(fēng) 2026-03-23 | 3/150 |
|
|
[考研] 求調(diào)劑323材料與化工 +7 | 1124361 2026-03-24 | 7/350 |
|
|
[考研] 求調(diào)劑,一志愿 南京航空航天大學(xué)大學(xué) ,080500材料科學(xué)與工程學(xué)碩 +4 | @taotao 2026-03-26 | 5/250 |
|
|
[考研] 303求調(diào)劑 +6 | 藍(lán)山月 2026-03-25 | 6/300 |
|
|
[考研] 334分 一志愿武理-080500 材料求調(diào)劑 +4 | 李李不服輸 2026-03-25 | 4/200 |
|
|
[考研] 347求調(diào)劑 +4 | L when 2026-03-25 | 4/200 |
|
|
[考研] 一志愿北化315 求調(diào)劑 +3 | akrrain 2026-03-24 | 3/150 |
|
|
[考研] 277分求調(diào)劑,跨調(diào)材料 +3 | 考研調(diào)劑lxh 2026-03-24 | 3/150 |
|