Skip to content
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

Think about simplified scoping rules for parallel macros #30

Open
7 of 9 tasks
malmaud opened this issue Oct 16, 2015 · 4 comments
Open
7 of 9 tasks

Think about simplified scoping rules for parallel macros #30

malmaud opened this issue Oct 16, 2015 · 4 comments

Comments

@malmaud
Copy link

malmaud commented Oct 16, 2015

There seems to be some general confusion amongst the user base for exactly how variable references in an expression passed to one of the parallel macros are resolved and when the value of variables is transferred vs treated as a reference to a global variable on some module defined on the worker.

Part of the problem could be resolved with better documentation, but I also wonder if we can find a set of rules that is more intuitive and robust in the Julia 0.5 timeframe.

Here are some specific issues concerning symbol resolution in parallel macros issues already brought up that we could maybe make some headway on:

@malmaud
Copy link
Author

malmaud commented Oct 16, 2015

Some short examples that show how fragile the current situation is:

module M
x=1
y=@fetch x
end
# Worker will crash here
x=1
@fetch x+1  # Works
@fetch Main.x+1 # Fails

@vtjnash
Copy link
Member

vtjnash commented Nov 1, 2015

here's another one for the list: JuliaLang/julia#13810
in that issue, the @fetchfrom 2 v macro is fetching the value of v on process 1, by copying it through process 2.

@JohnHBrock
Copy link

It's speculative at this point, but considering the number of related issues, can this be added to the 0.6.0 milestone?

@amitmurthy
Copy link
Contributor

The two open issues are related to treatment of module globals and module loading on workers. The main reported issue i.e., scoping w.r.t. parallel macros has been largely addressed by JuliaLang/julia#19594

Should we close this issue?

@vtjnash vtjnash transferred this issue from JuliaLang/julia Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants