SIONlib
2.0.0-rc.1
Scalable I/O library for parallel access to task-local files
|
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... | |
Open (and close) SIONlib files from multiple OpenMP threads in parallel.
int sion_parclose_omp | ( | int | sid | ) |
closes a SION file previously opened in OpenMP mode
[in] | *sid | SION file id |
Definition at line 129 of file sion_omp_gen.c.
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().
[in] | fname | name of file, should be equal on all tasks |
[in] | file_mode | like the type parameter of fopen (currently recognized options: "rb", "wb") |
[in,out] | chunksize | maximum size to be written with single write call |
[in,out] | fsblksize | file system block size (-1 for automatic) |
[in,out] | globalrank | global rank of process |
[in,out] | fileptr | file pointer (NULL for not using an external file pointer) |
[out] | newfname | return value for actual file name if using multi files |
sid | sion file handle or -1 if error occured |
Definition at line 47 of file sion_omp_gen.c.