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

datatype: Add support for MPI_TYPECLASS_LOGICAL #12424

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dalcinl
Copy link
Contributor

@dalcinl dalcinl commented Mar 21, 2024

Support for MPI_TYPECLASS_LOGICAL as being proposed in mpi-forum/mpi-issues#699.

As a bonus, add preliminary support the MPI_LOGICAL16 datatype.

TODO: Support for 128bit integral C types via GCC/LLVM __int128 extension.

Copy link

Hello! The Git Commit Checker CI bot found a few problems with this PR:

7b93c9d: datatype: Add support for MPI_TYPECLASS_LOGICAL

  • check_signed_off: does not contain a valid Signed-off-by line

64e5f5f: datatype: Add preliminary support for MPI_LOGICAL1...

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

@@ -49,6 +49,7 @@ BEGIN_C_DECLS
#define OMPI_DATATYPE_FLAG_ANALYZED 0x0400
#define OMPI_DATATYPE_FLAG_MONOTONIC 0x0800
/* Keep trace of the type of the predefined datatypes */
#define OMPI_DATATYPE_FLAG_DATA_BOOL 0x0000 /* TODO: what to do here? */
Copy link
Contributor Author

@dalcinl dalcinl Mar 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need help here. I've run out of space for an extra bit to distinguish boolean types. Can I shift everything up to make room? Would it be OK to shift by 4 bits, such that the bitmasks are still readable in hexadecimal?

Signed-off-by: Lisandro Dalcin <dalcinl@gmail.com>
Signed-off-by: Lisandro Dalcin <dalcinl@gmail.com>
@dalcinl
Copy link
Contributor Author

dalcinl commented Mar 21, 2024

I believe I forgot to bump OMPI_DATATYPE_MAX_PREDEFINED by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant