ompss_install.sh: enable debugging info per default; ayudame
This commit is contained in:
parent
0bd16d83bb
commit
616cf19259
1 changed files with 19 additions and 7 deletions
|
@ -35,6 +35,8 @@ nanox_src_dir="$SRC_POOL/nanox/nanox.git"
|
||||||
|
|
||||||
# enable instrumentation (no|yes)
|
# enable instrumentation (no|yes)
|
||||||
instrumentation=${instrumentation:="yes"}
|
instrumentation=${instrumentation:="yes"}
|
||||||
|
# build with debugging symbols
|
||||||
|
enable_debug=${enable_debug:=1}
|
||||||
|
|
||||||
# Compiler specifications
|
# Compiler specifications
|
||||||
|
|
||||||
|
@ -48,6 +50,7 @@ fi
|
||||||
echo "Loading compiler module ${COMPILER_MODULE}"
|
echo "Loading compiler module ${COMPILER_MODULE}"
|
||||||
module load ${COMPILER_MODULE}
|
module load ${COMPILER_MODULE}
|
||||||
|
|
||||||
|
declare COMPILER_OPTS=
|
||||||
case ${COMPILER} in
|
case ${COMPILER} in
|
||||||
gnu)
|
gnu)
|
||||||
COMPILER_OPTS="CC=gcc CXX=g++ FC=gfortran F77=gfortran"
|
COMPILER_OPTS="CC=gcc CXX=g++ FC=gfortran F77=gfortran"
|
||||||
|
@ -66,17 +69,26 @@ case ${COMPILER} in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$instrumentation" = "yes" ]; then
|
if [ $enable_debug != 0 ] ; then
|
||||||
|
COMPILER_OPTS+=" CFLAGS=-g CXXFLAGS=-g CPPFLAGS=-g LDFLAGS=-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$instrumentation" = "yes" ] ; then
|
||||||
module load performance/extrae
|
module load performance/extrae
|
||||||
echo "Building with EXTRAE_HOME=$EXTRAE_HOME"
|
echo "Building with EXTRAE_HOME=$EXTRAE_HOME"
|
||||||
sleep 2
|
|
||||||
withextrae="--with-extrae=$EXTRAE_HOME"
|
withextrae="--with-extrae=$EXTRAE_HOME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$enable_ayudame" = "yes" ] ; then
|
||||||
|
module load libs/ayudame
|
||||||
|
echo "Building with AYUDAME_HOME=$AYUDAME_HOME"
|
||||||
|
withayudame="--with-ayudame=$AYUDAME_HOME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-${COMPILER}-${COMPILER_VERSION}${PACKAGE_DESCRIPTOR}"
|
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-${COMPILER}-${COMPILER_VERSION}${PACKAGE_DESCRIPTOR}"
|
||||||
echo "PREFIX: $PREFIX"
|
echo "PREFIX: $PREFIX"
|
||||||
sleep 2
|
sleep 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -101,7 +113,7 @@ make_package ()
|
||||||
fi
|
fi
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
../configure --prefix=$PREFIX $* 2>&1 | tee "configure.log"; ( exit ${PIPESTATUS} )
|
../configure $COMPILER_OPTS --prefix=$PREFIX $* 2>&1 | tee "configure.log"; ( exit ${PIPESTATUS} )
|
||||||
echo -n "compiling... "
|
echo -n "compiling... "
|
||||||
make $MAKEOPTS 2>&1 | tee "make.log"; ( exit ${PIPESTATUS} )
|
make $MAKEOPTS 2>&1 | tee "make.log"; ( exit ${PIPESTATUS} )
|
||||||
echo -n "installing... "
|
echo -n "installing... "
|
||||||
|
@ -115,7 +127,7 @@ make_package ()
|
||||||
cd $nanox_src_dir
|
cd $nanox_src_dir
|
||||||
rm -rf autom4te.cache
|
rm -rf autom4te.cache
|
||||||
#git pull
|
#git pull
|
||||||
git checkout master
|
#git checkout master
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
nanox_version=$(git rev-list -n 1 master)
|
nanox_version=$(git rev-list -n 1 master)
|
||||||
|
|
||||||
|
@ -123,14 +135,14 @@ nanox_version=$(git rev-list -n 1 master)
|
||||||
cd $mcxx_src_dir
|
cd $mcxx_src_dir
|
||||||
rm -rf autom4te.cache
|
rm -rf autom4te.cache
|
||||||
#git pull
|
#git pull
|
||||||
git checkout master
|
#git checkout master
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
mcxx_version=$(git rev-list -n 1 master)
|
mcxx_version=$(git rev-list -n 1 master)
|
||||||
|
|
||||||
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-${COMPILER}-${COMPILER_VERSION}${PACKAGE_DESCRIPTOR}"
|
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}-${COMPILER}-${COMPILER_VERSION}${PACKAGE_DESCRIPTOR}"
|
||||||
|
|
||||||
echo -n "Installing Nanos++ runtime library... "
|
echo -n "Installing Nanos++ runtime library... "
|
||||||
make_package $nanox_src_dir $withextrae $cudadir
|
make_package $nanox_src_dir $withextrae $withayudame $cudadir
|
||||||
echo -n "Installing Mercurium compiler... "
|
echo -n "Installing Mercurium compiler... "
|
||||||
make_package $mcxx_src_dir --enable-openmpt
|
make_package $mcxx_src_dir --enable-openmpt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue