Repository navigation
omarchy: 128-lane G18G builds for the float linalg kernels (M6X-08) - #677
Conversation
The audit marks eig/inverse/qr latency-bound on G18G, so those parts build the same shaders with -DLINALG_WG=128 while every other part keeps the 256-lane blobs. The workgroup lane count moves into LINALG_WG (strides, reduction butterflies and the publish slots), and linalg_g18_kernel picks the *_G18 kernels on G18G device names.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Overview
NotesThe change is a mechanical, internally consistent parameterization of the float linalg shaders' workgroup lane count:
No issues found in changed code. Files Reviewed (7 files)
Reviewed by free · Input: 63K · Output: 6.2K · Cached: 284.2K |
|
GREEN at 1432bd3 The 128-lane path is wired and the shaders compile at both sizes.
I did not re-run the m6 GPU suites. This host has no G18G device. |
Summary
G18G runs the latency-bound float linalg kernels — eig, inverse, QR — at
128 lanes per the audit. Every other part keeps the 256-lane blobs.
linalg_*.comp: workgroup lane count moves intoLINALG_WG(default256;
-DLINALG_WG=128for the G18G builds). Stride loops, theinverse/QR reduction butterflies (
stride = LINALG_WG/2), and thepublish slots (
red[LINALG_WG-1],red[LINALG_WG-2]) all derive fromit.
linalg_eig's serial-sum reduction was already lane-agnostic.CMakeLists.txt: three*_f32_g18shader targets at-DLINALG_WG=128.compute.h/compute.cpp:Linalg{Inverse,Qr,Eig}F32G18kernelsappended before
Count(profile ids stable) and mapped inshader_bytes.primitives.cpp:linalg_g18_kernel()picks the G18 kernels whencapabilities().device_namecontainsG18G; same chip-scopedpredicate style as the existing gates.
Evidence (m6, G18G B1)
*_g18blobs declareLocalSize 128 1 1;the base blobs stay
LocalSize 256.omarchy_linalg_ops_tests: 31/31 cases, 181,183 assertions, 0failed — includes inverse/QR CPU-reference comparisons at the
pinned float tolerances.
omarchy_eig_ops_tests: 9/9 cases, 264 assertions, 0 failed.scripts/check_compute_kernel_wiring.py: ok (703 declared, 699referenced, 696 shader targets).
glslc -Oat both sizes.Generated with Devin