Hi,
I am trying to debug an MPI program by launching the job on two machines and tracing through the library on both sides. For this, I need to have xterm spawn two debug windows, one for my node and one more for the remote node. I am passwordless-ly ssh-ing into the other node by using the -X switch and this is where I am now,

Code:
   
 mpirun --prefix /usr/local -hostfile machines -np 2 xterm -e gdb peruse_ex1
xterm Xt error: Can't open display:
xterm:  DISPLAY is not set
However, on doing :
Code:
 mpirun --prefix /usr/local -hostfile machines -x DISPLAY -x PATH -np 2 xterm -e gdb peruse_ex1
I am able to spawn a debug window but it is being displayed on the remote node and not on my screen . I have set the DISPLAY variable on both the nodes to be 0.0. Please let me know what I can do to have the window displayed on my node.

Thanks