- open mpi官网地址:https://www.open-mpi.org/
- open mpi文档地址:https://docs.open-mpi.org/
1.下载
wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.5.tar.gz tar -xcvf openmpi-4.1.5.tar.gz
2.安装
cd openmpi-4.1.5 mkdir build cd build ./configure --prefix=/usr/local/openmpi make make install
3.配置环境变量
MPI_HOME=/usr/local/openmpi export PATH=${MPI_HOME}/bin:$PATH export LD_LIBRARY_PATH=${MPI_HOME}/lib:$LD_LIBRARY_PATH export MANPATH=${MPI_HOME}/share/man:$MANPATH
4.运行例子
cd openmpi-4.0.4/examples make mpirun -np 4 hello_c
输出:
标签:mpi,编译,openmpi,HOME,PATH,MPI,open From: https://www.cnblogs.com/Netsharp/p/17242504.html