2011-07-07 23:24:38 +00:00
|
|
|
#!/bin/sh
|
2011-07-10 21:12:25 +00:00
|
|
|
# sit class file
|
2011-07-07 23:24:38 +00:00
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
|
|
|
|
#
|
2011-07-27 07:40:04 +00:00
|
|
|
# Requirements (see https://pm.bsc.es/projects/nanox/wiki/BuildRequirements)
|
|
|
|
# general dependencies:
|
|
|
|
# * >=gcc-4.3
|
|
|
|
# * >=automake 1.10
|
|
|
|
# * >=autoconf 2.63
|
|
|
|
# * >=libtool-2.2.6a
|
|
|
|
# * >=git-1.7.0
|
|
|
|
# additional feature:
|
|
|
|
# * >=CUDA-3.0
|
|
|
|
# * >=Extrae-2.1.1
|
|
|
|
# * >=GasNet 1.14.2
|
2011-07-07 23:24:38 +00:00
|
|
|
|
|
|
|
CATEGORY="libs"
|
|
|
|
PACKAGE="nanox"
|
|
|
|
VERSION="master"
|
|
|
|
URL="http://nanos.ac.upc.edu"
|
|
|
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
|
|
|
|
|
|
|
# Archive A and package name P
|
|
|
|
A=${PACKAGE}-${VERSION}.tar.bz2
|
|
|
|
P=${PACKAGE}-${VERSION}
|
|
|
|
|
|
|
|
SRCDIR="$SRC_POOL/nanox/nanox.git"
|
|
|
|
|
|
|
|
# enable instrumentation (0|1)
|
2012-11-27 08:54:50 +00:00
|
|
|
enable_extrae=${enable_extrae:=1}
|
2011-07-07 23:24:38 +00:00
|
|
|
# build with ayudame support (0|1)
|
2012-11-27 08:54:50 +00:00
|
|
|
enable_ayudame=${enable_ayudame:=1}
|
2011-07-07 23:24:38 +00:00
|
|
|
# build with debugging symbols (0|1)
|
|
|
|
enable_debug=${enable_debug:=0}
|
|
|
|
|
|
|
|
|
|
|
|
# Other interesting configure options:
|
|
|
|
CONFIGURE_OPTS=" \
|
2012-11-27 08:54:50 +00:00
|
|
|
--enable-static \
|
|
|
|
--enable-shared \
|
2011-07-07 23:24:38 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
if [ $enable_debug == 1 ] ; then
|
|
|
|
COMPILER_OPTS+=" CFLAGS=-g CXXFLAGS=-g CPPFLAGS=-g LDFLAGS=-g"
|
|
|
|
fi
|
|
|
|
|
2012-11-27 08:54:50 +00:00
|
|
|
if [ $enable_extrae == 1 ] ; then
|
2011-07-07 23:24:38 +00:00
|
|
|
module load performance/extrae
|
|
|
|
echo "Building with EXTRAE_HOME=$EXTRAE_HOME"
|
|
|
|
CONFIGURE_OPTS+=" --with-extrae=$EXTRAE_HOME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $enable_ayudame == 1 ] ; then
|
|
|
|
module load libs/ayudame
|
|
|
|
echo "Building with AYUDAME_HOME=$AYUDAME_HOME"
|
|
|
|
CONFIGURE_OPTS+=" --with-ayudame=$AYUDAME_HOME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
# cd $src_dir
|
|
|
|
# git checkout master
|
|
|
|
# git pull
|
|
|
|
/bin/true
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
rm -rf autom4te.cache
|
2011-12-03 21:16:09 +00:00
|
|
|
autoreconf -vif
|
2011-07-07 23:24:38 +00:00
|
|
|
version=$(git rev-list -n 1 master)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
make install
|
|
|
|
echo "$PACKAGE: $version" > $PREFIX/VERSION.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
src_pretest() {
|
|
|
|
/bin/true
|
|
|
|
}
|
|
|
|
|