Skip to content

fix(shader): fix Wave64-on-Wave32 LDS split barriers for multi-wave groups and f64 sum guard - #24

Open
HumanlyDev wants to merge 1 commit into
mainfrom
fix/wave32-lds-split-and-f64-sum
Open

HumanlyDev wants to merge 1 commit into
mainfrom
fix/wave32-lds-split-and-f64-sum

Conversation

@HumanlyDev

Copy link
Copy Markdown
Owner

Summary

  • Fix missing \split_lds\ barriers for multi-wave Wave64 compute shaders on Wave32 (\lower.rs): \split_lds\ was previously gated on \one_wave && s.lds_dwords > 0\ (\group <= 64), which skipped LDS barrier insertion for 128/256-thread Wave64 compute shaders that omit barriers within a 64-lane wave. Changed the gate to \group > 32 && s.lds_dwords > 0\ and emitted \WaveSize(32)\ metadata for split multi-wave shaders.
  • Fix \�ctive_f64_sum()\ Wave32 guard (\lower.rs): Guarded cross-half LDS exchange on !self.local && !one_half\ (matching \shape()).

Verification

  • \cargo test -p victory-shader --lib: 285 passed, 0 failed, 4 ignored (including new \multi_wave_lds_shader_splits_lds_on_wave32).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant