File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG GIT_USER_NAME="JAX Toolbox"
4455ARG CLANG_VERSION=18
66ARG JAX_TOOLBOX_REF=main
7+ ARG NSIGHT_SYSTEMS_VERSION_OVERRIDE
78
89###############################################################################
910## Build base image
@@ -15,6 +16,7 @@ ARG GIT_USER_EMAIL
1516ARG GIT_USER_NAME
1617ARG CLANG_VERSION
1718ARG JAX_TOOLBOX_REF
19+ ARG NSIGHT_SYSTEMS_VERSION_OVERRIDE
1820ENV CUDA_BASE_IMAGE=${BASE_IMAGE}
1921
2022###############################################################################
@@ -167,7 +169,7 @@ ADD jax-nccl-test parallel-launch /usr/local/bin/
167169##############################################################################
168170
169171ADD install-nsight-systems.sh /usr/local/bin
170- RUN install-nsight-systems.sh
172+ RUN if [[ -n "${NSIGHT_SYSTEMS_VERSION_OVERRIDE}" ]]; then install-nsight-systems.sh "${NSIGHT_SYSTEMS_VERSION_OVERRIDE}"; fi
171173
172174###############################################################################
173175## Install the nsys-jax JAX/XLA-aware profiling scripts, patch Nsight Systems
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -exuo pipefail
33
4+ version=$1
5+ if [[ -z " ${version} " ]]; then
6+ echo " Usage: $0 major.minor.patch"
7+ exit 1
8+ fi
9+
410# Remove the symlink that makes `nsys` refer to the CUDA-bundled version:
511rm /usr/local/cuda/bin/nsys
612
@@ -15,7 +21,7 @@ export DEBIAN_FRONTEND=noninteractive
1521export TZ=America/Los_Angeles
1622
1723apt-get update
18- apt-get install -y nsight-systems-cli-2025.3.1
24+ apt-get install -y nsight-systems-cli-${version}
1925apt-get clean
2026
2127rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ jobs:
135135 GIT_USER_EMAIL=${{ inputs.GIT_USER_EMAIL }}
136136 BUILD_DATE=${{ inputs.BUILD_DATE }}
137137 JAX_TOOLBOX_REF=${{ github.head_ref || github.sha }}
138+ NSIGHT_SYSTEMS_VERSION_OVERRIDE=2025.3.1
138139 ${{ inputs.BASE_IMAGE != 'latest' && format('BASE_IMAGE={0}', inputs.BASE_IMAGE) || '' }}
139140
140141 - name : Generate sitrep
You can’t perform that action at this time.
0 commit comments