Vertical gap #5: lig-kernels.toml catalog + parity harness¶
Summary: Expand benchmarks/competitive/lig-kernels.toml to all lig.kernel.* catalog IDs (including md_force_short and heat_stencil_2d_f32 stubs), document cuda/hip/metal as N/A until emit env, and fix bench-lig-kernel-parity.sh to emit every registry kernel_id while keeping matmul smoke green.
Agent continuation¶
- Read —
docs/game-dev/lig-kernel-catalog.md,benchmarks/competitive/lig-kernels.toml,scripts/bench-lig-kernel-parity.sh,packages/lig/li-tests/smoke/kernel_matmul_parity.li. - Run —
./scripts/bench-lig-kernel-parity.sh; build matmul smoke frompackages/lig/;./li-tests/run_all.sh smoke(expectsPASS compile_open_ok packages/lig/li-tests/smoke/kernel_matmul_parity.li). - Then — WP2: wire
import ligfor package smokes; fill vendor columns whenLIG_EMIT_CUDA|HIP|METAL=1lowering lands. - Blocked on — LKIR vendor emit (no timed
cuda/hip/metalin TOML until then).
Changed¶
| Area | What | Evidence |
|---|---|---|
| Registry | 14 [[kernel]] rows aligned to catalog; meta emit_env_* | benchmarks/competitive/lig-kernels.toml |
| Vendor honesty | cuda/hip/metal = N/A on all rows | catalog + TOML header comments |
| Harness | JSON kernel_ids + per-kernel stub/pilot entries | ./scripts/bench-lig-kernel-parity.sh |
| Smoke | Standalone matmul pilot FFI smoke | T-PKG-lig-kernel-matmul-parity compile_open_ok |
| li-tests | Resolve packages/* manifest paths via $REPO | li-tests/run_all.sh |
Not changed¶
- LKIR lowering /
LIG_EMIT_*codegen — no compiler emit in this PR. import ligpackage resolution from repo root — smoke uses inlined FFI shims.benchmarks/competitive/registry.tomltier-1/2 CPU rows.- benchmarks dashboard vendor ratio ingest — N/A until emit env.
Breaking¶
None.
Security¶
N/A — registry metadata and smoke compile only.
Performance¶
N/A — stub registry; matmul pilot timing in local JSON only.
Downstream¶
| Repo | Action |
|---|---|
| benchmarks dashboard | Ingest expanded registry when vendor emit fills columns |