Install Open MPI memchecker tool using valgrind if requested.

This commit is contained in:
Christoph Niethammer 2014-09-16 12:25:00 +00:00
parent 607590a842
commit e9f08eb01c

View file

@ -36,6 +36,13 @@ if [[ -d /opt/voltaire/fca ]]; then
CONFIGURE_OPTS+=" --with-fca=/opt/voltaire/fca" CONFIGURE_OPTS+=" --with-fca=/opt/voltaire/fca"
fi fi
if [ $enable_valgrind != 0 ]; then
module load valgrind
VALGRIND_HOME=$(dirname $(dirname $(which valgrind)))
CONFIGURE_OPTS+=" --enable-memchecker \
--with-valgrind=$VALGRIND_HOME"
fi
src_pretest() { src_pretest() {
make check make check
} }