From 46e96710ce2d60d6a9b0d81c7aef8b07b421020e Mon Sep 17 00:00:00 2001 From: Thomas Vegas Date: Tue, 27 May 2025 18:08:26 +0000 Subject: [PATCH 1/3] CONTRIB: Enable UCX build for EFA with common sha1 Signed-off-by: Thomas Vegas --- contrib/Dockerfile | 3 ++- contrib/build-container.sh | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/contrib/Dockerfile b/contrib/Dockerfile index fb66ee0a4b..57fe0dd507 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -19,6 +19,7 @@ ARG BASE_IMAGE_TAG="25.03-cuda12.8-devel-ubuntu24.04" FROM ${BASE_IMAGE}:${BASE_IMAGE_TAG} ARG DEFAULT_PYTHON_VERSION="3.12" +ARG UCX_REF="v1.19.x" RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get -y install \ @@ -84,7 +85,7 @@ RUN rm -rf /opt/hpcx/ucx RUN cd /usr/local/src && \ git clone https://github.com/openucx/ucx.git && \ cd ucx && \ - git checkout v1.19.x && \ + git checkout $UCX_REF && \ ./autogen.sh && ./configure \ --enable-shared \ --disable-static \ diff --git a/contrib/build-container.sh b/contrib/build-container.sh index 1c5246117f..a3bd1f8a74 100755 --- a/contrib/build-container.sh +++ b/contrib/build-container.sh @@ -32,6 +32,7 @@ BASE_IMAGE=nvcr.io/nvidia/cuda-dl-base BASE_IMAGE_TAG=25.03-cuda12.8-devel-ubuntu24.04 WHL_PLATFORM=manylinux_2_39_x86_64 WHL_PYTHON_VERSIONS="3.12" +UCX_REF=v1.19.x OS="ubuntu24" get_options() { @@ -84,6 +85,10 @@ get_options() { missing_requirement $1 fi ;; + --efa) + # Master branch (v1.20) containing EFA SRD support + UCX_REF=3842a65f02a8e2f3635a66189cd82dc86bf065c2 + ;; --) shift break @@ -119,6 +124,7 @@ show_build_options() { echo "Base Image: ${BASE_IMAGE}:${BASE_IMAGE_TAG}" echo "Python Versions for wheel build: ${WHL_PYTHON_VERSIONS}" echo "Wheel Platform: ${WHL_PLATFORM}" + echo "UCX Ref: ${UCX_REF}" } show_help() { @@ -129,6 +135,7 @@ show_help() { echo " [--os [ubuntu24|ubuntu22] to select Ubuntu version]" echo " [--tag tag for image]" echo " [--python-versions python versions to build for, comma separated]" + echo " [--efa ucx version that supports EFA SRD transport]" exit 0 } @@ -151,7 +158,8 @@ fi BUILD_ARGS+=" --build-arg BASE_IMAGE=$BASE_IMAGE --build-arg BASE_IMAGE_TAG=$BASE_IMAGE_TAG" BUILD_ARGS+=" --build-arg WHL_PYTHON_VERSIONS=$WHL_PYTHON_VERSIONS" BUILD_ARGS+=" --build-arg WHL_PLATFORM=$WHL_PLATFORM" +BUILD_ARGS+=" --build-arg UCX_REF=$UCX_REF" show_build_options -docker build -f $DOCKER_FILE $BUILD_ARGS $TAG $NO_CACHE $BUILD_ARGS $BUILD_CONTEXT \ No newline at end of file +docker build -f $DOCKER_FILE $BUILD_ARGS $TAG $NO_CACHE $BUILD_CONTEXT From 9fad4c1751a1fe61fe60bb72149d97ccb2f9945e Mon Sep 17 00:00:00 2001 From: Thomas Vegas Date: Wed, 28 May 2025 21:18:14 +0300 Subject: [PATCH 2/3] CONTRIB: Enable UCX build for EFA with common sha1 Signed-off-by: Thomas Vegas --- contrib/build-container.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/build-container.sh b/contrib/build-container.sh index a3bd1f8a74..b12b939855 100755 --- a/contrib/build-container.sh +++ b/contrib/build-container.sh @@ -85,8 +85,8 @@ get_options() { missing_requirement $1 fi ;; - --efa) - # Master branch (v1.20) containing EFA SRD support + --ucx-upstream) + # Master branch (v1.20) also containing EFA SRD support UCX_REF=3842a65f02a8e2f3635a66189cd82dc86bf065c2 ;; --) @@ -135,7 +135,7 @@ show_help() { echo " [--os [ubuntu24|ubuntu22] to select Ubuntu version]" echo " [--tag tag for image]" echo " [--python-versions python versions to build for, comma separated]" - echo " [--efa ucx version that supports EFA SRD transport]" + echo " [--ucx-upstream use ucx master branch]" exit 0 } From 42fc9f25b7ac9cae57449830804e555b27a75389 Mon Sep 17 00:00:00 2001 From: Thomas Vegas Date: Tue, 3 Jun 2025 18:09:10 +0300 Subject: [PATCH 3/3] CONTRIB: Enable UCX build for EFA with common sha1 Signed-off-by: Thomas Vegas --- contrib/build-container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/build-container.sh b/contrib/build-container.sh index b12b939855..70cdd45e92 100755 --- a/contrib/build-container.sh +++ b/contrib/build-container.sh @@ -87,7 +87,7 @@ get_options() { ;; --ucx-upstream) # Master branch (v1.20) also containing EFA SRD support - UCX_REF=3842a65f02a8e2f3635a66189cd82dc86bf065c2 + UCX_REF=7ec95b95e524a87e81cac92f5ca8523e3966b16b ;; --) shift