-
Notifications
You must be signed in to change notification settings - Fork 136
AMD Flang Weno Optimizations #1374
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
Merged
sbryngelson
merged 19 commits into
MFlowCode:master
from
danieljvickers:weno-array-unwrap
Apr 21, 2026
+80
−69
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4273c84
Remove interior point conservative variable protection for stationary…
danieljvickers 4b2f519
Merge branch 'master' of github.com:danieljvickers/MFC
danieljvickers ba0cacb
Merge branch 'MFlowCode:master' into master
danieljvickers e6988ba
Merge branch 'MFlowCode:master' into master
danieljvickers 0ce6f11
Merge branch 'MFlowCode:master' into master
danieljvickers 16bd456
Merge branch 'MFlowCode:master' into master
danieljvickers f0e117d
Merge branch 'MFlowCode:master' into master
danieljvickers 2c9b0fc
unwrapped more alpha assigments in MFC
4cccc57
unwrapped more
2cf56df
AMD speedup achieved
03979ef
Remove hanging statement
d7693a9
Loops work
aa16367
Merge branch 'master' into weno-array-unwrap
danieljvickers f49f69f
matched array unwrapping with the rest of the weno conditions
02fb497
Merge branch 'master' into weno-array-unwrap
danieljvickers ea07618
Added to other wenos
danieljvickers 7e26f9a
bug fix for WENOZ3
wilfonba 219ff34
Added case optimization flags for AMD Flang
26e982e
Merge branch 'weno-array-unwrap' of github.com:danieljvickers/MFC-Dan…
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
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.
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: 152
🏁 Script executed:
# Check if CMakeLists.txt exists and get file size wc -l CMakeLists.txtRepository: MFlowCode/MFC
Length of output: 76
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1484
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 352
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 39
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 1453
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 39
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 2309
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 559
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 39
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 39
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 292
🏁 Script executed:
Repository: MFlowCode/MFC
Length of output: 39
Gate the LLVMFlang fast-offload assumptions and GPU arch.
Lines 639–640 hardcode
--offload-arch=gfx90afor both compile and link, and line 639 unconditionally enables-fopenmp-target-fast -fopenmp-assume-threads-oversubscription -fopenmp-assume-teams-oversubscriptionfor all LLVMFlang builds, including Debug and RelDebug. ROCm documents-fopenmp-target-fastas requiring its constraints to be satisfied and implying extra assumptions (e.g., ignoring target env vars, applying-O3when no-O*flag is set), which can alter debugging and performance-tuning behavior. Additionally, hardcoding--offload-arch=gfx90alimits this path to MI250X-class GPUs; the codebase's own FIXME comment at line 645 (in the GNU section) acknowledges this limitation.Make the GPU architecture configurable via CMake and gate the fast assumptions behind Release build type and/or an explicit option.
Suggested direction