There's a footnote that should be in that FAQ question (it's in the
next one, but I forgot to add it to that one):
-----
NOTE: If you are using the rsh boot SSI module with the ssh remote
agent, you cannot use SSH's default X forwarding. This is because
SSH's X forwarding only exists while ssh is running, but ssh will have
completed and exited normally before a successful lamboot completes.
Hence, you must generate your own DISPLAY that is suitable for remote
nodes to write to your display.
-----
The implication here is that you can't really use an ssh-encrypted X
session for your xterms. :-(
What I have typically done is xhost + the hostnames that I want to run
the debugger / xterm on. For example:
(on macha)
xhost +machb
xhost +machc
xhost +machd
setenv DISPLAY macha:0.0
mpirun -x DISPLAY -np 4 my_debug_script.sh `pwd`/a.out
This is certainly less than optimal, but it works.
Additionally, you can mpirun to the machine where it's running and gdb
attach to the PID of the process that you want to debug. This is also
less-than-elegant, but it works.
Hope this helps...
On Oct 15, 2004, at 11:32 AM, Michael Lees wrote:
> Hi,
>
> I'm trying to run gdb with lam. I've done this before and have had it
> working, for some reason now it doesn't seem to want to do it?
>
>
> I have 4 machines involved, macha, machb, machc and machd
>
> I'm logged in and running X on machine macha (on my desktop) and I run
> the program on machb, machc and machd.
>
> I ssh into machb (from macha) and then execute mpi from there.
>
> So once logged into machb, echo $DISPLAY gives localhost:11.0
> So do I then export the display to machine macha, ie., export
> DISPLAY=macha.blah.blah:0.0 ? Then execute the mpirun command with -x
> DISPLAY?
>
> Do I need to set the display on machc and machd at all? I seem to
> remember needing to do something on c and d?
>
> From macha I can do
>
> ssh machb
> ...followed by...
> ssh machc ee
>
> Thanks
> --
> Mike
>
>
> This message has been scanned but we cannot guarantee that it and any
> attachments are free from viruses or other damaging content: you are
> advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK
> legislation.
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|