@@ -8,17 +8,20 @@ ARG FC_COMPILER
88ARG COMPILER_PATH
99ARG COMPILER_LD_LIBRARY_PATH
1010
11+ ENV DEBIAN_FRONTEND=noninteractive
12+ ENV TZ=UTC
13+
1114RUN apt-get update -y && \
12- apt-get install -y software-properties-common ca-certificates gnupg && \
15+ apt-get install -y software-properties-common ca-certificates gnupg wget && \
1316 add-apt-repository ppa:deadsnakes/ppa && \
1417 apt-get update -y && \
15- if [ "$TARGET" ! = "gpu " ]; then \
18+ if [ "$TARGET" = "cpu " ]; then \
1619 apt-get install -y \
1720 build-essential git make cmake gcc g++ gfortran bc \
1821 python3.12 python3.12-venv python3-pip \
1922 openmpi-bin libopenmpi-dev libfftw3-dev \
2023 mpich libmpich-dev; \
21- else \
24+ elif [ "$TARGET" = "gpu" ]; then \
2225 apt-get install -y \
2326 build-essential git make cmake bc \
2427 python3.12 python3.12-venv python3-pip \
@@ -30,15 +33,16 @@ RUN apt-get update -y && \
3033
3134ENV OMPI_ALLOW_RUN_AS_ROOT=1
3235ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
36+ ENV HYDRA_LAUNCHER=fork
3337ENV PATH="/opt/MFC:$PATH"
3438
3539COPY ../ /opt/MFC
3640
3741ENV CC=${CC_COMPILER}
3842ENV CXX=${CXX_COMPILER}
3943ENV FC=${FC_COMPILER}
40- ENV PATH="${COMPILER_PATH}:$PATH"
41- ENV LD_LIBRARY_PATH="${COMPILER_LD_LIBRARY_PATH}:${LD_LIBRARY_PATH:-}"
44+ ENV PATH="${COMPILER_PATH}:/opt/mpich/bin: $PATH"
45+ ENV LD_LIBRARY_PATH="${COMPILER_LD_LIBRARY_PATH}:/opt/mpich/lib: ${LD_LIBRARY_PATH:-}"
4246
4347# Pre-install numpy into the venv before mfc.sh runs, as it's required at
4448# build time by several dependencies (pandas, cantera, matplotlib, etc.) that
@@ -50,14 +54,14 @@ RUN python3.12 -m venv /opt/MFC/build/venv && \
5054RUN echo "TARGET=$TARGET CC=$CC_COMPILER FC=$FC_COMPILER" && \
5155 cd /opt/MFC && \
5256 if [ "$TARGET" = "gpu" ]; then \
53- ./mfc.sh build --gpu -j $(nproc); \
57+ ./mfc.sh build --gpu acc -j $(nproc); \
5458 else \
5559 ./mfc.sh build -j $(nproc); \
5660 fi
5761
5862RUN cd /opt/MFC && \
5963 if [ "$TARGET" = "gpu" ]; then \
60- ./mfc.sh test -a --dry-run --gpu -j $(nproc); \
64+ ./mfc.sh test -a --dry-run --gpu acc -j $(nproc); \
6165 else \
6266 ./mfc.sh test -a --dry-run -j $(nproc); \
6367 fi
0 commit comments