Ubuntu 16.04安装OpenMPI
Ubuntu 16.04安装OpenMPI环境
安装环境
- Ubuntu 16.04
- Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz
- openmpi-1.8.0
下载安装包
1 | wget http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.0.tar.gz |
解压缩
1 | tar zxvf openmpi-1.8.0.tar.gz |
配置安装文件
1 | # 默认至目录:/usr/local/lib,可自定义安装目录,加参数--prefix="/usr/local/openmpi" |
安装openMPI
1 | sudo make |
配置环境变量
1 | sudo gedit ~/.bashrc |
测试
1 | cd openmpi-1.8.0/examples |
Ubuntu 16.04安装OpenMPI