A whole-wave f16 sum in a console wave the host splits is refused (2 compute shaders) #370

Closed
opened 2026-11-27 14:28:27 +00:00 by github-bot · 3 comments
Owner

@⁠tiagonogueiraa-bit on GitHub · 2026-11-27 14:24 UTC · original

A small shape from #4: "a 16-bit wave reduction across the host's waves" is refused in 2 compute shaders of a 12,020-shader corpus (Series S, boot to the menus, main 905e7aa): c943990185ea8740 and d98422fd516b6e44.

Both are wave64 whole-wave v_add_f16 sums (row butterflies, v_permlanex16_b32, then lane 0 added in), read at lane 63, in groups the host splits into two 32-lane waves. Shape::Half is lowered only when a console wave is one host wave.

Plan:

  • Combine the two host waves' f32 sums across the pair, as other float sums are (halves_reduce).
  • Read the high half's lane with wide_read_lane.
  • Include a GPU value test in groups of two console waves, and a by-output sweep.
**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-27 14:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367) A small shape from #4: "a 16-bit wave reduction across the host's waves" is refused in 2 compute shaders of a 12,020-shader corpus (Series S, boot to the menus, main `905e7aa`): `c943990185ea8740` and `d98422fd516b6e44`. Both are wave64 whole-wave `v_add_f16` sums (row butterflies, `v_permlanex16_b32`, then lane 0 added in), read at lane 63, in groups the host splits into two 32-lane waves. `Shape::Half` is lowered only when a console wave is one host wave. Plan: - Combine the two host waves' f32 sums across the pair, as other float sums are (`halves_reduce`). - Read the high half's lane with `wide_read_lane`. - Include a GPU value test in groups of two console waves, and a by-output sweep.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 14:28:27 +00:00
Author
Owner

@⁠tiagonogueiraa-bit on GitHub · 2026-11-27 14:24 UTC · original

/claim

**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-27 14:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367#issuecomment-7220738096) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 14:24 UTC · original

Claimed by @⁠tiagonogueiraa-bit. Open a draft pull request with Refs #367 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 14:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367#issuecomment-7220742396) Claimed by @⁠tiagonogueiraa-bit. Open a draft pull request with `Refs #367` in its description within 24 hours, or the claim expires.
github-bot referenced this issue from a commit 2026-11-27 15:59:39 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-28 00:35 UTC · original

Thank you. A whole-wave f16 sum in a console wave the host splits is now lowered (#371, on main): each host wave's sum is combined across the pair and rounded to f16 once. Sweep: 2 compute shaders gained, no regressions, with a GPU test for groups of two console waves. I have not tested the two shaders in the game. Closing; reopen if they are still refused on a6a58361.

**@⁠LakshanSivakumar** on GitHub · 2026-11-28 00:35 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367#issuecomment-7231035430) Thank you. A whole-wave f16 sum in a console wave the host splits is now lowered (#371, on main): each host wave's sum is combined across the pair and rounded to f16 once. Sweep: 2 compute shaders gained, no regressions, with a GPU test for groups of two console waves. I have not tested the two shaders in the game. Closing; reopen if they are still refused on a6a58361.
This discussion has been locked. Commenting is limited to contributors.
No description provided.