Basically we can have different versions of open mpi running on the same machine, because they can work independent if we install them in different folders.
choose an NSF folder which is common to all machines. Eg: /opt
create a folder called /opt/mpi
create a folder for the version you are planning to install. Eg: /opt/mpi/ompi-4.3.1
(u need root privileges)
Now download tar (.gz) file of the version u r planning to install from openmpi site.
http://www.open-mpi.org/software
(better not to build from the svn checkout version. get the native one)
Now make sure that your system has got the correct versions of autoconf, automake, libtool, gcc, ffortran, g++ etc
(this link will help you to know the requirements: http://www.open-mpi.org/svn/building.php)
if apt-get does not get you the latest or the right version, manually install them.
Eg: from the gnu site: ftp://ftp.gnu.org/gnu/
(manual installation tips:
./configure,
./make all install
you may have to set the correct symbolic links using "ln -s" command at: /usr/bin/ as well.
check versions using --version command. Eg: gcc --version
)
Once your env is ready, start installing open-mpi.
Unzip the tar file
(in the below step, adding prefix is important, otherwise the installation will conflict with the previous or next version installations)
./configure --prefix=/opt/mpi/ompi-4.3.1
(a lot of output)
./make all install
(a lot of output)
If you are lucky, your new open mpi will be installed at /opt/mpi/ompi-xxx folder, without any fuss. Or address the bugs :( and install.
Now, set the PATH and LD_LIBRARY_PATH at .bashrc file to /opt/mpi/ompi-xxx/bin and /opt/mpi/ompi-xxx/lib as follows:
PATH=/opt/mpi/ompi-1.4.3/bin:$PATHNow this open mpi version should be accessible by all nodes in the NFS cluster. Happy open-mping..
export PATH
LD_LIBRARY_PATH=/opt/mpi/ompi-1.4.3/lib
export LD_LIBRARY_PATH
Logout and login again....
No comments:
Post a Comment