-
Notifications
You must be signed in to change notification settings - Fork 132
Work around CCE 19.0.0 compiler bugs for Cray+OpenACC builds #1286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sbryngelson
wants to merge
19
commits into
MFlowCode:master
Choose a base branch
from
sbryngelson:fix/cce-cray-inline-routine
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+216
−116
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b9da01e
Work around CCE 19.0.0 compiler bugs for Cray+OpenACC builds
1aa4cf5
Temporarily disable Phoenix + Frontier AMD CI (pre-existing failures …
835a2b8
Address code review findings: bounds warning, assert patch applied, C…
ddcaa4a
Temporarily disable Phoenix (NVHPC) benchmark jobs (QOS job limit iss…
6314820
Address CodeRabbit review: CCE PROHIBIT guards + pyrometheus forward-…
c274109
Add comment noting pyrometheus upstream issue for thermochem GPU_ROUT…
05d1dc0
Merge branch 'master' into fix/cce-cray-inline-routine
sbryngelson 1dadcc3
Fix Frontier benchmark SLURM: use batch+1:59+normal QOS
e208275
Fix bench.yml: restore timeout-minutes to 480 (revert accidental 240)
2d1b359
Address review: CCE_MAX_SPECIES constant, GPU error for n_species ove…
810056d
Fix ##-> #! Fypp comment in m_chemistry.fpp top-level scope
8a6398c
Fix ##-> #! Fypp comment in parallel_macros.fpp cray_noinline block
23309f6
Extend -Oipa0 workaround to all Cray builds, not just Cray+OpenACC
5d177b7
Fix -Oipa0 guard: exclude Cray+OpenMP, cover Cray+OpenACC and Cray CPU
9fc072a
Remove persistent build cache for self-hosted test runners
sbryngelson 2cdade9
Remove build cache from benchmark jobs on Phoenix and Frontier
sbryngelson 6e97695
Fix submit.sh to survive monitor SIGKILL by re-checking SLURM state
sbryngelson 61924d8
Extract monitor SIGKILL recovery into shared run_monitored_slurm_job.sh
sbryngelson ac28127
bench: update Phoenix tmpbuild path to project storage
sbryngelson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
| # Run monitor_slurm_job.sh and recover if the monitor is killed (e.g. SIGKILL | ||
| # from the runner OS) before the SLURM job completes. When the monitor exits | ||
| # non-zero, sacct is used to verify the job's actual final state; if the SLURM | ||
| # job succeeded we exit 0 so the CI step is not falsely marked as failed. | ||
| # | ||
| # Usage: run_monitored_slurm_job.sh <job_id> <output_file> | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| if [ $# -ne 2 ]; then | ||
| echo "Usage: $0 <job_id> <output_file>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| job_id="$1" | ||
| output_file="$2" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
|
||
| monitor_exit=0 | ||
| bash "$SCRIPT_DIR/monitor_slurm_job.sh" "$job_id" "$output_file" || monitor_exit=$? | ||
|
|
||
| if [ "$monitor_exit" -ne 0 ]; then | ||
| echo "Monitor exited with code $monitor_exit; re-checking SLURM job $job_id final state..." | ||
| # Give the SLURM epilog time to finalize if the job just finished | ||
| sleep 30 | ||
| final_state=$(sacct -j "$job_id" -n -X -P -o State 2>/dev/null | head -n1 | cut -d'|' -f1 | tr -d ' ' || echo "UNKNOWN") | ||
| final_exit=$(sacct -j "$job_id" --format=ExitCode --noheader --parsable2 2>/dev/null | head -n1 | tr -d ' ' || echo "") | ||
| echo "Final SLURM state=$final_state exit=$final_exit" | ||
| if [ "$final_state" = "COMPLETED" ] && [ "$final_exit" = "0:0" ]; then | ||
| echo "SLURM job $job_id completed successfully despite monitor failure — continuing." | ||
| else | ||
| echo "ERROR: SLURM job $job_id did not complete successfully (state=$final_state exit=$final_exit)" | ||
| exit 1 | ||
| fi | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1635
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1161
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1395
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 106
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 117
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 178
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1523
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 110
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 97
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 812
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 118
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1448
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1428
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1453
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1829
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 101
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 663
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 2478
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 687
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 860
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 464
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 140
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 3113
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 106
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 126
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 205
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 116
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 190
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 198
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 104
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 208
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 125
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 5901
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 197
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1132
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 2139
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 249
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 8109
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 795
Add CCE startup guard for fixed-size chemistry buffers.
The
USING_CCEbranches at lines 66-70, 108-112, 142-148, and 191-201 declare fixed-sizedimension(10)arrays for chemistry temporaries. Loops iterate fromchemxbtochemxe, spanningnum_specieselements (confirmed:chemxe = sys_size + num_species). Ifnum_species > 10underUSING_CCE, array accesses overflow. The AMD compiler path enforces this via@:PROHIBIT(chemistry .and. num_species /= 10, ...)in m_checker_common.fpp:61. Add equivalent guards in all four subroutines:s_compute_q_T_sf(line 66-70)s_compute_T_from_primitives(line 108-112)s_compute_chemistry_reaction_flux(line 142-148)s_compute_chemistry_diffusion_flux(line 191-201)Proposed guard pattern
Add this check in each subroutine after the fixed-size array declarations.