-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legion: default mapper disregards field constraints for region requirements with reduction privileges #1703
Comments
Upon further investigation, it appears that the problem is here https://gitlab.com/StanfordLegion/legion/-/blob/master/runtime/mappers/default_mapper.cc#L2030-2031 |
There shouldn't be anything that prevents you from making a reduction instance with multiple fields. |
In that case, the following patch should fix the issue.
(Please double check that there aren't any side effects) |
|
I don't think we actually want this patch because this forces the creation of a new instance creation for every reduction region requirement, which is sub-optimal. I didn't do a bunch of hard work to allow for reuse of reduction instances for nothing. 😉 The default mapper should be able to do the check to see if it can reuse reduction instances the same as for normal instances. If there are conflicts you can pick it up that way too. Do you agree that should handle the mismatch case you were thinking about?
A reduction instance is the same as a normal instance with two exceptions:
Other than that, all the normal layout constraints still apply and can be used to describe reduction instances. I'm not sure I completely answered your questions so ask again if I missed something. |
Note that the current version of the default mapper currently sets the |
Yes, that should be fixed.
Right, because the default mapper is allowed to memoize the mappings of those tasks even if they have reduction-only region requirements now and replay them later so you don't even have to go through the path of calling |
There's a PR for this and issue #1705 overlaps with it - reduc/default mapper (WIP) |
https://gitlab.com/StanfordLegion/legion/-/merge_requests/1337 has been merged into master |
Can we close this now? |
The attached C++ program, which tries to impose a field constraint on region requirements with reduction instances, shows that the default mapper disregards the field constraint.
If line
243
is commented out, the program works fineconstraintTest2.tar.gz
@elliottslaughter, can you please add this issue to #1032?
The text was updated successfully, but these errors were encountered: