OpenMPI安装
操作步骤
- 使用PuTTY工具,以root用户登录服务器。
- 执行以下命令安装系统依赖包。
yum install libxml2* systemd-devel.aarch64 numa* -y
- 执行以下命令解压OpenMPI安装包。
tar -zxvf openmpi-4.0.3.tar.gz
- 执行以下命令进入源码目录。
cd openmpi-4.0.3
- 执行以下命令编译配置OpenMPI。
./configure --prefix=/path/to/OPENMPI --enable-pretty-print-stacktrace --enable-orterun-prefix-by-default --with-knem=/opt/knem-1.1.3.90mlnx1/ --with-hcoll=/opt/mellanox/hcoll/ --with-cma --with-ucx --enable-mpi1-compatibility
- 执行以下命令编译安装OpenMPI。
make -j 16 make install
- 执行以下命令加载环境变量。
export PATH=/path/to/OPENMPI/bin:$PATH export LD_LIBRARY_PATH=/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
父主题: 集群场景环境搭建