SIONlib  2.0.0-rc.1
Scalable I/O library for parallel access to task-local files
Functions
OpenMP Parallel API

Open (and close) SIONlib files from multiple OpenMP threads in parallel. More...

Functions

int sion_paropen_omp (const char *fname, const char *file_mode, int64_t *chunksize, int32_t *fsblksize, int *globalrank, FILE **fileptr, char **newfname)
 Open a sion file using OpenMP. More...
 
int sion_parclose_omp (int sid)
 closes a SION file previously opened in OpenMP mode More...
 

Detailed Description

Open (and close) SIONlib files from multiple OpenMP threads in parallel.

See also
API Overview

Function Documentation

◆ sion_parclose_omp()

int sion_parclose_omp ( int  sid)

closes a SION file previously opened in OpenMP mode

Parameters
[in]*sidSION file id

Definition at line 129 of file sion_omp_gen.c.

◆ sion_paropen_omp()

int sion_paropen_omp ( const char *  fname,
const char *  file_mode,
int64_t *  chunksize,
int32_t *  fsblksize,
int *  globalrank,
FILE **  fileptr,
char **  newfname 
)

Open a sion file using OpenMP.

This function opens a sion file using OpenMP. It processes the OpenMP specific parts and then passes its arguments on to sion_generic_paropen().

Parameters
[in]fnamename of file, should be equal on all tasks
[in]file_modelike the type parameter of fopen (currently recognized options: "rb", "wb")
[in,out]chunksizemaximum size to be written with single write call
[in,out]fsblksizefile system block size (-1 for automatic)
[in,out]globalrankglobal rank of process
[in,out]fileptrfile pointer (NULL for not using an external file pointer)
[out]newfnamereturn value for actual file name if using multi files
Return values
sidsion file handle or -1 if error occured

Definition at line 47 of file sion_omp_gen.c.