root/ompi/mpiext/cr/c/mpiext_cr_c.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2010 The Trustees of Indiana University.
   3  *                         All rights reserved.
   4  * Copyright (c) 2012 Cisco Systems, Inc.  All rights reserved.
   5  * $COPYRIGHT$
   6  *
   7  * Additional copyrights may follow
   8  *
   9  * $HEADER$
  10  *
  11  */
  12 #include "opal/runtime/opal_cr.h"
  13 
  14 /********************************
  15  * C/R Interfaces
  16  ********************************/
  17 /*
  18  * Request a checkpoint
  19  */
  20 OMPI_DECLSPEC int OMPI_CR_Checkpoint(char **handle, int *seq, MPI_Info *info);
  21 
  22 /*
  23  * Request a restart
  24  */
  25 OMPI_DECLSPEC int OMPI_CR_Restart(char *handle, int seq, MPI_Info *info);
  26 
  27 
  28 /********************************
  29  * Migration Interface
  30  ********************************/
  31 /*
  32  * Request a migration
  33  */
  34 OMPI_DECLSPEC int OMPI_CR_Migrate(MPI_Comm comm, char *hostname, int rank, MPI_Info *info);
  35 
  36 
  37 /********************************
  38  * INC Interfaces
  39  ********************************/
  40 typedef opal_cr_user_inc_callback_event_t OMPI_CR_INC_callback_event_t;
  41 
  42 typedef opal_cr_user_inc_callback_state_t OMPI_CR_INC_callback_state_t;
  43 
  44 typedef int (*OMPI_CR_INC_callback_function)(OMPI_CR_INC_callback_event_t event,
  45                                              OMPI_CR_INC_callback_state_t state);
  46 
  47 OMPI_DECLSPEC int OMPI_CR_INC_register_callback(OMPI_CR_INC_callback_event_t event,
  48                                                 OMPI_CR_INC_callback_function function,
  49                                                 OMPI_CR_INC_callback_function *prev_function);
  50 
  51 
  52 /********************************
  53  * SELF CRS Application Interfaces
  54  ********************************/
  55 typedef int (*OMPI_CR_self_checkpoint_fn)(char **restart_cmd);
  56 typedef int (*OMPI_CR_self_restart_fn)(void);
  57 typedef int (*OMPI_CR_self_continue_fn)(void);
  58 
  59 OMPI_DECLSPEC int OMPI_CR_self_register_checkpoint_callback(OMPI_CR_self_checkpoint_fn function);
  60 OMPI_DECLSPEC int OMPI_CR_self_register_restart_callback(OMPI_CR_self_restart_fn function);
  61 OMPI_DECLSPEC int OMPI_CR_self_register_continue_callback(OMPI_CR_self_continue_fn function);
  62 
  63 
  64 /********************************
  65  * Quiescence Interfaces
  66  ********************************/
  67 /*
  68  * Start the Quiescent region.
  69  * Note: 'comm' required to be MPI_COMM_WORLD
  70  */
  71 OMPI_DECLSPEC int OMPI_CR_Quiesce_start(MPI_Comm comm, MPI_Info *info);
  72 
  73 /*
  74  * Request a checkpoint during a quiescent region
  75  * Note: 'comm' required to be MPI_COMM_WORLD
  76  */
  77 OMPI_DECLSPEC int OMPI_CR_Quiesce_checkpoint(MPI_Comm comm, char **handle, int *seq, MPI_Info *info);
  78 
  79 /*
  80  * End the Quiescent Region
  81  * Note: 'comm' required to be MPI_COMM_WORLD
  82  */
  83 OMPI_DECLSPEC int OMPI_CR_Quiesce_end(MPI_Comm comm, MPI_Info *info);

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