I'm trying to write an MPI program for matrix multiplication using Cannon's algorithm. I've written all of the program but the last part, where I gather all the results from the worker nodes (sub-arrays with size localDim * localDim) at node 0.I wanted to use MPI_Gather for this, but MPI finish with error signal 11. I have read that signal 11 is probably due to a segmentation fault (it makes sense because I'm a C noob) but I cannot find what is causing this.This is the call I use:MPI_Gather(&localC[0][0], localDim * localDim, MPI_INT, &C[0][0], localDim * localDim, MPI_INT, 0, MPI_COMM_WORLD);localC and C are of type MatrixPtr:typedef int** MatrixPtr;which are just pointers to rows:typedef int* RowPtr;Any ideas would be appreciated.
_________________________________________________________________
Descubre Live.com - tu mundo en línea reunido: noticias, deportes, el tiempo, y mucho más.
http://www.live.com/getstarted
|