Skip to content

Commit

Permalink
docker: add ucx configs to amd docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Apr 19, 2023
1 parent 209f4c6 commit 5e8bab9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docker/Dockerfile.amd
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,21 @@ ENV PATH=$OMPI_HOME/bin:$UCX_HOME/bin:$PATH \
INCLUDE=$OMPI_HOME/include:$UCX_HOME/include:$INCLUDE \
PKG_CONFIG_PATH=$OMPI_HOME/lib/pkgconfig:$UCX_HOME/lib/pkgconfig:$PKG_CONFIG_PATH


# Adding environment variable for Running as ROOT and set MCA pml to UCX
ENV OMPI_ALLOW_RUN_AS_ROOT=1 \
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
OMPI_MCA_pml=ucx
ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
ENV OMPI_MCA_rmaps_base_oversubscribe=1
ENV OMPI_MCA_btl_base_warn_component_unused=0
ENV OMPI_MCA_hwloc_base_binding_policy=""
ENV OMPI_MCA_pml=ucx
# Add additional UCX environment variable
ENV UCX_MEMTYPE_CACHE=no
ENV UCX_NET_DEVICES=all
ENV UCX_SHM_DEVICES=all
ENV UCX_ACC_DEVICES=all
ENV UCX_RNDV_THRESH=0
ENV UCX_RNDV_SCHEME=get_zcopy

##############################################################
# Additional Devito requirements
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ ENV UCX_MEMTYPE_CACHE=no
ENV UCX_NET_DEVICES=all
ENV UCX_SHM_DEVICES=all
ENV UCX_ACC_DEVICES=all
ENV UCX_RNDV_THRESH=0
ENV UCX_RNDV_SCHEME=get_zcopy
ENV NCCL_UCX_RNDV_THRESH=0
ENV NCCL_UCX_RNDV_SCHEME=get_zcopy
ENV NCCL_PLUGIN_P2P=ucx
Expand Down

0 comments on commit 5e8bab9

Please sign in to comment.