LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: David Cronk (cronk_at_[hidden])
Date: 2006-01-27 16:53:34


I am hoping one of the LAM developers will provide some input. That is
why I waited to respond. I looked through the header files for LAM.
MPI_Offset is defined in the C header file. However, I could not find
MPI_OFFSET_KIND in any of the Fortran header files.

I have used LAM for MPI I/O in C programs in the past and it has worked.
  I have never tried it with Fortran programs, though the fact that I
don't see MPI_OFFSET_KIND being defined suggests to me that it will not
work with Fortran.

As far as what to include. As was mentioned earlier, it SHOULD not be
necessary to include both. LAM's mpi.h includes mpio.h for you so with
C programs including just mpi.h is sufficient. This does not appear to
hold for the Fortran headers, though someone from the LAM development
team may correct me there.

So, it looks like the question for the LAM development team is, where is
MPI_OFFSET_KIND defined?

Dave.

Barry A. Croker wrote:
> David, others,
>
> This might be an indication of a larger misunderstanding, that maybe you
> can help with. The documentation that I have is not entirely clear
> about some of the included header files needed for MPI I/O.
>
> For "normal" MPI programs I "INCLUDE mpif.h". When I started writing
> the MPI I/O routines on my local machine (using LAM-MPI) I found that I
> also had to "INCLUDE mpiof.h" for everything to be recognized. However,
> even with both of these includeded I still get "Entity mpi_offset_kind
> has undefined type", so I didn't use it (bad call I guess). When I
> ported our code to other platforms, I had to modify these include
> statements. For example, the MPICH-2 distribution gave me redundant
> declaration errors when I included both, but no complaints when I only
> "INCLUDE mpif.h". Likewise, the IBM SP4 had similar behavior.
>
> Is there something incorrect with my installation of MPI? Should I need
> both headers, or only one? The odd thing is the only time that MPI I/O
> appears to work correct is on my local machine, when I include both files.
>
> Thanks for everyone's help and patience with this issue.
>
> David Cronk wrote:
>
> >Barry,
>
> >try INTEGER(KIND=MPI_OFFSET_KIND) offset, disp
>
> >I am guessing your INTEGER is 32 bits while MPI requires 64 bits for
> >offset and displacement (files are often larger than 2 gig).
>
> >Dave.
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/

-- 
Dr. David Cronk, Ph.D.                      phone: (865) 974-3735
Research Director                           fax: (865) 974-8296
Innovative Computing Lab                    http://www.cs.utk.edu/~cronk
University of Tennessee, Knoxville