Skip to content

Commit c17653f

Browse files
Spencer Bryngelsonclaude
andcommitted
toolchain: log warning when pyrometheus CCE workaround patch applies
When the Cray+ACC GPU_ROUTINE macro patch successfully replaces the broken _CRAYFTN/#ifdef block in pyrometheus-generated m_thermochem.f90, emit a yellow warning so engineers can tell the workaround is active and will notice when pyrometheus eventually fixes the upstream issue. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 86f864d commit c17653f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

toolchain/mfc/run/input.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def generate_fpp(self, target) -> None:
119119
"Cray+ACC GPU_ROUTINE macro patch did not apply. "
120120
"Update the pattern in toolchain/mfc/run/input.py."
121121
)
122+
else:
123+
cons.print("[yellow]Warning: Applied CCE 19.0.0 workaround patch to pyrometheus-generated "
124+
"m_thermochem.f90 (replaced _CRAYFTN GPU_ROUTINE macro with !$acc routine seq). "
125+
"Remove this patch once pyrometheus emits correct Cray+ACC directives upstream.[/yellow]")
122126
thermochem_code = patched
123127

124128
common.file_write(

0 commit comments

Comments
 (0)