-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
chooseproc should start at worker #1 #8105
Comments
@eschnett that is indeed a bug, can you submit a quick pull-request? BTW, welcome to Julia! |
jakebolewski
added a commit
that referenced
this issue
Aug 25, 2014
right now with addprocs(>3) we start allocating work to process pid+2 before wrapping around. This change just starts allocating work to process 2 (worker 1) which should be more intuitive. See #8105.
jakebolewski
added a commit
that referenced
this issue
Aug 25, 2014
right now with addprocs(>3) we start allocating work to process pid 3 before wrapping around. This change just starts allocating work to process 2 (worker 1) which should be more intuitive. See #8105.
jakebolewski
added a commit
that referenced
this issue
Aug 26, 2014
right now with addprocs(>3) we start allocating work to process pid 3 before wrapping around. This change just starts allocating work to process 2 (worker 1) which should be more intuitive. See #8105.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Spawn distributes work starting from process #3 (worker #2). While this is not an error, this seems to be due to an oversight in the function "chooseproc" in multi.jl.
chooseproc initializes the variable "nextidx" to 1, and later adds 1 when indexing the workers() array. I think nextidx should be initialized to 0 instead. Alternatively, the mod expression that ensures that nextidx is not larger than nworkers() could be replaced by an if statement that explicitly resets nextidx before using it.
The text was updated successfully, but these errors were encountered: