Re: [OMPI users] Received data is different than sent data after Allgatherv() call

2017-12-03 Thread Konstantinos Konstantinidis
Thank you Gilles, the *&data* was the problem. On Thu, Nov 30, 2017 at 2:25 AM, Gilles Gouaillardet wrote: > should the send buffer for MPI_Allgatherv() be data instead of &data ? > > BTW, is this issue specific to Open MPI ? > If this is a general MPI issue, forums such as https://stackoverf

Re: [OMPI users] Received data is different than sent data after Allgatherv() call

2017-11-30 Thread Gilles Gouaillardet
should the send buffer for MPI_Allgatherv() be data instead of &data ? BTW, is this issue specific to Open MPI ? If this is a general MPI issue, forums such as https://stackoverflow.com are a better place for this. Cheers, Gilles On 11/30/2017 5:02 PM, Konstantinos Konstantinidis wrote: Hi,

[OMPI users] Received data is different than sent data after Allgatherv() call

2017-11-30 Thread Konstantinos Konstantinidis
Hi, I will use a small part of C++ code to demonstrate my problem during shuffling. Assume that each slave has to shuffle some unsigned char array defined as *unsigned char* data *within some intracommunicator. *unsigned lineSize = 100;* *unsigned long long no_keys = 10;* *int bytes_send_count = (