Commit 978ef64
committed
fix: unblock --debug/--reldebug GPU builds (guard host s_mpi_abort out of device code)
s_compute_fast_magnetosonic_speed is a GPU routine (acc routine seq) but its
MFC_DEBUG diagnostic block called host s_mpi_abort, which is illegal in device
code without IPO inlining. Debug/reldebug builds disable IPO, so --gpu acc/mp
debug builds failed with NVFORTRAN-S-1061. Guard the abort with #ifndef MFC_GPU,
keeping the device-legal diagnostic print. CPU and Release builds are unchanged.1 parent 4a73bf3 commit 978ef64
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1335 | 1338 | | |
| 1339 | + | |
1336 | 1340 | | |
1337 | 1341 | | |
1338 | 1342 | | |
| |||
0 commit comments