2011-06-27 12:11:24 +00:00
|
|
|
#!/bin/sh
|
2011-07-10 21:12:25 +00:00
|
|
|
# sit class file
|
2011-06-27 12:11:24 +00:00
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
|
|
|
|
#
|
|
|
|
|
|
|
|
CATEGORY="performance"
|
|
|
|
PACKAGE="vampirtrace"
|
|
|
|
VERSION="5.11"
|
|
|
|
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_papi=${enable_cuda:=1}
|
|
|
|
|
|
|
|
|
|
|
|
# Other interesting configure options:
|
|
|
|
#--enable-sampling \
|
|
|
|
CONFIGURE_OPTS="\
|
|
|
|
--with-mpi-dir=$MPI_DIR \
|
|
|
|
"
|
|
|
|
|
|
|
|
# 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-dir=$PAPI_DIR"
|
|
|
|
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
|