File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,13 @@ RUN install-nccl-sanity-check.sh
162162ADD jax-nccl-test parallel-launch /usr/local/bin/
163163
164164
165+ ##############################################################################
166+ ## Install a newer Nsight Systems version than is included in cuda-dl-base
167+ ##############################################################################
168+
169+ ADD install-nsight-systems.sh /usr/local/bin
170+ RUN install-nsight-systems.sh
171+
165172###############################################################################
166173## Install the nsys-jax JAX/XLA-aware profiling scripts, patch Nsight Systems
167174###############################################################################
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -exuo pipefail
3+
4+ # Remove the symlink that makes `nsys` refer to the CUDA-bundled version:
5+ rm /usr/local/cuda/bin/nsys
6+
7+ # Repo for newer nsight versions
8+ UBUNTU_ARCH=$( dpkg --print-architecture)
9+ UBUNTU_VERSION=$( . /etc/os-release && echo ${ID}${VERSION_ID/ ./ } ) # e.g. ubuntu2204
10+ DEVTOOLS_URL=https://developer.download.nvidia.com/devtools/repos/${UBUNTU_VERSION} /${UBUNTU_ARCH}
11+ curl -o /usr/share/keyrings/nvidia.pub " ${DEVTOOLS_URL} /nvidia.pub"
12+ echo " deb [signed-by=/usr/share/keyrings/nvidia.pub] ${DEVTOOLS_URL} / /" > /etc/apt/sources.list.d/devtools-${UBUNTU_VERSION} -${UBUNTU_ARCH} .list
13+
14+ export DEBIAN_FRONTEND=noninteractive
15+ export TZ=America/Los_Angeles
16+
17+ apt-get update
18+ apt-get install -y nsight-systems-cli-2025.3.1
19+ apt-get clean
20+
21+ rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments