Skip to content

Commit

Permalink
Added OpenMPI flag to docker container to ignore missing hardware war…
Browse files Browse the repository at this point in the history
…nings
  • Loading branch information
jamesp committed Mar 14, 2018
1 parent 1d7b8d9 commit 84d0fe3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand Down

0 comments on commit 84d0fe3

Please sign in to comment.