[mpich-discuss] MPICH2 on Windows

Jacek Strzelczyk szczelba at op.pl
Tue May 20 07:21:26 CDT 2008


Hello everyone,
I'm trying to get MPICH2 working on Windows 2000. I've installed it 
without any problems and than I try to run simplest MPI Job with few 
processes.

The job code is:
#include <stdio.h>
#include "mpi.h"
int main( int argc, char *argv[] )
{
     int rank;
     int size;

     MPI_Init( 0, 0 );
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
     MPI_Comm_size(MPI_COMM_WORLD, &size);
     printf( "Hello world from process %d of %d\n", rank, size );
     MPI_Finalize();
     return 0;
}

I run it by:
mpirun.exe -hosts 2 k43 k43 example
where k43 is the name of my computer

What I get in return is:
Hello world from process 0 of 1
Hello world from process 0 of 1

Why those two processes are not in one group? They can't communicate!
When I run the same job using MPICH (not MPICH2) I get proper answer:
Hello world from process 1 of 2
Hello world from process 0 of 2

What's wrong in here?
Thanks in advance,
Jacek


-- 
Jacek Strzelczyk
http://szczelba.lfa.pl
szczelba at op.pl, jacek.strzelczyk at it.wkrakowie.org
JID: szczelba at chrome.pl




More information about the mpich-discuss mailing list