-
Notifications
You must be signed in to change notification settings - Fork 248
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
[Core][MPI] Adding MinLocAll
and MaxLocAll
to DataCommunicator
#11712
[Core][MPI] Adding MinLocAll
and MaxLocAll
to DataCommunicator
#11712
Conversation
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 am not convinced by the change of suite of the data_communicator tests but fair enough if people thinks it makes sense.
I would suggest to put all the logic for MPI datatype deduction on one place (mpi_message).
Other than that, looks good to me
I changed it a bit so that MinLoc and MaxLoc are not defined for array/vector types, as I think they would not make sense with the current implementation (min/max by component, so that the result can be a composite of the values from different partitions). If this is not desirable, my preference would be to revert cde37b7 and bb95bac and keep @loumalouomega's original implementation. |
could u document what the funciton returns possibly in its signature? is it (value, rank) or something different? |
It is an std::pair of value, int |
Documentation added |
Feel free to approve @jcotela |
? |
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.
please add a python test as well then I approve
Done |
📝 Description
Adding
MinLocAll
andMaxLocAll
toDataCommunicator
. This function not only computes the maximum/minimum but the partition where this values is local.I also changed the suite in the serial
DataCommunicator
tests, as it was wrong,🆕 Changelog