opemmpi安装

openmpi 下载

Open MPI: Open Source High Performance Computinghttps://www.open-mpi.org/点击download

 下载指定版本

解压后进入目录

./configure --prefix=/public/yindata/rdij9/openmpi215 --disable-builtin-atomics --without-verbs

make all install -j
注:这里用-j是为了通过并行编译降低编译过程耗时。但如果编译中途出现诡异报错,请去掉-j再试。

安装参考:

量子化学程序ORCA的安装方法 - 思想家公社的门口:量子化学·分子模拟·二次元量子化学程序ORCA的安装方法 文/Sobereva@北京科音 First release 2018-Dec-21  Last update: 2021-May-3 ...http://sobereva.com/451要点:

4.0版本以及以前版本,编译时带 --with-verbs 否则会出现以下报错 initializing an OpenFabrics device:结决如下(FAQ:Tuning the run-time characteristics of MPI InfiniBand, RoCE, and iWARP communications):


53. I'm getting errors about "initializing an OpenFabrics device" when running v4.0.0 with UCX support enabled. What should I do?
The short answer is that you should probably just disable verbs support in Open MPI.

The messages below were observed by at least one site where Open MPI v4.0.0 was built with support for InfiniBand verbs (--with-verbs), OFA UCX (--with-ucx), and CUDA (--with-cuda) with applications running on GPU-enabled hosts:

WARNING: There was an error initializing an OpenFabrics device.

Local host: c36a-s39 Local device: mlx4_0

and

By default, for Open MPI 4.0 and later, infiniband ports on a device are not used by default. The intent is to use UCX for these devices. You can override this policy by setting the btl_openib_allow_ib MCA parameter to true.

Local host: c36a-s39 Local adapter: mlx4_0 Local port: 1

These messages are coming from the openib BTL. As noted in the messages above, the openib BTL (enabled when Open MPI is configured --with-verbs) is deprecated in favor of the UCX PML, which includes support for OpenFabrics devices. The openib BTL is therefore not needed.

You can disable the openib BTL (and therefore avoid these messages) in a few different ways:

Configure Open MPI --without-verbs. This will prevent building the openib BTL in the first place.
Disable the openib BTL via the btl MCA param (see this FAQ item for information on how to set MCA params). For example,
1
shell$ mpirun --mca btl '^openib' ...
Note that simply selecting a different PML (e.g., the UCX PML) is not sufficient to avoid these messages. For example:

1
shell$ mpirun --mca pml ucx ...
You will still see these messages because the openib BTL is not only used by the PML, it is also used in other contexts internally in Open MPI. Hence, it is not sufficient to simply choose a non-OB1 PML; you need to actually disable the openib BTL to make the messages go away.

环境变量配置 .bashrc 增加


##openmpi
export PATH=$PATH:/public/yindata/rdij9/openmpi215/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/public/yindata/rdij9/openmpi215/lib
 

source .bashrc

测试:

mpiexec -V  查看版本

cd  /public/yindata/rdij9/openmpi-2.1.5/examples/

解压目录/example

make 

./hello_c

 

或者

cd examples

make

mpirun -np 2 hello_c

 

其他:

openmpi 安装完成后 echo 0 > /proc/sys/kernel/yama/ptrace_scope

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值