Skip to content

DRY m_check_patches & m_check_ib_patches#607

Merged
sbryngelson merged 4 commits intoMFlowCode:masterfrom
ChrisZYJ:improve_checker_2
Sep 5, 2024
Merged

DRY m_check_patches & m_check_ib_patches#607
sbryngelson merged 4 commits intoMFlowCode:masterfrom
ChrisZYJ:improve_checker_2

Conversation

@ChrisZYJ
Copy link
Contributor

@ChrisZYJ ChrisZYJ commented Sep 4, 2024

Description

Fixes #591

Uses PROHIBIT to improve m_check_patches & m_check_ib_patches

Type of change

  • Code cleaning

Scope

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

How Has This Been Tested?

  • Passed all test suites

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 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.
  • 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

@codecov
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 1.02041% with 97 lines in your changes missing coverage. Please review.

Project coverage is 54.46%. Comparing base (dec9171) to head (1393229).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/pre_process/m_check_patches.fpp 1.12% 87 Missing and 1 partial ⚠️
src/pre_process/m_check_ib_patches.fpp 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #607      +/-   ##
==========================================
+ Coverage   53.99%   54.46%   +0.46%     
==========================================
  Files          58       58              
  Lines       13719    13531     -188     
  Branches     1635     1613      -22     
==========================================
- Hits         7407     7369      -38     
+ Misses       5867     5721     -146     
+ Partials      445      441       -4     

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

@sbryngelson sbryngelson merged commit 4ad7a41 into MFlowCode:master Sep 5, 2024
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.

DRY m_checker

2 participants