Re: [netcdfgroup] NetCDF 4.0.1 with --enable-netcdf-4 conflicts with Open MPI by redefining MPI_Comm, etc

  • To: Dennis Heimbigner <dmh@xxxxxxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] NetCDF 4.0.1 with --enable-netcdf-4 conflicts with Open MPI by redefining MPI_Comm, etc
  • From: Rob Latham <robl@xxxxxxxxxxx>
  • Date: Tue, 6 Oct 2009 14:40:42 -0500
On Tue, Oct 06, 2009 at 10:25:01AM -0600, Dennis Heimbigner wrote:
> If you write a program that includes
> mpi.h then indeed you will get conflicts;
> so the question is: why are you including
> mpi.h in your netcf programs? Does it work
> ok if you remove the '#include <mpi.h>' ?

Here's what we do in pnetcdf.  Any place that pnetcdf needs MPI data
structures, we include <mpi.h>  we do not, however, include mpi.h in
the pnetcdf.h header file.    

Because the pnetcdf API uses things like communicators and MPI info
values, we force the caller to include mpi.h before including
pnetcdf.h

Our job is easier because we are always parallel, whereas netcdf-4
might not have parallel I/O support if the underlying HDF5 library
does not have it. 

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: