I downloaded the code today and tried the example in demo/wrap-f2py, and I get wrong result.
-
I build mpi4py from source with mpich3 (wrapping ifort).
-
I compiled helloworld.f90 code with -fcompiler=intelem, which successfully generated helloworld.so.
-
However, when I do make test, there is what I got:
mpiexec -n 5 python test.py
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
-------------------------------------------more information-----------------------------------
- I also tried the example in demo/wrap-c, I got the similar answer.
/home/junteng/lib/mpich-3.2-install/bin/mpiexec -n 5 python test.py
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
You passed MPI_COMM_NULL !!!
Hello, World! I am process 5 of 0 on Dell.
However, if I use the environment and mpi4py package installed from anaconda, then the demo/wrap-c example runs successfully.
Would you help me with this ?
Thanks a million !!!
(my only change is the makefile, -fcompiler=intelem)
The error is "I am process 5 of 0 on Dell", well it should be "I am process x of 5 on Dell"