You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: