2015-03-23 21:03:14 +00:00
|
|
|
/*
|
|
|
|
PURPOSE:
|
|
|
|
(DMTCP C interface)
|
2015-02-26 15:02:31 +00:00
|
|
|
*/
|
|
|
|
|
2015-03-23 21:03:14 +00:00
|
|
|
#ifndef DMTCP_CHECKPOINT_C_INTF_HH
|
|
|
|
#define DMTCP_CHECKPOINT_C_INTF_HH
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#ifdef _DMTCP
|
|
|
|
#include "dmtcpaware.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* call DMTCP function dmtcpIsEnabled() */
|
|
|
|
int dmtcp_is_enabled() ;
|
|
|
|
|
|
|
|
/* call DMTCP funcion dmtcpRunCommand() */
|
|
|
|
int call_dmtcp();
|
|
|
|
|
2016-11-08 09:25:07 +00:00
|
|
|
/* DMTCP jobs to run pre, post, and restart. Arguments for dmtcpInstallHooks() - defined in dmtcp/src/dmtcpaware.c */
|
2015-02-26 15:02:31 +00:00
|
|
|
void dmtcp_pre_checkpoint() ;
|
|
|
|
void dmtcp_post_checkpoint() ;
|
|
|
|
void dmtcp_restart() ;
|
|
|
|
|
|
|
|
/* set DMTCP checkpoint flag */
|
|
|
|
void dmtcp_set_checkpoint_now() ;
|
|
|
|
|
|
|
|
/* queue to store dmtcp job names */
|
|
|
|
void dmtcp_job_queue( std::string file_name );
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|