shuvo
shuvo

Reputation: 1956

How to set the path to the latest Open MPI version?

I'm using Ubuntu 14.04 and the installed Open MPI is 1.6.5; I've installed the Latest Open MPI(4.0.0) following these instructions here and set the installed location by-

./configure --prefix=/$HOME/Downloads/openmpi

Then, to set the path I've added these lines to my .bash_aliases file-

om() {
    export PATH=$PATH:$HOME/Downloads/openmpi/bin
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Downloads/openmpi/lib
}

I've run the om command and then ran mpirun --version but it still outputs-

mpirun (Open MPI) 1.6.5

Report bugs to http://www.open-mpi.org/community/help/

How can I keep and use both the Open MPI versions? Thank you.

Upvotes: 1

Views: 11864

Answers (1)

Gilles Gouaillardet
Gilles Gouaillardet

Reputation: 8395

You do not want to append Open MPI to your paths, but prepend it.

om() {
    export PATH=$HOME/Downloads/openmpi/bin:$PATH
    export LD_LIBRARY_PATH=$HOME/Downloads/openmpi/lib:$LD_LIBRARY_PATH:
}

Upvotes: 1

Related Questions