14 #ifndef SION_SION_OMPI_INTERNAL_GEN_H
15 #define SION_SION_OMPI_INTERNAL_GEN_H
23 struct __ompi_thread_sync_struct
26 int grank_master_ompi;
28 int lrank_master_ompi;
38 typedef struct __ompi_thread_sync_struct __ompi_thread_sync;
41 int _sion_gen_info_from_gcomm_ompi(
int numFiles, MPI_Comm gComm,
int *filenumber,
int *lrank,
int *lsize);
42 int _sion_get_info_from_splitted_comm_ompi(MPI_Comm gComm, MPI_Comm lComm,
int *numComm,
int *CommNumber,
int *lrank,
int *lsize);
44 int _sion_get_size_ompi(
int ompi_rank,
int num_threads);
45 int _sion_map_rank_mpi_to_ompi(
int mpi_rank,
int num_threads,
int thread_num);
46 int _sion_map_rank_ompi_to_mpi(
int ompi_rank,
int num_threads);
47 int _sion_map_rank_ompi_to_thread_num(
int ompi_rank,
int num_threads);
50 int _sion_errorprint_ompi(
int rc,
int level,
const char *format, ...);