/**
 * Measurement wrapper for MPI_Group_excl
 * @note Auto-generated by wrapgen from template: group_mgnt.w
 * @note C interface
 * @note Introduced with MPI 1.0
 * @ingroup cg
 */
int MPI_Group_excl(MPI_Group  group,
                   int        n,
                   int*       ranks,
                   MPI_Group* newgroup)
{
  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_GROUP_EXCL]);
  }

  return_val = PMPI_Group_excl(group, n, ranks, newgroup);
  if (*newgroup != MPI_GROUP_NULL)
  {
    epk_group_create(*newgroup);
  }

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

  return return_val;
}
Beispiel #2
0
void ompi_group_excl_f(MPI_Fint *group, MPI_Fint *n,
                       MPI_Fint *ranks, MPI_Fint *newgroup,
                       MPI_Fint *ierr)
{
    int c_ierr;
    ompi_group_t *c_group, *c_newgroup;
    OMPI_ARRAY_NAME_DECL(ranks);

    /* Make the fortran to c representation conversion */
    c_group = PMPI_Group_f2c(*group);

    OMPI_ARRAY_FINT_2_INT(ranks, *n);
    c_ierr = PMPI_Group_excl(c_group,
                             OMPI_FINT_2_INT(*n),
                             OMPI_ARRAY_NAME_CONVERT(ranks),
                             &c_newgroup);
    if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);

    /* translate the results from c to fortran */
    if (MPI_SUCCESS == c_ierr) {
        *newgroup = c_newgroup->grp_f_to_c_index;
    }
}
Beispiel #3
0
int MPI_Group_excl(MPI_Group group, int n, int *ranks, MPI_Group * newgroup)
{
  return PMPI_Group_excl(group, n, ranks, newgroup);
}