Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding reasonable default config for OpenMPI networking #8

Merged
merged 1 commit into from
Mar 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
adding reasonable default config for OpenMPI networking
  • Loading branch information
bbarker committed Mar 1, 2017
commit b5b32b7fdbaa0289b46271e5e2978e8699f12ed4
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ RUN pip install --upgrade pip \
&& pip install -U setuptools \
&& pip install mpi4py

# ------------------------------------------------------------
# Configure OpenMPI
# ------------------------------------------------------------

RUN mkdir -p ${HOME}/.openmpi \
&& touch ${HOME}/.openmpi/mca-params.conf \
&& tee -a /home/mpirun/.openmpi/mca-params.conf <<EOF \
btl=tcp,self \
btl_tcp_if_include=eth0 \
plm_rsh_no_tree_spawn=1 \
EOF \
&& chown ${USER}:${USER} ${HOME}/.openmpi

# ------------------------------------------------------------
# Copy MPI4PY example scripts
# ------------------------------------------------------------
Expand Down