Skip to content
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

Remove Allocate Global #722

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Conversation

anandrdbz
Copy link
Contributor

@anandrdbz anandrdbz commented Nov 11, 2024

Description

Remove allocate_global in macros.fpp and replace with allocate for consistency. All tests pass on frontier and phoenix. Please merge GRCBC branch before merging this as it contains those changes too.

Closes #721

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Something else

Scope

  • [x ] This PR comprises a set of related changes with a common goal

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 A
  • Test B

Test Configuration:

  • What computers and compilers did you use to test this:

Checklist

  • I have added comments for the new code
  • I added Doxygen docstrings to the new code
  • I have made corresponding changes to the documentation (docs/)
  • I have added regression tests to the test suite so that people can verify in the future that the feature is behaving as expected
  • I have added example cases in examples/ that demonstrate my new feature performing as expected.
    They run to completion and demonstrate "interesting physics"
  • [x ] I ran ./mfc.sh format before committing my code
  • [x ] New and existing tests pass locally with my changes, including with GPU capability enabled (both NVIDIA hardware with NVHPC compilers and AMD hardware with CRAY compilers) and disabled
  • [ x] This PR does not introduce any repeated code (it follows the DRY principle)
  • I cannot think of a way to condense this code and reduce any introduced additional line count

If 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:

  • Checked that the code compiles using NVHPC compilers
  • Checked that the code compiles using CRAY compilers
  • Ran the code on either V100, A100, or H100 GPUs and ensured the new feature performed as expected (the GPU results match the CPU results)
  • Ran the code on MI200+ GPUs and ensure the new features performed as expected (the GPU results match the CPU results)
  • Enclosed the new feature via nvtx ranges so that they can be identified in profiles
  • Ran a Nsight Systems profile using ./mfc.sh run XXXX --gpu -t simulation --nsys, and have attached the output file (.nsys-rep) and plain text results to this PR
  • Ran an Omniperf profile using ./mfc.sh run XXXX --gpu -t simulation --omniperf, and have attached the output file and plain text results to this PR.
  • [x ] Ran my code using various numbers of different GPUs (1, 2, and 8, for example) in parallel and made sure that the results scale similarly to what happens if you run without the new code/feature

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 0.73529% with 135 lines in your changes missing coverage. Please review.

Project coverage is 42.97%. Comparing base (a79e2e0) to head (99d8c0d).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/simulation/m_cbc.fpp 0.00% 34 Missing ⚠️
src/simulation/m_rhs.fpp 5.26% 18 Missing ⚠️
src/simulation/m_mpi_proxy.fpp 0.00% 14 Missing ⚠️
src/simulation/m_surface_tension.fpp 0.00% 11 Missing ⚠️
src/simulation/m_bubbles.fpp 0.00% 9 Missing ⚠️
src/simulation/m_riemann_solvers.fpp 0.00% 7 Missing ⚠️
src/simulation/m_time_steppers.fpp 0.00% 7 Missing ⚠️
src/simulation/m_acoustic_src.fpp 0.00% 6 Missing ⚠️
src/simulation/m_hypoelastic.fpp 0.00% 6 Missing ⚠️
src/simulation/m_global_parameters.fpp 0.00% 5 Missing ⚠️
... and 6 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #722   +/-   ##
=======================================
  Coverage   42.96%   42.97%           
=======================================
  Files          61       61           
  Lines       16314    16315    +1     
  Branches     1882     1882           
=======================================
+ Hits         7010     7012    +2     
  Misses       8260     8260           
+ Partials     1044     1043    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anandrdbz
Copy link
Contributor Author

@sbryngelson I've removed all the GRCBC changes, so this should be ready now

@sbryngelson
Copy link
Member

This will be the first PR merged once Frontier is back online (tomorrow).

@sbryngelson sbryngelson merged commit 6742230 into MFlowCode:master Nov 13, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Can allocate_global macro be replaced with allocate macro everywhere?
2 participants