Add sit class file for Open MPI 4.0.5

This commit is contained in:
Christoph Niethammer 2020-09-24 14:13:12 +00:00
parent 234035decc
commit 804d48384d

View file

@ -0,0 +1,43 @@
#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2020
#
CATEGORY="mpi"
PACKAGE="openmpi"
VERSION="4.0.5"
URL="http://www.open-mpi.org"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A="$PACKAGE-$VERSION.tar.bz2"
P="$PACKAGE-$VERSION"
HASH_MD5=
HASH_SHA1=
# Other interesting configure options:
# --enable-mpi-threads
# --enable-progress-threads
# --enable-mpi-fortran=usempif08 \
# --with-devel-headers \
# --enable-contrib-no-build=vt
CONFIGURE_OPTS="
--enable-shared \
--enable-static \
--without-verbs \
"
if [ ! -z "$UCX_DIR" ] ; then
CONFIGURE_OPTS+=" --with-ucx=$UCX_DIR"
fi
if [ ! -z $CUDA_DIR ] ; then
[ -z "$UCX_DIR" ] && sit_fail "Have to be configured with external UCX"
ucx_info -b | grep -e "HAVE_CUDA *1" >/dev/null || sit_fail "UCX must be built with CUDA support"
CONFIGURE_OPTS+=" --with-cuda=$CUDA_DIR"
fi
src_pretest() {
make check
}