24小时热门版块排行榜    

查看: 1928  |  回复: 1

pariah

铜虫 (小有名气)

[求助] 求一份完整的编译abinit的资源贴

刚看到一位同学对并行mpi编译的问题,因为自己最近也在弄,所以想有已经成功编译好的给大家一个完整的在各种linux版本下的编译过程,(abinit 论坛上有给出ubuntu下的从clear 系统的完整安装)
我最近也编译了并行的abinit,貌似安装都良好,但是中间还是有一些warning,比如缺少什么libxc netcdf atompaw之类的,但是这些我都手动下载放到了.abinit/tarball里了。不知到对程序有没有影响。在我穿行运行时../../../bin/abini MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 14.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
当我并行 mpirun -np 2 ..... 提示
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 14.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
[root@Pariah Work_paral]# mpirun -np 2 ../../../../src/98_main/abinitlog
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 14.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 3563 on
node Pariah exiting improperly. There are two reasons this could occur:

1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
for all processes to call "init". By rule, if one process calls "init",
then ALL processes must call "init" prior to termination.

2. this process called "init", but exited without calling "finalize".
By rule, all processes that call "init" MUST call "finalize" prior to
exiting or it will be considered an "abnormal termination"

This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
不知到如何解决,我的系统是fedora15 不知是否有同学在fedora下完整编译过并行的abinit
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pariah

铜虫 (小有名气)

★ ★ ★
fzx2008(金币+3): 谢谢分享 2011-12-17 19:34:09
cenwanglai: 2011-12-23 22:01:35
problem solved, share with all users
for ubuntu user (all from clear installation)
CODE:
apt-get install gcc gfortran
apt-get install patch
apt-get install libnetcdf4 libnetcdf-dev
apt-get install fftw3 libfftw3-dev
apt-get install libatlas-base-dev libatlas3gf-base
apt-get install liblapack3gf liblapack-dev
apt-get install libblas3gf libblas-dev
apt-get install openmpi-bin openmpi-common libopenmpi-dev

build a "build.ac"file
CODE:
enable_mpi="yes"
enable_mpi_io="yes"
with_mpi_prefix="depend on where your mpi bins located"
with_netcdf_incs="-I/usr/include"
with_netcdf_libs="-L/usr/lib64 -lnetcdf -lnetcdff"
with_fft_flavor="fftw3"
with_fft_incs="-I/usr/include/"
with_fft_libs="-L/usr/lib64 -lfftw3"
with_linalg_flavor="atlas"
with_linalg_libs="-L/usr/lib64 -llapack -lf77blas -lcblas -latlas"
with_dft-flavor="atompaw+bigdft+libxc+wannier90" #if you have problem with downloading the corresponding files,just downloading them manuely and put them in .abinit/tarballs/"
enable_gw_dpc="yes"

then type ./configure --with-config-file="./build.ac"
make mj4 #the number 4 here is according to how many processors your computer has
make install
for fedora/redhat/centos users
CODE:
yum install gcc-gfortran
yum install netcdf
yum install netcdf-devel
yum install atlas
yum install atlas-devel
yum install fftw3
yum install fftw3-devel
yum install libxc
yum install libxc-devel
yum isntall patch
here is the trick for yum users, if you install the openmpi use "yum",you will get the latest version of openmpi,named 1.5.*,but this version is ubstable and be proved uncompatible with abinit.So you have to download the stable version,like 1.4.3 to compile abinit source code
the bulid.ac file almost same
then type ./configure --with-config-file="build.ac"
make mj4
make install

good luck, enjoy
2楼2011-12-17 18:49:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 pariah 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085600材料与化工306 +4 z1z2z3879 2026-03-21 4/200 2026-03-21 23:44 by ms629
[考研] 280求调剂 +11 咕噜晓晓 2026-03-18 12/600 2026-03-21 22:40 by ACS Nano——
[考研] 0703化学调剂 +11 妮妮ninicgb 2026-03-15 15/750 2026-03-21 19:15 by ColorlessPI
[考研] 326求调剂 +4 mlpqaz03 2026-03-15 4/200 2026-03-21 19:10 by ColorlessPI
[考研] 277材料科学与工程080500求调剂 +6 自由煎饼果子 2026-03-16 6/300 2026-03-21 17:21 by 学员8dgXkO
[考研] 310求调剂 +3 baibai1314 2026-03-16 3/150 2026-03-21 03:56 by JourneyLucky
[考研] 303求调剂 +5 睿08 2026-03-17 7/350 2026-03-21 03:11 by JourneyLucky
[考研] 299求调剂 +6 △小透明* 2026-03-17 6/300 2026-03-21 02:42 by JourneyLucky
[考研] 一志愿中国石油大学(华东) 本科齐鲁工业大学 +3 石能伟 2026-03-17 3/150 2026-03-21 02:22 by JourneyLucky
[考研] 317求调剂 +5 申子申申 2026-03-19 9/450 2026-03-20 22:26 by JourneyLucky
[考研] 一志愿中南化学(0703)总分337求调剂 +8 niko- 2026-03-19 9/450 2026-03-20 21:57 by luoyongfeng
[考研] 一志愿 南京航空航天大学大学 ,080500材料科学与工程学硕 +5 @taotao 2026-03-20 5/250 2026-03-20 20:16 by JourneyLucky
[考研] 材料与化工专硕调剂 +7 heming3743 2026-03-16 7/350 2026-03-20 19:31 by zhukairuo
[考研] 0856调剂,是学校就去 +8 sllhht 2026-03-19 9/450 2026-03-20 14:25 by 无懈可击111
[论文投稿] 申请回稿延期一个月,编辑同意了。但系统上的时间没变,给编辑又写邮件了,没回复 10+3 wangf9518 2026-03-17 4/200 2026-03-19 23:55 by babero
[考研] 344求调剂 +6 knight344 2026-03-16 7/350 2026-03-18 20:13 by walc
[考研] 0703化学336分求调剂 +6 zbzihdhd 2026-03-15 7/350 2026-03-18 09:53 by zhukairuo
[考研] 290求调剂 +3 p asserby. 2026-03-15 4/200 2026-03-17 16:35 by wangkm
[考博] 26申博 +4 八6八68 2026-03-16 4/200 2026-03-17 13:00 by 轻松不少随
[考研] 一志愿南京大学,080500材料科学与工程,调剂 +4 Jy? 2026-03-16 4/200 2026-03-17 11:02 by gaoqiong
信息提示
请填处理意见