Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
11 changes: 11 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
fail-fast: false
matrix:
include:
- name: cuda13.5-arm64
dockerfile: cuda13.5
tags: superbench/main:cuda13.5-arm64
platforms: linux/arm64
runner: [self-hosted, linux/arm64]
build_args: "NUM_MAKE_JOBS=16"
registry_cache: true
- name: cuda13.4-arm64
dockerfile: cuda13.4
tags: superbench/main:cuda13.4-arm64
Expand Down Expand Up @@ -197,6 +204,10 @@ jobs:
fail-fast: false
matrix:
include:
- name: cuda13.5
tags: superbench/main:cuda13.5
sources: >-
superbench/main:cuda13.5-arm64
- name: cuda13.4
tags: superbench/main:cuda13.4
sources: >-
Expand Down
212 changes: 212 additions & 0 deletions dockerfile/cuda13.5.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# Build the streamOlympus STREAM variant in a separate stage. -mcpu=olympus needs GCC 15 and
# binutils 2.46, while the base image ships GCC 13 / binutils 2.42. Building it here keeps
# that toolchain (and its runtime libraries) out of the final image.
FROM nvcr.io/nvidia/pytorch:26.11-py3@sha256:0d31ce7e80cda1b1f07357004530a2f41d6754a6ddae28af508134c63c59fe0b AS stream-olympus-builder

ARG NUM_MAKE_JOBS=64
ENV DEBIAN_FRONTEND=noninteractive \
BINUTILS_VERSION=2.46.1 \
BINUTILS_SHA256=e127a709cba24c76de8936cb7083dd768f28cd37eb010492e2f19b71eb1294e4

COPY third_party/stream-tests/Makefile /build/Makefile

RUN mkdir -p /out && \
if [ "$(uname -m)" != "aarch64" ]; then \
echo "Skipping streamOlympus for non-aarch64 architecture"; \
exit 0; \
fi && \
apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common ca-certificates wget xz-utils zlib1g-dev libzstd-dev && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get update && \
apt-get install -y --no-install-recommends gcc-15 && \
cd /tmp && \
for base in https://sourceware.org/pub/binutils/releases https://mirrors.kernel.org/gnu/binutils https://ftp.gnu.org/gnu/binutils; do \
wget -nv --tries=3 --timeout=60 "${base}/binutils-${BINUTILS_VERSION}.tar.xz" -O binutils.tar.xz && break; \
done && \
echo "${BINUTILS_SHA256} binutils.tar.xz" | sha256sum -c - && \
tar -xf binutils.tar.xz && \
cd binutils-${BINUTILS_VERSION} && \
./configure --prefix=/opt/binutils-${BINUTILS_VERSION} \
--with-system-zlib \
--disable-werror \
--disable-gprofng && \
make -j "${NUM_MAKE_JOBS}" MAKEINFO=true && \
make install MAKEINFO=true && \
cd /build && \
gcc-15 --version | head -n1 && \
make OLYMPUS CC="gcc-15 -B/opt/binutils-${BINUTILS_VERSION}/bin/" && \
sha256sum stream.c streamOlympus && \
cp streamOlympus /out/

FROM nvcr.io/nvidia/pytorch:26.11-py3@sha256:0d31ce7e80cda1b1f07357004530a2f41d6754a6ddae28af508134c63c59fe0b

