From 4489ebcacabdd49ee72c2ab1735989feb7a040d3 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 03:14:53 -0800 Subject: [PATCH] The widest mode's calibration: two points of 56 words without a search --- crates/metal2vulkan/src/lower/simd/mod.rs | 2 ++ docs/API.md | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/metal2vulkan/src/lower/simd/mod.rs b/crates/metal2vulkan/src/lower/simd/mod.rs index b8072bd20..3794ce6bf 100644 --- a/crates/metal2vulkan/src/lower/simd/mod.rs +++ b/crates/metal2vulkan/src/lower/simd/mod.rs @@ -67,6 +67,8 @@ //! | `1 16 16` | 1,042 | 46 | 971 | 300 | 0.070 | 0.015 | //! | `1 16 64` | 4,066 | 46 | 11,987 | 2,585 | 0.319 | 0.074 | //! | `1 16 512` | 32,290 | 46 | past 8 GiB, end | 3,292 | - | 1.709 | +//! | `0 48 8` | 1,362 | 56 | 458 | 38 | 0.168 | 0.021 | +//! | `0 48 16` | 2,618 | 56 | 1,332 | 85 | 0.400 | 0.037 | //! | `1 32 32` | 3,618 | 62 | 18,428 | 996 | 1.221 | 0.051 | //! | `1 48 32` | 5,186 | 78 | 25,799 | 1,277 | 1.985 | 0.081 | //! diff --git a/docs/API.md b/docs/API.md index 9f2f19b9d..d5de98e43 100644 --- a/docs/API.md +++ b/docs/API.md @@ -735,6 +735,7 @@ emulated, one run each (compile times varied up to twice between runs): | `0 32 64` | 7,050 | 40 | 6,652 | 282 | 1.061 | 0.107 | | `1 16 16` | 1,042 | 46 | 971 | 300 | 0.070 | 0.015 | | `1 16 64` | 4,066 | 46 | 11,987 | 2,585 | 0.319 | 0.074 | +| `0 48 8` | 1,362 | 56 | 458 | 38 | 0.168 | 0.021 | | `1 48 32` | 5,186 | 78 | 25,799 | 1,277 | 1.985 | 0.081 | At 34 estimated words or fewer the two compile alike and the pinned kernel runs as fast or