Added package for scalasca-1.4.1
This commit is contained in:
parent
ff562ceb7e
commit
2199cc777f
3 changed files with 55 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
sit_fail() {
|
sit_fail() {
|
||||||
msg="Fail: $1"
|
msg="SIT: Fail: $1"
|
||||||
echo "$msg"
|
echo "$msg"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
sit_info() {
|
sit_info() {
|
||||||
msg=$1
|
msg=$1
|
||||||
echo $msg
|
echo "SIT: " $msg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
51
packages/performance/scalasca/scalasca-1.4.1
Executable file
51
packages/performance/scalasca/scalasca-1.4.1
Executable file
|
@ -0,0 +1,51 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# sit class file
|
||||||
|
#
|
||||||
|
# Rainer Keller, HLRS (2011)
|
||||||
|
#
|
||||||
|
|
||||||
|
CATEGORY="performance"
|
||||||
|
PACKAGE="scalasca"
|
||||||
|
VERSION="1.4.1"
|
||||||
|
URL="http://www.scalasca.org/"
|
||||||
|
INSTALLER="Jose Gracia <gracia@hlrs.de>"
|
||||||
|
|
||||||
|
|
||||||
|
# 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
|
||||||
|
if [ $PLATFORM="laki" ] ; then
|
||||||
|
module load system/perfctr system/papi
|
||||||
|
else
|
||||||
|
module load papi
|
||||||
|
fi
|
||||||
|
PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
|
||||||
|
CONFIGURE_OPTS="${CONFIGURE_OPTS} --with-papi=$PAPI_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
BUILDDIR="${SRCDIR}" #/build-linux-gomp-openmpi"
|
||||||
|
|
||||||
|
LOGDIR=${LOGDIR:="/tmp/$USER-$PACKAGE-$VERSION/"}
|
||||||
|
|
||||||
|
|
||||||
|
# GRRRR Scalasca is creating their own build-directory (messy configure...)
|
||||||
|
# and the build dir name seems to change
|
||||||
|
src_build() {
|
||||||
|
#cd build-linux-${COMPILER}-${MPI}
|
||||||
|
cd build-linux-gomp-${MPI}
|
||||||
|
make
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
2
sit
2
sit
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
# exit on any error!
|
# exit on any error!
|
||||||
set -e
|
set -e
|
||||||
|
# for debugging:
|
||||||
|
# set -x
|
||||||
|
|
||||||
SIT_PATH=$(dirname $PWD/$0)
|
SIT_PATH=$(dirname $PWD/$0)
|
||||||
SIT_CONFIG_FILE=$SIT_PATH/etc/sit.conf
|
SIT_CONFIG_FILE=$SIT_PATH/etc/sit.conf
|
||||||
|
|
Loading…
Reference in a new issue