Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690