Skip to content

Benchmark comparison workflow. - #7715

Merged
alliepiper merged 2 commits into
NVIDIA:mainfrom
alliepiper:7260_benchmark_ci_infra
Mar 19, 2026
Merged

alliepiper merged 2 commits into
NVIDIA:mainfrom
alliepiper:7260_benchmark_ci_infra

Conversation

@alliepiper

@alliepiper alliepiper commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #7260.

Requesting benchmarks in PRs

ci/bench.yaml is the new user interface for requesting perf regression tests in PRs.

  • Select GPU, benchmark filters, CTK, host, etc.
  • PR CI parses the yaml at runtime, runs per-GPU jobs for perf regression-tests.
  • Branch protections will block merging modifications to ci/bench.yaml.
    • Prevents benchmarks from getting turned on by default.
    • Will require admin merge for intentional changes (rare; new GPU pools, etc)

This is a short example -- the actual file has usage, docs, and tips: ci/bench.yaml.

benchmarks:
  filters:
    - '^cub\.bench\.for_each\.base'
    - '^cub\.bench\.reduce\.(sum|min)\.'
  gpus:
    - "t4"         # sm_75, 16 GB
    - "l4"         # sm_89, 24 GB
    - "h100"       # sm_90, 80 GB
    - "rtxpro6000" # sm_120
  launch_args: "--cuda 12.9 --host gcc12"
  # launch_args: "" # Latest nvcc + gcc
  arch: "native"
  nvbench_args: "--timeout 3"

CI Jobs

A separate CI job is launched for each GPU requested. Each job builds, runs, and compares all requested benchmarks for that GPU. Raw logs and summaries are logged in the job output:

Eg: https://github.com/NVIDIA/cccl/actions/runs/22204344026/job/64224807621?pr=7715

image

Artifacts

Each benchmark job uploads an artifact with json+md outputs from each benchmark along with all build, etc logs.

The top-level summary.md contains all of the nvbench-compare outputs for all benchmarks.

└── bench-7207159d0ff6-20260219T232528Z-origin_main
    ├── base
    │   ├── cub.bench.for_each.base.base.json
    │   ├── cub.bench.for_each.base.base.md
    │   ├── cub.bench.reduce.min.base.json
    │   ├── cub.bench.reduce.min.base.md
    │   ├── cub.bench.reduce.sum.base.json
    │   └── cub.bench.reduce.sum.base.md
    ├── compare
    │   ├── cub.bench.for_each.base.base.md
    │   ├── cub.bench.reduce.min.base.md
    │   └── cub.bench.reduce.sum.base.md
    ├── logs
    │   ├── build.base.log
    │   ├── build.test.log
    │   ├── compare.cub.bench.for_each.base.base.log
    │   ├── compare.cub.bench.reduce.min.base.log
    │   ├── compare.cub.bench.reduce.sum.base.log
    │   ├── configure.base.log
    │   ├── configure.test.log
    │   ├── run.base.cub.bench.for_each.base.base.log
    │   ├── run.base.cub.bench.reduce.min.base.log
    │   ├── run.base.cub.bench.reduce.sum.base.log
    │   ├── run.test.cub.bench.for_each.base.base.log
    │   ├── run.test.cub.bench.reduce.min.base.log
    │   └── run.test.cub.bench.reduce.sum.base.log
    ├── meta
    │   └── selected_targets.txt
    ├── summary.md
    └── test
        ├── cub.bench.for_each.base.base.json
        ├── cub.bench.for_each.base.base.md
        ├── cub.bench.reduce.min.base.json
        ├── cub.bench.reduce.min.base.md
        ├── cub.bench.reduce.sum.base.json
        └── cub.bench.reduce.sum.base.md

@copy-pr-bot

copy-pr-bot Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Feb 18, 2026
@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 633af1b to b0f027d Compare February 18, 2026 20:06
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from b0f027d to 66f3822 Compare February 18, 2026 20:32
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 66f3822 to bb77d85 Compare February 18, 2026 22:00
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from bb77d85 to fa09494 Compare February 18, 2026 23:09
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from fa09494 to 44f63ef Compare February 18, 2026 23:28
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 44f63ef to 3f4d76a Compare February 19, 2026 15:02
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 3f4d76a to c9d408a Compare February 19, 2026 17:12
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch 2 times, most recently from fa2aced to 5dd6f72 Compare February 19, 2026 19:30
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 5dd6f72 to 637774b Compare February 19, 2026 19:47
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch 2 times, most recently from 973f0de to 3471a2c Compare February 19, 2026 21:15
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 3471a2c to 742f33b Compare February 19, 2026 21:26
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 0b0858c to 7207159 Compare February 19, 2026 23:22
@alliepiper

Copy link
Copy Markdown
Contributor Author

/ok to test

@alliepiper
alliepiper marked this pull request as ready for review February 20, 2026 13:24
@alliepiper
alliepiper requested review from a team as code owners February 20, 2026 13:24
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Feb 20, 2026
@alliepiper
alliepiper requested review from a team February 20, 2026 13:32

@oleksandr-pavlyk oleksandr-pavlyk left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have learned a lot reviewing this PR. Thanks @alliepiper

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Is it possible to add GPU name to the generated artifact, so that it is easier to find the artifact to inspect

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

It seems that to trigger benchmark run, ci/bench.yaml needs to be modified. This requires author to push a commit.

Is it possible to enable triggering benchmarking job by posting a comment on the PR itself?

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Another QOL suggestion: can benchmarking artifact be attached to the comment that posted request to run the benchmark

Comment thread ci/bench.yaml Resolved
@alliepiper

Copy link
Copy Markdown
Contributor Author

Is it possible to enable triggering benchmarking job by posting a comment on the PR itself?

I agree that this would be ideal, but it's a can of worms from a security standpoint since these launch work on nvidia owned runners. We'd need to work with the gha-runners team and figure out how to do this securely, and that's out of scope for an MVP.

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 7207159 to ce80311 Compare March 17, 2026 18:05
@github-actions

This comment has been minimized.

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from ce80311 to 76aebaf Compare March 17, 2026 20:30
@github-actions

This comment has been minimized.

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 76aebaf to 3d58630 Compare March 17, 2026 21:15
@github-actions

This comment has been minimized.

@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from 3d58630 to bc82e9b Compare March 17, 2026 22:32
@github-actions

Copy link
Copy Markdown
Contributor

❌ Benchmark Results

CUB benchmark comparison had failures.

Results
Artifacts

Fixes NVIDIA#7260.

ci/bench.yaml: Per-PR branch benchmark request file.

- Select GPU, benchmark filters, CTK, host, etc.
- PR CI parses the yaml at runtime, runs per-GPU jobs for perf regression-tests.
- Branch protections will block merging modifications to ci/bench.yaml.
  - Prevents benchmarks from getting turned on by default.
  - Update both bench.yaml and bench.template.yaml when modifying the default file.
@alliepiper
alliepiper force-pushed the 7260_benchmark_ci_infra branch from bc82e9b to 95b4776 Compare March 17, 2026 23:28
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 31m: Pass: 100%/445 | Total: 10d 02h | Max: 1h 22m | Hits: 91%/511071

See results here.

@alliepiper
alliepiper merged commit ca5677d into NVIDIA:main Mar 19, 2026
464 of 465 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Setup minimal benchmark CI infra

3 participants