"...git@developer.sourcefind.cn:OpenDAS/sparseconvnet.git" did not exist on "1df7b845876abcb85f31defe0ebf61b128e6d0e9"
Unverified Commit bdf60ca0 authored by Adit Ranadive's avatar Adit Ranadive Committed by GitHub
Browse files

feat: Add AWS EFA support (#999)



NIXL uses UCX which will have support for EFA since 1.19. Explicitly
use the 1.19 branch for UCX with Dynamo.
Signed-off-by: default avatarAdit Ranadive <aranadive@nvidia.com>
parent 466b8e5f
...@@ -65,7 +65,42 @@ RUN apt-get update -y && \ ...@@ -65,7 +65,42 @@ RUN apt-get update -y && \
# Install utilities # Install utilities
nvtop \ nvtop \
tmux \ tmux \
vim vim \
autoconf \
libtool
WORKDIR /workspace
### UCX EFA Setup ###
RUN rm -rf /opt/hpcx/ucx
RUN rm -rf /usr/local/ucx
RUN cd /usr/local/src && \
git clone https://github.com/openucx/ucx.git && \
cd ucx && \
git checkout v1.19.x && \
./autogen.sh && ./configure \
--prefix=/usr/local/ucx \
--enable-shared \
--disable-static \
--disable-doxygen-doc \
--enable-optimizations \
--enable-cma \
--enable-devel-headers \
--with-cuda=/usr/local/cuda \
--with-verbs \
--with-efa \
--with-dm \
--with-gdrcopy=/usr/local \
--enable-mt && \
make -j && \
make -j install-strip && \
ldconfig
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/ucx/lib:/usr/local/cuda/compat/lib.real:$LD_LIBRARY_PATH
ENV CPATH=/usr/include:$CPATH
ENV PATH=/usr/bin:$PATH
ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
SHELL ["/bin/bash", "-c"]
WORKDIR /workspace WORKDIR /workspace
...@@ -101,7 +136,7 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" ...@@ -101,7 +136,7 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
# Install NIXL Python module # Install NIXL Python module
# TODO: Move gds_path selection based on arch into NIXL build # TODO: Move gds_path selection based on arch into NIXL build
RUN if [ "$ARCH" = "arm64" ]; then \ RUN if [ "$ARCH" = "arm64" ]; then \
cd /opt/nixl && uv pip install . --config-settings=setup-args="-Dgds_path=/usr/local/cuda/targets/sbsa-linux/"; \ cd /opt/nixl && uv pip install . --config-settings=setup-args="-Dgds_path=/usr/local/cuda/targets/sbsa-linux"; \
else \ else \
cd /opt/nixl && uv pip install . ; \ cd /opt/nixl && uv pip install . ; \
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment