Skip to content

Commit cfb05ad

Browse files
Fixes for DCR.
1 parent 76c6385 commit cfb05ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

regent/main.rg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,9 @@ local work_task = terralib.memoize(function(n_graphs, n_dsets, max_inputs)
525525
end)
526526
end
527527
actions:insert(rquote
528+
var elapsed = double(stop_time - start_time)/1e9
528529
if regentlib.c.legion_context_get_shard_id(__runtime(), __context(), true) == 0 then
529-
core.app_report_timing(app, double(stop_time - start_time)/1e9)
530+
core.app_report_timing(app, elapsed)
530531
end
531532
end)
532533
return actions
@@ -543,7 +544,7 @@ local work_task = terralib.memoize(function(n_graphs, n_dsets, max_inputs)
543544
local main_loop_actions = generate_main_loop(graphs, primary_partitions, secondary_partitions, pscratch, ptiming)
544545
local report_actions = generate_report(app, graphs, timing)
545546
546-
local __demand(__inner, __replicable, __inline) task w()
547+
local __demand(__inner, __replicable, __local) task w()
547548
var args = c.legion_runtime_get_input_args()
548549
var [app] = core.app_create(args.argc, args.argv)
549550
if regentlib.c.legion_context_get_shard_id(__runtime(), __context(), true) == 0 then

0 commit comments

Comments
 (0)