Skip to content

[Kernel] Add inventory guards and clean benchmark layout - #32788

Merged
BBuf merged 1 commit into
sgl-project:mainfrom
BBuf:agent/kernel-inventory-hygiene
Jul 30, 2026
Merged

BBuf merged 1 commit into
sgl-project:mainfrom
BBuf:agent/kernel-inventory-hygiene

Conversation

@BBuf

@BBuf BBuf commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • move standalone attention benchmark and config-search scripts out of the runtime kernel package
  • align registered kernel tests and benchmarks with their operator groups, and remove the zero-reference CuTe benchmark helper
  • add CPU-only inventory checks for operator groups, registry targets, JIT sources, and AOT compilation units
  • reject conflicting registrations for the same operator/backend while keeping identical re-registration idempotent

Related to #29630.

Verification

  • pre-commit run --files <changed files>
  • PYTHONPATH=python python3 -m pytest -q test/registered/kernels/test_kernel_inventory.py test/registered/kernels/ops/layernorm/test_fused_op.py test/registered/kernels/ops/layernorm/test_kernels_namespace.py (79 passed)
  • strict CI registry collection (1907 registrations collected)
  • H200: inventory/registry/namespace smoke (77 passed, 1 skipped, metadata-only CPU check excluded)
  • H200: add-constant + Inkling relative projection tests (65 passed)
  • H200: Hadamard JIT tests (145 passed)
  • H200: all relocated standalone benchmark entry points import and show help successfully

CI States

Latest PR Test (Base): ✅ Run #30460487196
Latest PR Test (Extra): ✅ Run #30478862179

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@BBuf BBuf added jit-kernel kernel ready-for-review Refactor run-ci CI: run the baseline test suite on this PR labels Jul 29, 2026 — with ChatGPT Codex Connector
@BBuf BBuf added the ready-to-merge The PR is ready to merge after the CI is green. label Jul 29, 2026
@BBuf
BBuf merged commit 1d9c292 into sgl-project:main Jul 30, 2026
190 of 228 checks passed
saturn-acc pushed a commit to saturn-acc/sglang that referenced this pull request Aug 16, 2026
Atituiset pushed a commit to Atituiset/sglang that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jit-kernel kernel ready-for-review ready-to-merge The PR is ready to merge after the CI is green. Refactor run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant