Reputation: 745
I am using Julia version 0.5.2.
julia> addprocs(4);
julia> a=rand(8,8);
julia> distribute(a,2)
When I try to use this codes,I get the error:
ERROR: UndefVarError: distribute not defined
How do i must do?
thanks in advance.
Upvotes: 0
Views: 119
Reputation: 19132
You need to add the DistributedArrays.jl package.
Pkg.add("DistributedArrays"); using DistributedArrays
Upvotes: 6