Skip to content

Commit

Permalink
Inline work task for now to simplify DCR setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 13, 2023
1 parent 1eba538 commit 76c6385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion regent/main.rg
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ local work_task = terralib.memoize(function(n_graphs, n_dsets, max_inputs)
local main_loop_actions = generate_main_loop(graphs, primary_partitions, secondary_partitions, pscratch, ptiming)
local report_actions = generate_report(app, graphs, timing)
local __demand(__inner, __replicable) task w()
local __demand(__inner, __replicable, __inline) task w()
var args = c.legion_runtime_get_input_args()
var [app] = core.app_create(args.argc, args.argv)
if regentlib.c.legion_context_get_shard_id(__runtime(), __context(), true) == 0 then
Expand Down
6 changes: 3 additions & 3 deletions regent/mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ void TaskBenchMapper::select_task_options(const MapperContext ctx,
TaskOptions &output)
{
DefaultMapper::select_task_options(ctx, task, output);
// Replicate top two levels of tasks
if ((total_nodes > 1) && (task.get_depth() <= 1))
output.replicate = replication_enabled;
// // Replicate top two levels of tasks
// if ((total_nodes > 1) && (task.get_depth() <= 1))
// output.replicate = replication_enabled;
}

void TaskBenchMapper::default_policy_rank_processor_kinds(MapperContext ctx,
Expand Down

0 comments on commit 76c6385

Please sign in to comment.