From 9d17ed2e0b31375835dda0fbd0e79399023f3b70 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Wed, 28 Apr 2021 00:59:55 +0200
Subject: [PATCH] switch MPI to use hwloc and libgevent internal

---
 script/install_MPI.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/install_MPI.sh b/script/install_MPI.sh
index 0753c5d20..cb90468ff 100755
--- a/script/install_MPI.sh
+++ b/script/install_MPI.sh
@@ -21,10 +21,10 @@ if [ x"$3" == x"1" ]; then
    # Detect where is nvcc
    cuda_location=$(dirname $(dirname $(which nvcc)) )
 
-   ./configure $mpi_options --with-cuda=$cuda_location --prefix=$1/MPI --enable-mpi-fortran=yes CC=$4 CXX=$5 F77=$6 FC=$7 $8
+   ./configure --with-hwloc=internal --with-libevent=internal mpi_options --with-cuda=$cuda_location --prefix=$1/MPI --enable-mpi-fortran=yes CC=$4 CXX=$5 F77=$6 FC=$7 $8
 else
    echo "Installing MPI without GPU support"
-   ./configure $mpi_options --prefix=$1/MPI --enable-mpi-fortran=yes CC=$4 CXX=$5 F77=$6 FC=$7 $8
+   ./configure --with-hwloc=internal --with-libevent=internal $mpi_options --prefix=$1/MPI --enable-mpi-fortran=yes CC=$4 CXX=$5 F77=$6 FC=$7 $8
 fi
 make -j $2
 make install
-- 
GitLab