Add mpifort compiler wrapper support#579
Open
jordansilly77-stack wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n- add an Mpifort compiler wrapper alongside the existing Mpif90 wrapper\n- register mpifort wrappers automatically for default Fortran compilers\n- cover executable-name lookup with a unit test and update the wrapper documentation\n\nCloses #566.\n\n## Validation\n- PYTHONPATH=source PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .venv/bin/python -m pytest tests/unit_tests/tools/test_tool_repository.py::test_tool_repository_get_tool_with_exec_name tests/unit_tests/tools/test_tool_repository.py::test_tool_repository_get_mpifort_with_exec_name tests/unit_tests/tools/test_tool_repository.py::test_get_default_linker_with_wrapper -q\n- PYTHONPATH=source .venv/bin/python - <<'PY'\nfrom fab.tools.category import Category\nfrom fab.tools.tool_repository import ToolRepository\nToolRepository._singleton = None\ntr = ToolRepository()\nassert 'mpifort-gfortran' in [tool.name for tool in tr[Category.FORTRAN_COMPILER]]\nassert 'linker-mpifort-gfortran' in [tool.name for tool in tr[Category.LINKER]]\nPY\n- .venv/bin/python -m py_compile source/fab/tools/compiler_wrapper.py source/fab/tools/tool_repository.py tests/unit_tests/tools/test_tool_repository.py\n- git diff --check