Skip to content

Commit

Permalink
Build MPICH to avoid LTO of the ubuntu package
Browse files Browse the repository at this point in the history
  • Loading branch information
alazzaro committed Jul 12, 2023
1 parent 0f1bff5 commit 170d75b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tools/docker/Dockerfile.build-env-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ RUN set -ex ; \
g++ \
openmpi-bin \
libopenmpi-dev \
mpich \
libmpich-dev \
libopenblas-openmp-dev \
cmake \
ninja-build \
Expand All @@ -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 ; \
Expand All @@ -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

0 comments on commit 170d75b

Please sign in to comment.