Help! Don't now what's wrong...MPI
I just write a simple MPI programs:
#include "stdio.h"
#include "stdlib.h"
#include "mpi.h"
int main(int argc, char *argv[])
{
int rank,nProcs,ierr;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nProcs);
if (rank == 1)
printf("Hello world");
MPI_Finalize();
return 1;
}
No wrong in compile, however, it runs wrong:
problem with execution of a.out on dhcp184: [Errno 2] No such file or directory
problem with execution of a.out on dhcp184: [Errno 2] No such file or directory
What's the problem????
|