Commit cf6f0aa
[Mosaic GPU] Add a synchronization point at the end of the constructor for
Without such a synchronization point, calls to `mbarrier_init`s may end up
happening after uses of the `mbarrier` being initialized---which is undefined
behaviour and leads to deadlocks.
This allows us to reenable the previously broken test cases.
PiperOrigin-RevId: 638246527BarrierArray.1 parent 26f9820 commit cf6f0aa
File tree
2 files changed
+1
-12
lines changed- jax/experimental/mosaic/gpu
- tests/mosaic
2 files changed
+1
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 63 | | |
70 | 64 | | |
71 | 65 | | |
| |||
102 | 96 | | |
103 | 97 | | |
104 | 98 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 99 | | |
112 | 100 | | |
113 | 101 | | |
| |||
0 commit comments