/**
 * Measurement wrapper for MPI_Comm_create_keyval
 * @note Auto-generated by wrapgen from template: std.w
 * @note C interface
 * @note Introduced with MPI 2.0
 * @ingroup cg_ext
 */
int MPI_Comm_create_keyval(
  MPI_Comm_copy_attr_function* comm_copy_attr_fn,
  MPI_Comm_delete_attr_function*
  comm_delete_attr_fn,
  int*                         comm_keyval,
  void*                        extra_state)
{
  int return_val;

  if (IS_EVENT_GEN_ON_FOR(CG_EXT))
  {
    EVENT_GEN_OFF();
    esd_enter(epk_mpi_regid[EPK__MPI_COMM_CREATE_KEYVAL]);

    return_val = PMPI_Comm_create_keyval(comm_copy_attr_fn,
                                         comm_delete_attr_fn,
                                         comm_keyval,
                                         extra_state);

    esd_exit(epk_mpi_regid[EPK__MPI_COMM_CREATE_KEYVAL]);
    EVENT_GEN_ON();
  }
  else
  {
    return_val = PMPI_Comm_create_keyval(comm_copy_attr_fn,
                                         comm_delete_attr_fn,
                                         comm_keyval,
                                         extra_state);
  }

  return return_val;
}
Beispiel #2
0
int MPI_Comm_create_keyval(MPI_Comm_copy_attr_function* copy_fn, MPI_Comm_delete_attr_function* delete_fn, int* keyval, void* extra_state)
{
   return PMPI_Comm_create_keyval(copy_fn,  delete_fn,  keyval,  extra_state) ;
}