| 5 | 1/1 | 返回列表 |
| 查看: 909 | 回復(fù): 2 | |||||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||||
卡開發(fā)發(fā)專家顧問 (著名寫手)
Ab Initio Amateur
|
[交流]
各位大俠,幫忙看看小弟的nwchem為啥編譯不出 已有1人參與
|
||||
|
各位大俠幫忙看看: 我用的編譯器是ifort,icc 系統(tǒng)是 rhel5.4-x86-64 bashrc下掛的是ifort icc impi mkl。 采用的nwchem-6.0,額外安裝了gotoblas-1.13&lapack-3.31,均沒在bashrc下掛,兩者安裝生成的*.a,*.so均拷貝到/usr/lib64 之前編譯siesta和abinit都過了,但是編譯nwchem就趴了。 export TCGRSH=/usr/bin/ssh export LARGE_FILES=TRUE export LIB_DEFINES="-DDFLT_TOT_MEM=524111744" export NWCHEM_TOP=/home/Admin/nwchem-6.0 export NWCHEM_TARGET=LINUX64 export NWCHEM_TARGET_CPU=x86_64 export NWCHEM_MODULES=all export USE_MPI=y #export USE_MPIF=n export HAS_BLAS=yes export BLASOPT="-L/usr/lib64 -llapack -lgoto2" # Intel MPI export MPI_LOC=/software/intel/impi/3.2.1.009 export MPI_LIB=$MPI_LOC/lib64 export MPI_INCLUDE=$MPI_LOC/include64 export LIBMPI="-lmpigf -lmpigi -lmpi_ilp64 -lmpi" make realclean make nwchem_config make FC=ifort CC=icc >& make.log 以上是仿照我們老師的腳本寫的configure.sh 之后出現(xiàn)了如下錯(cuò)誤: makelog的最后兩行出現(xiàn)了: /home/Admin/nwchem-6.0/bin/LINUX64_x86_64/nwchem: hidden symbol `__svml_log2' in /software/intel/Compiler/11.1/038/lib/intel64/libsvml.a(svml_stub_dln2.o) is referenced by DSO ld: final link failed: Nonrepresentable section on output make: *** [all] 錯(cuò)誤 1 額外檢查前面的內(nèi)容出現(xiàn)warning: warning: -jN forced in submake: disabling jobserver mode. make CC=icc FC=ifort clean make[2]: warning: -jN forced in submake: disabling jobserver mode. for dir in ma global tcgmsg-mpi LinAlg/lapack+blas tcgmsg armci/src pario; do make CC=icc FC=ifort -C $dir clean || exit 1 ; done make[3]: warning: -jN forced in submake: disabling jobserver mode. /bin/rm -f *.o *.p *core *stamp *trace *.x *events* *.x *.o /bin/rm -rf ./obj *.obj *.exe if [ -f ../lib/LINUX64/libma.a ] 這樣一些類似的錯(cuò)誤。我把make改成了txt.各位大俠麻煩看看這是啥毛病。 小弟在此謝過。 |

