Skip to content

Commit cfb4ec9

Browse files
committed
Docker/Accelerated Python: Fix placement of newer nsys and ncu on the path.
1 parent 18d7ffa commit cfb4ec9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tutorials/accelerated-python/brev/dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ RUN curl -L -O https://developer.nvidia.com/downloads/assets/tools/secure/nsight
3636
&& curl -L -O https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/nsight-compute-2025.2.1_2025.2.1.3-1_amd64.deb \
3737
&& dpkg -i nsight-compute-2025.2.1_2025.2.1.3-1_amd64.deb \
3838
&& rm -f nsight-compute-2025.2.1_2025.2.1.3-1_amd64.deb \
39-
&& echo "export PATH=\"/opt/nsight-systems-cli/2025.3.1/bin:/opt/nvidia/nsight-compute/2025.2.1:${PATH}\"" >> ~/.bashrc
39+
&& mkdir -p /usr/local/nvidia/bin \
40+
&& ln -s /opt/nvidia/nsight-systems-cli/2025.3.1/bin/nsys /usr/local/nvidia/bin/nsys \
41+
&& ln -s /opt/nvidia/nsight-compute/2025.2.1/ncu /usr/local/nvidia/bin/ncu
4042

4143
# Install PyTorch with CUDA 12.8 support.
4244
RUN pip install --no-cache-dir --root-user-action=ignore \

0 commit comments

Comments
 (0)