From b60fd759694c6b734acc06dce7aa1a3e10b9e28c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 07:57:50 -0800 Subject: [PATCH] SEMANTICS_VERSION 2086: a long barrier-free kernel's lockstep pair search fits its ledger The commit before this one keeps one block's reachable list at a time in the lockstep pair search, so a long barrier-free kernel no longer runs out of its ledger. The pairs, wants and barriers are unchanged, but kernels that were refused (FALLBACK LedgerBytes) now translate, so a cached refusal must be computed again (SEMANTICS). Verified by radvcompile's runs: release on msi, the authored P1 K16 S2048 kernel (about 129,000 instructions) from FALLBACK LedgerBytes in 0.71 s to translated in 1.27 s at 139 MB resident on the RTX 5080 profile and 1.30 s / 149 MB on Iris; S1024 unchanged at 0.50 s / 78 MB (m3-max-25407). Negative control (25404, the new tests on the old search): ledger peak 10.3 MB at 256 steps against 144.5 MB at 1024 (14x), so the at-most-5x test fails, and the 2048-step test is refused at 471.85 MB. At 0e4f537ef7, fmt and clippy rc 0 and the metal2vulkan suite 3545/3546 (25405). The one failure, golden_hashes_match_the_table, lists the same 837 cells at the tip and at its base 65ca5fc387 alone (25442), all re-blessed at pin 69. Known open: a 4096-step kernel is still refused (WorkUnits), the pair search's work being quadratic; that is next. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 84796c59a..a922232ed 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -61,7 +61,7 @@ mod tests; /// unchanged version, and its bless records the version. Independent of the crate's version and of /// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no /// history. -pub const SEMANTICS_VERSION: u32 = 2085; +pub const SEMANTICS_VERSION: u32 = 2086; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another