# OS:
# - Ubuntu: 24.04
# - OpenMPI: 5.0.10rc2 (from HPC-X 2.51)
# - Docker Client: 20.10.8 (installed in this dockerfile)
# NVIDIA:
# - CUDA: 13.5 V13.5.37 (from pytorch:26.11-py3)
# - cuDNN: 9.28.0.42
# - cuBLAS: 13.10.0.20
# - NCCL: 2.32.6
# - TransformerEngine: 2.21.0
# - torch: 2.15.0a0+fd23299d96.nv26.11
# - CUTLASS: v4.8.1 (SHA-verified by third_party/Makefile)
# - nvbandwidth: v0.11.0 (SHA-verified, with SuperBench concurrent batch cases)
# - sm_107 / compute capability 10.7
# Mellanox (from base image - not reinstalled):
# - OFED: inbox (kernel-provided)
# - HPC-X: 2.51 (includes ompi4 + ompi5, UCX 1.22.0)
# Intel:
# - mlc: 3.13 (amd64 only)
#
# Notes for sm_107:
# - This image is validated on aarch64 (ARM). cpu_hpl, Intel MLC, AOCC and AMD BLIS auto-skip on aarch64.
# - CUDA 13.5 builds the in-tree CUDA benchmarks, CUTLASS, NVBench,
# cuBLASLt and NCCL tests for sm_107.
# - streamOlympus is built with GCC 15 in the stream-olympus-builder stage above.
#
# Build (from repo root), e.g.:
# docker build -t superbench-cuda13.5 \
# --build-arg NUM_MAKE_JOBS=16 \
# -f dockerfile/cuda13.5.dockerfile .

LABEL maintainer="SuperBench"

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y --no-install-recommends \
autoconf \
automake \
bc \
build-essential \
curl \
dmidecode \
ffmpeg \
git \
iproute2 \
jq \
libaio-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libboost-program-options-dev \
libcap2 \
libcurl4-openssl-dev \
libnuma-dev \
libpci-dev \
libswresample-dev \
libncurses-dev \
libtool \
lshw \
python3-mpi4py \
net-tools \
nlohmann-json3-dev \
openssh-client \
openssh-server \
pciutils \
sudo \
util-linux \
vim \
wget \
rsync \
&& \
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/*

# Number of parallel jobs for NVBench and nvbandwidth. Override with --build-arg NUM_MAKE_JOBS=...
ARG NUM_MAKE_JOBS=64

ARG TARGETPLATFORM
ARG TARGETARCH

# Install Docker
ENV DOCKER_VERSION=20.10.8
RUN TARGETARCH_HW=$(uname -m) && \
wget -q https://download.docker.com/linux/static/stable/${TARGETARCH_HW}/docker-${DOCKER_VERSION}.tgz -O docker.tgz && \
tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ && \
rm docker.tgz

# Update system config
RUN mkdir -p /root/.ssh && \
touch /root/.ssh/authorized_keys && \
mkdir -p /var/run/sshd && \
sed -i "s/[# ]*PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config && \
sed -i "s/[# ]*PermitUserEnvironment no/PermitUserEnvironment yes/" /etc/ssh/sshd_config && \
sed -i "s/[# ]*Port.*/Port 22/" /etc/ssh/sshd_config && \
echo "* soft nofile 1048576\n* hard nofile 1048576" >> /etc/security/limits.conf && \
echo "root soft nofile 1048576\nroot hard nofile 1048576" >> /etc/security/limits.conf

# OFED and HPC-X: Using the base image's versions (inbox OFED, HPC-X 2.51).
# The base NGC pytorch:26.11-py3 image ships HPC-X at /opt/hpcx with
# ompi4+ompi5 and the ompi_mpi_short_float symbol that PyTorch is linked against.
# Note: HPC-X 2.51 no longer has hpcx-init.sh; use /opt/hpcx/ompi/bin directly.
# DO NOT install a separate OFED or HPC-X - it breaks PyTorch's MPI linkage.

# Installs specific to amd64 platform
RUN if [ "$TARGETARCH" = "amd64" ]; then \
# Install Intel MLC
cd /tmp && \
wget -q https://downloadmirror.intel.com/926327/mlc_v3.13.tgz -O mlc.tgz && \
echo "a8537e8ff3fad626d75a383fabc224ccc4cc98a0111c9989f7fb26b639f12019 mlc.tgz" | sha256sum -c - && \
tar xzf mlc.tgz Linux/mlc && \
install -m 755 ./Linux/mlc /usr/local/bin/ && \
rm -rf ./Linux mlc.tgz && \
# Install AOCC compiler
wget https://download.amd.com/developer/eula/aocc-compiler/aocc-compiler-4.0.0_1_amd64.deb && \
apt install -y ./aocc-compiler-4.0.0_1_amd64.deb && \
rm -rf aocc-compiler-4.0.0_1_amd64.deb && \
# Install AMD BLIS
wget https://download.amd.com/developer/eula/blis/blis-4-0/aocl-blis-linux-aocc-4.0.tar.gz && \
tar xzf aocl-blis-linux-aocc-4.0.tar.gz && \
mv amd-blis /opt/AMD && \
rm -rf aocl-blis-linux-aocc-4.0.tar.gz; \
else \
echo "Skipping Intel MLC, AOCC and AMD BLIS installations for non-amd64 architecture: $TARGETARCH"; \
fi

