24小时热门版块排行榜    

查看: 1092  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

卡开发发

专家顾问 (著名写手)

Ab Initio Amateur

[交流] 各位大侠,帮忙看看小弟的nwchem为啥编译不出 已有1人参与

各位大侠帮忙看看:
我用的编译器是ifort,icc 系统是 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
之后出现了如下错误:
makelog的最后两行出现了:

/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

额外检查前面的内容出现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.各位大侠麻烦看看这是啥毛病。
小弟在此谢过。
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

不一定挂在论坛,计算问题问题欢迎留言。
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wuy069

铁杆木虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖
引用回帖:
1楼: Originally posted by 卡开发发 at 2011-10-15 16:56:15:
各位大侠帮忙看看:
我用的编译器是ifort,icc 系统是 rhel5.4-x86-64
bashrc下挂的是ifort icc impi mkl。
采用的nwchem-6.0,额外安装了gotoblas-1.13&lapack-3.31,均没在bashrc下挂,两者安装生成的*.a ...

你好像没有刷新mkl吧,所以加载库时出问题了;
下面是我根据coolrainbow专家在网上写的博客以及网上的一些资料改编的脚本(用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里(根据你自己系统的环境自己再改改),把compile_nwchem.sh放进要编译程序目录的src文件夹里
chmod 750 compile_nwchem.sh
./compile_nwchem.sh &> make.log &

希望对你有用!
3楼2011-10-18 08:54:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 3 个回答

卡开发发

专家顾问 (著名写手)

Ab Initio Amateur

make.log看看发上去没
不一定挂在论坛,计算问题问题欢迎留言。
2楼2011-10-15 16:58:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] FileCode能看出啥? +8 要乐观耀哥 2026-08-10 23/1150 2026-08-13 00:35 by 要乐观耀哥
[基金申请] 应该是93bebmhtak前后十一个字符比较关键 +22 Lanmanbaby 2026-08-09 36/1800 2026-08-12 22:50 by sdfapple719
[基金申请] 不应该看fileCode +5 且听虎啸 2026-08-12 6/300 2026-08-12 16:26 by Tide man
[基金申请] filecode +13 documentary 2026-08-10 15/750 2026-08-12 15:56 by 云上清扬
[论文投稿] 职称评审,求友友推荐见刊最快的期刊 +4 工厂打螺丝 2026-08-08 4/200 2026-08-12 09:18 by hansi2025
[基金申请] 综述论文作为代表作会不会影响评审专家的印象分? +11 yufeiwaner 2026-08-09 13/650 2026-08-12 08:17 by yufeiwaner
[基金申请] 有时候,自然基金真的不能太认真 (我的申报经验) +3 majunge000 2026-08-11 4/200 2026-08-11 20:13 by lch2012
[硕博家园] 读博的好处 +3 lnee 2026-08-11 3/150 2026-08-11 18:10 by 希望我好好的
[基金申请] 什么时候出结果,有咨询渠道??? +3 Tide man 2026-08-11 3/150 2026-08-11 17:54 by kudofaye
[基金申请] 分享一下我之前已中青C的计划书的filecode +3 布布和一二 2026-08-11 4/200 2026-08-11 15:20 by aasahr
[基金申请] 我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人 +8 家与远方 2026-08-10 13/650 2026-08-11 09:49 by 家与远方
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 这样的filecode谁见过 +11 布布和一二 2026-08-08 22/1100 2026-08-10 11:10 by wmfsnow
[基金申请] fileCode有新解读? +10 Tide man 2026-08-08 18/900 2026-08-09 12:55 by 仁砚薪传
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] 关于豆爷回答的JTJC与%2F数量 +5 yang182083 2026-08-06 7/350 2026-08-08 18:29 by zhanghaozhu
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 化学口download_prp&fileCode的固定段好像这几天一直没变,有变的大神么? +3 Tide man 2026-08-07 4/200 2026-08-07 22:39 by Tide man
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
信息提示
请填处理意见