sit/packages/mpi/mvapich2/mvapich2-2.1a

39 lines
886 B
Text
Raw Permalink Normal View History

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2014
#
CATEGORY="mpi"
PACKAGE="mvapich2"
VERSION="2.1a"
URL="http://mvapich.cse.ohio-state.edu/overview/mvapich2/"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.gz
P=${PACKAGE}-${VERSION}
# Circumvent problems with parallel build
#MAKEOPTS="-j1"
# Other interesting configure options:
CONFIGURE_OPTS="\
--enable-shared \
--enable-sharedlibs=gcc \
--with-file-system=lustre \
--with-device=ch3:nemesis:ib \
"
if [ $COMPILER == "intel" ]; then
INTEL_LIB_DIR="$( (cd $(dirname $(which icc))/../../compiler/lib/intel64/; pwd) )"
LDFLAGS+=" -Wl,-rpath,$INTEL_LIB_DIR"
export LDFLAGS
fi
src_prepare () {
patch -p1 < $SCLASS_DIR/$SCLASSFILE-0001.patch
patch -p1 < $SCLASS_DIR/$SCLASSFILE-0002.patch
}