Skip to content

Slurm: SharedArrays fails on ClusterManagers.jl #67

Description

@juandarias

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions