1、下载:https://www.open-mpi.org/software/ompi/v1.6/
2、安装
tar -zxvf openmpi-4.0.0.tar.gz
cd openmpi-4.0.0/
./configure --prefix=/home/xiongcx/files/openmpi_install --with-cuda
make -j20
make install -j20
3、验证
cd openmpi-4.0.0/examples
mpicc -o hello_c hello_c.c
mpirun -n 4 ./hello_c
未报错即成功
参考:
https://www.linuxidc.com/Linux/2015-04/116448.htm
https://blog.csdn.net/zhangjing11292/article/details/51096625