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

Incosistend integer types in api #15

Open
rabauke opened this issue Nov 29, 2020 · 2 comments
Open

Incosistend integer types in api #15

rabauke opened this issue Nov 29, 2020 · 2 comments
Assignees

Comments

@rabauke
Copy link
Owner

rabauke commented Nov 29, 2020

For historical reasons MPI uses int, MPI_Aint, MPI_Offset, and MPI_Count, which may have different ranges and signedness. Integer usage should be harmonized for MPL:

  • size_t and ssize_t (when negative values are permissible) should be the only integer types.
  • It must be checked for narrowing when passing integer values to underlying MPI library functions.

Edit: MPI 4.0 will introduce large-count support via new functions, see https://eurompi.github.io/assets/papers/2020-09-eurompi2020-mpi4.pdf

@rabauke rabauke self-assigned this Nov 29, 2020
@VictorEijkhout
Copy link

MPI 4 is going to unify int and MPI_Count. I assume you follow the discussion?

@rabauke
Copy link
Owner Author

rabauke commented Dec 1, 2020

@VictorEijkhout I am not following the discussion in detail. Thanks, for drawing my attention to these newer developments. Apparently, there are "a few" new MPI functions on the way.

@rabauke rabauke added this to the 0.3 milestone Oct 3, 2021
@rabauke rabauke removed this from the MPL Version 0.3 milestone Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants