Commit c44457c
committed
fix: use pointer components in grid_axis for correct OpenMP GPU device access
Change grid_axis cb/cc/spacing from allocatable to pointer components backed
by the flat module arrays (x_cb/x_cc/dx etc.). GPU pointer attachment via
GPU_ENTER_DATA(attach=) updates the device struct's pointer fields to point
to the already-mapped device flat arrays, fixing CUDA_ERROR_ILLEGAL_ADDRESS
in m_igr.fpp inline GPU_PARALLEL_LOOP bodies on NVHPC OpenMP target offload.
Eliminates the early host sync, the duplicate GPU_UPDATE for struct members,
and the OpenACC/OpenMP split in GPU_DECLARE for x/y/z.1 parent 712657f commit c44457c
3 files changed
Lines changed: 24 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 65 | | |
69 | | - | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
| |||
1224 | 1220 | | |
1225 | 1221 | | |
1226 | 1222 | | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | 1223 | | |
1234 | 1224 | | |
1235 | 1225 | | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1236 | 1231 | | |
1237 | 1232 | | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | 1233 | | |
1245 | 1234 | | |
1246 | 1235 | | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1247 | 1241 | | |
1248 | 1242 | | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | 1243 | | |
1256 | 1244 | | |
1257 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1258 | 1251 | | |
1259 | 1252 | | |
1260 | 1253 | | |
| |||
1335 | 1328 | | |
1336 | 1329 | | |
1337 | 1330 | | |
1338 | | - | |
| 1331 | + | |
| 1332 | + | |
1339 | 1333 | | |
1340 | 1334 | | |
1341 | 1335 | | |
1342 | | - | |
| 1336 | + | |
| 1337 | + | |
1343 | 1338 | | |
1344 | 1339 | | |
1345 | 1340 | | |
1346 | | - | |
| 1341 | + | |
| 1342 | + | |
1347 | 1343 | | |
1348 | 1344 | | |
1349 | 1345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | 927 | | |
937 | 928 | | |
938 | 929 | | |
| |||
1089 | 1080 | | |
1090 | 1081 | | |
1091 | 1082 | | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | 1083 | | |
1103 | 1084 | | |
1104 | 1085 | | |
| |||
0 commit comments