Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
77c5f2f
CE: Added pages with guidelines for images on Alps
Madeeks Sep 30, 2025
5d22873
Fixed mkdocs table of contents
Madeeks Sep 30, 2025
9504522
Fixed typos
Madeeks Sep 30, 2025
713f8b4
Fixed typo
Madeeks Sep 30, 2025
b10b99f
Improved content organization for CE image guidelines
Madeeks Sep 30, 2025
5d74d59
Fixed code blocks
Madeeks Sep 30, 2025
0bab4b2
Updated allowed words in spelling checker
Madeeks Oct 1, 2025
7236858
Apply suggestions from code review
Madeeks Oct 6, 2025
ca271ed
CE image guidelines: add links to subpages
Madeeks Oct 6, 2025
1e91952
CE image guidelines: add code block notes for PMIx settings
Madeeks Oct 6, 2025
1dd25cb
Merge branch 'main' into ce-image-guidelines
bcumming Oct 21, 2025
797f947
Merge branch 'main' into ce-image-guidelines
bcumming Oct 22, 2025
b0f1dc3
Merge branch 'main' into ce-image-guidelines
bcumming Oct 22, 2025
a69d336
wip
bcumming Oct 24, 2025
5df469c
refactor comms index; integrated base image into libfabric
bcumming Oct 27, 2025
fc5c463
wip
bcumming Nov 20, 2025
e993f95
wip
bcumming Dec 1, 2025
1d3dd28
Merge remote-tracking branch 'bcumming/ce-image-guidelines' into ce-i…
bcumming Dec 2, 2025
87ad5a9
fix spelling
bcumming Dec 2, 2025
1171ce6
spelling
bcumming Dec 2, 2025
43d52c2
moving dockerfile material into the communication library docs
bcumming Dec 2, 2025
6f39d91
move nccl, openmpi and nvshmem docs fully to communication
bcumming Dec 3, 2025
df6c449
Merge branch 'main' into ce-image-guidelines
bcumming Dec 3, 2025
d6324c3
spelling
bcumming Dec 3, 2025
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
4 changes: 4 additions & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ CWP
CXI
Ceph
Containerfile
Containerfiles
DNS
Dockerfiles
Dufourspitze
EFA
EMPA
ETHZ
Ehrenfest
Expand Down Expand Up @@ -75,6 +77,7 @@ MeteoSwiss
NAMD
NICs
NVMe
NVSHMEM
Nordend
OpenFabrics
OAuth
Expand All @@ -101,6 +104,7 @@ ROCm
RPA
Roboto
Roothaan
SHMEM
SSHService
STMV
Scopi
Expand Down
105 changes: 105 additions & 0 deletions docs/software/container-engine/guidelines-images/image-comm-fwk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
[](){#ref-ce-guidelines-images-commfwk}
# Communication frameworks image

This page describes a container image providing foundational software components for achieving efficient execution on Alps nodes with NVIDIA GPUs.

The most important aspect to consider for performance of containerized applications is related to use of high-speed networks,
therefore this image mainly installs communication frameworks and libraries, besides general utility tools.
In particular, the [Libfabric](https://ofiwg.github.io/libfabric/) framework (also known as Open Fabrics Interfaces - OFI) is required to interface applications with the Slingshot high-speed network.

At runtime, the container engine [CXI hook][ref-ce-cxi-hook] will replace the Libfabric libraries inside the container with the corresponding libraries on the host system.
This will ensure access to the Slingshot interconnect.

This image is not intended to be used on its own, but to serve as a base to build higher-level software (e.g. MPI implementations) and application stacks.
For this reason, no performance results are provided in this page.

A build of this image is currently hosted on the [Quay.io](https://quay.io/) registry at the following reference:
`quay.io/ethcscs/comm-fwk:ofi1.22-ucx1.19-cuda12.8`.
The image name `comm-fwk` is a shortened form of "communication frameworks".

## Contents

- Ubuntu 24.04
- CUDA 12.8.1
- GDRCopy 2.5.1
- Libfabric 1.22.0
- UCX 1.19.0
Comment on lines +22 to +26
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bound out of date, at least temporarily. Should we provide some instructions to the user on how to retrieve this information from the container or registry instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also a bit redundant with versions explicitly set below.


## Containerfile
```Dockerfile
ARG ubuntu_version=24.04
ARG cuda_version=12.8.1
FROM docker.io/nvidia/cuda:${cuda_version}-cudnn-devel-ubuntu${ubuntu_version}

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
build-essential \
ca-certificates \
pkg-config \
automake \
autoconf \
libtool \
cmake \
gdb \
strace \
wget \
git \
bzip2 \
python3 \
gfortran \
rdma-core \
numactl \
libconfig-dev \
libuv1-dev \
libfuse-dev \
libfuse3-dev \
libyaml-dev \
libnl-3-dev \
libnuma-dev \
libsensors-dev \
libcurl4-openssl-dev \
libjson-c-dev \
libibverbs-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

ARG gdrcopy_version=2.5.1
RUN git clone --depth 1 --branch v${gdrcopy_version} https://github.com/NVIDIA/gdrcopy.git \
&& cd gdrcopy \
&& export CUDA_PATH=${CUDA_HOME:-$(echo $(which nvcc) | grep -o '.*cuda')} \
&& make CC=gcc CUDA=$CUDA_PATH lib \
&& make lib_install \
&& cd ../ && rm -rf gdrcopy

# Install libfabric
ARG libfabric_version=1.22.0
RUN git clone --branch v${libfabric_version} --depth 1 https://github.com/ofiwg/libfabric.git \
&& cd libfabric \
&& ./autogen.sh \
&& ./configure --prefix=/usr --with-cuda=/usr/local/cuda --enable-cuda-dlopen --enable-gdrcopy-dlopen --enable-efa \
&& make -j$(nproc) \
&& make install \
&& ldconfig \
&& cd .. \
&& rm -rf libfabric

# Install UCX
ARG UCX_VERSION=1.19.0
RUN wget https://github.com/openucx/ucx/releases/download/v${UCX_VERSION}/ucx-${UCX_VERSION}.tar.gz \
&& tar xzf ucx-${UCX_VERSION}.tar.gz \
&& cd ucx-${UCX_VERSION} \
&& mkdir build \
&& cd build \
&& ../configure --prefix=/usr --with-cuda=/usr/local/cuda --with-gdrcopy=/usr/local --enable-mt --enable-devel-headers \
&& make -j$(nproc) \
&& make install \
&& cd ../.. \
&& rm -rf ucx-${UCX_VERSION}.tar.gz ucx-${UCX_VERSION}
```

## Notes
- The image is based on an official NVIDIA CUDA image, and therefore already provides the NCCL library, alongside a complete CUDA installation.
- Communication frameworks are built with explicit support for CUDA and GDRCopy.
- The libfabric EFA provider is included to leave open the possibility to experiment with derived images on AWS infrastructure as well.
- Although only the libfabric framework is required to support Alps' Slingshot network, this image also packages the UCX communication framework to allow building a broader set of software (e.g. some OpenSHMEM implementations) and supporting optimized Infiniband communication as well.
Loading