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

config/fortran: clean up Fortran binding config options #5794

Merged
merged 4 commits into from
Feb 8, 2022

Conversation

hzhou
Copy link
Contributor

@hzhou hzhou commented Jan 25, 2022

Pull Request Description

Add options to explicitly disable individual Fortran binding interfaces.

Clean up configure logic now that we use a single $FC compiler and separately configures test suite.

Fixes #5793

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

@hzhou
Copy link
Contributor Author

hzhou commented Jan 25, 2022

test:mpich/custom --disable-f08
compiler: gcc-9

✔️ Confirmed that f08 was disabled.

@hzhou
Copy link
Contributor Author

hzhou commented Jan 25, 2022

test:mpich/custom
compiler: gcc-9

@hzhou hzhou requested a review from raffenet February 4, 2022 14:48
@hzhou
Copy link
Contributor Author

hzhou commented Feb 7, 2022

test:mpich/ch3/tcp
test:mpich/ch4/ofi

hzhou added 4 commits February 8, 2022 08:06
Sometime user may want to disable f08 even when their compiler passes
the PAC_FC_2008_SUPPORT test. Add explicit --disable-f08 option for
that.
The test suite is now configured independently and no longer need these
variables.
Now we only use a single $FC compiler, there isn't a need to check
compatibility between F77 and FC.
By default we will build all Fortran interfaces. However, sometime user
may desire disable certain interface. Use separate options so user can
easily do so.

Currently the f90 interface depends on f77 interface. But it should be
possible to only build f77, or only build f08, or build f77 + f08.

Remove and replace the variable enable_fc from configure since it is ambiguous
whether it refers to the FC compiler or the interface features.
@hzhou hzhou merged commit 92cbd15 into pmodels:main Feb 8, 2022
@hzhou hzhou deleted the 2201_disable_f08 branch February 8, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mpich-4.0 option to disable F08
2 participants