H5FDmpiposix.h

00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00002  * Copyright by The HDF Group.                                               *
00003  * Copyright by the Board of Trustees of the University of Illinois.         *
00004  * All rights reserved.                                                      *
00005  *                                                                           *
00006  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00007  * terms governing use, modification, and redistribution, is contained in    *
00008  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00009  * of the source code distribution tree; Copyright.html can be found at the  *
00010  * root level of an installed copy of the electronic HDF5 document set and   *
00011  * is linked from the top-level documents page.  It can also be found at     *
00012  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00013  * access to either file, you may request a copy from help@hdfgroup.org.     *
00014  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 /*
00017  * Programmer:  Quincey Koziol <koziol@ncsa.uiuc.edu>
00018  *              Thursday, July 11, 2002
00019  *
00020  * Purpose:     The public header file for the mpiposix driver.
00021  */
00022 
00023 #ifndef __H5FDmpiposix_H
00024 #define __H5FDmpiposix_H
00025 
00026 #ifdef H5_HAVE_PARALLEL
00027 #   define H5FD_MPIPOSIX        (H5FD_mpiposix_init())
00028 #else
00029 #   define H5FD_MPIPOSIX        (-1)
00030 #endif
00031 
00032 /* Macros */
00033 
00034 #define IS_H5FD_MPIPOSIX(f)     /* (H5F_t *f) */                                    \
00035     (H5FD_MPIPOSIX==H5F_DRIVER_ID(f))
00036 
00037 #ifdef H5_HAVE_PARALLEL
00038 
00039 /* Function prototypes */
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00044 H5_DLL hid_t H5FD_mpiposix_init(void);
00045 H5_DLL void H5FD_mpiposix_term(void);
00046 H5_DLL herr_t H5Pset_fapl_mpiposix(hid_t fapl_id, MPI_Comm comm, hbool_t use_gpfs);
00047 H5_DLL herr_t H5Pget_fapl_mpiposix(hid_t fapl_id, MPI_Comm *comm/*out*/, hbool_t *use_gpfs/*out*/);
00048 
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 #endif /*H5_HAVE_PARALLEL*/
00054 
00055 #endif /* __H5FDmpiposix_H */
00056