/**
 * Measurement wrapper for MPI_Cart_map
 * @note Auto-generated by wrapgen from template: std.w
 * @note C interface
 * @note Introduced with MPI 1.0
 * @ingroup topo
 */
int MPI_Cart_map(MPI_Comm comm,
                 int      ndims,
                 int*     dims,
                 int*     periods,
                 int*     newrank)
{
  int return_val;

  if (IS_EVENT_GEN_ON_FOR(TOPO))
  {
    EVENT_GEN_OFF();
    esd_enter(epk_mpi_regid[EPK__MPI_CART_MAP]);

    return_val = PMPI_Cart_map(comm, ndims, dims, periods, newrank);

    esd_exit(epk_mpi_regid[EPK__MPI_CART_MAP]);
    EVENT_GEN_ON();
  }
  else
  {
    return_val = PMPI_Cart_map(comm, ndims, dims, periods, newrank);
  }

  return return_val;
}
Exemple #2
0
int MPI_Cart_map(MPI_Comm comm_old, int ndims, int* dims, int* periods, int* newrank) {
  return PMPI_Cart_map(comm_old, ndims, dims, periods, newrank);
}