Commit 7b42ba5
committed
Bound the burn sub-step's per-fluid locals by num_fluids_max
Under case optimization num_fluids is a compile-time constant, and the Case Opt lanes build cases that set it to one, where the literal reactant and product indices are then out of bounds and the compile fails. num_fluids_max is a parameter and always covers both, so the arrays no longer need the case-optimization and AMD split either.1 parent ed51f33 commit 7b42ba5
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
0 commit comments