Skip to content

Commit d799117

Browse files
authored
Including MPI library in parent Dockerfile
1 parent f9cba56 commit d799117

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/Dockerfile.parent

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y gfortran-14 git wget valgrind
55
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-14
66
RUN wget -O /usr/bin/fpm https://github.com/fortran-lang/fpm/releases/download/v0.10.1/fpm-0.10.1-linux-x86_64 && chmod 555 /usr/bin/fpm
77
RUN apt update && apt install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
8+
RUN apt update && apt install -y openmpi-bin openmpi-doc libopenmpi-dev
89

910
# Build pfunit
1011
COPY scripts/build-pfunit.sh /solution/build-pfunit.sh
11-
RUN ./solution/build-pfunit.sh -b -p /pfunit
12+
RUN /solution/build-pfunit.sh -b -p /pfunit
13+
14+
# Allow MPI to oversubscribe
15+
ENV PRTE_MCA_rmaps_default_mapping_policy=":oversubscribe"

0 commit comments

Comments
 (0)