-
Notifications
You must be signed in to change notification settings - Fork 428
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
Should coforall intent impact a nested 'on' statement? #26749
Comments
My guess is that, by a strict semantic interpretation of the language, it wouldn't and shouldn't (and that we should introduce But I could imagine rvf firing, depending on what happens to This also gets into the longstanding sticky question of what |
Using |
This comment has been minimized.
This comment has been minimized.
@mppf: You've made me really curious about the source of the inconsistency given that the |
I have a pretty good guess why it's inconsistent. I think it's because the |
That's a great guess—sounds very likely to be the case to me, thanks! |
In Chapel, the
coforall
+on
pattern is common. For exampleI realized that I wasn't sure what would happen if you use a
with (in x)
clause on thecoforall
in that case. Will it create a local copy ofx
per locale? It would be convenient if it did; although perhaps that is baking in the behavior of mergingcoforall+on
into nonblocking remote tasks.The following program demonstrates this pattern and below I show the output. The behavior today is inconsistent:
with (in x)
does in fact causex
to be local on each localeContrast with
forall
over a block domain, where both thex
variable and the inner array are localized to the destination locale.What should it do?
Compile and run
The text was updated successfully, but these errors were encountered: