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

ompi/op: change reduce function prototypes to use a const source pointer #12284

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

alex--m
Copy link
Contributor

@alex--m alex--m commented Jan 27, 2024

and a minor casting fix, found when using GCC v13

@@ -59,20 +59,20 @@ BEGIN_C_DECLS
* repeated code, but it's better this way (and this typedef will
* never change, so there's not much of a maintenance worry).
*/
typedef void (ompi_op_c_handler_fn_t)(void *, void *, int *,
typedef void (ompi_op_c_handler_fn_t)(const void *, void *, int *,
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to change the signatures of the implementations that are used to set these in ompi_op_t?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which ones? I looked for implementations (ompi/mca/op/base/op_base_functions.c for example) and seems to me like all the functions already adhere to this prototype. Maybe I missed some?

Copy link
Contributor

Choose a reason for hiding this comment

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

You're right, looks like the build is clean 👍

@bosilca bosilca merged commit 8eb82d3 into open-mpi:main Jan 27, 2024
8 of 9 checks passed
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.

3 participants