This function gets the chunk cache settings for the HDF5 library. The settings apply for subsequent file opens/creates.
This affects the per-file chunk cache which the HDF5 layer maintains. The chunk cache size can be tuned for better performance.
For more information, see the documentation for the H5Pget_cache() function in the HDF5 library at the HDF5 website: http://hdfgroup.org/HDF5/.
int nc_get_chunk_cache(size_t *sizep, size_t *nelemsp, float *preemptionp);
sizep
nelemsp
preemptionp
NC_NOERR
This example is from libsrc4/tst_files.c:
#include <netcdf.h> ... /* Retrieve the chunk cache settings, just for fun. */ if (nc_get_chunk_cache(&cache_size_in, &cache_nelems_in, &cache_preemption_in)) ERR; if (cache_size_in != NEW_CACHE_SIZE || cache_nelems_in != NEW_CACHE_NELEMS || cache_preemption_in != NEW_CACHE_PREEMPTION) ERR; ...