-
Notifications
You must be signed in to change notification settings - Fork 121
Replace intrinsics in allocate statements #850
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
Conversation
|
Should I make these new global parameters into a derived type like Or would you like them to be kept as separate variables? |
|
that would be fine i believe |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #850 +/- ##
==========================================
+ Coverage 43.71% 43.76% +0.05%
==========================================
Files 68 68
Lines 18360 18378 +18
Branches 2292 2292
==========================================
+ Hits 8026 8044 +18
Misses 8945 8945
Partials 1389 1389 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
Description
Replace instrinsics in allocate statements and save them in global parameters
Fixes #803
Type of change
Please delete options that are not relevant.
Scope
If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Test Configuration:
Checklist
docs/)examples/that demonstrate my new feature performing as expected.They run to completion and demonstrate "interesting physics"
./mfc.sh formatbefore committing my codeIf your code changes any code source files (anything in
src/simulation)To make sure the code is performing as expected on GPU devices, I have:
nvtxranges so that they can be identified in profiles./mfc.sh run XXXX --gpu -t simulation --nsys, and have attached the output file (.nsys-rep) and plain text results to this PR./mfc.sh run XXXX --gpu -t simulation --rsys --hip-trace, and have attached the output file and plain text results to this PR.PR Type
Enhancement
Description
Replace intrinsic functions in allocate statements with global parameters
Add cell bounds structure to store min/max values
Update allocation calls to use precomputed bounds
Improve memory allocation efficiency across modules
Changes diagram
Changes walkthrough 📝
14 files
Add cell_num_bounds type definitionAdd cell bounds update subroutineReplace intrinsics with cell bounds variablesUse Re_size_max instead of maxval intrinsicAdd cells_bounds global variable and initializationUpdate cell bounds after reading inputAdd cells_bounds variable and initializationUpdate cell bounds after input processingAdd Re_size_max and cells_bounds variablesReplace min/max intrinsics with bounds variablesUse Re_size_max for allocationReplace maxval with Re_size_maxUpdate cell bounds after startupUse Re_size_max for viscous allocation