| 3 | 1/1 | 返回列表 |
| 查看: 908 | 回復: 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放進要編譯程序目錄的src文件夾里 chmod 750 compile_nwchem.sh ./compile_nwchem.sh &> make.log & 希望對你有用! |
| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 289求調(diào)劑 +15 | 新時代材料 2026-03-27 | 15/750 |
|
|---|---|---|---|---|
|
[考研] 322求調(diào)劑 +9 | 宋明欣 2026-03-27 | 9/450 |
|
|
[考研] 291求調(diào)劑 +8 | Y-cap 2026-03-29 | 9/450 |
|
|
[考研] 0703本科鄭州大學求調(diào)劑 +7 | nhj_ 2026-03-25 | 7/350 |
|
|
[考研] 生物技術(shù)與工程 +7 | 1294608413 2026-03-25 | 8/400 |
|
|
[考研] 一志愿中南大學化學0703總分337求調(diào)劑 +6 | niko- 2026-03-27 | 6/300 |
|
|
[考研] 290求調(diào)劑 +3 | dfffsar 2026-03-29 | 3/150 |
|
|
[考研] 求調(diào)劑 +4 | QiMing7 2026-03-25 | 5/250 |
|
|
[考研] 275求調(diào)劑 +15 | Micky11223 2026-03-25 | 20/1000 |
|
|
[考研] 【求調(diào)劑】085601材料工程專碩 | 總分272 | +7 | 腳滑的守法公民 2026-03-27 | 7/350 |
|
|
[考研] 329求調(diào)劑 +10 | 鈕恩雪 2026-03-25 | 10/500 |
|
|
[考研] 本科雙非材料,跨考一志愿華電085801電氣,283求調(diào)劑,任何專業(yè)都可以 +6 | 芝士雪baoo 2026-03-28 | 8/400 |
|
|
[考研] 330分求調(diào)劑 +5 | qzenlc 2026-03-29 | 5/250 |
|
|
[考研] 一志愿華理,數(shù)一英一285求A區(qū)調(diào)劑 +8 | AZMK 2026-03-25 | 12/600 |
|
|
[考研] 085602 307分 求調(diào)劑 +7 | 不知道叫什么! 2026-03-26 | 7/350 |
|
|
[考研] 272求調(diào)劑 +7 | 腳滑的守法公民 2026-03-27 | 7/350 |
|
|
[考研] 266分求材料化工冶金礦業(yè)等專業(yè)的調(diào)劑 +4 | 哇呼哼呼哼 2026-03-26 | 4/200 |
|
|
[考研] 材料求調(diào)劑 +5 | .m.. 2026-03-25 | 5/250 |
|
|
[考研] 341求調(diào)劑 +7 | 青檸檬1 2026-03-26 | 7/350 |
|
|
[考研]
|
平樂樂樂 2026-03-26 | 4/200 |
|