SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
sion_generic_mapped.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 
14 #ifndef SION_SION_GENERIC_PAR_MAPPED_H
15 #define SION_SION_GENERIC_PAR_MAPPED_H
16 
17 #include <stdio.h>
18 
19 #include "sion_const.h"
20 #include "sion_datatypes.h"
21 #include "sion_generic_apidesc.h"
22 
24  int sid,
25  char *fname,
26  sion_int64 file_mode_flags,
27  char *prefix,
28  int *numFiles,
29  int *nlocaltasks,
30  int **globalranks,
31  sion_int64 **chunksizes,
32  int **mapping_filenrs,
33  int **mapping_lranks,
34  sion_int32 *fsblksize,
35  int rank,
36  int ntasks,
37  int flag,
38  FILE **fileptr,
39  _sion_generic_gendata *sion_gendata);
40 
41 int _sion_parclose_mapped_generic( int sid,
42  int rank,
43  int ntasks,
44  _sion_generic_gendata *sion_gendata );
45 #endif
int _sion_paropen_mapped_generic(int sid, char *fname, sion_int64 file_mode_flags, char *prefix, int *numFiles, int *nlocaltasks, int **globalranks, sion_int64 **chunksizes, int **mapping_filenrs, int **mapping_lranks, sion_int32 *fsblksize, int rank, int ntasks, int flag, FILE **fileptr, _sion_generic_gendata *sion_gendata)
Generic parallel open of one direct access file. Mapping sion files to environment with less tasks.