On Mon, 2 Jun 2003, Vo Kim Son wrote:
> This program resolve a set of equations using the Gauss method . At each
> step in the progress reduce the matrix , the program also find the max
> value of any valid rows in the same column . The program can work well
> with the following pairs of (amount of processes , amount of unknowns ):
> (3,10) ; (2,4) ;
> but an error SIGSEGV occur with the pairs below :
> (2,10) ; (3,8) ; (3,4) ;
I'm afraid that your program is a little too big for me to help debug.
:-)
I would suggest running it through a memory-checking debugger such as
Solaris' bcheck, the Purify system, or the Linux Valgrind debugger.
Memory-checking debuggers can be really good at helping you find out when
you've indexed too far, freed memory that wasn't supposed to be freed,
etc.
Check the LAM FAQ under "Debugging MPI Programs Under LAM/MPI" for how to
run MPI programs through debuggers -- we find such tools to be invaluable
both in developing LAM and writing MPI applications.
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|