added parts for cray installation

This commit is contained in:
Elke Flehmig 2013-04-22 09:48:04 +00:00 committed by Christoph Niethammer
parent d20de5fd01
commit 616362b6f3

View file

@ -11,7 +11,14 @@ URL="http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download"
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
# cmake 2.8 or higher is required
case $PLATFORM in
hermit|hermit1)
module load tools/cmake/2.8.10
;;
laki)
module load tools/cmake/2.8.10.2
;;
esac
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.gz
@ -24,6 +31,15 @@ src_prepare() {
sit_info "patching metis.h with 64bit width"
cd $SRCDIR/metis/include
patch metis.h < $SRC_POOL/4.0.2_metis.h_patch
# on cray, replace mpicc and mpicxx with cray mpi compiler commands
case $PLATFORM in
hermit|hermit1)
sit_info "patching Makefile with cray mpi compiler on hermit"
cd $SRCDIR
patch Makefile < $SRC_POOL/4.0.2_Makefile_patch_cray
;;
esac
}
src_configure() {