Open MPI Installation

8 Apr
  • Download Open MPI tar file from HERE
  • unzip it
  • Navigate to the unzipped directory, and type the following
  • ./configure –prefix=/usr/local/openmpi
    make
    make install

  • It will take a while. No need to panic !!!
  • Setting up Environment Variables

  • Add the following environment variable to your ~/.bashrc (if you are using bash) or ~/.tcshrc (if you are using tcsh), where /usr/local is the installation directory:
  • bash:
    export MPI_DIR=/usr/local/openmpi
  • tcsh:
    setenv MPI_DIR /usr/local/openmpi
  • Adding OpenMPI to your Path

    You will also need to add OpenMPI to your path. To view your PATH, type the following:
    echo $PATH
    This will probably look something like PATH=/usr/bin:/bin:/usr/local/bin, which is a list of ‘:’ separated directories of where commands can be executed from without typing the full path. To add OpenMPI to your path add the following to your ~/.bashrc or ~/.tcshrc file (where /usr/local/openmpi is the path where your MPI implementation was installed):
    linux:
    export PATH=/usr/local/openmpi/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/openmpi/lib:$LD_LIBRARY_PATH
    macs:
    export PATH=/usr/local/openmpi/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/openmpi/lib:$LD_LIBRARY_PATH
    export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH

    Advertisements

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    Connecting to %s

    %d bloggers like this: