16 #ifndef SION_SION_MPI_H
17 #define SION_SION_MPI_H
19 #if defined(MPI_VERSION) || defined(SION_MPI)
34 const char *file_mode,
37 const MPI_Comm *lComm,
38 sion_int64 *chunksize,
39 sion_int32 *fsblksize,
45 int sion_parreinit_mpi(
int sid,
46 sion_int64 chunksize );
55 int sion_paropen_mapped_mpi(
char *fname,
56 const char *file_mode,
61 sion_int64 **chunksizes,
62 int **mapping_filenrs,
64 sion_int32 *fsblksize,
67 int sion_parclose_mapped_mpi(
int sid );
70 int sion_startof_transaction_mpi(
int sid );
71 int sion_endof_transaction_mpi (
int sid );
72 size_t sion_coll_fwrite_mpi(
const void *data,
size_t size,
size_t nitems,
int sid);
73 size_t sion_coll_fread_mpi(
void *data,
size_t size,
size_t nitems,
int sid);
76 int sion_paropen_comms_mpi(
char *fname,
77 const char *file_mode,
80 MPI_Comm lComm, sion_int64 *chunksize, sion_int32 *fsblksize,
int *globalrank, FILE **fileptr,
char *newfname);
81 int sion_paropen_multi_mpi(
char *fname,
82 const char *file_mode,
85 MPI_Comm *lComm, sion_int64 *chunksize, sion_int32 *fsblksize,
int *globalrank, FILE **fileptr,
char *newfname);
95 int sion_file_check_par_cb_mpi(
char *fname,
void *args );
int sion_paropen_mpi(const char *fname, const char *file_mode, int *numFiles, MPI_Comm gComm, const MPI_Comm *lComm, sion_int64 *chunksize, sion_int32 *fsblksize, int *globalrank, FILE **fileptr, char **newfname)
Open a sion file using MPI.
int sion_parclose_mpi(int sid)
Close a sion file using MPI.