Skip to content

Commit 810c505

Browse files
authored
strided SubArray does not work with SIMD.jl (#529)
1 parent def729f commit 810c505

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mul_leftright.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ function mul_ordered!(r::SubArray{T,1,P,I2,false}, l::AbstractVector{T}; phases:
6262
# e.g. when we use `fastcolumn`).
6363
# The `false` in the SubArray parameters stands for
6464
# "does not support fast linear indexing".
65+
# See the other ::SubArray method below as well.
66+
_mul_ordered_nonvec!(r,l; phases=B)
67+
end
68+
69+
function mul_ordered!(r::SubArray{T,1,P,Tuple{I1, I2},true}, l::AbstractVector{T}; phases::Val{B}=Val(true)) where {T<:Unsigned, B, P, I1<:Any, I2<:AbstractUnitRange}
70+
# This method exists because SIMD.jl requires fast linear indexing
71+
# that is NOT strided. See the other ::SubArray method above as well.
6572
_mul_ordered_nonvec!(r,l; phases=B)
6673
end
6774

0 commit comments

Comments
 (0)