jax
bd4df8d6 - [jax-buildcop] [pallas:sc] Fix WAR data race in `VectorSubcoreTest.test_barrier`

Commit
14 days ago
[jax-buildcop] [pallas:sc] Fix WAR data race in `VectorSubcoreTest.test_barrier` After the first `plsc.subcore_barrier()`, each subcore copies `o_ref[(subcore_id + 1) % mesh.num_subcores]` into its private VMEM and then immediately overwrites `o_ref[subcore_id]` in HBM without an intervening barrier. If subcore `s + 1` reads `o_ref[s + 2]` and writes back to `o_ref[s + 1]` before subcore `s` finishes reading `o_ref[s + 1]`, subcore `s` observes `2 * (s + 2)` instead of `2 * (s + 1)`. Add a second `plsc.subcore_barrier()` between reading the neighbor's slice from `o_ref` and writing the updated slice back to `o_ref`. PiperOrigin-RevId: 1026511269
Parents
Loading