![]() |
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 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... | |
Open (and close) SIONlib files from multiple OpenMP threads on on multiple MPI processes in parallel.
| int sion_parclose_ompi | ( | int | sid | ) |
closes a SION file previously opened in OpenMP/MPI mode
| [in] | *sid | SION file id |
Definition at line 264 of file sion_ompi_gen.c.
| 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().
| [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] | numFiles | number of multi files to use (-1 for automatic choosing from local communicator) |
| [in] | gComm | global communicator |
| [in] | lComm | local communicator (= gComm if no adaption to I/O nodes is needed) |
| [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 51 of file sion_ompi_gen.c.
References sion_lock_register_lock_callbacks().
1.8.15