MulticoreBSP for C  Version 2.0.4
mcbsp-resiliency.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015
3  *
4  * File created 24/02/2015 by Albert-Jan N. Yzelman
5  *
6  * This file is part of MulticoreBSP in C --
7  * a port of the original Java-based MulticoreBSP.
8  *
9  * MulticoreBSP for C is distributed as part of the original
10  * MulticoreBSP and is free software: you can redistribute
11  * it and/or modify it under the terms of the GNU Lesser
12  * General Public License as published by the Free Software
13  * Foundation, either version 3 of the License, or
14  * (at your option) any later version.
15  * MulticoreBSP is distributed in the hope that it will be
16  * useful, but WITHOUT ANY WARRANTY; without even the
17  * implied warranty of MERCHANTABILITY or FITNESS FOR A
18  * PARTICULAR PURPOSE. See the GNU Lesser General Public
19  * License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General
22  * Public License along with MulticoreBSP. If not, see
23  * <http://www.gnu.org/licenses/>.
24  */
25 
114 #ifndef _H_MCBSP_RESILIENCY
115 #define _H_MCBSP_RESILIENCY
116 
117 #include <stdlib.h>
118 
121 
136 void mcbsp_checkpoint( void );
137 
144 void mcbsp_enable_checkpoints( void );
145 
152 void mcbsp_disable_checkpoints( void );
153 
170 void mcbsp_set_checkpoint_frequency( size_t _cp_f );
171 
187 size_t mcbsp_get_checkpoint_frequency( void );
188 
205 void mcbsp_set_safe_checkpoint_frequency( size_t _safe_cp_f );
206 
217 
218 #endif
219 
size_t MCBSP_DEFAULT_CHECKPOINT_FREQUENCY
The default checkpointing frequency.
void mcbsp_set_safe_checkpoint_frequency(size_t _safe_cp_f)
Allows the user to set the safe checkpointing frequency.
void mcbsp_enable_checkpoints(void)
Enables automatic checkpointing.
void mcbsp_checkpoint(void)
Synchronises all processes and performs a global checkpointing step.
size_t mcbsp_get_safe_checkpoint_frequency(void)
Gets the currently active safe checkpointing frequency.
size_t mcbsp_get_checkpoint_frequency(void)
Gets the currently active checkpointing frequency.
void mcbsp_set_checkpoint_frequency(size_t _cp_f)
Allows the user to directly set the checkpointing frequency.
void mcbsp_disable_checkpoints(void)
Disables automatic checkpointing.