OpenMPI installation

  • Download Open MPI source code openmpi-1.3.1.tar.gz and
    Uncompress openmpi-1.4.1.tar.gz in your home directory on the desktop and compile it
    tar -zxvf openmpi-1.4.1.tar.gz
    cp openmpi-1.4.1
    cd openmpi-1.4.1
    chmod 755
    apt-get install g++ libc6-dev
    make install

  • Copy the installation onto the node
    cd /usr/local
    tar -cvf openmpi.tar openmpi
    scp openmpi.tar  node01:/usr/local 

  • Uncompress OpenMPI on the node in directory /usr/local.
    cd /usr/local
    tar -xvf openmpi.tar

  • A user, who runs MPI, should be able to SSH between the desktop and the node without password and have the home directory located on the NFS shared system. If you have done the NFS exercises, you should have several user accounts with home directories on the NFS file system. Otherwise, set the node as NFS server and the desktop as NFS client (see lesson 6), export the file system, for example /home/NFS, on the node. Mount it onto the desktop. Create a user account, for example mary with home directory on the NFS file system and set SSH public/private key authentication with empty passphrase (see lesson 3).

  • Add the following lines in the beginning of the user's .bashrc of the user who will run MPI:
    export PATH=/usr/local/openmpi/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/openmpi/lib:$LD_LIBRARY_PATH