From bbd7b9fda9c11bc7665df572e9403dbeaa85139f Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Wed, 17 May 2017 10:03:26 +0000 Subject: [PATCH] Sit class file for Open MPI 2.1.1 --- packages/mpi/openmpi/openmpi-2.1.1 | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 packages/mpi/openmpi/openmpi-2.1.1 diff --git a/packages/mpi/openmpi/openmpi-2.1.1 b/packages/mpi/openmpi/openmpi-2.1.1 new file mode 100755 index 0000000..ecbe9fa --- /dev/null +++ b/packages/mpi/openmpi/openmpi-2.1.1 @@ -0,0 +1,54 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2017 +# + +CATEGORY="mpi" +PACKAGE="openmpi" +VERSION="2.1.1" +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=ae542f5cf013943ffbbeb93df883731b +HASH_SHA1=3aaee35c17b6ef02f4cee274f2670d5b7b2c968a + +enable_cuda=0 + +# Other interesting configure options: +# --enable-mpi-threads +# --enable-progress-threads +CONFIGURE_OPTS=" + --with-devel-headers \ + --enable-contrib-no-build=vt + --enable-shared \ + --enable-static \ + --enable-mpi-fortran=usempif08 \ + --enable-mpi-thread-multiple \ + " + +if [ $PLATFORM = "hornet" ] ; then + CONFIGURE_OPTS="$CONFIGURE_OPTS --with-platform=lanl/cray_xe6/optimized-nopanasas" +fi + +if [ $enable_cuda != 0 ] ; then + module load cuda + CONFIGURE_OPTS+=" --with-cuda=$CUDA_DIR" +fi + +if [[ -d /opt/voltaire/fca ]]; then + echo "Voltaire FCA found" + sit_info "Enabling Voltaire FCA (/opt/voltaire/fca)" + CONFIGURE_OPTS+=" --with-fca=/opt/voltaire/fca" +fi + +#src_prepare() { +# patch -p1 < $SCLASS_DIR/$sit_classfile-0001.patch +#} + +src_pretest() { + make check +}