鐵桿木蟲 (正式寫手)
|
你好像沒有刷新mkl吧,所以加載庫時(shí)出問題了; 下面是我根據(jù)coolrainbow專家在網(wǎng)上寫的博客以及網(wǎng)上的一些資料改編的腳本(用ifort,icc,impi,mkl編譯): #!/bin/csh # Author: wuy # This script is used for compiling NWChem # Basic configuration # WARNING£oModify the memsize for your own machine£¡£¡£¡ setenv LARGE_FILES TRUE setenv LIB_DEFINES -DDFLT_TOT_MEM=260609088 # Remote communication # If you do not use MPICH, comment them, else modify the MPI_LOC for your machine setenv USE_MPI y setenv USE_MPIF y setenv MPI_LOC /opt/intel/impi/4.0.0.027 setenv MPI_LIB $MPI_LOC/lib64 setenv MPI_INCLUDE $MPI_LOC/include64 setenv LIBMPI "-lmpigf -lmpigi -lmpi_ilp64 -lmpi" # Code tree setenv NWCHEM_TOP /share/apps/nwchem/intel/nwchem-6.0 # Platform setenv NWCHEM_TARGET LINUX64 # Python configuration # If you do not use PYTHON, comment them. #setenv PYTHONHOME /usr #setenv PYTHONVERSION 2.4 # Blas configuration # This is related to your own machine. Here I have used MKL Blas. If you do not have any own Blas, comment all setenv MKLLIB /opt/intel/mkl/10.2.5.035/lib/em64t setenv MKLINC /opt/intel/mkl/10.2.5.035/include setenv BLASOPT "-L${MKLLIB} -lguide -lmkl_lapack -lmkl_core -lmkl_sequential -lsvml" # What will be compiled setenv NWCHEM_MODULES "all" # Starting... # Set your own complier setenv FC /opt/intel/Compiler/11.1/072/bin/intel64/ifort setenv CC /opt/intel/Compiler/11.1/072/bin/intel64/icc setenv FOPTIMIZE "-O3 -xSSE2,SSE3,SSSE3,SSE4.1,SSE4.2 -no-prec-div -funroll-loops -multiple-processes=8 -unroll-aggressive" setenv COPTIMIZE "-O3 -xSSE2,SSE3,SSSE3,SSE4.1,SSE4.2 -no-prec-div -funroll-loops" make FC=ifort CC=icc 把上面的腳本寫在compile_nwchem.sh里(根據(jù)你自己系統(tǒng)的環(huán)境自己再改改),把compile_nwchem.sh放進(jìn)要編譯程序目錄的src文件夾里 chmod 750 compile_nwchem.sh ./compile_nwchem.sh &> make.log & 希望對(duì)你有用! |
專家顧問 (著名寫手)
Ab Initio Amateur
![]() |
專家經(jīng)驗(yàn): +224 |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 生物學(xué)學(xué)碩,一志愿湖南大學(xué),初試成績338 +7 | YYYYYNNNNN 2026-03-26 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 材料專碩 085600求調(diào)劑 +7 | BBQ233 2026-03-30 | 7/350 |
|
|
[考研] 310求調(diào)劑 +10 | 爭取九點(diǎn)睡 2026-03-30 | 10/500 |
|
|
[基金申請(qǐng)] 面上5B能上會(huì)嗎? +7 | redcom 2026-03-29 | 7/350 |
|
|
[考研] 求化學(xué)調(diào)劑 +11 | wulanna 2026-03-28 | 11/550 |
|
|
[考研] 337求調(diào)劑 +6 | 《樹》 2026-03-29 | 6/300 |
|
|
[考研] 求調(diào)劑 +4 | QiMing7 2026-03-25 | 5/250 |
|
|
[考研] 291求調(diào)劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[考研] 332求92調(diào)劑 +8 | 蕉蕉123 2026-03-28 | 8/400 |
|
|
[考研] 279求調(diào)劑 +4 | 蝶舞輕繞 2026-03-29 | 4/200 |
|
|
[考研] 315求調(diào)劑 +4 | akie... 2026-03-28 | 5/250 |
|
|
[考研] 331環(huán)境科學(xué)與工程求調(diào)劑 +3 | 熠然好運(yùn)氣 2026-03-27 | 3/150 |
|
|
[考研] 285求調(diào)劑 +4 | AZMK 2026-03-27 | 7/350 |
|
|
[考研] 265求調(diào)劑11408 +3 | 劉小鹿lu 2026-03-27 | 3/150 |
|
|
[考研] 266求調(diào)劑 +11 | 陽陽哇塞 2026-03-27 | 12/600 |
|
|
[考博] 26申博 +3 | 加油沖。 2026-03-26 | 3/150 |
|
|
[考研] 求調(diào)劑 一志愿 本科 北科大 化學(xué) 343 +6 | 13831862839 2026-03-24 | 7/350 |
|
|
[考研] 網(wǎng)絡(luò)空間安全0839招調(diào)劑 +4 | w320357296 2026-03-25 | 6/300 |
|
|
[考研] 296求調(diào)劑 +4 | 汪?! 2026-03-25 | 7/350 |
|
|
[考研] 0854人工智能方向招收調(diào)劑 +4 | 章小魚567 2026-03-24 | 4/200 |
|