benches: package as kernbench.benches, add @bench registry + list subcommand
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>
This commit is contained in:
@@ -864,7 +864,7 @@ def test_mcpu_kernel_launch_composite():
|
||||
def test_qkv_gemm_bench_completes():
|
||||
"""The qkv_gemm benchmark runs to completion without error."""
|
||||
clear_registry()
|
||||
from benches.qkv_gemm import run as bench_run
|
||||
from kernbench.benches.qkv_gemm import run as bench_run
|
||||
from kernbench.runtime_api.context import RuntimeContext
|
||||
|
||||
graph = load_topology(TOPOLOGY_PATH)
|
||||
@@ -958,7 +958,7 @@ def test_mcpu_multi_pe_kernel_launch():
|
||||
def test_qkv_gemm_bench_multi_pe_completes():
|
||||
"""The qkv_gemm_multi_pe benchmark runs to completion without error."""
|
||||
clear_registry()
|
||||
from benches.qkv_gemm_multi_pe import run as bench_run
|
||||
from kernbench.benches.qkv_gemm_multi_pe import run as bench_run
|
||||
from kernbench.runtime_api.context import RuntimeContext
|
||||
|
||||
graph = load_topology(TOPOLOGY_PATH)
|
||||
|
||||
Reference in New Issue
Block a user