[Core][MPI] Adding MinLocAll and MaxLocAll to DataCommunicator#11712
[Core][MPI] Adding MinLocAll and MaxLocAll to DataCommunicator#11712loumalouomega merged 7 commits intomasterfrom
MinLocAll and MaxLocAll to DataCommunicator#11712Conversation
jcotela
left a comment
There was a problem hiding this comment.
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 |
? |
philbucher
left a comment
There was a problem hiding this comment.
please add a python test as well then I approve
Done |
📝 Description
Adding
MinLocAllandMaxLocAlltoDataCommunicator. This function not only computes the maximum/minimum but the partition where this values is local.I also changed the suite in the serial
DataCommunicatortests, as it was wrong,🆕 Changelog