int MONITOR_WRAP_NAME(MPI_Init)(int *argc, char ***argv) { int ret, count; MONITOR_DEBUG1("\n"); MONITOR_GET_REAL_NAME_WRAP(real_mpi_init, MPI_Init); count = monitor_mpi_init_count(1); if (count == 1) { MONITOR_DEBUG1("calling monitor_mpi_pre_init() ...\n"); monitor_mpi_pre_init(); } ret = (*real_mpi_init)(argc, argv); if (count == 1) { MONITOR_DEBUG1("calling monitor_init_mpi() ...\n"); monitor_init_mpi(argc, argv); } monitor_mpi_init_count(-1); return (ret); }
void MONITOR_WRAP_NAME(mpi_init_thread_)(int *required, int *provided, int *ierror) { int argc, count; char **argv; MONITOR_DEBUG1("\n"); MONITOR_GET_REAL_NAME_WRAP(real_mpi_init_thread, mpi_init_thread_); count = monitor_mpi_init_count(1); if (count == 1) { MONITOR_DEBUG1("calling monitor_mpi_pre_init() ...\n"); monitor_mpi_pre_init(); } (*real_mpi_init_thread)(required, provided, ierror); if (count == 1) { MONITOR_DEBUG1("calling monitor_init_mpi() ...\n"); monitor_get_main_args(&argc, &argv, NULL); monitor_init_mpi(&argc, &argv); } monitor_mpi_init_count(-1); }
int MONITOR_WRAP_NAME(PMPI_Init_thread)(int *argc, char ***argv, int required, int *provided) { int ret, count; MONITOR_DEBUG1("\n"); MONITOR_GET_REAL_NAME_WRAP(real_pmpi_init_thread, PMPI_Init_thread); count = monitor_mpi_init_count(1); if (count == 1) { MONITOR_DEBUG1("calling monitor_mpi_pre_init() ...\n"); monitor_mpi_pre_init(); } ret = (*real_pmpi_init_thread)(argc, argv, required, provided); if (count == 1) { MONITOR_DEBUG1("calling monitor_init_mpi() ...\n"); monitor_init_mpi(argc, argv); } monitor_mpi_init_count(-1); return (ret); }