Is H5_HAVE_PARALLEL macro a reliable way to check pHDF5

Some H5 CAPI calls/properties are only available when compiled with MPI / pHDF5. I am in the process of bulk mapping CAPI properties to C++ objects to ease on readability and usage of HDF5. Some of these properties are only accessible from MPI capable hdf5 systems, grep-ing the source tree H5_HAVE_PARALLEL is defined when pHDF5 enabled.

Is this the right/reliable way to distinguish between serial/parallel HDF5 environment?

cat hdf5/src/H5Dmpio.c |less


Hi Steven,
That’s the correct macro, but you can restrict your search to the “public” API header files. (H5*public.h)