我使用的是Ubuntu 14.04,安装的Open MPI是1.6.5;我按照这些说明(4.0.0)安装了最新的Open MPIhere,并通过以下方式设置安装位置 -
./configure --prefix=/$HOME/Downloads/openmpi
然后,设置路径我已将这些行添加到我的.bash_aliases
文件中 -
om() {
export PATH=$PATH:$HOME/Downloads/openmpi/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Downloads/openmpi/lib
}
我运行om
命令然后运行mpirun --version
但它仍然输出 -
mpirun (Open MPI) 1.6.5
Report bugs to http://www.open-mpi.org/community/help/
如何保留和使用Open MPI版本?谢谢。
您不希望将Open MPI附加到路径中,而是将其添加到路径中。
om() {
export PATH=$HOME/Downloads/openmpi/bin:$PATH
export LD_LIBRARY_PATH=$HOME/Downloads/openmpi/lib:$LD_LIBRARY_PATH:
}