From fc389d5a337910241e6f1c43b4346665426db26b Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 24 Sep 2013 13:24:33 +0000 Subject: [PATCH] Added sit class file for Vampirtrace 5.14.4. Initial OpenACC configuration for Hermit according to vampirtrace support, but not working properly at the moment. --- .../vampirtrace/vampirtrace-5.14.4 | 78 ++++++++++++++++++ ...ce-5.14.4-hermit-openacc-0000.patch.tar.gz | Bin 0 -> 4418 bytes 2 files changed, 78 insertions(+) create mode 100755 packages/performance/vampirtrace/vampirtrace-5.14.4 create mode 100644 packages/performance/vampirtrace/vampirtrace-5.14.4-hermit-openacc-0000.patch.tar.gz diff --git a/packages/performance/vampirtrace/vampirtrace-5.14.4 b/packages/performance/vampirtrace/vampirtrace-5.14.4 new file mode 100755 index 0000000..63e123a --- /dev/null +++ b/packages/performance/vampirtrace/vampirtrace-5.14.4 @@ -0,0 +1,78 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2013 +# + +CATEGORY="performance" +PACKAGE="vampirtrace" +VERSION="5.14.4" +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:=1} + + +# Other interesting configure options: +#--enable-sampling \ + +if [[ $PLATFORM == "hermit1" ]] ; then + CONFIGURE_OPTS=" \ + --with-platform=crayxe \ + --build=x86_64-unknown-linux-gnu \ + --host=x86_64-cray-linux-gnu \ + " + #--without-cross-prefix \ + #--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 + if [[ $PLATFORM == "hermit1" ]] ; then + module load craype-accel-nvidia35 + CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-cuda-inc-dir=$WORKDIR/CUDA5.0.35_patchedHeaders/" + else + module load cuda + fi + #--with-cupti-dir=$CUDA_DIR/extras/CUPTII \ + #--with-cuda-inc-dir=$CUDA_DIR/include \ + #--with-cuda-lib-dir=$CUDA_DIR/lib \ + #--with-cudart-lib-dir=$CUDA_DIR/lib64 \ + #--with-cudart-dir=$CUDA_DIR \ + CUDA_DIR=${CUDA_DIR:=$(dirname $(dirname $(which nvcc)))} + CONFIGURE_OPTS="${CONFIGURE_OPTS} \ + --with-cuda-dir=$CUDA_DIR \ + " +fi + +src_prepare() { + if [[ $PLATFORM == "hermit1" ]] ; then + module load craype-accel-nvidia35 + # create a copy of cuda header files and apply the patched provided by ZIH to enable OpenACC support + PATCHED_CUDA_HEADER_DIR=$WORKDIR/CUDA5.0.35_patchedHeaders/ + mkdir -p $PATCHED_CUDA_HEADER_DIR + rsync -a $CUDATOOLKIT_HOME/include/ $PATCHED_CUDA_HEADER_DIR/ + tar xfz $SCLASS_DIR/$SCLASSFILE-hermit-openacc-0000.patch.tar.gz -C $PATCHED_CUDA_HEADER_DIR/../ + fi +} diff --git a/packages/performance/vampirtrace/vampirtrace-5.14.4-hermit-openacc-0000.patch.tar.gz b/packages/performance/vampirtrace/vampirtrace-5.14.4-hermit-openacc-0000.patch.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9fafe0582985f9f63f3070d17c9de2653720b475 GIT binary patch literal 4418 zcmV-I5xwpoiwFo5gh5gO19o9;aA|UMa$#d-Ej2DNG%hqPXk~J3X>=`baAj^`V`D8a zFfcGKaA9;~XaMb8YjfK;vdw4z3fQUIu~G`72W@BKNvar$v3W<9w3L)=shS-ck$F+1Ux6+h->&{+y&2?M|nCdeUjPx{%*Kk=rLP$jSaps7_H38a^Q}{Dp0W zzHL^Od+z!lH1#Umf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