Shaders: a wave64 program without lane reads loses UAV order across its 32-lane halves on AMD (main) #3766

Open
opened 2026-11-28 17:22:22 +00:00 by ColorMeBoom · 5 comments
ColorMeBoom commented 2026-11-28 17:22:22 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T17:22:22Z.


On main, a console wave64 compute program whose lanes never read each other gets no WaveSize in DXIL (lower.rs L601-605 declares one only with console lanes, or for a one-wave group with LDS). The driver is then free to run it as 32-lane waves, and the AMD driver here does. When one lane writes a UAV dword and a lane in the other 32-lane half reads it later in program order, the reader gets the old value every time. On the console both lanes are in one wave and the read sees the write.

Measured on main 63bcca4, RX 5700 XT (Navi 10, RDNA1, 32 and 64 lanes, driver 32.0.21045.29003), Windows 11 26200, hardware adapter. Setup:

  • one group per dispatch, 256 dispatches per row;
  • lane w of each console wave loads a dword only it touches, adds 1 and stores it to its wave's slot;
  • lane r then loads that slot.
program w5 → r6 (same half) w5 → r40 w40 → r5
no lane reads (no WaveSize) 0 stale all stale: 256/256, 1024/1024, 4096/4096 at 64/256/1024 threads all stale, same counts
plus a DPP row_mirror at the top (WaveSize(64)) 0 0 0
plus a v_readlane_b32 s9, v0, 40 at the top (WaveSize(64)) 0 0 0

The store lands in every slot in every row, so a stale read means the load ran early, not that the store was lost. The same program declared WaveSize(64) keeps the console's order on this card. So the gap comes from leaving the wave size to the driver for a program whose UAV accesses cross the 32-lane halves.

