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