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.
|