| 3 | 1/1 | 返回列表 |
| 查看: 911 | 回復(fù): 2 | |||||
卡開發(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)了如下錯誤: 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] 錯誤 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 ] 這樣一些類似的錯誤。我把make改成了txt.各位大俠麻煩看看這是啥毛病。 小弟在此謝過。 |

專家顧問 (著名寫手)
Ab Initio Amateur
![]() |
專家經(jīng)驗: +224 |

鐵桿木蟲 (正式寫手)
|
你好像沒有刷新mkl吧,所以加載庫時出問題了; 下面是我根據(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 & 希望對你有用! |
| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料科學(xué)與工程求調(diào)劑 +10 | 深V宿舍吧 2026-03-29 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 370求調(diào)劑 +3 | 080700調(diào)劑 2026-03-30 | 3/150 |
|
|
[考研] 085600 286分 材料求調(diào)劑 +11 | 麻辣魷魚 2026-03-27 | 12/600 |
|
|
[考研] 各位老師好,我的一志愿為北京科技大學(xué)085601材料專碩 +10 | Koxui 2026-03-28 | 10/500 |
|
|
[考研] 材料化工340求調(diào)劑 +3 | jhx777 2026-03-30 | 3/150 |
|
|
[考研] 328求調(diào)劑 +8 | 嗯滴的基本都 2026-03-27 | 8/400 |
|
|
[考研] 332求調(diào)劑 +6 | @MZB382400 2026-03-28 | 6/300 |
|
|
[考研] 310求調(diào)劑 +10 | 爭取九點(diǎn)睡 2026-03-30 | 10/500 |
|
|
[考研] 一志愿雙一流機(jī)械285分求調(diào)劑 +4 | 幸運(yùn)的三木 2026-03-29 | 5/250 |
|
|
[考研] 一志愿北京理工大學(xué)本科211材料工程294求調(diào)劑 +8 | mikasa的圍巾 2026-03-28 | 8/400 |
|
|
[考研] 298求調(diào)劑 +3 | 種圣賜 2026-03-29 | 3/150 |
|
|
[考研] 086000生物與醫(yī)藥調(diào)劑 +5 | Feisty。 2026-03-28 | 9/450 |
|
|
[考研] 085600,專業(yè)課化工原理,321分求調(diào)劑 +5 | 大饞小子 2026-03-28 | 5/250 |
|
|
[考研] 312,生物學(xué)求調(diào)劑 +3 | 小譯同學(xué)abc 2026-03-28 | 3/150 |
|
|
[考研] 085600,材料與化工321分調(diào)劑 +4 | 大饞小子 2026-03-27 | 6/300 |
|
|
[考研] 材料求調(diào)劑 +5 | .m.. 2026-03-25 | 5/250 |
|
|
[考研] 求調(diào)劑 +6 | 林之夕 2026-03-24 | 6/300 |
|
|
[考研] 321求調(diào)劑 +6 | Ymlll 2026-03-24 | 6/300 |
|
|
[考研] 334分 一志愿武理-080500 材料求調(diào)劑 +4 | 李李不服輸 2026-03-25 | 4/200 |
|
|
[考研] 調(diào)劑 +4 | 13853210211 2026-03-24 | 4/200 |
|