From 170d75bcc5510f9d0089dcfdee8ff279147d12ac Mon Sep 17 00:00:00 2001 From: Alfio Lazzaro Date: Wed, 12 Jul 2023 13:07:48 +0200 Subject: [PATCH] Build MPICH to avoid LTO of the ubuntu package --- tools/docker/Dockerfile.build-env-ubuntu | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile.build-env-ubuntu b/tools/docker/Dockerfile.build-env-ubuntu index c038f2e9cf0..35b3f0eabdf 100644 --- a/tools/docker/Dockerfile.build-env-ubuntu +++ b/tools/docker/Dockerfile.build-env-ubuntu @@ -29,8 +29,6 @@ RUN set -ex ; \ g++ \ openmpi-bin \ libopenmpi-dev \ - mpich \ - libmpich-dev \ libopenblas-openmp-dev \ cmake \ ninja-build \ @@ -55,6 +53,10 @@ RUN set -ex ; \ git-archive-all \ ; +RUN set -ex ; \ + update-alternatives --install /usr/bin/python python /usr/bin/python3 1000 ; \ + update-alternatives --config python + ARG libxsmm_version=1.17 RUN set -ex ; \ @@ -64,6 +66,14 @@ RUN set -ex ; \ ENV PKG_CONFIG_PATH="/opt/libxsmm/lib:${PKG_CONFIG_PATH}" +ARG MPICH_VERSION=4.0.2 +RUN set -ex ; \ + curl -LsS http://www.mpich.org/static/downloads/${MPICH_VERSION}/mpich-${MPICH_VERSION}.tar.gz | tar -xz -C . ; \ + cd mpich-${MPICH_VERSION} ; \ + ./configure --prefix=/usr --enable-fortran=all --disable-rpath --disable-wrapper-rpath \ + FFLAGS="-O1 -fallow-argument-mismatch" FCFLAGS="-O1 -fallow-argument-mismatch" --program-suffix=".mpich" ; make install ; \ + cd .. && rm -rf mpich-${MPICH_VERSION} + # Leak suppression COPY lsan.supp /opt ENV LSAN_OPTIONS=suppressions=/opt/lsan.supp