Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Eugene Loh
Prentice Bisbal wrote: Jeff Squyres wrote: Can you put together a small example that shows the problem... Jeff, Thanks for requesting that. As I was looking at the oringinal code to write a small test program, I found the source of the error. Doesn't it aways work that way.

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Prentice Bisbal
Jeff Squyres wrote: > On Feb 23, 2011, at 3:36 PM, Prentice Bisbal wrote: > >> It's using MPI_STATUS_SIZE to dimension istatus before mpif.h is even >> read! Correcting the order of the include and declaration statements >> fixed the problem. D'oh! > > A pox on old fortran for letting you use

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Jeff Squyres
On Feb 23, 2011, at 3:36 PM, Prentice Bisbal wrote: > It's using MPI_STATUS_SIZE to dimension istatus before mpif.h is even > read! Correcting the order of the include and declaration statements > fixed the problem. D'oh! A pox on old fortran for letting you use symbols before they are

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Prentice Bisbal
Jeff Squyres wrote: > On Feb 23, 2011, at 2:20 PM, Prentice Bisbal wrote: > >> I suspected that and checked for it earlier. I just double-checked, and >> that is not the problem. Out of the two source files, 'include mpif.h' >> appears once, and 'use mpi' does not appear at all. I'm beginning to

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Jeff Squyres
On Feb 23, 2011, at 2:20 PM, Prentice Bisbal wrote: > I suspected that and checked for it earlier. I just double-checked, and > that is not the problem. Out of the two source files, 'include mpif.h' > appears once, and 'use mpi' does not appear at all. I'm beginning to > suspect it is the

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread David Zhang
I would assume you build MPI correctly with ifort? On Wed, Feb 23, 2011 at 11:20 AM, Prentice Bisbal wrote: > > > Jeff Squyres wrote: > > I thought the error was this: > > > > $ mpif90 -o simplex simplexmain579m.for simplexsubs579 > >

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Prentice Bisbal
Jeff Squyres wrote: > I thought the error was this: > > $ mpif90 -o simplex simplexmain579m.for simplexsubs579 > /usr/local/openmpi-1.2.8/intel-11/x86_64/include/mpif-config.h(88): > error #6406: Conflicting attributes or multiple declaration of name. > [MPI_STATUS_SIZE] > parameter

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Prentice Bisbal
Tim Prince wrote: > On 2/23/2011 8:27 AM, Prentice Bisbal wrote: >> Jeff Squyres wrote: >>> On Feb 23, 2011, at 9:48 AM, Tim Prince wrote: >>> > I agree with your logic, but the problem is where the code containing > the error is coming from - it's comping from a header files that's a

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Jeff Squyres
I thought the error was this: $ mpif90 -o simplex simplexmain579m.for simplexsubs579 /usr/local/openmpi-1.2.8/intel-11/x86_64/include/mpif-config.h(88): error #6406: Conflicting attributes or multiple declaration of name. [MPI_STATUS_SIZE] parameter (MPI_STATUS_SIZE=5) -^

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Tim Prince
On 2/23/2011 8:27 AM, Prentice Bisbal wrote: Jeff Squyres wrote: On Feb 23, 2011, at 9:48 AM, Tim Prince wrote: I agree with your logic, but the problem is where the code containing the error is coming from - it's comping from a header files that's a part of Open MPI, which makes me think

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Prentice Bisbal
Jeff Squyres wrote: > On Feb 23, 2011, at 9:48 AM, Tim Prince wrote: > >>> I agree with your logic, but the problem is where the code containing >>> the error is coming from - it's comping from a header files that's a >>> part of Open MPI, which makes me think this is a cmpiler error, since >>>

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Jeff Squyres
On Feb 23, 2011, at 9:48 AM, Tim Prince wrote: >> I agree with your logic, but the problem is where the code containing >> the error is coming from - it's comping from a header files that's a >> part of Open MPI, which makes me think this is a cmpiler error, since >> I'm sure there are plenty of

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Tim Prince
On 2/23/2011 6:41 AM, Prentice Bisbal wrote: Tim Prince wrote: On 2/22/2011 1:41 PM, Prentice Bisbal wrote: One of the researchers I support is writing some Fortran code that uses Open MPI. The code is being compiled with the Intel Fortran compiler. This one line of code: integer

Re: [OMPI users] What's wrong with this code?

2011-02-23 Thread Prentice Bisbal
Tim Prince wrote: > On 2/22/2011 1:41 PM, Prentice Bisbal wrote: >> One of the researchers I support is writing some Fortran code that uses >> Open MPI. The code is being compiled with the Intel Fortran compiler. >> This one line of code: >> >> integer ierr,istatus(MPI_STATUS_SIZE) >> >> leads

Re: [OMPI users] What's wrong with this code?

2011-02-22 Thread Jeff Squyres
On Feb 22, 2011, at 4:41 PM, Prentice Bisbal wrote: > One of the researchers I support is writing some Fortran code that uses > Open MPI. The code is being compiled with the Intel Fortran compiler. > This one line of code: > > integer ierr,istatus(MPI_STATUS_SIZE) > > leads to these errors: >

Re: [OMPI users] What's wrong with this code?

2011-02-22 Thread Tim Prince
On 2/22/2011 1:41 PM, Prentice Bisbal wrote: One of the researchers I support is writing some Fortran code that uses Open MPI. The code is being compiled with the Intel Fortran compiler. This one line of code: integer ierr,istatus(MPI_STATUS_SIZE) leads to these errors: $ mpif90 -o simplex

[OMPI users] What's wrong with this code?

2011-02-22 Thread Prentice Bisbal
One of the researchers I support is writing some Fortran code that uses Open MPI. The code is being compiled with the Intel Fortran compiler. This one line of code: integer ierr,istatus(MPI_STATUS_SIZE) leads to these errors: $ mpif90 -o simplex simplexmain579m.for simplexsubs579