sit/packages/performance/vampirtrace/vampirtrace-5.13

64 lines
1.5 KiB
Text
Raw Normal View History

#!/bin/sh
# sit class file
#
2012-07-30 19:10:28 +00:00
# Christoph Niethammer <niethammer@hlrs.de> (C) 2012
#
CATEGORY="performance"
PACKAGE="vampirtrace"
VERSION="5.3"
URL="http://www.tu-dresden.de/zih/vampirtrace/"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A="VampirTrace-${VERSION}.tar.gz"
P="VampirTrace-${VERSION}"
enable_papi=${enable_papi:=1}
enable_cuda=${enable_cuda:=0}
# Other interesting configure options:
#--enable-sampling \
if [[ $PLATFORM == "hermit1" ]] ; then
CONFIGURE_OPTS=" \
--with-platform=crayxt \
"
else
CONFIGURE_OPTS=" \
--with-mpi-dir=$MPI_DIR \
"
fi
# use PAPI
if [ $enable_papi != 0 ] ; then
if [[ $PLATFORM == "hermit1" ]] ; then
module load papi
else
module load performance/papi
#PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
#CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-papi-dir=$PAPI_DIR"
fi
fi
# use CUDA
if [ $enable_cuda != 0 ] ; then
module load cuda
CUDA_DIR=${CUDA_DIR:=$(dirname $(dirname $(which nvcc)))}
CONFIGURE_OPTS="${CONFIGURE_OPTS} \
--with-cuda-dir=$CUDA_DIR \
--with-cuda-inc-dir=$CUDA_DIR/include \
--with-cuda-lib-dir=$CUDA_DIR/lib \
--with-cudart-dir=$CUDA_DIR \
--with-cudart-lib-dir=$CUDA_DIR/lib64 \
"
fi
src_prepare() {
if [[ $PLATFORM == "hermit1" ]] ; then
patch config/defaults/crayxt < $SCLASS_DIR/$SCLASSFILE-hermit-0000.patch
fi
}