Skip to content

Commit e15bf4d

Browse files
committed
fix: install rdma libs in runtime image.
Signed-off-by: Kapil Arya <[email protected]>
1 parent 3175b10 commit e15bf4d

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

container/Dockerfile.sglang

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ RUN apt-get update -y && \
5858
meson \
5959
ninja-build \
6060
pybind11-dev \
61+
# These headers are missing with the hpcx installer, required
62+
# by UCX to find RDMA devices
63+
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
64+
libnuma-dev librdmacm-dev ibverbs-providers \
6165
# Rust build dependencies
6266
clang \
6367
libclang-dev \
@@ -423,7 +427,15 @@ $LD_LIBRARY_PATH
423427
# libnuma-dev is a required dependency for sglang integration with NIXL
424428
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
425429
RUN apt-get update && \
426-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends build-essential python3-dev libnuma-dev && \
430+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
431+
build-essential python3-dev libnuma-dev \
432+
# Curl for polling various endpoints.
433+
curl \
434+
# For debugging
435+
vim \
436+
# Libraries required by UCX to find RDMA devices
437+
libibverbs1 rdma-core ibverbs-utils libibumad3 \
438+
libnuma1 librdmacm1 ibverbs-providers && \
427439
rm -rf /var/lib/apt/lists/* && \
428440
uv venv $VIRTUAL_ENV --python 3.12 && \
429441
echo "source $VIRTUAL_ENV/bin/activate" >> ~/.bashrc

container/Dockerfile.tensorrt_llm

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ RUN apt update -y && \
6565
tmux \
6666
vim \
6767
## NIXL dependencies
68+
cmake \
6869
meson \
69-
ninja-build
70+
ninja-build \
71+
pybind11-dev \
72+
# These headers are missing with the hpcx installer, required
73+
# by UCX to find RDMA devices
74+
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
75+
libnuma-dev librdmacm-dev ibverbs-providers \
7076

7177
### UCX EFA Setup ###
7278
RUN rm -rf /opt/hpcx/ucx && \
@@ -374,6 +380,13 @@ RUN apt-get update && \
374380
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
375381
build-essential \
376382
python3-dev \
383+
# Curl for polling various endpoints.
384+
curl \
385+
# For debugging
386+
vim \
387+
# Libraries required by UCX to find RDMA devices
388+
libibverbs1 rdma-core ibverbs-utils libibumad3 \
389+
libnuma1 librdmacm1 ibverbs-providers \
377390
openssh-client \
378391
openssh-server && \
379392
rm -rf /var/lib/apt/lists/*

container/Dockerfile.vllm

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ RUN apt-get update -y && \
5656
meson \
5757
ninja-build \
5858
pybind11-dev \
59+
# These headers are missing with the hpcx installer, required
60+
# by UCX to find RDMA devices
61+
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
62+
libnuma-dev librdmacm-dev ibverbs-providers \
5963
# Rust build dependencies
6064
clang \
6165
libclang-dev \
@@ -72,10 +76,6 @@ RUN apt-get update -y && \
7276
automake \
7377
libtool \
7478
net-tools \
75-
# These headers are missing with the hpcx installer, required
76-
# by UCX to find RDMA devices
77-
libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
78-
libnuma-dev librdmacm-dev ibverbs-providers \
7979
# For Prometheus
8080
curl tar ca-certificates && \
8181
rm -rf /var/lib/apt/lists/*
@@ -437,6 +437,13 @@ RUN apt-get update && \
437437
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
438438
build-essential \
439439
python3-dev \
440+
# Curl for polling various endpoints.
441+
curl \
442+
# For debugging
443+
vim \
444+
# Libraries required by UCX to find RDMA devices
445+
libibverbs1 rdma-core ibverbs-utils libibumad3 \
446+
libnuma1 librdmacm1 ibverbs-providers \
440447
# JIT Kernel Compilation, flashinfer
441448
ninja-build \
442449
g++ \

0 commit comments

Comments
 (0)