Skip to content

Commit ab1071b

Browse files
authored
Merge branch 'main' into ncu-attach-mode
Signed-off-by: Alok Joshi <aljoshi@nvidia.com>
2 parents 22ee89a + e7d1787 commit ab1071b

2 files changed

Lines changed: 15 additions & 26 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,27 @@ jobs:
3535
hatch run docs:build
3636
3737
test:
38-
runs-on: ${{ matrix.runner }}
38+
name: test (${{ matrix.platform.runner }})
39+
runs-on: ${{ matrix.platform.runner }}
3940
strategy:
4041
matrix:
41-
runner: [linux-amd64-gpu-h100-latest-1, linux-arm64-gpu-l4-latest-1]
42+
platform:
43+
- runner: linux-amd64-gpu-h100-latest-1
44+
ncu_installer_url: "https://developer.nvidia.com/downloads/assets/tools/secure/nsight-compute/2026_2_1/nsight_compute-linux-x86_64-2026.2.1.6.run"
45+
- runner: linux-arm64-gpu-l4-latest-1
46+
ncu_installer_url: "https://developer.nvidia.com/downloads/assets/tools/secure/nsight-compute/2026_2_1/nsight_compute-linux-sbsa-2026.2.1.6.run"
4247
container:
43-
image: nvcr.io/nvidia/pytorch:26.05-py3
48+
image: nvcr.io/nvidia/pytorch:26.06-py3
4449
options: "--cap-add=SYS_ADMIN --gpus all"
4550
steps:
4651
- uses: actions/checkout@v5
52+
- name: "Install NCU 2026.2.1.0 (CUDA 13.3 Update 1)"
53+
run: |
54+
curl -L -o ncu_installer.run "${{ matrix.platform.ncu_installer_url }}"
55+
chmod +x ncu_installer.run
56+
./ncu_installer.run -- -noprompt
57+
rm ncu_installer.run
58+
echo "/usr/local/NVIDIA-Nsight-Compute-2026.2" >> $GITHUB_PATH
4759
- name: "Running Tests"
4860
run: |
4961
pip install hatch

‎examples/test_examples.py‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,10 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
import importlib
5-
import subprocess
6-
import sys
75

86
import pytest
97

108

11-
def get_cuda_dev_cc_major(device_id: int) -> int:
12-
# Run in a subprocess to avoid initializing CUDA in the pytest process during collection,
13-
# which would prevent nsight's injection library from loading before CUDA init.
14-
result = subprocess.run(
15-
[
16-
sys.executable,
17-
"-c",
18-
f"import torch; print(torch.cuda.get_device_properties({device_id}).major)",
19-
],
20-
capture_output=True,
21-
text=True,
22-
check=True,
23-
)
24-
return int(result.stdout.strip())
25-
26-
279
def test_00_minimal() -> None:
2810
minimal = importlib.import_module("examples.00_minimal")
2911
minimal.main()
@@ -85,11 +67,6 @@ def test_11_output_csv() -> None:
8567
output_csv.main()
8668

8769

88-
# skip cuTile test on CC 9.x as Cuda Toolkit 13.2 used for testing does not support cuda-tile on CC 9.x (Hopper)
89-
@pytest.mark.skipif(
90-
get_cuda_dev_cc_major(0) == 9,
91-
reason="cuda-tile not supported on CC 9.x in CUDA Toolkit 13.2",
92-
) # type: ignore[untyped-decorator]
9370
def test_12_cutile() -> None:
9471
cutile = importlib.import_module("examples.12_cutile")
9572
cutile.main()

0 commit comments

Comments
 (0)