You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been playing around with this package, and it looks like there are many unimplemented corner cases involving operations with loop variables.
With version 0.6.27:
using LoopVectorization
functionrshift_i!(out)
n =length(out)
@avxfor i in1:n
out[i] = out[i] << i
endend
n =512
out =Array{Int}(undef, n)
rshift_i!(out)
MethodError: no method matching <<(::VectorizationBase._MM{4,Int64}, ::VectorizationBase.SVec{4,Int64})
Closest candidates are:
<<(!Matched::VectorizationBase.Static{N}, ::Any) where N at /home/kose/.julia/packages/VectorizationBase/OOwYB/src/static.jl:89
<<(!Matched::VectorizationBase.Mask{W,U} where U<:Unsigned, ::Any) where W at /home/kose/.julia/packages/VectorizationBase/OOwYB/src/masks.jl:34
<<(!Matched::VectorizationBase.SVec{W,T}, ::VectorizationBase.SVec{W,T}) where {W, T<:Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8, Ptr}} at /home/kose/.julia/packages/SIMDPirates/thWlM/src/SIMDPirates.jl:80
...
Stacktrace:
[1] macro expansion at ./gcutils.jl:91 [inlined]
[2] rshift_i!(::Array{Int64,1}) at ./In[78]:3
[3] top-level scope at In[80]:3
functionone_plus_i!(out)
n =length(out)
@avxfor i in1:n
out[i] =1+ i
endend
n =512
out =Array{Int}(undef, n)
one_plus_i!(out)
MethodError: no method matching vstore!(::Ptr{Int64}, ::VectorizationBase._MM{4,Int64}, ::VectorizationBase._MM{4,Int64})
Closest candidates are:
vstore!(::Ptr{T}, !Matched::Tuple{Vararg{VecElement{T},W}}, ::I, !Matched::Val{Aligned}, !Matched::Val{Nontemporal}) where {W, T, I, Aligned, Nontemporal} at /home/kose/.julia/packages/SIMDPirates/thWlM/src/memory.jl:329
vstore!(::Ptr{T}, !Matched::Union{Tuple{Vararg{VecElement{T},W}}, VectorizationBase.AbstractStructVec{W,T}}, ::VectorizationBase._MM{W,I} where I<:Number) where {W, T} at /home/kose/.julia/packages/SIMDPirates/thWlM/src/memory.jl:474
vstore!(::Ptr{T}, !Matched::Union{Tuple{Vararg{VecElement{T},W}}, VectorizationBase.AbstractStructVec{W,T}}, ::VectorizationBase._MM{W,I} where I<:Number, !Matched::Unsigned) where {W, T} at /home/kose/.julia/packages/SIMDPirates/thWlM/src/memory.jl:474
...
Stacktrace:
[1] vstore! at /home/kose/.julia/packages/VectorizationBase/OOwYB/src/vectorizable.jl:197 [inlined]
[2] macro expansion at ./gcutils.jl:91 [inlined]
[3] one_plus_i!(::Array{Int64,1}) at ./In[72]:3
[4] top-level scope at In[74]:3
The text was updated successfully, but these errors were encountered:
I have been playing around with this package, and it looks like there are many unimplemented corner cases involving operations with loop variables.
With version 0.6.27:
The text was updated successfully, but these errors were encountered: