root/ompi/mpiext/example/c/progress.c

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

DEFINITIONS

This source file includes following definitions.
  1. example_init
  2. example_fini
  3. OMPI_Progress

   1 /*
   2  * Copyright (c) 2004-2009 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2011      Oak Ridge National Labs.  All rights reserved.
   6  * $COPYRIGHT$
   7  *
   8  * Additional copyrights may follow
   9  *
  10  * $HEADER$
  11  */
  12 #include "ompi_config.h"
  13 #include <stdio.h>
  14 
  15 #include "ompi/mpi/c/bindings.h"
  16 #include "ompi/mpiext/mpiext.h"
  17 #include "ompi/mpiext/example/mpiext_example_c.h"
  18 
  19 static const char FUNC_NAME[] = "OMPI_Progress";
  20 
  21 /*
  22  * The init/fini functions and the component struct are not required,
  23  * but optional.  If an extension would like to have init/fini, in
  24  * addition to providing the hooks below, adding the line in
  25  * configure.m4 (documented in example's configure.m4) is also
  26  * required.
  27 */
  28 static int
  29 example_init(void)
  30 {
  31     printf("example mpiext init\n");
  32     return OMPI_SUCCESS;
  33 }
  34 
  35 static int
  36 example_fini(void)
  37 {
  38     printf("example mpiext fini\n");
  39     return OMPI_SUCCESS;
  40 }
  41 
  42 ompi_mpiext_component_t ompi_mpiext_example = {
  43     example_init,
  44     example_fini
  45 };
  46 
  47 
  48 int OMPI_Progress(int count)
  49 {
  50     printf("Count = %d!\n", count);
  51 
  52     return MPI_SUCCESS;
  53 }
  54 

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