049e3d8bb3
Move benches/ -> src/kernbench/benches/ and src/kernbench/cli/probe.py -> src/kernbench/probes/probe.py. Each bench self-registers via @bench(name=..., description=...); kernbench list enumerates benches with auto-assigned indices, --bench accepts kebab-case name or numeric index. Audit at package-import time fails if any non-underscore module forgets the decorator. ADR-0010 (EN + KO) updated to reflect the new resolver path, list subcommand, and probes package separation. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
364 B
Python
10 lines
364 B
Python
"""kernbench.benches: eager-import sibling modules so @bench fires.
|
|
|
|
Underscore-prefixed modules are treated as helpers and skipped.
|
|
After import, every imported module must have registered at least one
|
|
bench, or a RuntimeError is raised by the audit.
|
|
"""
|
|
from kernbench.benches.registry import _eager_import_and_audit
|
|
|
|
_eager_import_and_audit(__path__, __name__)
|