Lockless Inc

MPI Installation

To install the Lockless MPI libraries, you must first copy them to the correct location in your file system.

This location depends on which linux distribution you use.

The correct location is:
  • Debian or Ubuntu based systems:
    64bit: /usr/lib

  • Redhat, Suse or Gentoo based systems:
    64bit: /usr/lib64
Become root
> su
"root password"

Copy the debug library to the correct location (here we assume /usr/lib)
> cp noinfiniband/liblldebugmpi.so.1.1 /usr/lib

Go to that location (here we assume /usr/lib)
> cd /usr/lib

Make the two symlinks to properly install the library
> ln -sf liblldebugmpi.so.1.1 liblldebugmpi.so
> ln -sf liblldebugmpi.so.1.1 liblldebugmpi.so.1


Next choose if you want to install with infiniband support or not. Infiniband support requires installation of the ibverbs library to work.

Copy the correct one to the lib directory. i.e.
> cd <directory with right library>
> cp libllmpi.so.1.1 /usr/lib
> cd /usr/lib


Make the two symlinks to properly install the library
> ln -sf libllmpi.so.1.1 libllmpi.so
> ln -sf libllmpi.so.1.1 libllmpi.so.1


Regenerate your library cache for the directory you are in (assuming /usr/lib)
> ldconfig -n /usr/lib

Once the libraries are installed, copy the executables into a binary directory in your PATH. /usr/local/bin or /opt/bin are good choices.
> cd <download directory>
> cp mpiexec /usr/local/bin
> cp mpicpp /usr/local/bin
> cp mpicc /usr/local/bin


Make the executables runnable:
> chmod +x /usr/local/bin/mpiexec
> chmod +x /usr/local/bin/mpicpp
> chmod +x /usr/local/bin/mpicc


mpicc is a shell script. You may want to tweak it a bit to match your build system. By default it uses gcc as a compiler. Change the CC shell variable to another C compiler to use it instead.

Copy the header files to an include directory:
> cp mpi.h /usr/local/include
> cp pmpi.h /usr/local/include


Now, you may choose to install the man pages if you wish. To keep them separate from system man pages, using /usr/local/share/man is a good choice. (This directory should be one of the ones listed in /etc/manpath.config)
> cd /usr/local/share/man

Make sure man1 and man3 subdirectories exist. If not, make them:
> ls
> mkdir man1
> mkdir man3


Copy man pages for MPI executables:
> cp <download directory>/man/man1/* man1/

Copy man pages for MPI library functions:
> cp <download directory>/man/man3/* man3/

Finally, update the man database:
> mandb

Done - all installed
> exit

To uninstall Lockless MPI, simply remove the libraries from the lib directory, executables from the bin directory, and delete the man pages.
About Us Returns Policy Privacy Policy Send us Feedback
Company Info | Product Index | Category Index | Help | Terms of Use
Copyright © Lockless Inc All Rights Reserved.
My Account View Cart