Cray: load compat module when swaping compiler
This commit is contained in:
parent
13a519cf1f
commit
336ab82405
4 changed files with 15 additions and 11 deletions
|
@ -34,20 +34,11 @@ P=${MCXX_PACKAGE}-${MCXX_VERSION%%-*} # remove date suffix starting from the fir
|
||||||
# build with debugging symbols (0|1)
|
# build with debugging symbols (0|1)
|
||||||
enable_debug=${enable_debug:=0}
|
enable_debug=${enable_debug:=0}
|
||||||
|
|
||||||
# fortran support (requires recent sqlite3 dev)
|
|
||||||
enable_fortran=${enable_fortran:=1}
|
|
||||||
|
|
||||||
# Other interesting configure options:
|
# Other interesting configure options:
|
||||||
CONFIGURE_OPTS=" \
|
CONFIGURE_OPTS=" \
|
||||||
--enable-ompss \
|
--enable-ompss \
|
||||||
--with-nanox=$NANOX_HOME \
|
--with-nanox=$NANOX_HOME \
|
||||||
"
|
--enable-static "
|
||||||
if [ $enable_fortran == 1 ] ; then
|
|
||||||
echo "Building with Fortran support"
|
|
||||||
CONFIGURE_OPTS+=" --enable-fortran "
|
|
||||||
else
|
|
||||||
CONFIGURE_OPTS+=" --enable-fortran=no "
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_pretest() {
|
src_pretest() {
|
||||||
/bin/true
|
/bin/true
|
||||||
|
|
|
@ -41,7 +41,8 @@ enable_extrae=${enable_extrae:=1}
|
||||||
enable_ayudame=${enable_ayudame:=0}
|
enable_ayudame=${enable_ayudame:=0}
|
||||||
# build with debugging symbols (0|1)
|
# build with debugging symbols (0|1)
|
||||||
enable_debug=${enable_debug:=0}
|
enable_debug=${enable_debug:=0}
|
||||||
|
# enable hwloc
|
||||||
|
enable_hwloc=${enable_hwloc:=1}
|
||||||
|
|
||||||
# Other interesting configure options:
|
# Other interesting configure options:
|
||||||
#CONFIGURE_OPTS=" \
|
#CONFIGURE_OPTS=" \
|
||||||
|
@ -75,6 +76,13 @@ if [ $enable_ayudame == 1 ] ; then
|
||||||
CONFIGURE_OPTS+=" --with-ayudame=$TEMANEJO_HOME"
|
CONFIGURE_OPTS+=" --with-ayudame=$TEMANEJO_HOME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $enable_hwloc == 1 ] ; then
|
||||||
|
echo "Building with hwloc"
|
||||||
|
HWLOC_DIR=$(dirname $(dirname $(which hwloc-ls)))
|
||||||
|
CONFIGURE_OPTS+=" --with-hwloc=$HWLOC_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
src_pretest() {
|
src_pretest() {
|
||||||
/bin/true
|
/bin/true
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,8 @@ PACKAGE="extrae"
|
||||||
VERSION="3.0.1"
|
VERSION="3.0.1"
|
||||||
URL="http://www.bsc.es/computer-sciences/extrae"
|
URL="http://www.bsc.es/computer-sciences/extrae"
|
||||||
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
||||||
|
: ${MPI_DIR:=$MPICH_DIR} # on cray MPI_DIR is not defined, but MPICH_DIR
|
||||||
|
echo "MPI_DIR=" $MPI_DIR
|
||||||
|
|
||||||
# Archive A and package name P
|
# Archive A and package name P
|
||||||
A=${PACKAGE}-${VERSION}.tar.bz2
|
A=${PACKAGE}-${VERSION}.tar.bz2
|
||||||
|
|
3
sit
3
sit
|
@ -76,6 +76,9 @@ else
|
||||||
else
|
else
|
||||||
module swap $COMPILER $COMPILER/$COMPILER_VERSION
|
module swap $COMPILER $COMPILER/$COMPILER_VERSION
|
||||||
fi
|
fi
|
||||||
|
# adjust MPICH and libsci versions to match compiler
|
||||||
|
module load cray-mpich-compat/v7 \
|
||||||
|
|| module load cray-mpich-compat/v6
|
||||||
fi
|
fi
|
||||||
MPI_DIR=$MPICH_DIR
|
MPI_DIR=$MPICH_DIR
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue