NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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

  • To: Constantine Khroulev <c.khroulev@xxxxxxxxx>
  • 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: Mon, 5 Oct 2009 16:08:07 -0500
On Mon, Oct 05, 2009 at 12:08:44PM -0800, Constantine Khroulev wrote:
> Hello,
> 
> I have a problem: NetCDF 4.0.1 adds the following lines to netcdf.h
> (HDF5 is, in fact, built without parallel I/O support.):
> 
> ===
> /* These defs added by netCDF configure because parallel HDF5 is not
> present. */
> #define MPI_Comm int
> #define MPI_Info int
> #define MPI_COMM_WORLD 0
> #define MPI_INFO_NULL 0
> ===

This sounds familiar.  Are you having the same problem as I was a few
years back?

http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdf-hdf/2007/msg00106.html

I was trying to compile with MPICH2, not OpenMPI, but I was getting
stuck on redefining MPI_Comm and MPI_Info as well.

==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: