JuliaParallel / DistributedArrays.jl

Distributed Arrays in Julia
Other
197 stars 35 forks source link

broadcasting and map are not type inferrable #236

Open mohamed82008 opened 2 years ago

mohamed82008 commented 2 years ago

The following code does not infer properly:

using DistributedArrays
addprocs(1)
a = distribute(rand(10), procs = [1,2])
f(x) = log.(x)
@code_warntype f(a)
@code_warntype map(log, a)