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
base/mpi.h: also instantiate for signed long long int #16527
Conversation
/rebuild |
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.
What about MPI_DEVICE_SCALARS
for consistency?
@masterleinad Good point. Updated. |
469d14c
to
c3647f8
Compare
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.
Out of curiosity, it is true that on all systems we work on, two out of int
, long int
, and long long int
are the same. Does the compiler not complain in those cases?
Should we instead instantiate for int
and int64_t
?
@bangerth I think according to the standard
|
It would be deeply weird if static_assert(std::is_same_v<long int, long long int>); succeeded on some platforms but failed on others. |
Not weird at all. |
The difference is that |
It's an interesting question and I had to look it up to be sure. In 17.4.2 all the |
Vaguely in reference to #16493