1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 #ifndef ORTE_RMAPS_RR_H
26 #define ORTE_RMAPS_RR_H
27
28 #include "orte_config.h"
29
30 #include "opal/mca/hwloc/hwloc-internal.h"
31 #include "opal/class/opal_list.h"
32
33 #include "orte/mca/rmaps/rmaps.h"
34
35 BEGIN_C_DECLS
36
37 ORTE_MODULE_DECLSPEC extern orte_rmaps_base_component_t mca_rmaps_round_robin_component;
38 extern orte_rmaps_base_module_t orte_rmaps_round_robin_module;
39
40 ORTE_MODULE_DECLSPEC int orte_rmaps_rr_bynode(orte_job_t *jdata,
41 orte_app_context_t *app,
42 opal_list_t *node_list,
43 orte_std_cntr_t num_slots,
44 orte_vpid_t nprocs);
45 ORTE_MODULE_DECLSPEC int orte_rmaps_rr_byslot(orte_job_t *jdata,
46 orte_app_context_t *app,
47 opal_list_t *node_list,
48 orte_std_cntr_t num_slots,
49 orte_vpid_t nprocs);
50
51 ORTE_MODULE_DECLSPEC int orte_rmaps_rr_byobj(orte_job_t *jdata, orte_app_context_t *app,
52 opal_list_t *node_list,
53 orte_std_cntr_t num_slots,
54 orte_vpid_t num_procs,
55 hwloc_obj_type_t target, unsigned cache_level);
56
57 ORTE_MODULE_DECLSPEC int orte_rmaps_rr_assign_root_level(orte_job_t *jdata);
58
59 ORTE_MODULE_DECLSPEC int orte_rmaps_rr_assign_byobj(orte_job_t *jdata,
60 hwloc_obj_type_t target,
61 unsigned cache_level);
62
63
64 END_C_DECLS
65
66 #endif