1
2
3
4
5
6
7
8
9
10 #ifndef MCA_OSC_MONITORING_ACTIVE_TARGET_H
11 #define MCA_OSC_MONITORING_ACTIVE_TARGET_H
12
13 #include <ompi/group/group.h>
14 #include <ompi/win/win.h>
15
16 #define OSC_MONITORING_GENERATE_TEMPLATE_ACTIVE_TARGET(template) \
17 \
18 static int ompi_osc_monitoring_## template ##_post (ompi_group_t *group, int assert, ompi_win_t *win) \
19 { \
20 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_post(group, assert, win); \
21 } \
22 \
23 static int ompi_osc_monitoring_## template ##_start (ompi_group_t *group, int assert, ompi_win_t *win) \
24 { \
25 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_start(group, assert, win); \
26 } \
27 \
28 static int ompi_osc_monitoring_## template ##_complete (ompi_win_t *win) \
29 { \
30 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_complete(win); \
31 } \
32 \
33 static int ompi_osc_monitoring_## template ##_wait (ompi_win_t *win) \
34 { \
35 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_wait(win); \
36 } \
37 \
38 static int ompi_osc_monitoring_## template ##_test (ompi_win_t *win, int *flag) \
39 { \
40 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_test(win, flag); \
41 } \
42 \
43 static int ompi_osc_monitoring_## template ##_fence (int assert, ompi_win_t *win) \
44 { \
45 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_fence(assert, win); \
46 }
47
48 #endif