Skip to content

Commit

Permalink
Select sharding functor.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jul 31, 2024
1 parent 95c6111 commit fba3388
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ void FuzzMapper::select_task_sources(const MapperContext ctx, const Task &task,
random_sources(rng, input.source_instances, output.chosen_ranking);
}

void FuzzMapper::select_sharding_functor(const MapperContext ctx, const Task &task,
const SelectShardingFunctorInput &input,
SelectShardingFunctorOutput &output) {
// TODO: customize the sharding functor
output.chosen_functor = 0;
}

void FuzzMapper::map_inline(const MapperContext ctx, const InlineMapping &inline_op,
const MapInlineInput &input, MapInlineOutput &output) {
RngChannel &rng = map_inline_channel;
Expand Down
3 changes: 3 additions & 0 deletions src/mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class FuzzMapper : public NullMapper {
void select_task_sources(const MapperContext ctx, const Task &task,
const SelectTaskSrcInput &input,
SelectTaskSrcOutput &output) override;
void select_sharding_functor(const MapperContext ctx, const Task &task,
const SelectShardingFunctorInput &input,
SelectShardingFunctorOutput &output) override;

public: // Inline mapping calls
void map_inline(const MapperContext ctx, const InlineMapping &inline_op,
Expand Down

0 comments on commit fba3388

Please sign in to comment.