Sit class file for extrae 3.4.3.
This commit is contained in:
parent
66e37bbe7a
commit
c39d93be4a
1 changed files with 62 additions and 0 deletions
62
packages/performance/extrae/extrae-3.4.3
Normal file
62
packages/performance/extrae/extrae-3.4.3
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# sit class file
|
||||||
|
#
|
||||||
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2017
|
||||||
|
#
|
||||||
|
|
||||||
|
CATEGORY="performance"
|
||||||
|
PACKAGE="extrae"
|
||||||
|
VERSION="3.4.3"
|
||||||
|
URL="http://www.bsc.es/computer-sciences/extrae"
|
||||||
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
||||||
|
: ${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"
|
||||||
|
|
||||||
|
[[ -z "${MPI_DIR// }" ]] || sit_fail "Installation requires MPI. No MPI installation found."
|
||||||
|
|
||||||
|
|
||||||
|
# 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)))
|
||||||
|
[ -z "${PAPI_DIR// }" ] || sit_fail "PAPI diretory not found!"
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue