Armaa
Armaa

Reputation: 745

How can i fix Julia error?

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

Answers (1)

Chris Rackauckas
Chris Rackauckas

Reputation: 19132

You need to add the DistributedArrays.jl package.

Pkg.add("DistributedArrays"); using DistributedArrays

Upvotes: 6

Related Questions