Added sit class files for

* Berkeley UPC translator (source to source compiler)
* Berkeley UPC (runtime)

The environment variable BUPC_TRANSLATOR has to be defined by the
berkeley_upc_translator module to build Berkeley UPC.
This commit is contained in:
Christoph Niethammer 2011-07-08 11:24:49 +00:00
parent a6473e6997
commit 25da0150af
3 changed files with 61 additions and 1 deletions

View file

@ -0,0 +1,29 @@
#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
#
CATEGORY="compiler"
PACKAGE="berkeley_upc"
VERSION="2.12.2"
PACKAGENAME=""
URL="http://upc.lbl.gov"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.gz
P=${PACKAGE}-${VERSION}
module load compiler/berkeley_upc_translator
MAKEOPTS+=" MPI_CC=$MPICC"
# Other interesting configure options:
# --with-multiconf=+dbg_tv
# --with-multiconf=+opt_inst
CONFIGURE_OPTS=" \
BUPC_TRANS=$BUPC_TRANSLATOR
"
# GCCUPC_TRANS=PATH --with-multiconf=+dbg_gccupc,+opt_gccupc

View file

@ -0,0 +1,30 @@
#!/bin/sh
# Berkeley UPC translator sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
#
CATEGORY="compiler"
PACKAGE="berkeley_upc_translator"
VERSION="2.12.2"
PACKAGENAME="Berkeley UPC-to-C translator"
URL="http://upc.lbl.gov/"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.gz
P=${PACKAGE}-${VERSION}
BUILDDIR=$SRCDIR
MAKEOPTS=""
src_configure() {
sit_info "nothing to do for the translator"
/bin/true
}
src_install() {
sit_info $PWD
make install PREFIX=$PREFIX
}

3
sit
View file

@ -102,7 +102,8 @@ if [ ! -z "$MPI" ] ; then
fi fi
echo "Loading MPI module ${MPI_MODULE}" echo "Loading MPI module ${MPI_MODULE}"
module load $MPI_MODULE module load $MPI_MODULE
MPI_DIR=${MPI_DIR:=$(dirname $(dirname $(which mpicc)))} MPICC="mpicc"
MPI_DIR=${MPI_DIR:=$(dirname $(dirname $(which $MPICC)))}
fi fi