Skip to content

Commit

Permalink
Fix Legion control replication code.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 5, 2023
1 parent 15a7d9d commit 5365a63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions legion/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,7 @@ LegionApp::LegionApp(Runtime *runtime, Context ctx)

void LegionApp::run()
{
// FIXME (Elliott): Do this correctly for control replication
if (runtime->get_executing_processor(ctx).address_space() == 0) {
if (runtime->get_shard_id(ctx, true) == 0) {
display();
}

Expand All @@ -623,7 +622,7 @@ void LegionApp::run()
unsigned long long stop = Realm::Clock::current_time_in_nanoseconds();

double elapsed = (stop - start) / 1e9;
if (runtime->get_executing_processor(ctx).address_space() == 0) {
if (runtime->get_shard_id(ctx, true) == 0) {
report_timing(elapsed);
}
}
Expand Down

0 comments on commit 5365a63

Please sign in to comment.