Open jianyunchao opened 1 year ago
下载 wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.5.tar.gz
解压 tar -zvxf openmpi-4.1.5.tar.gz
进入文件夹配置 cd openmpi-4.1.5/ ./configure --prefix=/usr/local/openmpi-4.1.5
编译安装 make make install
设置环境变量,建议写入~/.bashrc中 export PATH=/usr/local/openmpi-4.1.5/bin:$PATH export LD_LIBRARY_PATH=/usr/local/openmpi-4.1.5/lib:$LD_LIBRARY_PATH
验证
mpirun --version
官网:https://www.open-mpi.org/
下载最新稳定版的tar.gz安装包 https://www.open-mpi.org/software/ompi/v4.1/