Skip to content

Commit

Permalink
revert #954 -- switches to ShardedForm if more than 1000 exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Aug 18, 2023
1 parent ca7da64 commit 2cded7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/build_function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ function _build_function(target::JuliaTarget, op::Union{Arr, ArrayOp}, args...;
linenumbers = true,
cse = false, kwargs...)

if parallel == nothing && _nnz(rhss) >= 1000
parallel = ShardedForm() # by default switch for arrays longer than 1000 exprs
end

dargs = map((x) -> destructure_arg(x[2], !checkbounds,
Symbol("ˍ₋arg$(x[1])")), enumerate([args...]))

Expand Down

0 comments on commit 2cded7f

Please sign in to comment.