Skip to content

[EPIC] CI benchmarking MVP #2011

Open
1 of 1 issue completed
Open

Description

@alliepiper

Overview

Main Goals

  • Allow a subset of regression benchmarks to be run as part of our PR workflow.
  • Perform full benchmark regression testing as part of our weekly CI.
  • Initially get everything working for CUB, then extend to python.
  • Add SASS extraction + hashing to CCCL benchmarking framework / databases. Skip running benchmarks if SASS is unchanged.

Stretch Goals

  • Expose a github action that be used to run an arbitrary number of benchmarks on two SHAs and compare them.
  • Integrate with the Git Bisect scripting / action for locating regression SHA.
  • Allow comparison of python results against C++ results.

Considerations

  • Benchmark results are not stable enough to reliably detect regressions from one system to the next, even with "identical" hardware. It is important that the baseline and testing benchmarks are run back-to-back on the same node within the same job.
  • Locked clocks are not necessary -- NVBench's throttle detection provides a better representation of 'real' performance characteristics.
  • Comparing SASS is faster and more accurate than running a benchmark. The benchmark harness should extract the SASS from the benchmark executables, generate hashes, and compare these to determine if new benchmark measurements are needed.

Implementation Plan

  • Add SASS extraction / hashing to the CCCL benchmarking framework. The hash should be stored in the database, and screened to determine if benchmarks need to run.
  • A "pre-check" mode will be added that compiles and compares the SASS hashes and prints out a list of all benchmarks that have changes to the hash. This mode may be used in CI job on non-GPU machines to build benchmarking artifacts and determine which, if any, benchmarks need to be executed in a followup GPU job.
  • Write a script to compare two SHAs: ci/bench_cub.sh [common options] [-base <ref>] [-test <ref>] [-file <nvbench_executable> [-- <args for nvbench executable>]. Use [last release] if base is omitted, and HEAD if test is omitted. Run the full suite if file is missing. This will checkout base and run the selected benchmarks, storing the full jsonbin output, repeat for test, and compare the two. Include the pre-check mode and execution mode.
  • Add 'bench' jobs to ci/matrix.yaml that will invoke the ci/bench_* scripts, using the existing args: tag to specify customizations. This will allow PRs to trigger benchmarks using the existing override: machinery, and allow us to add benchmarking jobs to the nightly/weekly matrices easily.
  • Provide documentation and examples for all.

Stretch

  • Interface git_bisect.sh efficiently with the benchmarking scripts.
  • Incorporate SASS checking as a pre-benchmarking step.
  • Add a 'prebuild' step that will compile all needed benchmark executables, then pass them to the GPU runner as an artifact or via sccache.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. self-assigned this
    on Jul 19, 2024
  2. changed the title [-]Weekly benchmark regression testing[/-] [+]Benchmark regression testing[/+] on Jul 23, 2024
  3. changed the title [-]Benchmark regression testing[/-] [+]CI benchmarking MVP[/+] on Oct 7, 2025
  4. gevtushenko commented on Oct 7, 2025

    @gevtushenko
    Collaborator

    It'd be convenient if we could base the script on top of https://github.com/NVIDIA/cccl/blob/main/benchmarks/scripts/run.py and forward some of the command line options to it, like benchmark regex etc.

  5. added
    infra
    bench
    on Jan 13, 2026
  6. linked a pull request that will close this issueBenchmarking CI. #2014on Jan 13, 2026
  7. moved this from Todo to Paused in CCCLon Jan 13, 2026
  8. removed their assignment
    on Jan 15, 2026
  9. moved this from Paused to Todo in CCCLon Jan 15, 2026
  10. moved this from Todo to No status in CCCLon Jan 15, 2026
  11. moved this to In Progress in CCCLon Jan 16, 2026
  12. moved this from In Progress to Todo in CCCLon Jan 16, 2026
  13. changed the title [-]CI benchmarking MVP[/-] [+][EPIC] CI benchmarking MVP[/+] on Jan 16, 2026
  14. changed the issue type fromtoon Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    benchinfra

    Type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions