2019-10-18 09:54:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# sit class file
|
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2018
|
|
|
|
#
|
|
|
|
|
|
|
|
CATEGORY="performance"
|
|
|
|
PACKAGE="scorep"
|
2020-03-17 11:21:38 +00:00
|
|
|
VERSION="6.0"
|
2019-10-18 09:54:09 +00:00
|
|
|
URL="http://www.vi-hps.org/projects/score-p"
|
|
|
|
INSTALLER="Jose Gracia <gracia@hlrs.de>"
|
|
|
|
|
|
|
|
|
|
|
|
# Archive A and package name P
|
|
|
|
A="${PACKAGE}-${VERSION}.tar.gz"
|
|
|
|
P="${PACKAGE}-${VERSION}"
|
|
|
|
|
|
|
|
|
|
|
|
# Other interesting configure options:
|
|
|
|
#--enable-sampling \
|
|
|
|
CONFIGURE_OPTS=" \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
"
|
|
|
|
|
|
|
|
#CONFIGURE_OPTS+=" --with-nocross-compiler-suite=intel"
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
vulcan|laki|slc)
|
|
|
|
enable_gui=0
|
|
|
|
;;
|
|
|
|
hazelhen)
|
|
|
|
CONFIGURE_OPTS+=" ac_scorep_platform=crayxc"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
enable_gui=1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ $enable_gui = 1 ]] ; then
|
|
|
|
#QT_DIR=$(qtpaths --install-prefix)
|
|
|
|
#CONFIGURE_OPTS += " --with-qt=$QT_DIR "
|
|
|
|
CONFIGURE_OPTS+=" --with-gui"
|
|
|
|
else
|
|
|
|
CONFIGURE_OPTS+=" --without-gui"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
PAPI_BASE=$(dirname $(dirname $(which papi_avail)))
|
|
|
|
if [ ! -z $PAPI_BASE ]
|
|
|
|
then
|
|
|
|
CONFIGURE_OPTS+=" --with-papi-header=$PAPI_BASE/include --with-papi-lib=$PAPI_BASE/lib "
|
2020-03-17 11:21:38 +00:00
|
|
|
case $COMPILER in
|
|
|
|
intel)
|
|
|
|
CONFIGURE_OPTS+=" --with-nocross-compiler-suite=intel"
|
|
|
|
;;
|
|
|
|
esac
|
2019-10-18 09:54:09 +00:00
|
|
|
fi
|
|
|
|
|
2020-03-17 11:21:38 +00:00
|
|
|
|
2019-10-18 09:54:09 +00:00
|
|
|
src_prepare() {
|
|
|
|
case $PLATFORM in
|
|
|
|
hazelhen)
|
|
|
|
patch -p1 < $SCLASS_DIR/$sit_classfile-0001.patch
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|