opemmpi安装

Posted code_____monkey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于opemmpi安装的主要内容,如果未能解决你的问题,请参考以下文章

安装包怎么下载安装

MySQL免安装版与安装版区别

下载完安装包怎么安装

分清全局安装与本地安装

安装一个软件提示,该安装包未包含任何证书,安装失败,怎么解决

把两个安装文件做成一个安装包,怎么做