All,<div> 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:</div><div><br></div><div>Fatal error in PMPI_Gather: Invalid buffer pointer, error stack:</div>
<div>PMPI_Gather(786): MPI_Gather(sbug=04785FF8, scount=1, MPI_INT, rbuf=04785FF8, rcount=1, MPI_INT, root=0, MPI_COMM_WORLD) failed</div><div>PMPI_Gather(729): Buffers must not be aliased.</div><div><br></div><div>( here is line in the code where i get the above error: </div>
<div><br></div><div>MPI_Gather((void*)&recvcnts[rank],1,MPI_INT,(void*)recvcnts,1,MPI_INT,0,MPI_COMM_WORLD);</div><div><br></div><div>i have defined recvcnts to be an integer array )</div><div><br></div><div>Please note that the above line and code works fine in Linux. Any help on this will be greatly appreciated.</div>
<div><br></div><div>Thanks</div><div>Prashanth</div>