(argument 1) Invalid buffer pointer
Hi.
What's wrong with the following call:
1 2
|
MPI_Scatter( A[0], chunk * m, MPI_INT, &(buffer[0][0]),
chunk * m, MPI_INT,0, MPI_COMM_WORLD );
|
?The definition of the function is:
1 2 3
|
int MPI_Scatter(void *sendbuf, int sendcnt, MPI_Datatype sendtype,
void *recvbuf, int recvcnt, MPI_Datatype recvtype, int root,
MPI_Comm comm)
|
and array A is defined thus:
1 2 3 4 5 6 7 8
|
int **A, **B, **C; //Arrays to be created
.
.
.
A = new int *[n];
for(row=0;row<n;++row)
A[row] = new int[m];
|
Thanks in advance
Last edited on
Topic archived. No new replies allowed.