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

@parallel macro example in the manual doesn't work #2297

Closed
fernand opened this issue Feb 13, 2013 · 0 comments
Closed

@parallel macro example in the manual doesn't work #2297

fernand opened this issue Feb 13, 2013 · 0 comments
Labels
domain:docs This change adds or pertains to documentation domain:parallelism Parallel or distributed computation

Comments

@fernand
Copy link

fernand commented Feb 13, 2013

The following code

a = randn(1000)
@parallel (+) for i=1:100000
  f(a[randi(end)])
end

does not work because workers complain that they don't know what a is.

JeffBezanson added a commit that referenced this issue Feb 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation domain:parallelism Parallel or distributed computation
Projects
None yet
Development

No branches or pull requests

2 participants