2011-07-07 23:24:42 +00:00
|
|
|
#!/bin/sh
|
2011-07-10 21:12:25 +00:00
|
|
|
# sit class file
|
2011-07-07 23:24:42 +00:00
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
|
|
|
|
#
|
|
|
|
|
|
|
|
CATEGORY="performance"
|
|
|
|
PACKAGE="extrae"
|
|
|
|
VERSION="2.1.1-p2"
|
|
|
|
URL="http://www.bsc.es"
|
|
|
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
|
|
|
|
|
|
|
# Archive A and package name P
|
|
|
|
A=${PACKAGE}-${VERSION}.tar.bz2
|
|
|
|
P=${PACKAGE}-${VERSION}
|
|
|
|
|
|
|
|
enable_papi=${enable_papi:=0}
|
|
|
|
|
|
|
|
MAKEOPTS="-j1"
|
|
|
|
|
|
|
|
# Other interesting configure options:
|
|
|
|
#--disable-doc \
|
|
|
|
CONFIGURE_OPTS="\
|
|
|
|
--with-mpi=$MPI_DIR \
|
|
|
|
--enable-sampling \
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
# use PAPI
|
|
|
|
if [ $enable_papi != 0 ] ; then
|
|
|
|
module load system/perfctr system/papi
|
|
|
|
which papi_avail
|
|
|
|
PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
|
|
|
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR"
|
|
|
|
fi
|
|
|
|
|
|
|
|
BUILDDIR="${SRCDIR}"
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
mkdir -p $PREFIX
|
|
|
|
make install || sit_fail "Installation failed"
|
|
|
|
}
|