[mpich-discuss] Debugging / Stopping on error

Kenneth Raffenetti raffenet at mcs.anl.gov
Thu Apr 26 10:23:08 CDT 2018


Breaking at MPID_Abort is a good suggestion for now. There have been 
discussions to add environment variables to control the internal crash 
behavior better, e.g. call actual abort(), wait for debug attach, etc., 
but have not yet been implemented.

Ken

On 04/23/2018 02:25 AM, Joseph Schuchart wrote:
> Florian,
> 
> I just came across your question and it seems like you haven't received 
> an answer yet so I thought I throw in my 2 cents. I usually use a 
> combination of xterm and gdb for local debugging, i.e.,
> 
> mpirun -n 4 xterm -e gdb -ex r --args ./app -arg1 ...
> 
> To break at MPI errors you have to add a breakpoint for the 
> (implementation specific) abort routine. IIRC in MPICH that is 
> MPID_Abort (it's been a while since I last used MPICH for debugging 
> though).
> 
> HTH,
> Joseph
> 
> On 04/12/2018 10:05 AM, Florian Lindner wrote:
>> Hello,
>>
>> I am using mpich on Arch on my own desktop computer. Unfortunatly, I 
>> don't have Totalview or DDT at hand.
>>
>> OpenMPI has a useful option to pause on an MPI error:
>>
>> mpirun --mca opal_abort_delay 600 -n 4 ...
>>
>> so that I can attach with a debugger and backtrace up into my app. Is 
>> there something like that for mpich?
>>
>> What other recommendation could you give for debugging MPI 
>> applications (not mpich itself), especially for MPI Ports. I
>> have re-compiled with --enable-g=all.
>>
>>   setenv MPICH_DBG FILE
>>   setenv MPICH_DBG_LEVEL VERBOSE
>>
>> works, but produces too detailed output, even when $MPICH_DBG_TYPICAL 
>> is defined, and also too far away from my
>> application code.
>>
>> Thanks,
>> Florian
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>>
> 
> 
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list