Unverified Commit 30d4612e authored by Kapil Arya's avatar Kapil Arya Committed by GitHub
Browse files

fix: install rdma libs in runtime image. (#2163)


Signed-off-by: default avatarKapil Arya <kapila@nvidia.com>
parent 157714aa
...@@ -58,6 +58,10 @@ RUN apt-get update -y && \ ...@@ -58,6 +58,10 @@ RUN apt-get update -y && \
meson \ meson \
ninja-build \ ninja-build \
pybind11-dev \ pybind11-dev \
# These headers are missing with the hpcx installer, required
# by UCX to find RDMA devices
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
libnuma-dev librdmacm-dev ibverbs-providers \
# Rust build dependencies # Rust build dependencies
clang \ clang \
libclang-dev \ libclang-dev \
...@@ -423,7 +427,15 @@ $LD_LIBRARY_PATH ...@@ -423,7 +427,15 @@ $LD_LIBRARY_PATH
# libnuma-dev is a required dependency for sglang integration with NIXL # libnuma-dev is a required dependency for sglang integration with NIXL
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN apt-get update && \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends build-essential python3-dev libnuma-dev && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential python3-dev libnuma-dev \
# Curl for polling various endpoints.
curl \
# For debugging
vim \
# Libraries required by UCX to find RDMA devices
libibverbs1 rdma-core ibverbs-utils libibumad3 \
libnuma1 librdmacm1 ibverbs-providers && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
uv venv $VIRTUAL_ENV --python 3.12 && \ uv venv $VIRTUAL_ENV --python 3.12 && \
echo "source $VIRTUAL_ENV/bin/activate" >> ~/.bashrc echo "source $VIRTUAL_ENV/bin/activate" >> ~/.bashrc
......
...@@ -65,8 +65,14 @@ RUN apt update -y && \ ...@@ -65,8 +65,14 @@ RUN apt update -y && \
tmux \ tmux \
vim \ vim \
## NIXL dependencies ## NIXL dependencies
cmake \
meson \ meson \
ninja-build ninja-build \
pybind11-dev \
# These headers are missing with the hpcx installer, required
# by UCX to find RDMA devices
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
libnuma-dev librdmacm-dev ibverbs-providers
### UCX EFA Setup ### ### UCX EFA Setup ###
RUN rm -rf /opt/hpcx/ucx && \ RUN rm -rf /opt/hpcx/ucx && \
...@@ -374,6 +380,13 @@ RUN apt-get update && \ ...@@ -374,6 +380,13 @@ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \ build-essential \
python3-dev \ python3-dev \
# Curl for polling various endpoints.
curl \
# For debugging
vim \
# Libraries required by UCX to find RDMA devices
libibverbs1 rdma-core ibverbs-utils libibumad3 \
libnuma1 librdmacm1 ibverbs-providers \
openssh-client \ openssh-client \
openssh-server && \ openssh-server && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
......
...@@ -56,6 +56,10 @@ RUN apt-get update -y && \ ...@@ -56,6 +56,10 @@ RUN apt-get update -y && \
meson \ meson \
ninja-build \ ninja-build \
pybind11-dev \ pybind11-dev \
# These headers are missing with the hpcx installer, required
# by UCX to find RDMA devices
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
libnuma-dev librdmacm-dev ibverbs-providers \
# Rust build dependencies # Rust build dependencies
clang \ clang \
libclang-dev \ libclang-dev \
...@@ -72,10 +76,6 @@ RUN apt-get update -y && \ ...@@ -72,10 +76,6 @@ RUN apt-get update -y && \
automake \ automake \
libtool \ libtool \
net-tools \ net-tools \
# These headers are missing with the hpcx installer, required
# by UCX to find RDMA devices
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
libnuma-dev librdmacm-dev ibverbs-providers \
# For Prometheus # For Prometheus
curl tar ca-certificates && \ curl tar ca-certificates && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
...@@ -437,6 +437,13 @@ RUN apt-get update && \ ...@@ -437,6 +437,13 @@ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \ build-essential \
python3-dev \ python3-dev \
# Curl for polling various endpoints.
curl \
# For debugging
vim \
# Libraries required by UCX to find RDMA devices
libibverbs1 rdma-core ibverbs-utils libibumad3 \
libnuma1 librdmacm1 ibverbs-providers \
# JIT Kernel Compilation, flashinfer # JIT Kernel Compilation, flashinfer
ninja-build \ ninja-build \
g++ \ g++ \
......
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