I am using OpenMPI, starcluster, and Amazon EC2, while running through the tutorials at http://mpitutorial.com/tutorials/ . I set up a master and 2 nodes; node001 and node002. However, whenever I call MPI_Init
and retrieve info from the Comm about the World Size, I keep getting a "World Size" of 1, even though I definitely am using 2 processors. These are using the functions in the MPICH library.
The example output shows the server name, rank, and world size:
Hello world from processor node001, rank 0 out of 1 processors
Hello world from processor node001, rank 0 out of 1 processors
Hello world from processor node002, rank 0 out of 1 processors
Hello world from processor node002, rank 0 out of 1 processors
There's obviously 2 processors here, both being used, but I still keep getting these values for Rank and World Size. Is there a way I can look into debugging what is happening here?