-
Notifications
You must be signed in to change notification settings - Fork 898
configury: test Fortran complex(real16) #13198
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
Open
ggouaillardet
wants to merge
1
commit into
open-mpi:main
Choose a base branch
from
ggouaillardet:topic/complex_real16
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just create another type / plumb through complex(real16) such that we can support real16 and not support complex(real16)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeffhammond explained former PGI based NVHPC compiler won't support
complex(REAL16)
, but the future is withflang
(LLVM) based compilers.I don't think this is worth the hassle unless there is a real use-case for that.
#13190 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw @jeffhammond's comment, but I thought that that was exactly why we would want to do this. I.e., other compilers support REAL16 and support COMPLEX(REAL16). But the NV compiler doesn't -- and won't -- support REAL16 and COMPLEX(REAL16) -- it'll only support REAL16.
So if we test for both, and have proper test results for both, then we can handle any compiler that supports one or both. In reality, it'll only be the NV compiler that only supports one, but that's fine -- it's a generalized test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just turn OMPI_HAVE_FORTRAN_COMPLEX32 off and the datatype and op code should deal with having REAL16 but not COMPLEX32.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I'm fine with the solution proposed here, either you have both or none.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a quick grep and unless I missed something, this is only used in
MPI_Sizeof()
.So though it would be ideal to handle compilers (e.g.
NVHPC
) that supportreal(REAL16)
but notcomplex(REAL16)
, I do not think this is worth the hassle and fixing compilation by disablingISO_FORTRAN_ENV:REAL16
altogether is good enough for the time being.Of course anyone is free to improve this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also used in the datatype and in the MPI Op via OMPI_HAVE_FORTRAN_COMPLEX32. But I would be surprised if it had any users. For the outcome, I'm with you this PR is good enough.