[mpich-discuss] debugging mpi without mpiexec -gdb
Pavan Balaji
balaji at mcs.anl.gov
Tue Apr 13 09:24:26 CDT 2010
Bill,
You cannot start a parallel program (using more than 1 process) without
mpiexec. You can try to attach a debugger to just one of the processes
using:
% mpiexec -n 1 ./foo : -n 1 ddd ./foo : -n 3 ./foo
This will attach ddd only to the second process. Other than that, I
can't think of any other good way to use a regular debugger.
-- Pavan
On 04/13/2010 08:44 AM, William Pearson wrote:
> I have an MPICH2 program that works fine with mpiexec -gdb -np 5 ...., but crashes quite quickly without the -gdb.
>
> Is there some combination of -machinefile and other parameters that I can give directly to my program, so that I can run it under gdb without using mpiexec?
>
> Bill Pearson
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list