-
Notifications
You must be signed in to change notification settings - Fork 121
Add mfc commands to argparser #948
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
Add mfc commands to argparser #948
Conversation
… in the help function now
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
Description
I originally created this branch just to add a little better
--helpmessages to the toolchain. Some of the functionality that is available was now shown in the help message. Now those should appear when requested.This small branch also got a little sidetracked removing some of the
s_prohibit_abortcalls and replacing them withPROHIBITmacros. I removed all of the subroutine calls that I thought made sense, but there are still two that I think should be there because of the way that we would pass in the condition.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
--helpoutput, which looks as desiredPROHIBITmacrosTest 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, Documentation
Description
Add help messages to MFC toolchain commands
Replace
s_prohibit_abortcalls withPROHIBITmacrosImprove argument parser documentation
Add missing command line options to help
Diagram Walkthrough
File Walkthrough
m_check_ib_patches.fpp
Replace prohibit calls with PROHIBIT macrossrc/pre_process/m_check_ib_patches.fpp
s_prohibit_abortcalls with@:PROHIBITmacrosm_check_patches.fpp
Refactor patch validation with PROHIBIT macrossrc/pre_process/m_check_patches.fpp
s_prohibit_abortcalls with@:PROHIBITmacrosargs.py
Add missing commands to argument parsertoolchain/mfc/args.py
load,lint,format,spellingcommandsformat.sh
Add help functionality to format scripttoolchain/bootstrap/format.sh
show_help()function with usage information-h/--helpoption handlingmodules.sh
Add help documentation to modules scripttoolchain/bootstrap/modules.sh
show_help()function-h/--helpargument parsing