From ff576bd47f77984ffc30e288e0f50a34d6d1e7df Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Wed, 21 Aug 2019 14:50:08 +0000 Subject: [PATCH] Added sit class file for extrae-3.7.1 --- packages/performance/extrae/extrae-3.7.1 | 63 ++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 packages/performance/extrae/extrae-3.7.1 diff --git a/packages/performance/extrae/extrae-3.7.1 b/packages/performance/extrae/extrae-3.7.1 new file mode 100644 index 0000000..663fdc8 --- /dev/null +++ b/packages/performance/extrae/extrae-3.7.1 @@ -0,0 +1,63 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2019 +# + +CATEGORY="performance" +PACKAGE="extrae" +VERSION="3.7.1" +URL="http://www.bsc.es/computer-sciences/extrae" +INSTALLER="Christoph Niethammer " + +# Archive A and package name P +A=${PACKAGE}-${VERSION}-src.tar.bz2 +P=${PACKAGE}-${VERSION} + +enable_papi=${enable_papi:=1} + +# Other interesting configure options: +#--disable-doc \ +sit_info "MPI_DIR $MPI_DIR" +CONFIGURE_OPTS="\ + --with-mpi=$MPI_DIR \ + --with-mpi-headers=${MPI_INC_DIR:=$MPI_DIR/lib} + --with-mpi-libs=${MPI_LIB_DIR:=$MPI_DIR/lib} + --enable-sampling + --enable-posix-clock \ + --without-unwind \ + --without-dyninst \ + " +case $PLATFORM in + hornet|hazelhen) + CFLAGS+=" -dynamic" + LDFLAGS+=" -dynamic -lrt" + CONFIGURE_OPTS+=" --disable-xmltest" + CONFIGURE_OPTS+=" --with-libgomp-version=4.9" + CONFIGURE_OPTS+=" --enable-check-cray-xt" + CONFIGURE_OPTS+=" --build=x86_64-pc-linux" + CONFIGURE_OPTS+=" --host=x86_64-pc-linux" + ;; + laki) + if [ $COMPILER == "intel" ] ; then + CONFIGURE_OPTS+=" --with-libgomp-version=4.2" + fi +esac + + +if [ $enable_papi != 0 ] ; then + PAPI_DIR=${PAPI_DIR:=$(dirname $(dirname $(which papi_avail)))} + CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR" + CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi-headers=${PAPI_INC_DIR:=$PAPI_DIR/include}" + CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi-libs=${PAPI_LIB_DIR:=$PAPI_DIR/lib}" +else + CONFIGURE_OPTS="$CONFIGURE_OPTS --without-papi" +fi + +BUILDDIR="${SRCDIR}" + +src_install() { + mkdir -p $PREFIX + make install || sit_fail "Installation failed" +} +