ITADN

SharedArrays not found in multiple workers

#134ClosedAngelicaP1998 创建于 2025-02-21
A
AngelicaP1998commented
I want to use multiple workers and the `Distributed` package with `SharedArrays`, why do I get: ERROR: On worker 2: KeyError: key Base.PkgId(Base.UUID("1a1011a3-84de-559e-8e89-a11a2f7dc383") "SharedArrays") not found ``` using Pkg Pkg.add(["Distributed", "SharedArrays"]) using Distributed @everywhere using SharedArrays addprocs(2) A = SharedMatrix{Float64}(7, 4) ```
关闭于 2025-02-21 1 条评论