Hi!
I thought the Parallelization starts after MPI_init, now I got confused.
Please look at the follow source and the output:
This is the source:
#include "/opt/lam/include/mpi.h"
int
main(int argc, char *argv[])
{
int myid;
printf("hello\n");
MPI_Init(&argc, &argv);
MPI_Finalize();
return(0);
}
and this is my output:
me_at_computer:~>mpirun n0-3 a.out
hello
hello
hello
hello
I had this problem in a bigger program so this is just an abstraction I
create to see where my thinking is wrong. Can anybody help?
Best regards,
Nils
--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
|