Personal tools
Compile OpenMPI for ARGO
Set of instructions to compile OpenMPI in the ARGO acluster, with a given compiler.
Preconditions: make sure the new compiler is installed and configured in the Modules system.
Choose from the Modules system, the compiler of choice.
In the root home, create a temp directory where you will copy the OpenMPI tgz
Untar and go in the directory
Run ./configure with the following options (for Intel):
./configure CC=icc CXX=icpc F77=ifort FC=ifort --prefix=/opt/openmpi/1.5.3/intel/2013 --with-tm=/opt/torque --with-openib=/usr
Notice the output directory given with --prefix: in ARGO there is a convention of storing binaries under /opt/openmpi/OPENMPI_VERSION/COMPILER_NAME/COMPILER_VERSION
Note: for ARGO specify torque and infiniband
Note: should the compiler not be present in Module, you need to set up the env variables for that compiler, including any optimised math library kernels it uses. For example for Intel you have the following env variables (extracted from Module):
prepend-path PATH /opt/intel/2011/bin
prepend-path LD_LIBRARY_PATH /opt/intel/2011/lib/intel64:/opt/intel/2011/mkl/lib/intel64
setenv CC icc
setenv CXX icpc
setenv F77 ifort
setenv FC ifort
setenv LM_LICENSE_FILE /opt/intel/2011/licenses
setenv INTEL_LICENSE_FILE /opt/intel/2011/licenses
setenv INTEL_HOME /opt/intel/2011
setenv INTEL_MKL /opt/intel/2011/mkl/lib/intel64
setenv MKLROOT /opt/intel/2011/mkl
setenv IPPROOT /opt/intel/2011/ipp
setenv FPATH /opt/intel/2011/mkl/include
setenv CPATH /opt/intel/2011/mkl/include:/opt/intel/2011/tbb/include
setenv TBB30_INSTALL_DIR /opt/intel/2011/tbb
setenv INCLUDE /opt/intel/2011/ipp/include:/opt/intel/2011/mkl/include
prepend-path MANPATH /opt/intel/2011/man/en_US
Useful links:
http://www.open-mpi.org/faq/?category=building#installdirs