From afa2ff0a2784e0b775116599e20f0334b4c887ce Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 26 Jan 2016 14:04:10 +0000 Subject: [PATCH] Sit class file for extra 3.1.0. --- packages/performance/extrae/extrae-3.1.0 | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 packages/performance/extrae/extrae-3.1.0 diff --git a/packages/performance/extrae/extrae-3.1.0 b/packages/performance/extrae/extrae-3.1.0 new file mode 100644 index 0000000..ebcf248 --- /dev/null +++ b/packages/performance/extrae/extrae-3.1.0 @@ -0,0 +1,58 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2014 +# + +CATEGORY="performance" +PACKAGE="extrae" +VERSION="3.1.0" +URL="http://www.bsc.es/computer-sciences/extrae" +INSTALLER="Christoph Niethammer " +: ${MPI_DIR:=$MPICH_DIR} # on cray MPI_DIR is not defined, but MPICH_DIR +echo "MPI_DIR=" $MPI_DIR + +# Archive A and package name P +A=${PACKAGE}-${VERSION}.tar.bz2 +P=${PACKAGE}-${VERSION} + +enable_papi=${enable_papi:=1} + +MAKEOPTS="-j1" + +# Other interesting configure options: +#--disable-doc \ +CONFIGURE_OPTS="\ + --with-mpi=$MPI_DIR \ + --without-pacx \ + --enable-sampling \ + --enable-posix-clock \ + --without-unwind \ + --without-dyninst \ + " +case $PLATFORM in + hornet|hazelhen) + CFLAGS+=" -dynamic" + ;; +esac + + +# use PAPI +if [ $enable_papi != 0 ] ; then + PAPI_DIR=$(dirname $(dirname $(which papi_avail))) + CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR" +else + CONFIGURE_OPTS="$CONFIGURE_OPTS --without-papi" +fi + +BUILDDIR="${SRCDIR}" + +#src_prepare () { +# patch -p0 < $SCLASS_DIR/$SCLASSFILE-0000.patch +#} + +src_install() { + mkdir -p $PREFIX + make install || sit_fail "Installation failed" +} +