[Paraview] Three Wall Stereo Projection with Paraview 3.6.1

pat marion pat.marion at kitware.com
Wed Oct 21 12:41:24 EDT 2009


> /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


More information about the ParaView mailing list