Thank you very much, Jed.<br><br>I will try your suggestion.<br><br>Yan<br><br><div class="gmail_quote">On Mon, Jul 20, 2009 at 5:47 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Ryan Yan wrote:<br>
> Only debugging one processes is a way to go for my current bug(s).<br>
<br>
</div>There is another option for debugging multiple processes using screen<br>
instead of X. For the sake of cleanliness, start a new terminal and<br>
open a special screen session for debugging<br>
<br>
$ screen -S sdebug<br>
<br>
Now in your original terminal, run the program like<br>
<br>
$ mpirun -n 4 ./myapp -start_in_debugger -debug_terminal "screen -S sdebug -X screen"<br>
<br>
(the quotes are important)<br>
<br>
This opens four new windows within the screen session named "sdebug".<br>
<br>
<br>
Recent versions of MPICH2 have a -gdb option which is a lightweight skin<br>
for gdb that sends commands to all processes and collates the results,<br>
but also allows you to drop to per-process debugging. I had trouble<br>
with it prior to release 1.1.<br>
<font color="#888888"><br>
<br>
Jed<br>
<br>
</font></blockquote></div><br>