Commit 9c2a820
committed
fix: replace move_alloc on patch_ib with allocate/copy for GPU safety
patch_ib has GPU_DECLARE(create=...) in m_global_parameters, which means
OpenACC/OpenMP tracks it via plain allocate/deallocate automatically.
move_alloc is not reliably intercepted by all GPU runtimes for declare-
create variables, so replace all three grow-on-demand sites (m_particle_bed,
m_mpi_proxy, s_reduce_ib_patch_array 1-rank/no-MPI) with the established
pattern: allocate tmp, copy, deallocate patch_ib, allocate patch_ib.1 parent de6add6 commit 9c2a820
3 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
1245 | | - | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1246 | 1248 | | |
1247 | 1249 | | |
1248 | 1250 | | |
| |||
1271 | 1273 | | |
1272 | 1274 | | |
1273 | 1275 | | |
1274 | | - | |
1275 | | - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
1276 | 1280 | | |
1277 | 1281 | | |
1278 | 1282 | | |
| |||
0 commit comments