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

  • To: Rob Latham <robl@xxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] NetCDF 4.0.1 with --enable-netcdf-4 conflicts with Open MPI by redefining MPI_Comm, etc
  • From: Constantine Khroulev <c.khroulev@xxxxxxxxx>
  • Date: Mon, 5 Oct 2009 13:44:30 -0800
Hello,

On Oct 5, 2009, at 1:08 PM, Rob Latham wrote:

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?

I think I am.

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.

Thanks for pointing this out.

--
Constantine



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