Related:

  • neonbyte1 found the same pattern on 32-lane hosts (RTX 5090, #2633 comment) and in the console flow (#439, #3683). Their fix shape on neonbyte1:suggest/uav-order-all-forms also covers this per-lane form there, but its tests skip 64-lane hardware.
  • On a 64-lane AMD host, declaring WaveSize(64) for programs with a cross-lane UAV conflict would be enough. A 32-lane host still needs the fence.
  • How many shipped programs hit this is unknown: it needs the analysis neonbyte1's branch adds (two accesses that can touch the same bytes from different lanes).

Reproduce: ColorMeBoom:probe/main-uav-order (d867ae7, one ignored test on main), then:

cargo test -p victory-shader --lib --features host -- --ignored --nocapture local_uav_write_then_read_across_halves

PROBE_RUNS sets the dispatch count. The same probe on #2633 is in this comment.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6668891660 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3766). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-28T17:22:22Z. --- On `main`, a console wave64 compute program whose lanes never read each other gets no `WaveSize` in DXIL ([`lower.rs` L601-605](https://github.com/Marvisak/VIctory/blob/63bcca43c/crates/victory-shader/src/emit/lower.rs#L601-L605) declares one only with console lanes, or for a one-wave group with LDS). The driver is then free to run it as 32-lane waves, and the AMD driver here does. When one lane writes a UAV dword and a lane in the other 32-lane half reads it later in program order, the reader gets the old value every time. On the console both lanes are in one wave and the read sees the write. **Measured on `main` `63bcca4`**, RX 5700 XT (Navi 10, RDNA1, 32 and 64 lanes, driver 32.0.21045.29003), Windows 11 26200, hardware adapter. Setup: - one group per dispatch, 256 dispatches per row; - lane `w` of each console wave loads a dword only it touches, adds 1 and stores it to its wave's slot; - lane `r` then loads that slot. | program | `w`5 → `r`6 (same half) | `w`5 → `r`40 | `w`40 → `r`5 | |---|---|---|---| | no lane reads (no `WaveSize`) | 0 stale | **all stale**: 256/256, 1024/1024, 4096/4096 at 64/256/1024 threads | **all stale**, same counts | | plus a DPP `row_mirror` at the top (`WaveSize(64)`) | 0 | 0 | 0 | | plus a `v_readlane_b32 s9, v0, 40` at the top (`WaveSize(64)`) | 0 | 0 | 0 | The store lands in every slot in every row, so a stale read means the load ran early, not that the store was lost. The same program declared `WaveSize(64)` keeps the console's order on this card. So the gap comes from leaving the wave size to the driver for a program whose UAV accesses cross the 32-lane halves. **Related:** - neonbyte1 found the same pattern on 32-lane hosts (RTX 5090, [#2633 comment](https://github.com/Marvisak/VIctory/pull/2633#issuecomment-7241562625)) and in the console flow (#439, #3683). Their fix shape on [`neonbyte1:suggest/uav-order-all-forms`](https://github.com/neonbyte1/VIctory/tree/suggest/uav-order-all-forms) also covers this per-lane form there, but its tests skip 64-lane hardware. - On a 64-lane AMD host, declaring `WaveSize(64)` for programs with a cross-lane UAV conflict would be enough. A 32-lane host still needs the fence. - How many shipped programs hit this is unknown: it needs the analysis neonbyte1's branch adds (two accesses that can touch the same bytes from different lanes). **Reproduce:** [`ColorMeBoom:probe/main-uav-order`](https://github.com/ColorMeBoom/VIctory/tree/probe/main-uav-order) (`d867ae7`, one ignored test on `main`), then: ``` cargo test -p victory-shader --lib --features host -- --ignored --nocapture local_uav_write_then_read_across_halves ``` `PROBE_RUNS` sets the dispatch count. The same probe on #2633 is in [this comment](https://github.com/Marvisak/VIctory/pull/2633#issuecomment-7242919206). AI use: Claude Code (Claude Opus 5.5).
oni-swr commented 2026-11-28 17:56:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-28T17:56:48Z.


RDNA3 hardware check for #3766. I could not reproduce the stale reads on an AMD Radeon RX 7800 XT (Navi 32). The D3D12 test device identified that adapter and reported wave sizes 32–64. Driver 32.0.31035.1003, Windows 11 Pro 25H2 build 26200.9974, Ryzen 7 5700X3D, Cargo test profile, hardware D3D12.

  • A used Marvisak main 63bcca43c6a00a758510398fa43096ce7e4f7df0 with ColorMeBoom’s probe d867ae75db59a7edcce19e4f83673c40d49bc7af.
  • B used neonbyte1’s suggest/uav-order-all-forms at 0c0e85ef67c81a651b941ccc893efc7544953e2a, with the same probe cherry-picked without conflicts and adapted to call the fork’s emitter with the actual D3D12 target. Local probe diagnostics logged the adapter and declared wave size in both arms.

Stale reads / checked reads for the no-lane-read program, aggregated over three runs per arm, 256 single-group dispatches per case per run.

Arm Threads/group w5 → r6 w5 → r40 w40 → r5
A 64 0/768 0/768 0/768
A 256 0/3,072 0/3,072 0/3,072
A 1,024 0/12,288 0/12,288 0/12,288
B 64 0/768 0/768 0/768
B 256 0/3,072 0/3,072 0/3,072
B 1,024 0/12,288 0/12,288 0/12,288

Both WaveSize(64) controls also had zero stale reads in every row, with the same denominators per control. Every store landed and there were zero other mismatches. The no-lane-read DXIL had no WaveSize in either arm. These readbacks leave the actual driver-selected width undetermined. I reran one B repetition after another test process appeared at its end and excluded the original.

The fork’s three UAV-order tests (console flow, per-lane, split) normally skip when Host::target() reports wave64 via D3D12_OPTIONS1. I relaxed that test-only skip and ran all three with the real target, then added a local VICTORY_1128I_FORCE_WAVE32=1 switch that passes Target { lanes_min: 32, lanes_max: 32 } only to the emitter. All three passed in both modes, with 0/688,128 stale reads per mode over 18 cases. The forced mode emitted WaveSize(32) and a barrier in all 18 cases. The native mode emitted no fork UAV barriers, so the native A/B shows order held in both arms and gives no evidence of a benefit from the fix on the native wave64-capable target. The forced run shows the fork’s wave32 fence path preserved order on this hardware.

AI-assisted (Codex gpt-6.2-sol)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7243409582 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3766#issuecomment-7243409582). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-28T17:56:48Z. --- RDNA3 hardware check for #3766. I could not reproduce the stale reads on an AMD Radeon RX 7800 XT (Navi 32). The D3D12 test device identified that adapter and reported wave sizes 32–64. Driver `32.0.31035.1003`, Windows 11 Pro 25H2 build `26200.9974`, Ryzen 7 5700X3D, Cargo test profile, hardware D3D12. - A used Marvisak main `63bcca43c6a00a758510398fa43096ce7e4f7df0` with ColorMeBoom’s probe `d867ae75db59a7edcce19e4f83673c40d49bc7af`. - B used neonbyte1’s `suggest/uav-order-all-forms` at `0c0e85ef67c81a651b941ccc893efc7544953e2a`, with the same probe cherry-picked without conflicts and adapted to call the fork’s emitter with the actual D3D12 target. Local probe diagnostics logged the adapter and declared wave size in both arms. Stale reads / checked reads for the no-lane-read program, aggregated over three runs per arm, 256 single-group dispatches per case per run. | Arm | Threads/group | w5 → r6 | w5 → r40 | w40 → r5 | |---|---:|---:|---:|---:| | A | 64 | 0/768 | 0/768 | 0/768 | | A | 256 | 0/3,072 | 0/3,072 | 0/3,072 | | A | 1,024 | 0/12,288 | 0/12,288 | 0/12,288 | | B | 64 | 0/768 | 0/768 | 0/768 | | B | 256 | 0/3,072 | 0/3,072 | 0/3,072 | | B | 1,024 | 0/12,288 | 0/12,288 | 0/12,288 | Both `WaveSize(64)` controls also had zero stale reads in every row, with the same denominators per control. Every store landed and there were zero other mismatches. The no-lane-read DXIL had no `WaveSize` in either arm. These readbacks leave the actual driver-selected width undetermined. I reran one B repetition after another test process appeared at its end and excluded the original. The fork’s three UAV-order tests (console flow, per-lane, split) normally skip when `Host::target()` reports wave64 via `D3D12_OPTIONS1`. I relaxed that test-only skip and ran all three with the real target, then added a local `VICTORY_1128I_FORCE_WAVE32=1` switch that passes `Target { lanes_min: 32, lanes_max: 32 }` only to the emitter. All three passed in both modes, with **0/688,128** stale reads per mode over 18 cases. The forced mode emitted `WaveSize(32)` and a barrier in all 18 cases. The native mode emitted no fork UAV barriers, so the native A/B shows order held in both arms and gives no evidence of a benefit from the fix on the native wave64-capable target. The forced run shows the fork’s wave32 fence path preserved order on this hardware. AI-assisted (Codex gpt-6.2-sol)
ColorMeBoom commented 2026-11-28 18:14:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T18:14:13Z.


@oni-swr Thanks for the RDNA3 run. Your "driver-selected width undetermined" point is the missing piece, so I measured the width on the RDNA1 card. It's 32 here. That may be the whole difference from your 7800 XT.

How: I wrote an HLSL twin of the translated no-lane-read program, with the same heap UAV through root constant b0 and the same per-thread code. It adds one store at the end: WaveGetLaneCount(). I built it with the Windows SDK's dxc (cs_6_6, no WaveSize attribute) and ran it with the translated shader's root signature on the RX 5700 XT (driver 32.0.21045.29003).

Result: every thread of every row saw a lane count of 32: 64, 256 and 1024 threads, each w/r pair, 256 dispatches each. So on this driver a wave64 program without WaveSize runs as two 32-lane waves per console wave. That fits the earlier table: all stale across the halves, 0 in the same half, and 0 once WaveSize(64) is declared.

Could you run that variant on the 7800 XT? If RDNA3's driver picks 64 lanes for these programs, the two results agree and #3766 is a driver-choice issue: it hits hosts whose driver picks 32. To run it:

  • check out probe/main-uav-order at 9c68ace;
  • build the nine .dxil files from crates/victory-shader/src/emit/uav_halves_probe.hlsl with the dxc line at its end;
  • set PROBE_HLSL_DIR to their folder and run the same cargo test line.

The RESULT hlsl rows print how many threads saw 32 and how many saw 64.

One caveat:

  • The HLSL twin reads stale even within a 32-lane wave: lane 5 → lane 6 was all stale. In HLSL the writer and the reader are separate ifs on exclusive lane tests, so the compiler is free to move the reader's load above the other lane's store.
  • The translated program loads the slot in every lane, the writer included, so that lane's own store-then-load keeps the order inside one host wave.
  • So even inside one host wave, DXIL guarantees no order between lanes for UAV accesses. The translation keeps it only because of how its code happens to be shaped. A fix that relies on WaveSize(64) alone keeps relying on that. A fence, as in neonbyte1's branch, doesn't.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7243635842 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3766#issuecomment-7243635842). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-28T18:14:13Z. --- @oni-swr Thanks for the RDNA3 run. Your "driver-selected width undetermined" point is the missing piece, so I measured the width on the RDNA1 card. It's 32 here. That may be the whole difference from your 7800 XT. **How:** I wrote an HLSL twin of the translated no-lane-read program, with the same heap UAV through root constant `b0` and the same per-thread code. It adds one store at the end: `WaveGetLaneCount()`. I built it with the Windows SDK's dxc (`cs_6_6`, no `WaveSize` attribute) and ran it with the translated shader's root signature on the RX 5700 XT (driver 32.0.21045.29003). **Result:** every thread of every row saw a lane count of **32**: 64, 256 and 1024 threads, each `w`/`r` pair, 256 dispatches each. So on this driver a wave64 program without `WaveSize` runs as two 32-lane waves per console wave. That fits the earlier table: all stale across the halves, 0 in the same half, and 0 once `WaveSize(64)` is declared. Could you run that variant on the 7800 XT? If RDNA3's driver picks 64 lanes for these programs, the two results agree and #3766 is a driver-choice issue: it hits hosts whose driver picks 32. To run it: - check out [`probe/main-uav-order`](https://github.com/ColorMeBoom/VIctory/tree/probe/main-uav-order) at `9c68ace`; - build the nine `.dxil` files from `crates/victory-shader/src/emit/uav_halves_probe.hlsl` with the dxc line at its end; - set `PROBE_HLSL_DIR` to their folder and run the same `cargo test` line. The `RESULT hlsl` rows print how many threads saw 32 and how many saw 64. **One caveat:** - The HLSL twin reads stale even **within a 32-lane wave**: lane 5 → lane 6 was all stale. In HLSL the writer and the reader are separate `if`s on exclusive lane tests, so the compiler is free to move the reader's load above the other lane's store. - The translated program loads the slot in every lane, the writer included, so that lane's own store-then-load keeps the order inside one host wave. - So **even inside one host wave, DXIL guarantees no order between lanes for UAV accesses.** The translation keeps it only because of how its code happens to be shaped. A fix that relies on `WaveSize(64)` alone keeps relying on that. A fence, as in neonbyte1's branch, doesn't. AI use: Claude Code (Claude Opus 5.5).
oni-swr commented 2026-11-28 18:45:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-28T18:45:42Z.


@ColorMeBoom I ran the probe at 9c68ace543f9f954cd0b2a902435dfa5d0168fed on an RX 7800 XT (Navi 32), driver 32.0.31035.1003, Windows 11 25H2 build 26200.9974. One run, 256 dispatches per row. The counts below apply separately to each of the three lane pairs (5 → 6, 5 → 40, 40 → 5).

Threads/group HLSL threads seeing 32 / 64 lanes HLSL stale / checked Stale / checked per translated variant
64 0 / 16,384 256 / 256 0 / 256
256 0 / 65,536 1,024 / 1,024 0 / 1,024
1,024 0 / 262,144 4,096 / 4,096 0 / 4,096

The three translated variants had 0/48,384 stale reads combined. Every store landed, with zero other mismatches across all rows. The 64-lane HLSL result here and your 32-lane result on the RX 5700 XT agree with the driver-choice explanation. The translated rows did not measure their actual wave width.

AI use: Codex (gpt-6.2-sol) ran the probe and wrote this comment.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7244034532 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3766#issuecomment-7244034532). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-28T18:45:42Z. --- @ColorMeBoom I ran the probe at `9c68ace543f9f954cd0b2a902435dfa5d0168fed` on an RX 7800 XT (Navi 32), driver `32.0.31035.1003`, Windows 11 25H2 build `26200.9974`. One run, 256 dispatches per row. The counts below apply separately to each of the three lane pairs (5 → 6, 5 → 40, 40 → 5). | Threads/group | HLSL threads seeing 32 / 64 lanes | HLSL stale / checked | Stale / checked per translated variant | |---:|---:|---:|---:| | 64 | 0 / 16,384 | 256 / 256 | 0 / 256 | | 256 | 0 / 65,536 | 1,024 / 1,024 | 0 / 1,024 | | 1,024 | 0 / 262,144 | 4,096 / 4,096 | 0 / 4,096 | The three translated variants had 0/48,384 stale reads combined. Every store landed, with zero other mismatches across all rows. The 64-lane HLSL result here and your 32-lane result on the RX 5700 XT agree with the driver-choice explanation. The translated rows did not measure their actual wave width. AI use: Codex (gpt-6.2-sol) ran the probe and wrote this comment.
ColorMeBoom commented 2026-11-28 19:14:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T19:14:59Z.


@oni-swr Thanks, that settles it. Summary for whoever picks this up:

GPU driver's lane count for a program without WaveSize (HLSL twin) translated no-lane-read program, cross-half reads
RX 5700 XT (RDNA1), 32.0.21045.29003 32 in every thread all stale
RX 7800 XT (RDNA3), 32.0.31035.1003 (oni-swr) 64 in every thread 0 stale
  • Scope of #3766: the gap shows up wherever the driver runs a wave64 program without WaveSize as 32-lane waves. That includes RDNA1 on this driver, and probably every 32-lane-only host (NVIDIA, where neonbyte1 measured the same pattern). RDNA3 picks 64 here and hides it. Neither of us measured the translated programs' own width, only the HLSL twin's, so "the same choice applies to the translated code" is an inference. It's consistent with every row so far, though.
  • Ordering inside one wave isn't guaranteed either: the HLSL twin was all stale on both cards, including the 64-lane RDNA3 run and the same-half pair 5 → 6. So even one host wave with every lane in it doesn't order UAV accesses between lanes when the compiler can see the lanes are exclusive. The translated code keeps the order today only because it loads the slot in every lane. A fix that relies on WaveSize(64) alone would keep relying on that layout. A fence between conflicting accesses, as in neonbyte1's branch, doesn't depend on it.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7244402753 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3766#issuecomment-7244402753). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-28T19:14:59Z. --- @oni-swr Thanks, that settles it. Summary for whoever picks this up: | GPU | driver's lane count for a program without `WaveSize` (HLSL twin) | translated no-lane-read program, cross-half reads | |---|---|---| | RX 5700 XT (RDNA1), 32.0.21045.29003 | **32** in every thread | **all stale** | | RX 7800 XT (RDNA3), 32.0.31035.1003 (oni-swr) | **64** in every thread | 0 stale | - **Scope of #3766:** the gap shows up wherever the driver runs a wave64 program without `WaveSize` as 32-lane waves. That includes RDNA1 on this driver, and probably every 32-lane-only host (NVIDIA, where neonbyte1 measured the same pattern). RDNA3 picks 64 here and hides it. Neither of us measured the translated programs' own width, only the HLSL twin's, so "the same choice applies to the translated code" is an inference. It's consistent with every row so far, though. - **Ordering inside one wave isn't guaranteed either:** the HLSL twin was all stale on both cards, including the 64-lane RDNA3 run and the same-half pair 5 → 6. So even one host wave with every lane in it doesn't order UAV accesses between lanes when the compiler can see the lanes are exclusive. The translated code keeps the order today only because it loads the slot in every lane. A fix that relies on `WaveSize(64)` alone would keep relying on that layout. A fence between conflicting accesses, as in neonbyte1's branch, doesn't depend on it. AI use: Claude Code (Claude Opus 5.5).
omarsaifuddin commented 2026-11-30 06:34:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by omarsaifuddin on 2026-11-30T06:34:43Z.


An Emulate-form data point on an RTX 3070 Ti (Windows 11, driver 32.0.16.2140, wave 32..=32), using ColorMeBoom's probe ported to #189's Wave64Mode::Emulate (probe in #3874).

Method: lane writer of each console wave stores 1 + a dword only it loaded to its wave's slot; lane reader then loads the slot. One group per dispatch, 64 dispatches per row. Stale reads per reads, writer in the high half, reader in the low half:

program 64 threads 256 1024
no lane reads 64 / 64 247 / 256 594 / 1024
DPP 64 / 64 247 / 256 735 / 1024
v_readlane 64 / 64 221 / 256 650 / 1024
  • The same-half pair (5 -> 6) reads correctly in every row; the other direction (5 -> 40) is stale at 256 and 1024 threads (1/256 and 42/1024 with no lane reads).
  • Every store landed (unwritten 0), so this is read reordering, not a lost store.
  • Emulate splits the console wave into two host waves and does not order their UAV accesses either.
  • The DPP and v_readlane variants declare WaveSize(64) on main and never build on this card; under Emulate they now translate and run, and are just as stale. The group-shared barrier they force is barrier(1 | 8), which fences LDS, not device memory, so it does not help.
  • On main the same probe gives the same pattern for the no-lane-read program (w40 -> r5: 64/64, 243/256, 595/1024), so the gap is not Emulate-specific in outcome — only in reach, since Emulate is what translates these programs on this host.

Scope: one card, one program shape, and the write/read lanes are deliberately in different halves. The probe in #3874 is ignored and can be rerun against a fix; a fix needs to cover the Emulate form too.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7270791784 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3766#issuecomment-7270791784). Originally posted by [omarsaifuddin](https://github.com/omarsaifuddin) on 2026-11-30T06:34:43Z. --- An Emulate-form data point on an RTX 3070 Ti (Windows 11, driver 32.0.16.2140, `wave 32..=32`), using ColorMeBoom's probe ported to #189's `Wave64Mode::Emulate` (probe in #3874). Method: lane `writer` of each console wave stores 1 + a dword only it loaded to its wave's slot; lane `reader` then loads the slot. One group per dispatch, 64 dispatches per row. Stale reads per reads, writer in the high half, reader in the low half: | program | 64 threads | 256 | 1024 | |---|---:|---:|---:| | no lane reads | **64 / 64** | **247 / 256** | **594 / 1024** | | DPP | **64 / 64** | **247 / 256** | **735 / 1024** | | `v_readlane` | **64 / 64** | **221 / 256** | **650 / 1024** | - The same-half pair (5 -> 6) reads correctly in every row; the other direction (5 -> 40) is stale at 256 and 1024 threads (1/256 and 42/1024 with no lane reads). - Every store landed (`unwritten 0`), so this is read reordering, not a lost store. - **Emulate splits the console wave into two host waves and does not order their UAV accesses either.** - The DPP and `v_readlane` variants declare `WaveSize(64)` on main and never build on this card; under Emulate they now translate and run, and are just as stale. The group-shared barrier they force is `barrier(1 | 8)`, which fences LDS, not device memory, so it does not help. - On main the same probe gives the same pattern for the no-lane-read program (w40 -> r5: 64/64, 243/256, 595/1024), so the gap is not Emulate-specific in outcome — only in reach, since Emulate is what translates these programs on this host. Scope: one card, one program shape, and the write/read lanes are deliberately in different halves. The probe in #3874 is ignored and can be rerun against a fix; a fix needs to cover the Emulate form too.
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
Marvisak/VIctory#3766
No description provided.