scripts for new zoltan version
This commit is contained in:
parent
2161fb2d7e
commit
2a0c0f44a1
2 changed files with 115 additions and 0 deletions
45
packages/numlib/zoltan/3.81
Executable file
45
packages/numlib/zoltan/3.81
Executable file
|
@ -0,0 +1,45 @@
|
|||
#!/bin/sh
|
||||
# sit class file
|
||||
#
|
||||
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
||||
#
|
||||
# laki sit command:
|
||||
# PREFIX_BASE=/opt COMPILER=gnu COMPILER_VERSION=4.8.1 MPI=openmpi MPI_VERSION=1.6.5 ./sit numlib/zoltan/3.81
|
||||
#
|
||||
# hermit sit command:
|
||||
# PREFIX_BASE=/opt/hlrs COMPILER=pgi COMPILER_VERSION=13.10.0 ./sit numlib/zoltan/3.81
|
||||
|
||||
CATEGORY="numlib"
|
||||
PACKAGE="zoltan"
|
||||
VERSION="3.81"
|
||||
URL="http://www.labri.fr/perso/pelegrin/scotch/"
|
||||
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
|
||||
|
||||
# Archive A and package name P
|
||||
A=${PACKAGE}_distrib_v${VERSION}.tar.gz
|
||||
P=Zoltan_v${VERSION}
|
||||
|
||||
case $PLATFORM in
|
||||
hermit|hermit1)
|
||||
echo "Building for hermit."
|
||||
CONFIGURE_OPTS="--with-id-type=ullong CC=cc CXX=CC"
|
||||
;;
|
||||
laki|*)
|
||||
echo "Building for laki."
|
||||
CONFIGURE_OPTS="--with-id-type=ullong CC=mpicc CXX=mpicxx"
|
||||
;;
|
||||
esac
|
||||
|
||||
src_pretest() {
|
||||
sit_info "Checking zoltan ..."
|
||||
make check || sit_fail "Checking zoltan failed"
|
||||
sit_info "Building examples ..."
|
||||
make examples || sit_fail"Building examples failed"
|
||||
}
|
||||
|
||||
src_postinst() {
|
||||
# mv examples to target (not included in any make install version)
|
||||
mv $BUILDDIR/example $PREFIX
|
||||
# mv documentation to target (not included in make install)
|
||||
mv $SRCDIR/doc $PREFIX
|
||||
}
|
70
packages/numlib/zoltan/3.81-parmetis-4.0.3-scotch-6.0.0
Executable file
70
packages/numlib/zoltan/3.81-parmetis-4.0.3-scotch-6.0.0
Executable file
|
@ -0,0 +1,70 @@
|
|||
#!/bin/sh
|
||||
# sit class file
|
||||
#
|
||||
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
|
||||
#
|
||||
# laki sit command:
|
||||
# PREFIX_BASE=/opt COMPILER=gnu COMPILER_VERSION=4.8.1 MPI=openmpi MPI_VERSION=1.6.5 ./sit numlib/zoltan/3.81-parmetis-4.0.3-scotch-6.0.0
|
||||
#
|
||||
# hermit sit command:
|
||||
# PREFIX_BASE=/opt/hlrs COMPILER=pgi COMPILER_VERSION=13.10.0 ./sit numlib/zoltan/3.81-parmetis-4.0.3-scotch-6.0.0
|
||||
|
||||
CATEGORY="numlib"
|
||||
PACKAGE="zoltan"
|
||||
VERSION="3.81"
|
||||
ADD_PACKAGES="parmetis-4.0.3-scotch-6.0.0"
|
||||
URL="http://www.labri.fr/perso/pelegrin/scotch/"
|
||||
INSTALLER="Elke Flehmig <flehmig@hlrs.de>"
|
||||
|
||||
# Archive A and package name P
|
||||
A=${PACKAGE}_distrib_v${VERSION}.tar.gz
|
||||
P=Zoltan_v${VERSION}
|
||||
|
||||
case $PLATFORM in
|
||||
hermit|hermit1)
|
||||
echo "Building for hermit."
|
||||
# target prefix - show compiler version before additional packages:
|
||||
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-${COMPILER}-${COMPILER_VERSION}-${ADD_PACKAGES}"
|
||||
|
||||
SCOTCH=numlib/scotch/6.0.0
|
||||
PARMETIS=numlib/parmetis/4.0.3
|
||||
METIS=numlib/metis/5.1.0
|
||||
CC_CMD=cc
|
||||
CXX_CMD=CC
|
||||
|
||||
CONFIGURE_OPTS="CC=cc CXX=CC --with-id-type=ullong --with-scotch --with-scotch-incdir=$PREFIX_BASE/$SCOTCH/include --with-scotch-libdir=$PREFIX_BASE/$SCOTCH/lib --with-parmetis --with-parmetis-incdir=$PREFIX_BASE/$PARMETIS/include --with-parmetis-libdir=$PREFIX_BASE/$PARMETIS/lib --with-libdirs=\"-L$PREFIX_BASE/$METIS/lib\" --with-incdirs=\"-I$PREFIX_BASE/$METIS/include\" --with-libs=\"-lscotch\""
|
||||
;;
|
||||
laki|*)
|
||||
echo "Building for laki."
|
||||
# target prefix - show mpi and compiler version before additional packages:
|
||||
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-${MPI}-${MPI_VERSION}-${ADD_PACKAGES}"
|
||||
|
||||
SCOTCH=numlib/scotch/6.0.0-openmpi-1.6.5-gnu-4.8.1
|
||||
PARMETIS=numlib/parmetis/4.0.3-openmpi-1.6.5-gnu-4.8.1
|
||||
METIS=numlib/metis/5.1.0
|
||||
CC_CMD=mpicc
|
||||
CXX_CMD=mpicxx
|
||||
|
||||
CONFIGURE_OPTS="CC=mpicc CXX=mpicxx --with-id-type=ullong --with-scotch --with-scotch-incdir=$PREFIX_BASE/$SCOTCH/include --with-scotch-libdir=$PREFIX_BASE/$SCOTCH/lib --with-parmetis --with-parmetis-incdir=$PREFIX_BASE/$PARMETIS/include --with-parmetis-libdir=$PREFIX_BASE/$PARMETIS/lib --with-libdirs=\"-L$PREFIX_BASE/$METIS/lib\" --with-incdirs=\"-I$PREFIX_BASE/$METIS/include\" --with-libs=\"-lscotch\""
|
||||
;;
|
||||
esac
|
||||
|
||||
src_pretest() {
|
||||
sit_info "Checking zoltan ..."
|
||||
make check || sit_fail "Checking zoltan failed"
|
||||
}
|
||||
|
||||
src_postinst() {
|
||||
# as examples and doc are already installed with zoltan, set a link:
|
||||
cd $PREFIX
|
||||
case $PLATFORM in
|
||||
hermit|hermit1)
|
||||
ln -s ${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-$COMPILER-$COMPILER_VERSION/example
|
||||
ln -s ${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-$COMPILER-$COMPILER_VERSION/doc
|
||||
;;
|
||||
laki|*)
|
||||
ln -s ${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-$MPI-$MPI_VERSION/example
|
||||
ln -s ${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-$MPI-$MPI_VERSION/doc
|
||||
;;
|
||||
esac
|
||||
}
|
Loading…
Reference in a new issue