[mpich-discuss] MPI_Gather error
Prashanth
prashanth.dumpuri at gmail.com
Tue Nov 16 11:26:36 CST 2010
All,
I have been using MPICH2 in linux and recently switched to Windows XP. My
code worked fine under Linux but in Windows I get the following error
message:
Fatal error in PMPI_Gather: Invalid buffer pointer, error stack:
PMPI_Gather(786): MPI_Gather(sbug=04785FF8, scount=1, MPI_INT,
rbuf=04785FF8, rcount=1, MPI_INT, root=0, MPI_COMM_WORLD) failed
PMPI_Gather(729): Buffers must not be aliased.
( here is line in the code where i get the above error:
MPI_Gather((void*)&recvcnts[rank],1,MPI_INT,(void*)recvcnts,1,MPI_INT,0,MPI_COMM_WORLD);
i have defined recvcnts to be an integer array )
Please note that the above line and code works fine in Linux. Any help on
this will be greatly appreciated.
Thanks
Prashanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20101116/fb86698e/attachment.htm>
More information about the mpich-discuss
mailing list