SIONlib  1.7.4
Scalable I/O library for parallel access to task-local files
sion_ompi.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** SIONLIB http://www.fz-juelich.de/jsc/sionlib **
3 *****************************************************************************
4 ** Copyright (c) 2008-2019 **
5 ** Forschungszentrum Juelich, Juelich Supercomputing Centre **
6 ** **
7 ** See the file COPYRIGHT in the package base directory for details **
8 ****************************************************************************/
9 
16 #ifndef SION_SION_OMPI_H
17 #define SION_SION_OMPI_H
18 
19 #if defined(MPI_VERSION) || defined(SION_OMPI)
20 
21 #include <stdio.h>
22 
23 #include "mpi.h"
24 
25 #include "sion_const.h"
26 #include "sion_datatypes.h"
27 #include "sion_datatypes_mpi.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 int sion_paropen_ompi( const char *fname,
34  const char *file_mode,
35  int *numFiles,
36  MPI_Comm gComm,
37  const MPI_Comm *lComm,
38  sion_int64 *chunksize,
39  sion_int32 *fsblksize,
40  int *globalrank,
41  FILE **fileptr,
42  char **newfname);
43 
44 int sion_parclose_ompi( int sid );
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
51 
52 #endif