SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
Functions
sion_generic_mapped.h File Reference
#include <stdio.h>
#include "sion_const.h"
#include "sion_datatypes.h"
#include "sion_generic_apidesc.h"
Include dependency graph for sion_generic_mapped.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 
int _sion_parclose_mapped_generic (int sid, int rank, int ntasks, _sion_generic_gendata *sion_gendata)
 

Function Documentation

◆ _sion_paropen_mapped_generic()

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.

Parameters
sidsion file handle
fnamefilename to use
file_mode_flagsflags from already parsed file_mode (see also sion_internal.h)
prefixprefix to be used in case of multiple files
numFilesNumber of files to open
nlocaltasksFIXME
globalranksFIXME
chunksizeschunksizes for all tasks
mapping_filenrsFIXME
mapping_lranksFIXME
fsblksizeblocksize of filesystem (must be equal on all processors)
rankrank of the current process
ntasksnumber of processes
flagsion options flag
fileptrfilepointer for this task
sion_gendataFIXME
Returns
sion file handle -1 if error occured

Definition at line 69 of file sion_generic_mapped.c.