SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
sion_serial.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_SERIAL_H
17 #define SION_SION_SERIAL_H
18 
19 /* SIONlib defines functions using FILE* parameter */
20 #include <stdio.h>
21 
22 #include "sion_const.h"
23 #include "sion_datatypes.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29  /* open/close */
30  int sion_open( char *fname,
31  const char* file_mode,
32  int *ntasks,
33  int *nfiles,
34  sion_int64 **chunksizes,
35  sion_int32 *fsblksize,
36  int **globalranks,
37  FILE **fileptr);
38 
39  int sion_open_rank( char *fname,
40  const char *file_mode,
41  sion_int64 *chunksize,
42  sion_int32 *fsblksize,
43  int *rank,
44  FILE **fileptr);
45 
46  int sion_close(int sid);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif
53 
int sion_open_rank(char *fname, const char *file_mode, sion_int64 *chunksize, sion_int32 *fsblksize, int *rank, FILE **fileptr)
Open a sion file for a specific rank.
Definition: sion_serial.c:83
int sion_open(char *fname, const char *file_mode, int *ntasks, int *nfiles, sion_int64 **chunksizes, sion_int32 *fsblksize, int **globalranks, FILE **fileptr)
Open a sion file in serial mode.
Definition: sion_serial.c:54
int sion_close(int sid)
Close a sion file.
Definition: sion_serial.c:106