sit/packages/libs/nanos6/nanos6-from-ompss2-release-any

69 lines
1.6 KiB
Bash

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2013
# Jose Gracia <gracia@hlrs.de>
#
# libs/nanos6 and compiler/mcxx **together** form the package compiler/ompss2
#
# install instructions:
# * set user-visible package version to ompss-2 release version
# e.g. OMPSS2_VERSION=2022.11
# * dependencies:
# * module load talp
# * MY_DLB_HOME=$TALP_HOME
# * module unload talp
# * install libs/nanos6 with:
# VERSION=$OMPSS2_VERSION \
# DLB_HOME=$MY_DLB_HOME \
# COMPILER=gnu PREFIX_BASE=$YOUR_PREFIX_BASE \
# enable_dlb=1 enable_extrae=0 ./sit libs/nanos6/nanos6-from-ompss2-any
# set NANOS6_HOME pointing to this install dir
# * install compilers/mcxx (see there)
: ${CATEGORY:="compiler"}
: ${PACKAGE:="ompss2"}
: ${TAR_PACKAGE:="ompss-2"}
# if VERSIOn not set assume 1.0
: ${VERSION:="2022.11"}
URL="https://pm.bsc.es/ompss-2"
INSTALLER="Jose Gracia <gracia@hlrs.de>"
# Archive A and package name P
A=${TAR_PACKAGE}-${VERSION}.tar.gz
P=${TAR_PACKAGE}-${VERSION%%-*} # remove date suffix starting from first '-'
# enable instrumentation (0|1)
enable_extrae=${enable_extrae:=0}
# enable dlb
enable_dlb=${enable_dlb:=1}
CONFIGURE_OPTS=" \
--disable-static \
"
if [ $enable_extrae == 1 ] ; then
#module load performance/extrae
echo "Building with EXTRAE_HOME=$EXTRAE_HOME"
CONFIGURE_OPTS+=" --with-extrae=$EXTRAE_HOME"
fi
if [ $enable_dlb == 1 ] ; then
echo "Building with DLB_HOME=$DLB_HOME"
CONFIGURE_OPTS+=" --with-dlb=$DLB_HOME"
fi
src_unpack() {
unpack
# SRCDIR=$SRCDIR/nanos6-2.8
# echo "Redefinig SRCDIR: " $SRCDIR
mv $SRCDIR/nanos6-*/* $SRCDIR/
}