From 1a5ac496b9f6cb3b7cf659745b3054ff2325d412 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 26 Jan 2016 14:01:15 +0000 Subject: [PATCH] Minor update of old vampirtrace package for hazelhen --- .../vampirtrace/vampirtrace-5.14.4 | 46 +++++++++++-------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/packages/performance/vampirtrace/vampirtrace-5.14.4 b/packages/performance/vampirtrace/vampirtrace-5.14.4 index 63e123a..4c6fd5a 100755 --- a/packages/performance/vampirtrace/vampirtrace-5.14.4 +++ b/packages/performance/vampirtrace/vampirtrace-5.14.4 @@ -22,29 +22,35 @@ 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 +case $PLATFORM in + hermit1|hornet|hazelhen) + CONFIGURE_OPTS=" \ + --with-platform=crayxe \ + --build=x86_64-unknown-linux-gnu \ + --host=x86_64-cray-linux-gnu \ + " + #--without-cross-prefix \ + #--disable-exectrace \ + ;; + laki) + CONFIGURE_OPTS=" \ + --with-mpi-dir=$MPI_DIR \ + " + ;; +esac # 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 + case $PLATFORM in + hermit1|hornet|hazelhen) + module load papi + ;; + laki) + module load performance/papi + PAPI_DIR=$(dirname $(dirname $(which papi_avail))) + CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-papi-dir=$PAPI_DIR" + ;; + esac fi # use CUDA