Skip to content

Commit

Permalink
Updates for LoopVectorization 0.12.13
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Apr 25, 2021
1 parent 68897df commit d3f7d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ VectorizedRNG = "33b4df10-0173-11e9-2a0c-851a7edac40e"

[compat]
ArrayInterface = "3"
LoopVectorization = "0.12.5"
LoopVectorization = "0.12.13"
Octavian = "0.2.3"
SLEEFPirates = "0.6.13"
Static = "0.2.4"
Expand Down
10 changes: 5 additions & 5 deletions src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ end
ls = LoopVectorization.LoopSet(:StrideArrays)
(inline, u₁, u₂, isbroadcast, W, rs, rc, cls, l1, l2, l3, threads) = UNROLL
LoopVectorization.set_hw!(ls, rs, rc, cls, l1, l2, l3)
ls.vector_width[] = W
ls.isbroadcast[] = isbroadcast;
ls.vector_width = W
ls.isbroadcast = isbroadcast;
itersym = first(loopsyms)
L = _tuple_type_len(S)
if L === nothing
Expand Down Expand Up @@ -319,8 +319,8 @@ end
ls = LoopVectorization.LoopSet(:StrideArrays)
(inline, u₁, u₂, isbroadcast, W, rs, rc, cls, l1, l2, l3, threads) = UNROLL
LoopVectorization.set_hw!(ls, rs, rc, cls, l1, l2, l3)
ls.vector_width[] = W
ls.isbroadcast[] = isbroadcast;
ls.vector_width = W
ls.isbroadcast = isbroadcast;
destref = LoopVectorization.ArrayReference(:_dest, copy(loopsyms))
destmref = LoopVectorization.ArrayReferenceMeta(destref, fill(true, length(LoopVectorization.getindices(destref))))
sp = sort_indices!(destmref, R, C)
Expand Down Expand Up @@ -365,7 +365,7 @@ end
resize!(ls.loop_order, LoopVectorization.num_loops(ls)) # num_loops may be greater than N, eg Product
# return ls
Expr(:block, LoopVectorization.setup_call(ls, :(throw("check args failed?!?")), LineNumberNode(0), inline, false, u₁, u₂, threads%Int), :dest)
# ls.vector_width[] = VectorizationBase.pick_vector_width(T)
# ls.vector_width = VectorizationBase.pick_vector_width(T)
# return ls
# Expr(
# :block,
Expand Down

0 comments on commit d3f7d35

Please sign in to comment.