From bb64306630914a0c14acbcafedcb58b840e37440 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Mon, 21 Mar 2011 11:41:01 +0000 Subject: [PATCH] - Install new version of VampirTrace -- get cuda and papi to work by default. Fix buglet: --with-papi should be --with-papi-dir... (installed mvapich2-gnu-4.5 mvapich2-intel-12.0 openmpi-gnu-4.5 openmpi-intel-12.0) --- packages/performance/vampirtrace-5.10.1 | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 packages/performance/vampirtrace-5.10.1 diff --git a/packages/performance/vampirtrace-5.10.1 b/packages/performance/vampirtrace-5.10.1 new file mode 100755 index 0000000..0a68d2d --- /dev/null +++ b/packages/performance/vampirtrace-5.10.1 @@ -0,0 +1,46 @@ +#!/bin/sh +# VampirTrace sit class file +# +# Christoph Niethammer (C) 2011 +# + +CATEGORY="performance" +PACKAGE="vampirtrace" +VERSION="5.10.1" +URL="http://www.tu-dresden.de/zih/vampirtrace/" +INSTALLER="Christoph Niethammer " + + +# 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