SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
Macros | Functions
sion_generic_mapped.c File Reference

Internal Functions(parallel) More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "sion.h"
#include "sion_debug.h"
#include "sion_error_handler.h"
#include "sion_file.h"
#include "sion_filedesc.h"
#include "sion_fd.h"
#include "sion_metadata.h"
#include "sion_internal.h"
#include "sion_internal_startptr.h"
#include "sion_printts.h"
#include "sion_buffer.h"
#include "sion_keyvalue.h"
#include "sion_generic_internal.h"
#include "sion_generic_collective.h"
Include dependency graph for sion_generic_mapped.c:

Go to the source code of this file.

Macros

#define _XOPEN_SOURCE   700
 
#define _SION_CONST_MAX_INT32   2147483647
 

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)
 

Detailed Description

Internal Functions(parallel)

Definition in file sion_generic_mapped.c.

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.