From 09cdcf34aac46a37320bc394cc714ac5f53b937d Mon Sep 17 00:00:00 2001 From: liuzhenwei Date: Mon, 22 Jun 2026 20:55:06 +0800 Subject: [PATCH] [XPU] update nixl to v1.2.0 (#46327) Signed-off-by: zhenwei-intel --- docker/Dockerfile.xpu | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docker/Dockerfile.xpu b/docker/Dockerfile.xpu index ed8a347005..a7bc9ae7d5 100644 --- a/docker/Dockerfile.xpu +++ b/docker/Dockerfile.xpu @@ -132,7 +132,7 @@ CMD ["/bin/bash"] FROM vllm-base AS ucx-nixl-build ARG UCX_VERSION=v1.21.0-rc2 -ARG NIXL_VERSION=0.10.1 +ARG NIXL_VERSION=v1.2.0 # Build-time only: compiler, autotools, and verbs dev headers RUN apt-get update -y && apt-get install -y --no-install-recommends \ @@ -149,25 +149,25 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \ # patchelf (installed via uv) is used by the NIXL wheel build to rewrite # RPATH entries, making the wheel portable across stages. RUN --mount=type=cache,target=/root/.cache/uv \ - git clone https://github.com/openucx/ucx /tmp/ucx_source && \ - cd /tmp/ucx_source && git checkout "${UCX_VERSION}" && \ + git clone --depth 1 --branch "${UCX_VERSION}" https://github.com/openucx/ucx /tmp/ucx_source && \ + cd /tmp/ucx_source && \ bash autogen.sh && \ ./configure --prefix=/tmp/ucx_install --with-ze=yes --enable-examples --enable-mt && \ - make CFLAGS="-Wno-error=incompatible-pointer-types" -j8 && make install && \ - git clone https://github.com/ai-dynamo/nixl /tmp/nixl_source && \ - cd /tmp/nixl_source && git checkout "${NIXL_VERSION}" && \ + make CFLAGS="-Wno-error=incompatible-pointer-types" -j"$(nproc)" && make install && \ + git clone --depth 1 --branch "${NIXL_VERSION}" https://github.com/ai-dynamo/nixl /tmp/nixl_source && \ + cd /tmp/nixl_source && \ uv pip install --upgrade meson pybind11 patchelf && \ uv pip install -r requirements.txt && \ PKG_CONFIG_PATH=/tmp/ucx_install/lib/pkgconfig \ LD_LIBRARY_PATH=/tmp/ucx_install/lib \ python -m pip wheel --no-deps . -w /tmp/nixl_wheels/ && \ find /tmp/ucx_install -type f \( -name '*.a' -o -name '*.la' \) -delete && \ - rm -rf /tmp/ucx_install/include /tmp/ucx_install/share /tmp/ucx_install/etc /tmp/ucx_install/lib/cmake /tmp/ucx_install/bin && \ - rm -rf /tmp/ucx_source /tmp/nixl_source + rm -rf /tmp/ucx_install/{include,share,etc,bin} /tmp/ucx_install/lib/cmake \ + /tmp/ucx_source /tmp/nixl_source FROM vllm-base AS vllm-openai -ARG NIXL_VERSION=0.10.1 +ARG NIXL_VERSION=v1.2.0 # Copy compiled UCX runtime libraries and the pre-built NIXL wheel. # No compiler or autotools are installed in this stage. @@ -192,7 +192,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ librdmacm1t64 \ && rm -rf /var/lib/apt/lists/* \ && uv pip install --no-deps /tmp/nixl_wheels/nixl*.whl \ - && uv pip install nixl==${NIXL_VERSION} \ + && uv pip install nixl==${NIXL_VERSION} && uv pip uninstall nixl-cu13 \ && rm -rf /tmp/nixl_wheels RUN --mount=type=cache,target=/root/.cache/uv \