LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2005-01-31 19:00:59


On Jan 31, 2005, at 1:24 PM, Elie Choueiri wrote:

> I'm trying to use XOpenDisplay using MPI. My aim is to call
> XOpenDisplay on each machine [master & slave alike], using each
> machine's own display.
> but calling XOpenDisplay (<this_machine>:<0>) fails with a null
> display..
>
> When I call XOpenDisplay (":0") on the machine [without mpi], things
> work fine..
> If I do that with the parallel version, things work on the master, but
> result in a null display on all other machines..
>
> Not sure what the general sequence of events I should be doing is, but
> I'm trying:
>
> export LAMRSH="ssh -x" // should I be sending the DISPLAY here as
> well?
>
> and then lamboot and mpirun..

I'm not too familiar with the X interface (it's been many years since
I've used it directly), but here's some guesses that might be of help.

First, if you are explicitly trying to connect to the local host with
each MPI application, you need to have an X server available on that
machine for the client to connect to. This means both having the
display up and available and setting the permissions so that the MPI
process can connect. With MIT auth cookies, I don't think that a
process started outside of the X environment will necessarily have the
correct permissions to connect. Doing a "xauth +localhost" may help
with the permissions issues, depending on how your X server is
configured.

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have an LAM/MPI day: http://www.lam-mpi.org/