-
Notifications
You must be signed in to change notification settings - Fork 68
coll/base: fix memory allocation in mca_coll_base_alltoall_intra_basi… #686
coll/base: fix memory allocation in mca_coll_base_alltoall_intra_basi… #686
Conversation
…c_inplace (cherry picked from commit open-mpi/ompi@0f23037)
Test PASSed. |
:bot:assign: @bosilca |
…lltoall_intra_basic_inplace coll/base: fix memory allocation in mca_coll_base_alltoall_intra_basi…
Actually, I was holding on this one, because I think the whole allocation of memory for collective operations is wrong. But, I need a little bit more time to think about |
@bosilca Doh. Should I revert? |
Leave it as is by now. Once I have a better understanding of the issue, I On Mon, Oct 19, 2015 at 1:52 PM, Jeff Squyres [email protected]
|
The more I look at this patch, the more confused I get. The only thing this change does is slightly reducing the allocated memory. However, now the allocated memory and the max_size are out of sync, as one includes the gap while the other doesn't. In addition the allocated buffer is not consistent with the amount of data allocated, as it has not been moved back by the true_lb (as in the other functions). |
I just pushed a PR to clean the handling of temporary buffers (mainly in collectives). Please take a look @ open-mpi/ompi#1047. However, it is just a bandaid, the root of all these problems still exists. |
my patch does change the size of the allocated memory. |
You're right, in the case where the extent was altered by a resize you used to formula that gives the right span of the data. |
…-fixes bool: use SIZEOF__BOOL, not SIZEOF_BOOL
…c_inplace
(cherry picked from commit open-mpi/ompi@0f23037)