From 53415f985213fb3d2652752ff37ccda6d5eefb5b Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Thu, 16 May 2013 11:22:04 +0000 Subject: [PATCH] Added sit class file for Vampirtrace 5.14.3 gpu1 including accelerator patches. --- .../vampirtrace/vampirtrace-5.14.3-gpu1 | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 packages/performance/vampirtrace/vampirtrace-5.14.3-gpu1 diff --git a/packages/performance/vampirtrace/vampirtrace-5.14.3-gpu1 b/packages/performance/vampirtrace/vampirtrace-5.14.3-gpu1 new file mode 100755 index 0000000..cbaa3ec --- /dev/null +++ b/packages/performance/vampirtrace/vampirtrace-5.14.3-gpu1 @@ -0,0 +1,67 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2013 +# + +CATEGORY="performance" +PACKAGE="vampirtrace" +VERSION="5.14.3-gpu1" +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_cuda=${enable_cuda:=0} + + +# Other interesting configure options: +#--enable-sampling \ + +if [[ $PLATFORM == "hermit1" ]] ; then + CONFIGURE_OPTS=" \ + --build=x86_64-unknown-linux-gnu \ + --host=x86_64-cray-linux-gnu \ + --without-cross-prefix \ + --with-platform=crayxe \ + --disable-exectrace \ + " +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 +#}