> /bin/uname -a is a good program to try first.
> if that doesn't work, google for an mpi helloworld program that spits
> out each processors rank.

Here is a mpi helloworld that also prints out the DISPLAY environment
variable for each process:

/* C Example */
#include <stdio.h>
#include <mpi.h>
#include <stdlib.h>

int main (int argc, char *argv[])
{
  int rank, size;

  MPI_Init (&argc, &argv);      /* starts MPI */
  MPI_Comm_rank (MPI_COMM_WORLD, &rank);        /* get current process id */
  MPI_Comm_size (MPI_COMM_WORLD, &size);        /* get number of processes */
  printf( "Hello world from process %d of %d.  DISPLAY is: %s\n",
rank, size, getenv("DISPLAY") );
  MPI_Finalize();
  return 0;
}


Result:

mpirun -np 2 ./helloworld
Hello world from process 1 of 2.  DISPLAY is: (null)
Hello world from process 0 of 2.  DISPLAY is: (null)

mpirun -np 2 -x DISPLAY ./helloworld
Hello world from process 0 of 2.  DISPLAY is: :0.0
Hello world from process 1 of 2.  DISPLAY is: :0.0


Pat
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to