Commit c60d364
Fix CCE 19.0.0 + OpenACC: patch pyrometheus thermochem GPU_ROUTINE macro
Pyrometheus generates !DIR$ INLINEALWAYS for Cray+OpenACC but omits
!acc routine seq, so thermochem routines are not registered as OpenACC
device routines. Calling them from GPU kernels causes runtime memory
access faults at time step 1.
Post-process the generated m_thermochem.f90 to replace the broken
Cray-specific #ifdef block with a plain #define GPU_ROUTINE(name)
!acc routine seq, matching the fix already applied to parallel_macros.fpp
in commit 66ad9b2.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f65abdf commit c60d364
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
93 | 109 | | |
94 | 110 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| |||
0 commit comments