Skip to content

Conversation

@prathi-wind
Copy link
Collaborator

@prathi-wind prathi-wind commented Nov 10, 2025

Description

Add OpenMP support to MFC on the Cray Compiler. Passes all test cases, and adds CI to test on Frontier.

Also, adds in mixed precision made added for Gordon Bell.

Fixes #(issue) [optional]

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

  • 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"
  • I ran ./mfc.sh format before committing my code
  • 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
  • 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 a Rocprof Systems profile using ./mfc.sh run XXXX --gpu -t simulation --rsys --hip-trace, and have attached the output file and plain text results to this PR.
  • 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

prathi-wind and others added 30 commits July 22, 2025 13:16
…, started work on enter and exit data, compiles
…e, add mappers to derived types, change how allocate is done
…types, removed rest of pure functions, fix issue with acoustic on nvfortran
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

❌ Patch coverage is 20.90395% with 420 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.06%. Comparing base (bfd732c) to head (530638a).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/pre_process/m_simplex_noise.fpp 0.00% 82 Missing ⚠️
src/simulation/m_qbmm.fpp 1.25% 73 Missing and 6 partials ⚠️
src/pre_process/m_perturbation.fpp 0.00% 46 Missing ⚠️
src/common/m_boundary_common.fpp 31.14% 35 Missing and 7 partials ⚠️
src/pre_process/m_data_output.fpp 23.07% 20 Missing ⚠️
src/simulation/m_start_up.fpp 33.33% 20 Missing ⚠️
src/simulation/m_viscous.fpp 5.26% 16 Missing and 2 partials ⚠️
src/simulation/m_sim_helpers.fpp 20.00% 14 Missing and 2 partials ⚠️
src/simulation/m_muscl.fpp 44.00% 8 Missing and 6 partials ⚠️
src/pre_process/m_boundary_conditions.fpp 0.00% 10 Missing ⚠️
... and 21 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1035      +/-   ##
==========================================
+ Coverage   46.02%   46.06%   +0.03%     
==========================================
  Files          67       68       +1     
  Lines       13437    13558     +121     
  Branches     1550     1590      +40     
==========================================
+ Hits         6185     6245      +60     
- Misses       6362     6388      +26     
- Partials      890      925      +35     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

5 participants