root/ompi/mpi/tool/category_changed.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. MPI_T_category_changed

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
   4  *                         reserved.
   5  * Copyright (c) 2014 Cisco Systems, Inc.  All rights reserved.
   6  * Copyright (c) 2017      IBM Corporation. All rights reserved.
   7  * $COPYRIGHT$
   8  *
   9  * Additional copyrights may follow
  10  *
  11  * $HEADER$
  12  */
  13 
  14 #include "ompi/mpi/tool/mpit-internal.h"
  15 
  16 #if OPAL_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
  17 #pragma weak MPI_T_category_changed = PMPI_T_category_changed
  18 #endif
  19 
  20 #if OMPI_PROFILING_DEFINES
  21 #include "ompi/mpi/tool/profile/defines.h"
  22 #endif
  23 
  24 
  25 int MPI_T_category_changed(int *stamp)
  26 {
  27     if (!mpit_is_initialized ()) {
  28         return MPI_T_ERR_NOT_INITIALIZED;
  29     }
  30 
  31     ompi_mpit_lock ();
  32     *stamp = mca_base_var_group_get_stamp ();
  33     ompi_mpit_unlock ();
  34 
  35     return MPI_SUCCESS;
  36 }

/* [<][>][^][v][top][bottom][index][help] */