24小时热门版块排行榜    

查看: 1920  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料学硕318求调剂 +7 February_Feb 2026-03-01 9/450 2026-03-01 16:25 by veteran-FG
[考研] 0856求调剂285 +7 吕仔龙 2026-02-28 7/350 2026-03-01 16:04 by hmn_wj
[考研] 0856调剂 +4 刘梦微 2026-02-28 4/200 2026-03-01 15:35 by 吸一口猫气
[考研] 304求调剂 +6 曼殊2266 2026-02-28 7/350 2026-03-01 15:14 by wjLi2017
[考研] 303求调剂 +4 今夏不夏 2026-03-01 4/200 2026-03-01 14:46 by 嘟嘟小浣熊
[考研] 一志愿中南大学理学化学 +3 15779376950 2026-03-01 4/200 2026-03-01 14:27 by 15779376950
[考研] 材料284求调剂,一志愿郑州大学英一数二专硕 +10 想上岸的土拨鼠 2026-02-28 10/500 2026-03-01 14:12 by yc258
[考研] 0856材料求调剂 +3 麻辣鱿鱼 2026-02-28 3/150 2026-03-01 14:06 by yc258
[考研] 317一志愿华南理工电气工程求调剂 +6 Soliloquy_Q 2026-02-28 11/550 2026-03-01 11:14 by 歌liekkas
[考研] 311求调剂 +9 南迦720 2026-02-28 10/500 2026-03-01 10:55 by sunny81
[考博] 博士自荐 +4 kkluvs 2026-02-28 4/200 2026-03-01 10:19 by 馥安馥安
[论文投稿] Optics letters投稿被拒求助 30+3 luckyry 2026-02-26 4/200 2026-03-01 09:06 by babero
[考研] 298求调剂 +5 axyz3 2026-02-28 5/250 2026-03-01 06:45 by 刘兵
[考研] 材料调剂 +4 爱擦汗的可乐冰 2026-02-28 4/200 2026-03-01 00:38 by 猫猫球alter
[考研] 化工专硕348,一志愿985求调剂 +4 弗格个 2026-02-28 6/300 2026-02-28 22:00 by wang_dand
[考博] 26申博 +4 想申博! 2026-02-26 4/200 2026-02-28 21:37 by limorning
[考研] 264求调剂 +3 巴拉巴拉根556 2026-02-28 3/150 2026-02-28 21:31 by gaoxiaoniuma
[考研] 085600材料工程一志愿中科大总分312求调剂 +8 吃宵夜1 2026-02-28 10/500 2026-02-28 20:27 by L135790
[考研] 0856材料求调剂 +10 hyf hyf hyf 2026-02-28 11/550 2026-02-28 18:50 by 无际的草原
[考研] 265分求调剂不调专业和学校有行学上就 +4 礼堂丁真258 2026-02-28 6/300 2026-02-28 16:18 by 求调剂zz
信息提示
请填处理意见