Open MPI 2.1.3 (gcc, intel)

ウェブページ

https://www.open-mpi.org/

バージョン

2.1.3

ビルド環境

gcc 4.8.5
Intel Compiler 18.0.2
PBS Pro 14.1.0
libpsm2 10.3.3
libpsm2-devel 10.3.3

必要なファイル

openmpi-2.1.3.tar.bz2

ビルド手順

#!/bin/sh

VERSION=2.1.3
WORKDIR=/work/users/${USER}
TARBALL=/home/users/${USER}/openmpi-${VERSION}.tar.bz2
PBSROOT=/local/apl/lx/pbs14

PARALLEL=12

#-----------------------------------------------------------------------
umask 0022

cd ${WORKDIR}
if [ -d openmpi-${VERSION} ]; then
  mv openmpi-${VERSION} openmpi_erase
  rm -rf openmpi-${VERSION} &
fi

tar jxf ${TARBALL}
cd openmpi-${VERSION}

# GCC
INSTALLDIR=/local/apl/lx/openmpi213
mkdir rccs-gcc && cd rccs-gcc
../configure --prefix=${INSTALLDIR} \
             --with-tm=${PBSROOT} \
             --with-psm2
make -j ${PARALLEL} && make install && make check
cd ../

# INTEL
INSTALLDIR=/local/apl/lx/openmpi213-intel
mkdir rccs-intel && cd rccs-intel
CC=icc CXX=icpc FC=ifort \
  ../configure --prefix=${INSTALLDIR} \
               --with-tm=${PBSROOT} \
               --with-psm2
make -j ${PARALLEL} && make install && make check
cd ../

Changelog

  • (2018/7/10)pbsのライブラリが実行時にも必要だったため、修正