# Add the base image's HPC-X 2.51 UCX and ompi to the library path and add mpicc to PATH.
ENV MPI_HOME=/opt/hpcx/ompi
ENV PATH="/opt/hpcx/ompi/bin:${PATH}" \
LD_LIBRARY_PATH="/opt/hpcx/ucx/lib:/opt/hpcx/ompi/lib:${LD_LIBRARY_PATH}" \
SB_HOME=/opt/superbench \
SB_MICRO_PATH=/opt/superbench \
ANSIBLE_DEPRECATION_WARNINGS=FALSE \
ANSIBLE_COLLECTIONS_PATH=/usr/share/ansible/collections

RUN echo PATH="$PATH" > /etc/environment && \
echo LD_LIBRARY_PATH="$LD_LIBRARY_PATH" >> /etc/environment && \
echo SB_MICRO_PATH="$SB_MICRO_PATH" >> /etc/environment

# Add config files
ADD dockerfile/etc /opt/microsoft/

WORKDIR ${SB_HOME}

# Copy everything before release clones so legacy submodules cannot overlay them later.
ADD . .
# Build the CUDA targets (the `cuda` aggregate; MSCCL is not included). mpicc comes from the
# base image's HPC-X 2.51 via the PATH set above.
RUN make -C third_party cuda NUM_MAKE_JOBS=${NUM_MAKE_JOBS}
COPY --from=stream-olympus-builder /out/ ${SB_MICRO_PATH}/bin/
# Validate runtime linkage and require the Olympus binary on ARM64.
RUN f=${SB_MICRO_PATH}/bin/streamOlympus; \
if [ "$TARGETARCH" = "arm64" ]; then \
test -x "$f" || { echo "Missing required ARM64 STREAM binary: $f" >&2; exit 1; }; \
fi; \
if [ -e "$f" ]; then \
output="$(ldd -r "$f" 2>&1)" || { printf '%s\n' "$output"; exit 1; }; \
printf '%s\n' "$output"; \
if printf '%s\n' "$output" | grep -Eq 'not found|undefined symbol'; then exit 1; fi; \
fi

# Keep the base image's setuptools version for NVIDIA ModelOpt compatibility.
RUN python3 -m pip install --upgrade setuptools==81.0.0 && \
python3 -m pip install --no-cache-dir .[nvworker] && \
make cppbuild && \
make postinstall && \
rm -rf .git
11 changes: 11 additions & 0 deletions docs/user-tutorial/benchmarks/micro-benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,17 @@ with topology distance of 2, 4, 6, respectively.
Measures bandwidth and latency for various memcpy patterns across different links using copy engine or kernel copy methods,
performed by [nvbandwidth](https://github.com/NVIDIA/nvbandwidth)

CUDA >=13.5 images use nvbandwidth v0.11.0. Bidirectional device-to-device tests retain the
unsuffixed metrics below as aliases for the first matrix, and additionally report
`<testcase>_read1_*`, `_read2_*`, `_write1_*`, `_write2_*` and `_total_*` metrics as applicable,
including each matrix's `sum_bw`. GPU-local matrices report `<testcase>_gpu[0-9]_bw` without
an artificial CPU axis. Bandwidth remains in GB/s and latency remains in ns.

In v0.11.0, `device_local_copy_*` bandwidth counts both reads and writes (`2 * size`).
These values are not directly comparable to older one-way-byte-count baselines.
SuperBench's default buffer size remains 64 MiB, and the four custom batch cases still
copy equal-sized buffers concurrently on all GPUs and report each GPU separately.

#### Metrics

| Metrics | Unit | Description |
Expand Down
Loading
Loading