This source file includes following definitions.
- OMPI_CR_Restart
1
2
3
4
5
6
7
8
9
10
11
12 #include "ompi_config.h"
13 #include <stdio.h>
14
15 #include "ompi/mpi/c/bindings.h"
16 #include "ompi/info/info.h"
17 #include "ompi/runtime/params.h"
18 #include "ompi/communicator/communicator.h"
19 #include "orte/mca/snapc/snapc.h"
20
21 #include "ompi/mpiext/cr/c/mpiext_cr_c.h"
22
23 static const char FUNC_NAME[] = "OMPI_CR_Restart";
24
25 int OMPI_CR_Restart(char *handle, int seq, MPI_Info *info)
26 {
27 int ret = MPI_SUCCESS;
28 MPI_Comm comm = MPI_COMM_WORLD;
29 orte_snapc_base_request_op_t *datum = NULL;
30
31
32 if (MPI_PARAM_CHECK) {
33 OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
34 }
35
36
37
38
39 datum = OBJ_NEW(orte_snapc_base_request_op_t);
40 datum->event = ORTE_SNAPC_OP_RESTART;
41 datum->is_active = true;
42
43
44
45
46 datum->leader = OMPI_PROC_MY_NAME->vpid;
47 datum->seq_num = seq;
48 datum->global_handle = strdup(handle);
49
50
51
52
53 OPAL_CR_ENTER_LIBRARY();
54 ret = orte_snapc.request_op(datum);
55 if( OMPI_SUCCESS != ret ) {
56 OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_OTHER,
57 FUNC_NAME);
58 }
59 OPAL_CR_EXIT_LIBRARY();
60
61 datum->is_active = false;
62 OBJ_RELEASE(datum);
63
64
65
66 return ret;
67 }