[go: nahoru, domu]

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

SharedArrays fails on ClusterManagers.jl #121

Open
juandarias opened this issue Jul 15, 2019 · 4 comments
Open

SharedArrays fails on ClusterManagers.jl #121

juandarias opened this issue Jul 15, 2019 · 4 comments

Comments

@juandarias
Copy link
juandarias commented Jul 15, 2019

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

Packages:
Julia 1.1.0
ClusterManagers 0.3.2

@juandarias
Copy link
Author

Any idea?

@vchuravy
Copy link
Member
vchuravy commented Sep 1, 2019

I am not sure what should happen here SharedArray only works when all processes are on the same machine. Something that is not guaranteed with SLURM.

@juandarias
Copy link
Author

Shall I raise this as an issue or feature request for SharedArray?

@vchuravy
Copy link
Member
vchuravy commented Sep 9, 2019

As I said it is not something that SharedArray can really support, but maybe it could throw an error.

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

2 participants