1
2
3
4
5
6
7
8
9
10 #ifndef MCA_OSC_MONITORING_PASSIVE_TARGET_H
11 #define MCA_OSC_MONITORING_PASSIVE_TARGET_H
12
13 #include <ompi/win/win.h>
14
15 #define OSC_MONITORING_GENERATE_TEMPLATE_PASSIVE_TARGET(template) \
16 \
17 static int ompi_osc_monitoring_## template ##_sync (struct ompi_win_t *win) \
18 { \
19 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_sync(win); \
20 } \
21 \
22 static int ompi_osc_monitoring_## template ##_flush (int target, struct ompi_win_t *win) \
23 { \
24 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_flush(target, win); \
25 } \
26 \
27 static int ompi_osc_monitoring_## template ##_flush_all (struct ompi_win_t *win) \
28 { \
29 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_flush_all(win); \
30 } \
31 \
32 static int ompi_osc_monitoring_## template ##_flush_local (int target, struct ompi_win_t *win) \
33 { \
34 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_flush_local(target, win); \
35 } \
36 \
37 static int ompi_osc_monitoring_## template ##_flush_local_all (struct ompi_win_t *win) \
38 { \
39 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_flush_local_all(win); \
40 } \
41 \
42 static int ompi_osc_monitoring_## template ##_lock (int lock_type, int target, int assert, ompi_win_t *win) \
43 { \
44 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_lock(lock_type, target, assert, win); \
45 } \
46 \
47 static int ompi_osc_monitoring_## template ##_unlock (int target, ompi_win_t *win) \
48 { \
49 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_unlock(target, win); \
50 } \
51 \
52 static int ompi_osc_monitoring_## template ##_lock_all (int assert, struct ompi_win_t *win) \
53 { \
54 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_lock_all(assert, win); \
55 } \
56 \
57 static int ompi_osc_monitoring_## template ##_unlock_all (struct ompi_win_t *win) \
58 { \
59 return OMPI_OSC_MONITORING_MODULE_VARIABLE(template).osc_unlock_all(win); \
60 }
61
62 #endif
63