From f76ad7d96bdbd6b665de6b9679bd6c91dc0469dc Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Tue, 10 Jan 2012 11:15:32 +0000 Subject: [PATCH] - Add / Adapt script for scalasca-1.4 --- packages/performance/scalasca-1.4 | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 packages/performance/scalasca-1.4 diff --git a/packages/performance/scalasca-1.4 b/packages/performance/scalasca-1.4 new file mode 100755 index 0000000..f0ffd4a --- /dev/null +++ b/packages/performance/scalasca-1.4 @@ -0,0 +1,45 @@ +#!/bin/sh +# sit class file +# +# Rainer Keller, HLRS (2011) +# + +CATEGORY="performance" +PACKAGE="scalasca" +VERSION="1.4" +URL="http://www.scalasca.org/" +INSTALLER="Rainer Keller " + + +# Archive A and package name P +A="scalasca-${VERSION}.tar.gz" +P="scalasca-${VERSION}" + +enable_papi=${enable_papi:=1} + +# From configure: +# additional options [ONLY TO BE USED IF DIRECTED BY configure]: +# [--compiler=(gnu|pgi|intel|path|ibm|sun)] # Compiler selection +# # (Linux only) +# [--mpi=(mpich|mpich2|lam|openmpi|intel|intel2| # MPI-Lib selection +# hp|scali|mpibull2|bullxmpi|sun|ibmpoe)] # (Linux/Solaris only) + +# use PAPI +if [ $enable_papi != 0 ] ; then + module load performance/papi + PAPI_DIR=$(dirname $(dirname $(which papi_avail))) + CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-papi=$PAPI_DIR" +fi + +BUILDDIR="${SRCDIR}" + +LOGDIR=${LOGDIR:="/tmp/$USER-$PACKAGE-$VERSION/"} + + +# GRRRR Scalasca is creating their own build-directory (messy configure...) +src_build() { + cd build-linux-${COMPILER}-${MPI} + make + cd - +} +