Skip to content

Commit

Permalink
hotfix for #62
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Dec 30, 2022
1 parent cf80073 commit 7fc4853
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StrideArrays"
uuid = "d1fa6d79-ef01-42a6-86c9-f7c551f8593b"
authors = ["Chris Elrod <[email protected]> and contributors"]
version = "0.1.22"
version = "0.1.23"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
9 changes: 7 additions & 2 deletions src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ end
::Val{UNROLL},
) where {S,N,R,LS,FS<:LinearStyle{LS,N,R},BC<:Base.Broadcast.Broadcasted{FS},UNROLL}
if _linear_matches(Val{LS}(), Val{S}())
LoopVectorization.vmaterialize!(vec(dest), _vecbc(bc), Val{:StrideArrays}(), Val{UNROLL}())
LoopVectorization.vmaterialize!(
vec(dest),
_vecbc(bc),
Val{:StrideArrays}(),
Val{UNROLL}(),
)
else
LoopVectorization.vmaterialize!(dest, bc, Val{:StrideArrays}(), Val{UNROLL}())
end
Expand All @@ -185,7 +190,7 @@ end
dest,
bc,
LoopVectorization.avx_config_val(
Val((true, zero(Int8), zero(Int8), zero(Int8), true, one(UInt), 0, true)),
Val((true, zero(Int8), zero(Int8), zero(Int8), true, one(UInt), 0, false)),
pick_vector_width(eltype(dest)),
),
)
Expand Down

0 comments on commit 7fc4853

Please sign in to comment.