[MPICH] about graphic

llwaeva at 21cn.com llwaeva at 21cn.com
Fri Dec 16 13:40:09 CST 2005


Hi there,
  I am running MPICH2 under Linux and Windows. In Linux, it's easy to
make a parallel program to show a graph on each node with the help of
SDL(a graphing package) or other package. For instance, the following
code do the graphing task

  MPI_Init(&argc, &argv);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);

  if (rank!=0) setenv("DISPLAY", ":0.0", 1);

  /*
  Here, we call SDL to show something on the screen of each node
  */

  MPI_Finalize();

But for windows, the case becomes a little bit complicated. First of all,
I try to add "-localroot" while mpiexec my program, this parameter will
only allow the root node to open GUI locally but not remotely. Anyone
has idea for my problem?

Thanks in advance.




More information about the mpich-discuss mailing list