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

Next: , Previous: 64 Bit, Up: Building on Unix



3.4 Building on Parallel Platforms

NetCDF makes available the parallel I/O features of HDF5, allowing parallel I/O from netCDF-4 linked programs.

For parallel I/O to work, HDF5 must be installed with –enable-parallel, and an MPI library (and related libraries) must be made available to the HDF5 configure. This can be accomplished with the mpicc wrapper script, in the case of MPICH2.

The following works on our netCDF testing system:

     CC=mpicc ./configure --enable-parallel --prefix=/shecky/local_par
     --with-zlib=/shecky/local_par --disable-shared && make check install

There is no need to specify –enable-parallel for netCDF. The netCDF configure program will recognize that HDF5 was built for parallel I/O and will turn on netCDF-4's parallel I/O features.

     CC=mpicc ./configure --enable-netcdf-4 --prefix=/shecky/local_par
     --with-hdf5=/shecky/local_par && make check install

To enable the parallel tests, specify –enable-parallel-tests as an option to configure. These tests will be run as mpiexec calls. This may not be appropriate on all systems, especially those which use some queue for jobs.

For parallel builds the netCDF examples are not built. This is to avoid cluttering them with MPI_Init/Finalize calls.
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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