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

Closed
opened 2026-11-27 14:24:11 +00:00 by tiagonogueiraa-bit · 3 comments
tiagonogueiraa-bit commented 2026-11-27 14:24:11 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by tiagonogueiraa-bit on 2026-11-27T14:24:11Z.


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.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6648317960 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-27T14:24:11Z. --- 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 commented 2026-11-27 14:24:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by tiagonogueiraa-bit on 2026-11-27T14:24:12Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7220738096 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367#issuecomment-7220738096). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-27T14:24:12Z. --- /claim
github-actions[bot] commented 2026-11-27 14:24:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T14:24:24Z.


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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7220742396 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367#issuecomment-7220742396). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T14:24:24Z. --- Claimed by @tiagonogueiraa-bit. Open a draft pull request with `Refs #367` in its description within 24 hours, or the claim expires.
LakshanSivakumar commented 2026-11-28 00:35:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T00:35:34Z.


Thank you. A whole-wave f16 sum in a console wave the host splits is now lowered (#368, 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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231035430 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/367#issuecomment-7231035430). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-28T00:35:34Z. --- Thank you. A whole-wave f16 sum in a console wave the host splits is now lowered (#368, 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#367
No description provided.