2007-03-17 02:11:45 +03:00
|
|
|
/*
|
2009-04-30 20:39:54 +04:00
|
|
|
* Copyright (c) 2004-2009 The Trustees of Indiana University.
|
2007-03-17 02:11:45 +03:00
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2007-03-17 02:11:45 +03:00
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2007-03-17 02:11:45 +03:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2007-03-17 02:11:45 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2007-03-17 02:11:45 +03:00
|
|
|
* BLCR CRS component
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_CRS_BLCR_EXPORT_H
|
|
|
|
#define MCA_CRS_BLCR_EXPORT_H
|
|
|
|
|
|
|
|
#include "opal_config.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/crs/crs.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
|
|
|
|
#include <libcr.h>
|
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
BEGIN_C_DECLS
|
2007-03-17 02:11:45 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Local Component structures
|
|
|
|
*/
|
|
|
|
struct opal_crs_blcr_component_t {
|
|
|
|
/** Base CRS component */
|
|
|
|
opal_crs_base_component_t super;
|
|
|
|
};
|
|
|
|
typedef struct opal_crs_blcr_component_t opal_crs_blcr_component_t;
|
2007-04-01 20:08:27 +04:00
|
|
|
OPAL_MODULE_DECLSPEC extern opal_crs_blcr_component_t mca_crs_blcr_component;
|
2007-03-17 02:11:45 +03:00
|
|
|
|
2008-05-06 22:08:45 +04:00
|
|
|
int opal_crs_blcr_component_query(mca_base_module_t **module, int *priority);
|
|
|
|
|
2009-04-30 20:32:55 +04:00
|
|
|
extern bool opal_crs_blcr_dev_null;
|
|
|
|
|
2007-03-17 02:11:45 +03:00
|
|
|
/*
|
|
|
|
* Module functions
|
|
|
|
*/
|
|
|
|
int opal_crs_blcr_module_init(void);
|
|
|
|
int opal_crs_blcr_module_finalize(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Actual funcationality
|
|
|
|
*/
|
2015-06-24 06:59:57 +03:00
|
|
|
int opal_crs_blcr_checkpoint( pid_t pid,
|
2009-09-22 22:26:12 +04:00
|
|
|
opal_crs_base_snapshot_t *snapshot,
|
|
|
|
opal_crs_base_ckpt_options_t *options,
|
2007-03-17 02:11:45 +03:00
|
|
|
opal_crs_state_type_t *state);
|
|
|
|
|
2015-06-24 06:59:57 +03:00
|
|
|
int opal_crs_blcr_restart( opal_crs_base_snapshot_t *snapshot,
|
|
|
|
bool spawn_child,
|
2007-03-17 02:11:45 +03:00
|
|
|
pid_t *child_pid);
|
|
|
|
|
|
|
|
int opal_crs_blcr_disable_checkpoint(void);
|
|
|
|
int opal_crs_blcr_enable_checkpoint(void);
|
|
|
|
|
2008-07-09 00:04:39 +04:00
|
|
|
int opal_crs_blcr_prelaunch(int32_t rank,
|
|
|
|
char *base_snapshot_dir,
|
|
|
|
char **app,
|
|
|
|
char **cwd,
|
|
|
|
char ***argv,
|
|
|
|
char ***env);
|
|
|
|
|
2008-02-20 01:15:52 +03:00
|
|
|
int opal_crs_blcr_reg_thread(void);
|
2007-03-17 02:11:45 +03:00
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
END_C_DECLS
|
2007-03-17 02:11:45 +03:00
|
|
|
|
|
|
|
#endif /* MCA_CRS_BLCR_EXPORT_H */
|