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

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

Functions

int sion_paropen_ompi (const char *fname, const char *file_mode, int *numFiles, MPI_Comm gComm, const MPI_Comm *lComm, int64_t *chunksize, int32_t *fsblksize, int *globalrank, FILE **fileptr, char **newfname)
 Open a sion file using OpenMP/MPI. More...
 
int sion_parclose_ompi (int sid)
 closes a SION file previously opened in OpenMP/MPI mode More...
 

Detailed Description

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

See also
API Overview

Function Documentation

◆ sion_parclose_ompi()

int sion_parclose_ompi ( int  sid)

closes a SION file previously opened in OpenMP/MPI mode

Parameters
[in]*sidSION file id

Definition at line 264 of file sion_ompi_gen.c.

◆ sion_paropen_ompi()

int sion_paropen_ompi ( const char *  fname,
const char *  file_mode,
int *  numFiles,
MPI_Comm  gComm,
const MPI_Comm *  lComm,
int64_t *  chunksize,
int32_t *  fsblksize,
int *  globalrank,
FILE **  fileptr,
char **  newfname 
)

Open a sion file using OpenMP/MPI.

This function opens a sion file using OpenMP/MPI. It processes the OpenMP/MPI 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]numFilesnumber of multi files to use (-1 for automatic choosing from local communicator)
[in]gCommglobal communicator
[in]lCommlocal communicator (= gComm if no adaption to I/O nodes is needed)
[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 51 of file sion_ompi_gen.c.

References sion_lock_register_lock_callbacks().