Hi, has anyone experience how to debug a MPI-parallel program by using valgrind? [especially in conjunction with MPICH-1.2.5.2 and the totalview debugger] Regards, Udo Tremel |
|
From: Satish B. <ba...@fa...> - 2004-08-07 14:53:23
|
On Sat, 7 Aug 2004, Udo Tremel wrote: > Hi, > > has anyone experience how to debug a MPI-parallel program by using valgrind? > > [especially in conjunction with MPICH-1.2.5.2 and the totalview debugger] Don't think its possible with mpich-1 I'm using mpich2-0.97.tar.gz (beta) for testing with valgrind-2.1.2. mpiexec -np 2 valgrind --tool=memcheck -q executable executable-options Satish |
|
From: Rob L. <ro...@te...> - 2004-08-11 02:58:35
|
On Sat, Aug 07, 2004 at 10:34:19AM +0200, Udo Tremel wrote: > Hi, > > has anyone experience how to debug a MPI-parallel program by using valgrind? > > [especially in conjunction with MPICH-1.2.5.2 and the totalview debugger] The easiest way to do it is, as satish said, use mpich2. If you have to use mpich1, you might have some luck if you hack up your program so that you don't need to pass your program any command line arguments. mpirun -np XX valgrind --tool=memcheck fooprogram You'll get valgrind output on each of the N processors. dump it all to a file and grep for the ==<PID>== lines ==rob -- Rob Latham Chicago, IL USA |