[mpich-discuss] Sending Dynamically Allocated Data

Duro, Joao j.a.duro at cranfield.ac.uk
Mon Apr 26 11:05:01 CDT 2010


Hi there,

I am trying to send a dynamically allocated structure using MPI_Allgather().
My objective is to gather all the population in the master node and then distribute it to all other processes.

All the code is here:
http://codepad.org/URczlAEl

I am getting segmentation from memcpy() called by MPI_Allgather().
I am probably doing something wrong regarding sending dynamic allocated data.
Could someone have a look?!

Regards,
Joao


More information about the mpich-discuss mailing list