Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Alex Tumanov (atumanov_at_[hidden])
Date: 2007-02-08 21:58:32


> mpirun --prefix /opt/openmpi -mca oob_tcp_include eth0 -mca
> btl_tcp_if_include eth0 --hostfile ~/work/openmpi_hostfile -np 4
> hostname
>
> Could a section be added to the FAQ mentioning that the firewall
> service should be shutdown over the mpi interface and that the two
> -mca switches should be used? This could perhaps be most useful to a
> beginner in either the 'Running MPI Jobs' or 'Troubleshooting'
> sections of the FAQ.

Mark, check this FAQ entry as well as #7 on the same page:
http://www.open-mpi.org/faq/?category=tcp#tcp-selection

And while you are waiting for your current jobs, you could try
something non-invasive but OMPI-ish nevertheless:

#include <stdio.h>
#include <mpi.h>

int main(int argc, char *argv[]) {
  int numprocs, rank, namelen;
  char processor_name[MPI_MAX_PROCESSOR_NAME];

  MPI_Init(&argc, &argv);
  MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  MPI_Get_processor_name(processor_name, &namelen);

  printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);

  MPI_Finalize();
}

Have fun.

Alex.