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

  • To: Ed Hartnett <ed@xxxxxxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] NetCDF 4.0.1 with --enable-netcdf-4 conflicts with Open MPI by redefining MPI_Comm, etc
  • From: Ted Mansell <ted.mansell@xxxxxxxx>
  • Date: Wed, 7 Oct 2009 07:23:47 -0500
Hi, Ed,

On Oct 7, 2009, at 2:47 AM, Ed Hartnett wrote:
I think the smart thing to do might be to have a separate header
netcdf_par.h, which is included by people who want to use parallel
I/O. This way, the sequential header (netcdf.h) does not need to contain
anything related to mpi.

Right now, I also build nc_create_par/nc_open_par functions whether the
build is for parallel or not. I think I will have to change that too.

I think the latter by itself would be sufficient. To use parallel it has to be compiled with mpi, anyway (and kept separate from the non- mpi version), so I think a separate header gets confusing. (Not that I ever use the C interface, but you have to have different paths for the mpi and non-mpi installs already, so there shouldn't be an extra need to change the name of the include file.)

What about having a dummy alternate non-mpi nc_create_par/nc_open_par routines that spit out an error if used in a non-mpi compile? ("You need to compile netcdf with MPI, you dolt.")

-- Ted



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