sit/packages/performance/extrae-2.1.1

41 lines
827 B
Groff
Raw Normal View History

2011-03-03 08:41:00 +00:00
#!/bin/sh
# sit class file
2011-03-03 08:41:00 +00:00
#
2011-03-04 15:35:09 +00:00
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
2011-03-03 08:41:00 +00:00
#
CATEGORY="performance"
PACKAGE="extrae"
VERSION="2.1.1"
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}
2011-03-04 17:44:08 +00:00
enable_papi=${enable_papi:=0}
2011-03-03 08:41:00 +00:00
2011-03-04 17:44:08 +00:00
# Other interesting configure options:
2011-03-03 08:41:00 +00:00
CONFIGURE_OPTS="\
--with-mpi=$MPI_DIR \
--enable-sampling \
"
2011-03-04 17:44:08 +00:00
2011-03-03 08:41:00 +00:00
# use PAPI
if [ $enable_papi != 0 ] ; then
module load system/perfctr system/papi
PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR"
fi
2011-03-04 17:44:08 +00:00
# currently extrae has to be build in the source directory
BUILDDIR="${SRCDIR}"
2011-03-03 08:41:00 +00:00
src_install() {
mkdir -p $PREFIX
make install || sit_fail "Installation failed"
}