Skip to content

Commit

Permalink
Fix mapper map_task for DCR shard case.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jul 31, 2024
1 parent 94033b6 commit 98ac213
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ void FuzzMapper::map_task(const MapperContext ctx, const Task &task,
log_map.debug() << "map_task: Selected variant " << output.chosen_variant;

// TODO: assign to variant's correct processor kind
if (rng.uniform_range(0, 1) == 0) {
if (input.shard_processor.exists()) {
log_map.debug() << "map_task: Mapping to shard proc";
output.target_procs.push_back(input.shard_processor);
} else if (rng.uniform_range(0, 1) == 0) {
log_map.debug() << "map_task: Mapping to all local procs";
output.target_procs.insert(output.target_procs.end(), local_procs.begin(),
local_procs.end());
Expand Down

0 comments on commit 98ac213

Please sign in to comment.