Skip to content

Commit 9a7964f

Browse files
committed
Add outer reductions to check_args.
1 parent 4f68e71 commit 9a7964f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IfElse = "0.1"
2020
OffsetArrays = "1"
2121
SLEEFPirates = "0.6"
2222
UnPack = "1"
23-
VectorizationBase = "0.13.7"
23+
VectorizationBase = "0.13.8"
2424
julia = "1.5"
2525

2626
[extras]

src/condense_loopset.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ end
264264
@inline check_args(_) = false
265265
@inline check_args(A, B, C::Vararg{Any,K}) where {K} = check_args(A) && check_args(B, C...)
266266
@inline check_args(::AbstractRange{T}) where {T} = check_type(T)
267+
@inline check_args(::Type{T}) where {T <: VectorizationBase.NativeTypesV} = true
267268
"""
268269
check_type(::Type{T}) where {T}
269270
@@ -275,6 +276,9 @@ check_type(::Type{T}) where {T} = false
275276
function check_args_call(ls::LoopSet)
276277
q = Expr(:call, lv(:check_args))
277278
append!(q.args, ls.includedactualarrays)
279+
for r ls.outer_reductions
280+
push!(q.args, Expr(:call, :typeof, name(ls.operations[r])))
281+
end
278282
q
279283
end
280284

0 commit comments

Comments
 (0)