예제 #1
0
/**
 * Measurement wrapper for MPI_Intercomm_merge
 * @note Auto-generated by wrapgen from template: comm_mgnt.w
 * @note C interface
 * @note Introduced with MPI 1.0
 * @ingroup cg
 */
int MPI_Intercomm_merge(MPI_Comm  intercomm,
                        int       high,
                        MPI_Comm* newcomm)
{
  const int event_gen_active = IS_EVENT_GEN_ON_FOR(CG);
  int       return_val;

  if (event_gen_active)
  {
    EVENT_GEN_OFF();
    esd_enter(epk_mpi_regid[EPK__MPI_INTERCOMM_MERGE]);
  }

  return_val = PMPI_Intercomm_merge(intercomm, high, newcomm);
  if (*newcomm != MPI_COMM_NULL)
  {
    epk_comm_create(*newcomm);
  }

  if (event_gen_active)
  {
    esd_exit(epk_mpi_regid[EPK__MPI_INTERCOMM_MERGE]);
    EVENT_GEN_ON();
  }

  return return_val;
}
예제 #2
0
int MPI_Intercomm_merge(MPI_Comm comm, int high, MPI_Comm* comm_out) {
  return PMPI_Intercomm_merge(comm, high, comm_out);
}