2020-12-15 13:00:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# sit class file
|
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2019
|
|
|
|
#
|
|
|
|
|
|
|
|
CATEGORY="performance"
|
|
|
|
PACKAGE="extrae"
|
|
|
|
VERSION="3.8.3"
|
|
|
|
URL="http://www.bsc.es/computer-sciences/extrae"
|
|
|
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
|
|
|
|
|
|
|
# Archive A and package name P
|
|
|
|
A=${PACKAGE}-${VERSION}-src.tar.bz2
|
|
|
|
P=${PACKAGE}-${VERSION}
|
|
|
|
|
|
|
|
enable_papi=${enable_papi:=1}
|
|
|
|
|
2022-08-04 09:06:44 +00:00
|
|
|
#module unload binutils
|
|
|
|
module list
|
|
|
|
|
2020-12-15 13:00:35 +00:00
|
|
|
# Other interesting configure options:
|
|
|
|
#--disable-doc \
|
|
|
|
sit_info "MPI_DIR $MPI_DIR"
|
2022-08-04 09:06:44 +00:00
|
|
|
MPI_DIR=${MPI_ROOT:=$(dirname $(dirname $(which mpicc)))}
|
2020-12-15 13:00:35 +00:00
|
|
|
CONFIGURE_OPTS="\
|
|
|
|
--with-mpi=$MPI_DIR \
|
|
|
|
--enable-sampling
|
|
|
|
--enable-posix-clock \
|
|
|
|
--without-unwind \
|
|
|
|
--without-dyninst \
|
|
|
|
"
|
|
|
|
CFLAGS+="-g -O2 -Wno-error"
|
|
|
|
CXXFLAGS+="-g -O2 -Wno-error"
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
hawk)
|
2022-08-04 09:06:44 +00:00
|
|
|
module load papi libunwind binutils
|
2020-12-15 13:00:35 +00:00
|
|
|
BINUTILS_DIR=${BINUTILS_ROOT:=$(dirname $(dirname $(which ld)))}
|
|
|
|
CONFIGURE_OPTS+="\
|
2022-08-04 09:06:44 +00:00
|
|
|
--with-binutils=$BINUTILS_DIR \
|
2020-12-15 13:00:35 +00:00
|
|
|
--with-unwind=$LIBUNWIND_ROOT \
|
|
|
|
"
|
|
|
|
;;
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|