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_MCA_RMAPS_PRIVATE_H
  26 #define ORTE_MCA_RMAPS_PRIVATE_H
  27 
  28 
  29 
  30 
  31 #include "orte_config.h"
  32 #include "orte/types.h"
  33 
  34 #include "orte/runtime/orte_globals.h"
  35 
  36 #include "orte/mca/rmaps/rmaps.h"
  37 
  38 BEGIN_C_DECLS
  39 
  40 
  41 
  42 
  43 
  44 
  45 
  46 ORTE_DECLSPEC int orte_rmaps_base_get_target_nodes(opal_list_t* node_list,
  47                                                    orte_std_cntr_t *total_num_slots,
  48                                                    orte_app_context_t *app,
  49                                                    orte_mapping_policy_t policy,
  50                                                    bool initial_map, bool silent);
  51 
  52 ORTE_DECLSPEC orte_proc_t* orte_rmaps_base_setup_proc(orte_job_t *jdata,
  53                                                       orte_node_t *node,
  54                                                       orte_app_idx_t idx);
  55 
  56 ORTE_DECLSPEC orte_node_t* orte_rmaps_base_get_starting_point(opal_list_t *node_list,
  57                                                               orte_job_t *jdata);
  58 
  59 ORTE_DECLSPEC int orte_rmaps_base_compute_vpids(orte_job_t *jdata);
  60 
  61 ORTE_DECLSPEC int orte_rmaps_base_compute_local_ranks(orte_job_t *jdata);
  62 
  63 ORTE_DECLSPEC int orte_rmaps_base_compute_bindings(orte_job_t *jdata);
  64 
  65 ORTE_DECLSPEC void orte_rmaps_base_update_local_ranks(orte_job_t *jdata, orte_node_t *oldnode,
  66                                                       orte_node_t *newnode, orte_proc_t *newproc);
  67 
  68 ORTE_DECLSPEC int orte_rmaps_base_rearrange_map(orte_app_context_t *app, orte_job_map_t *map, opal_list_t *procs);
  69 
  70 END_C_DECLS
  71 
  72 #endif