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

Documentation example of SharedArrays fails when using a SlurmManager #32583

Closed
juandarias opened this issue Jul 15, 2019 · 2 comments
Closed
Labels
parallelism Parallel or distributed computation

Comments

@juandarias
Copy link

The documentation example for SharedArrays in parallel computing fails when using a SlurmManager:
using ClusterManagers, Distributed
addprocs(SlurmManager(8), topology=:all_to_all)
using SharedArrays

a = SharedArray{Float64}(100)
@distributed for i = 1:100
a[i] = i
end

Returns an empty array. The following code will work:

using ClusterManagers, Distributed
addprocs(8, topology=:all_to_all)
using SharedArrays

a = SharedArray{Float64}(100)
@distributed for i = 1:100
a[i] = i
end

Versions:
Julia 1.1.0
ClusterManagers 0.3.2

@jpsamaroo
Copy link
Member

This is probably not an error Julia itself; it would be best to report this to the ClusterManagers.jl repository.

@kshyatt kshyatt added the parallelism Parallel or distributed computation label Jul 22, 2019
@juandarias
Copy link
Author

juandarias commented Jul 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parallelism Parallel or distributed computation
Projects
None yet
Development

No branches or pull requests

4 participants