Hi,
at line 171
MPI_Gather(&cBufProc[i*matrixSize], blockSize, MPI_DOUBLE, 0,
tmpVar[i*matrixSize], MPI_DOUBLE, 0, rowComm);
but per the man page
int MPI_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, int recvcount, MPI_Datatype recvtype, int root,
MPI_Comm comm)
so you have
recvbuf = 0 (!)
recvcount = tmpVar[i*matrixSize]
i guess you meant to have recvcount = blockSize
that being said, tmpVar[i*matrixSize] is and int and it should likely be
an double *
Cheers,
Gilles
On 9/24/2015 8:13 AM, Surivinta Surivinta wrote:
Hi everybody!
I try implement Fox algorithm via mpi, but got some errors (see below)
Can someone explain how fix it or give a way for search.
Source code attached to letter
errors:
[estri_mobile:6337] *** An error occurred in MPI_Gather
[estri_mobile:6337] *** reported by process [1826816001,0]
[estri_mobile:6337] *** on communicator MPI COMMUNICATOR 4 SPLIT FROM 3
[estri_mobile:6337] *** MPI_ERR_COUNT: invalid count argument
[estri_mobile:6337] *** MPI_ERRORS_ARE_FATAL (processes in this
communicator will now abort,
[estri_mobile:6337] *** and potentially your MPI job)
--
С уважением.
_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post:
http://www.open-mpi.org/community/lists/users/2015/09/27656.php