From f8d6cfa130e2e40c22476e94db8122cfe6c701c1 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Wed, 2 Nov 2022 13:35:17 +0000 Subject: [PATCH] Add sit class file for Open MPI 4.1.4 --- packages/mpi/openmpi/openmpi-4.1.4 | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 packages/mpi/openmpi/openmpi-4.1.4 diff --git a/packages/mpi/openmpi/openmpi-4.1.4 b/packages/mpi/openmpi/openmpi-4.1.4 new file mode 100755 index 0000000..cdd83a7 --- /dev/null +++ b/packages/mpi/openmpi/openmpi-4.1.4 @@ -0,0 +1,59 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2022 +# + +CATEGORY="mpi" +PACKAGE="openmpi" +VERSION="4.1.4" +URL="http://www.open-mpi.org" +INSTALLER="Christoph Niethammer " + +# 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 +# --enable-static \ +# --enable-shared \ +# FFLAGS=-I/ \ +CONFIGURE_OPTS=" + --without-verbs \ + " + +if [ "$COMPILER" == "aocc" ] ; then + CONFIGURE_OPTS+=" --enable-mpi-ext=no" +fi + +if [ ! -z "$UCX_DIR" ] ; then + CONFIGURE_OPTS+=" --with-ucx=$UCX_DIR" +fi + +if [ ! -z "$HCOLL_DIR" ] ; then + CONFIGURE_OPTS+=" --with-hcoll=$HCOLL_DIR" +fi + +if [ ! -z "$KNEM_DIR" ] ; then + CONFIGURE_OPTS+=" --with-knem=$KNEM_DIR" +fi +if [ ! -z "$PBS_DIR" ] ; then + CONFIGURE_OPTS+=" --with-tm=$PBS_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 +}