Skip to content

Installing Open MPI on a Linux Cluster

Randy McDermott edited this page Apr 3, 2017 · 2 revisions

Installing Open MPI using a package manager

To install Open MPI on Ubuntu Linux use the following command (other systems use yum or rpm)

sudo apt-get install openmpi-bin

Test the MPI version of FDS by typing

fds

at the command prompt and you should see the version number of FDS print with no errors.

It has been reported that the openmpi installer for Ubuntu 13.10 results in errors like the following when running fds_mpi

/opt/FDS/FDS6/bin/fds_mpi: error while loading shared libraries: libmpi_f77.so.1: cannot open shared object file: No such file or directory 

These errors are occurring because the installer did not provide the files libmpi_f77.so.1 and libmpi.so.1. To fix this, type the following

sudo ln -s /usr/lib/libmpi_f77.so.0 /usr/lib/libmpi_f77.so.1
sudo ln -s /usr/lib/libmpi.so.0 /usr/lib/libmpi.so.1

Installing Open MPI from Pre-Compiled Binaries

  1. Download the latest 64-bit compiled version of the Open MPI libraries for Linux.

  2. Copy the file openmpi...linux...tar.gz to the /shared directory

  3. cd to /shared and run

    sudo tar xvzf openmpi...linux...tar.gz
    
  4. Test the MPI version of FDS by typing

    fds
    

    You should see the version number of FDS print with no errors.

Compiling Open MPI and FDS

  1. Install the Linux Intel C/C++ and Fortran compilers.

  2. Download and extract the latest version of Open MPI.

  3. cd to the directory that you extracted Open MPI to.

  4. Install Open MPI using the Intel compiler suite; configure and install using:

    source /opt/intel/composerxe/bin/compilervars.sh intel64
    ./configure --prefix /shared/openmpi_64 CC=icc CXX=icpc F77=ifort FC=ifort CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64
    

    then type

    make
    sudo make install
    
  5. Build the FDS Linux version from the firemodels/fds repository:

    cd Build/mpi_intel_linux_64
    ./make_fds.sh
    
Clone this wiki locally