- Dockerfile: install cuda-nvcc-13-0 from NVIDIA repo for compilation - build-nccl-tests.sh: downloads libnccl-dev for nccl.h, builds all_reduce_perf - build.sh: runs nccl-tests build, injects binary into /usr/local/bin/ - platform: RunNCCLTests() auto-detects GPU count, runs all_reduce_perf - TUI: NCCL bandwidth test entry in Burn-in Tests screen [N] hotkey Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
57 lines
1.5 KiB
Docker
57 lines
1.5 KiB
Docker
FROM debian:12
|
|
|
|
ARG GO_VERSION=1.24.0
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update -qq && apt-get install -y \
|
|
ca-certificates \
|
|
live-build \
|
|
debootstrap \
|
|
squashfs-tools \
|
|
xorriso \
|
|
grub-pc-bin \
|
|
grub-efi-amd64-bin \
|
|
mtools \
|
|
git \
|
|
wget \
|
|
curl \
|
|
tar \
|
|
xz-utils \
|
|
rsync \
|
|
build-essential \
|
|
gcc \
|
|
make \
|
|
perl \
|
|
linux-headers-amd64 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Add NVIDIA CUDA repo and install nvcc (needed to compile nccl-tests)
|
|
RUN wget -qO /tmp/cuda-keyring.gpg \
|
|
https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub \
|
|
&& gpg --dearmor < /tmp/cuda-keyring.gpg \
|
|
> /usr/share/keyrings/nvidia-cuda.gpg \
|
|
&& rm /tmp/cuda-keyring.gpg \
|
|
&& echo "deb [signed-by=/usr/share/keyrings/nvidia-cuda.gpg] \
|
|
https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /" \
|
|
> /etc/apt/sources.list.d/cuda.list \
|
|
&& apt-get update -qq \
|
|
&& apt-get install -y cuda-nvcc-13-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN arch="$(dpkg --print-architecture)" \
|
|
&& case "$arch" in \
|
|
amd64) goarch=amd64 ;; \
|
|
arm64) goarch=arm64 ;; \
|
|
*) echo "unsupported architecture: $arch" >&2; exit 1 ;; \
|
|
esac \
|
|
&& wget -q -O /tmp/go.tar.gz "https://go.dev/dl/go${GO_VERSION}.linux-${goarch}.tar.gz" \
|
|
&& rm -rf /usr/local/go \
|
|
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
|
|
&& rm -f /tmp/go.tar.gz
|
|
|
|
ENV PATH=/usr/local/go/bin:${PATH}
|
|
WORKDIR /work
|
|
|
|
CMD ["/bin/bash"]
|