/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the LICENSE file, which can be found at the root of the source code       *
 * distribution tree, or in https://www.hdfgroup.org/licenses.               *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef H5FDmpio_H
#define H5FDmpio_H

#include "H5FDpublic.h" 

#ifdef H5_HAVE_PARALLEL

#define H5FD_MPIO (H5OPEN H5FD_MPIO_id_g)

#else

#define H5FD_MPIO (H5I_INVALID_HID)

#endif

#ifdef H5_HAVE_PARALLEL

#if defined(H5F_DEBUG) && !defined(H5FDmpio_DEBUG)

#define H5FDmpio_DEBUG
#endif

#ifdef __cplusplus
extern "C" {
#endif

H5_DLLVAR bool H5FD_mpi_opt_types_g;

H5_DLLVAR hid_t H5FD_MPIO_id_g;

H5_DLL herr_t H5Pset_fapl_mpio(hid_t fapl_id, MPI_Comm comm, MPI_Info info);

H5_DLL herr_t H5Pget_fapl_mpio(hid_t fapl_id, MPI_Comm *comm , MPI_Info *info );

H5_DLL herr_t H5Pset_dxpl_mpio(hid_t dxpl_id, H5FD_mpio_xfer_t xfer_mode);

H5_DLL herr_t H5Pget_dxpl_mpio(hid_t dxpl_id, H5FD_mpio_xfer_t *xfer_mode );

H5_DLL herr_t H5Pset_dxpl_mpio_collective_opt(hid_t dxpl_id, H5FD_mpio_collective_opt_t opt_mode);

H5_DLL herr_t H5Pset_dxpl_mpio_chunk_opt(hid_t dxpl_id, H5FD_mpio_chunk_opt_t opt_mode);

H5_DLL herr_t H5Pset_dxpl_mpio_chunk_opt_num(hid_t dxpl_id, unsigned num_chunk_per_proc);

H5_DLL herr_t H5Pset_dxpl_mpio_chunk_opt_ratio(hid_t dxpl_id, unsigned percent_num_proc_per_chunk);
#ifdef __cplusplus
}
#endif

#endif 

#endif
