This source file includes following definitions.
- mca_pml_example_add_comm
- mca_pml_example_del_comm
- mca_pml_example_add_ptls
- mca_pml_example_control
- mca_pml_example_add_procs
- mca_pml_example_del_procs
- mca_pml_example_ft_event
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #include "ompi_config.h"
17 #include "pml_example.h"
18 #include "pml_example_recvreq.h"
19 #include "pml_example_sendreq.h"
20
21 mca_pml_example_t mca_pml_example = {
22 {
23 mca_pml_example_add_procs,
24 mca_pml_example_del_procs,
25 mca_pml_example_add_ptls,
26 mca_pml_example_control,
27 mca_pml_example_progress,
28 mca_pml_example_add_comm,
29 mca_pml_example_del_comm,
30 mca_pml_example_irecv_init,
31 mca_pml_example_irecv,
32 mca_pml_example_recv,
33 mca_pml_example_isend_init,
34 mca_pml_example_isend,
35 mca_pml_example_send,
36 mca_pml_example_iprobe,
37 mca_pml_example_probe,
38 mca_pml_example_start,
39 mca_pml_example_improbe,
40 mca_pml_example_mprobe,
41 mca_pml_example_imrecv,
42 mca_pml_example_mrecv,
43 mca_pml_example_ft_event,
44
45 32768,
46 (0x7fffffff)
47 }
48 };
49
50 int mca_pml_example_add_comm(ompi_communicator_t* comm)
51 {
52 return OMPI_SUCCESS;
53 }
54
55 int mca_pml_example_del_comm(ompi_communicator_t* comm)
56 {
57 return OMPI_SUCCESS;
58 }
59
60 int mca_pml_example_add_ptls(opal_list_t *ptls)
61 {
62 return OMPI_SUCCESS;
63 }
64
65 int mca_pml_example_control(int param, void* value, size_t size)
66 {
67 return OMPI_SUCCESS;
68 }
69
70 int mca_pml_example_add_procs(ompi_proc_t** procs, size_t nprocs)
71 {
72 return OMPI_SUCCESS;
73 }
74
75 int mca_pml_example_del_procs(ompi_proc_t** procs, size_t nprocs)
76 {
77 return OMPI_SUCCESS;
78 }
79
80 int mca_pml_example_ft_event(int state) {
81 if(OPAL_CRS_CHECKPOINT == state) {
82 ;
83 }
84 else if(OPAL_CRS_CONTINUE == state) {
85 ;
86 }
87 else if(OPAL_CRS_RESTART == state) {
88 ;
89 }
90 else if(OPAL_CRS_TERM == state ) {
91 ;
92 }
93 else {
94 ;
95 }
96
97 return OMPI_SUCCESS;
98 }