Skip to content

Commit

Permalink
Merge branch 'realm-tutorial-print' into 'rc'
Browse files Browse the repository at this point in the history
realm tutorial: print the error instead of assert

See merge request StanfordLegion/legion!1472
  • Loading branch information
eddy16112 committed Sep 25, 2024
2 parents d409fc3 + 5e2df6c commit 7c54af5
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,19 @@ void main_task(const void *args, size_t arglen, const void *userdata,

ev3.wait();

bool success = true;
GenericAccessor<int, 1, int> acc(inst2, FID_BASE);
for (IndexSpaceIterator<1, int> it(isect); it.valid; it.step()) {
for (PointInRectIterator<1, int> it2(it.rect); it2.valid; it2.step()) {
assert(acc[it2.p] == 7);
if(acc[it2.p] != 7) {
log_app.error() << "point=" << it2.p[0] << ", expected=7, actual=" << acc[it2.p];
success = false;
}
}
}

assert(success);

inst2.destroy();
inst1.destroy();
}
Expand Down

0 comments on commit 7c54af5

Please sign in to comment.