-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
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