我已经在 ubuntu 18.04.2 LTS 上安装了 openmpi
$sudo apt-get install libopenmpi-dev
$ mpirun -version
mpirun (Open MPI) 2.1.1
我怎样才能将其降级到 v2.0.2
谢谢你!
答案1
首先删除新软件包
sudo apt remove libopenmpi2 openmpi-common libopenmpi-dev openmpi-bin
添加 Debian 存储库
(我在这里找到了这个版本)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
sudo apt-add-repository 'deb http://ftp.us.debian.org/debian stretch main contrib non-free'
检查可用版本(可选)
apt list -a openmpi-bin
安装旧版本
sudo apt install openmpi-bin=2.0.2-2 openmpi-common=2.0.2-2 libopenmpi-dev=2.0.2-2 libopenmpi2=2.0.2-2
测试
mpirun -version