Skip to content

Commit

Permalink
Fixes for DCR.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 13, 2023
1 parent 76c6385 commit cfb05ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions regent/main.rg
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,9 @@ local work_task = terralib.memoize(function(n_graphs, n_dsets, max_inputs)
end)
end
actions:insert(rquote
var elapsed = double(stop_time - start_time)/1e9
if regentlib.c.legion_context_get_shard_id(__runtime(), __context(), true) == 0 then
core.app_report_timing(app, double(stop_time - start_time)/1e9)
core.app_report_timing(app, elapsed)
end
end)
return actions
Expand All @@ -543,7 +544,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, __inline) task w()
local __demand(__inner, __replicable, __local) 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

0 comments on commit cfb05ad

Please sign in to comment.