Re: [OMPI users] MPI_Allreduce fail (minGW gfortran + OpenMPI 1.6.1)

2012-09-08 Thread Yonghui
Hi Jeff, Thanks for your response. Like you said, the code works for you in a Linux system. And I am sure that the code works on Linux and even Mac os x. But if you use MinGW (basically you have all gnu things on windows) to compile, the code abort when running to MPI_Allreduce. In my opinion

Re: [OMPI users] MPI_Allreduce fail (minGW gfortran + OpenMPI 1.6.1)

2012-09-08 Thread Jeff Squyres
I am unable to replicate your problem, but admittedly I only have access to gfortran on Linux. And I am definitely *not* a Fortran expert. :-\ The code seems to run fine for me -- can you send another test program that actually tests the results of the all reduce? Fortran allocatable stuff al

[OMPI users] MPI_Allreduce fail (minGW gfortran + OpenMPI 1.6.1)

2012-09-06 Thread Yonghui
Dear mpi users and developers, I am having some trouble with MPI_Allreduce. I am using MinGW (gcc 4.6.2) with OpenMPI 1.6.1. The MPI_Allreduce in c version works fine, but the fortran version failed with error. Here is the simple fortran code to reproduce the error: program ma