Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion contrib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Comment thread
aranadive marked this conversation as resolved.
Resolved

RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get -y install \
Expand Down Expand Up @@ -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 && \
Comment thread
brminich marked this conversation as resolved.
Resolved
./autogen.sh && ./configure \
--enable-shared \
--disable-static \
Expand Down
10 changes: 9 additions & 1 deletion contrib/build-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -84,6 +85,10 @@ get_options() {
missing_requirement $1
fi
;;
--ucx-upstream)
# Master branch (v1.20) also containing EFA SRD support
UCX_REF=3842a65f02a8e2f3635a66189cd82dc86bf065c2
Comment thread
aranadive marked this conversation as resolved.
Resolved
;;
--)
shift
break
Expand Down Expand Up @@ -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() {
Expand All @@ -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 " [--ucx-upstream use ucx master branch]"
exit 0
}

Expand All @@ -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
docker build -f $DOCKER_FILE $BUILD_ARGS $TAG $NO_CACHE $BUILD_CONTEXT