Remove Non-parameter workaround for Chemistry cases with AMD#1446
Conversation
…elocation error flang-23/LLD defaults to building PIE executables. SILO and LAPACK static libraries on Frontier are compiled without -fPIC, so their 32-bit absolute relocations (R_X86_64_32) are rejected by LLD when linking a PIE binary. Add -no-pie to post_process link options for LLVMFlang to allow non-PIC system libraries. simulation is unaffected (no SILO/LAPACK dependency).
… limit AMD flang case-opt compilation takes close to the 2h hackathon wall limit, leaving no time for the run step. Split into two sequential hackathon GPU jobs: 1. Pre-Build: compiles all benchmarks via --dry-run (build only, no execution) 2. Run: skips build (binaries cached), runs and validates benchmarks Also preserve dependency dirs in prebuild for non-Phoenix clusters (deps are already built by the Fetch Dependencies step, so only clean staging dirs).
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Claude Code ReviewHead SHA: 904b5a7 Files changed:
Findings: [GPU Correctness – AMD]
! Removed:
#:if USING_AMD
block
use m_thermochem, only: molecular_weights
use m_chemistry, only: molecular_weights_nonparameter
molecular_weights_nonparameter(:) = molecular_weights(:)
$:GPU_UPDATE(device='[molecular_weights_nonparameter]')
end block
#:endifAnd ! Removed:
#:if USING_AMD
real(wp) :: molecular_weights_nonparameter(10) = ...
$:GPU_DECLARE(create='[molecular_weights_nonparameter]')
#:endifAfter this PR, every AMD GPU kernel in Please confirm that |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1446 +/- ##
=======================================
Coverage 61.31% 61.31%
=======================================
Files 72 72
Lines 19771 19771
Branches 2852 2852
=======================================
Hits 12123 12123
Misses 5699 5699
Partials 1949 1949 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Removes the non-parameter workaround for chemistry with AMD compilers, allowing to run chemistry cases with variable num_species. No fixes are needed on Pyrometheus. @DimAdam-01 @sbryngelson
In addition, the PR removes run_time_info from the igr benchmark case as this should've never been set to true
Verified all chemistry test cases pass on frontier with AMD compilers
Fixes #(issue)
Type of change
Testing
How did you test your changes?
Checklist
See the developer guide for full coding standards.
GPU changes (expand if you modified
src/simulation/)AI code reviews
Reviews are not triggered automatically. To request a review, comment on the PR:
@coderabbitai review— incremental review (new changes only)@coderabbitai full review— full review from scratch/review— Qodo review/improve— Qodo code suggestions@claude full review— Claude full review (also triggers on PR open/reopen/ready)claude-full-review— Claude full review via label