50#ifndef __WRAPPER_MAPPER_h__
51#define __WRAPPER_MAPPER_h__
89 static std::vector<std::string> print_tasks;
90 static std::vector<std::string> stop_tasks;
91 static std::map<int, int> methods_map;
92 static std::set<Memory> all_mems;
93 static std::set<Processor> all_procs;
94 static std::map<Processor, int> procs_map;
95 static std::map<int, int> procs_map_int;
96 static bool inputtaken;
97 static bool databroadcasted;
98 static Processor ownerprocessor;
99 static Processor localowner;
101 static int broadcastcount;
103 Machine machine, Processor local);
106 void get_input(
const MapperContext ctx);
107 void get_select_task_options_input
108 (
const MapperContext ctx, std::string task_name,
TaskOptions& output);
109 bool InputNumberCheck(std::string strUserInput);
113 void Deserialize(std::string rec_string);
114 std::string Serialize(
const std::map<std::string, int> &tasks_map,
115 const std::map<int, int> &procs_map );
116 std::string Serialize(
const std::vector<std::string> &print_tasks,
117 const std::vector<std::string> &stop_tasks,
118 const std::map<int, int> &procs_map);
122 using Mapper::report_profiling;
124 void select_task_options(
const MapperContext ctx,
127 void premap_task(
const MapperContext ctx,
131 void slice_task(
const MapperContext ctx,
135 void map_task(
const MapperContext ctx,
139 void select_task_variant(
const MapperContext ctx,
143 void postmap_task(
const MapperContext ctx,
147 void select_task_sources(
const MapperContext ctx,
151 void report_profiling(
const MapperContext ctx,
155 void map_inline(
const MapperContext ctx,
159 void select_inline_sources(
const MapperContext ctx,
163 void report_profiling(
const MapperContext ctx,
167 void map_copy(
const MapperContext ctx,
171 void select_copy_sources(
const MapperContext ctx,
175 void report_profiling(
const MapperContext ctx,
179 void select_close_sources(
const MapperContext ctx,
183 void report_profiling(
const MapperContext ctx,
187 void map_acquire(
const MapperContext ctx,
191 void report_profiling(
const MapperContext ctx,
195 void map_release(
const MapperContext ctx,
199 void select_release_sources(
const MapperContext ctx,
203 void report_profiling(
const MapperContext ctx,
207 void configure_context(
const MapperContext ctx,
210 void select_tunable_value(
const MapperContext ctx,
215 void map_must_epoch(
const MapperContext ctx,
219 void map_dataflow_graph(
const MapperContext ctx,
223 void select_tasks_to_map(
const MapperContext ctx,
226 void select_steal_targets(
const MapperContext ctx,
229 void permit_steal_request(
const MapperContext ctx,
233 void handle_message(
const MapperContext ctx,
235 void handle_task_result(
const MapperContext ctx,
240 const Processor local_proc;
241 const Processor::Kind local_kind;
242 const AddressSpace node_id;
243 const Machine machine;
249 unsigned max_steals_per_theft;
252 unsigned max_steal_count;
255 bool breadth_first_traversal;
257 bool stealing_enabled;
259 unsigned max_schedule_count;
MapperSyncModel
Definition mapping.h:678
Definition mapping.h:2458
Definition wrapper_mapper.h:84
const char * get_mapper_name(void) const override
Definition accessors.h:29
Definition mapping.h:1665
Definition mapping.h:1598
Definition mapping.h:2115
Definition mapping.h:1503
Definition mapping.h:1341
Definition mapping.h:1640
Definition mapping.h:1413
Definition mapping.h:2267
Definition mapping.h:1275
Definition mapping.h:2248
Definition mapping.h:1710
Definition mapping.h:1004
Definition mapping.h:2403
Definition mapping.h:2426
Definition mapping.h:1131
Definition mapping.h:1136
Definition mapping.h:1771
Definition mapping.h:1562
Definition mapping.h:1466
Definition mapping.h:1307
Definition mapping.h:2322
Definition mapping.h:1738
Definition mapping.h:2353
Definition mapping.h:1166
Definition mapping.h:2162
Definition mapping.h:1103
Definition mapping.h:2381
Definition mapping.h:1208
Definition wrapper_mapper.h:68