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.