From 84d0fe3cfe896a316be2e4a32fb48117ad5b4fdf Mon Sep 17 00:00:00 2001 From: James Penn Date: Wed, 14 Mar 2018 11:38:19 +0000 Subject: [PATCH] Added OpenMPI flag to docker container to ignore missing hardware warnings --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index afa5b1651..a74a9c296 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,9 @@ ENV GFDL_BASE /isca ENV GFDL_DATA /data ENV GFDL_ENV docker +# ignore missing hardware needed lfor openMPI speedup +ENV ["OMPI_MCA_btl", "^openib"] + RUN useradd -ms /bin/bash isca RUN apt-get update && apt-get upgrade -y RUN apt-get install -y \ @@ -13,19 +16,12 @@ RUN apt-get install -y \ libhdf5-openmpi-dev wget tcl tcl-dev \ build-essential gcc gfortran -# RUN wget https://sourceforge.net/projects/modules/files/Modules/modules-4.1.1/modules-4.1.1.tar.gz/download -# RUN tar xvf download - -# RUN cd modules-4.1.1 && ./configure && make && make install -# RUN /bin/bash -c "source /usr/local/Modules/init/profile.sh" - COPY . /isca RUN chown -R isca /isca RUN pip3 install -r /isca/src/extra/python/requirements.txt RUN pip3 install -e /isca/src/extra/python - RUN mkdir -p /data && chown -R isca /data VOLUME /data