Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodError: no method matching vstore! #89

Closed
YingboMa opened this issue Apr 7, 2020 · 0 comments
Closed

MethodError: no method matching vstore! #89

YingboMa opened this issue Apr 7, 2020 · 0 comments

Comments

@YingboMa
Copy link
Member

YingboMa commented Apr 7, 2020

MWE:

julia> a = rand(5); foo(a) = @avx for i in 1:10
           a[i] = 1
       end
foo (generic function with 1 method)

julia> foo(a)
ERROR: MethodError: no method matching vstore!(::Ptr{Float64}, ::Int64, ::VectorizationBase._MM{4,Int64})
Closest candidates are:
  vstore!(::Ptr{T}, ::Number, ::Integer) where T<:Number at /home/scheme/.julia/packages/VectorizationBase/T6nfs/src/vectorizable.jl:222
  vstore!(::Ptr{T}, ::Tuple{Vararg{VecElement{T},W}}, ::I, ::Val{Aligned}, ::Val{Nontemporal}) where {W, T, I, Aligned, Nontemporal} at /home/scheme/.julia/packages/SIMDPirates/cZufe/src/memory.jl:338
  vstore!(::Ptr{T}, ::Union{Tuple{Vararg{VecElement{T},W}}, VectorizationBase.AbstractStructVec{W,T}}, ::VectorizationBase._MM{W,I} where I<:Number) where {W, T} at /home/scheme/.julia/packages/SIMDPirates/cZufe/src/memory.jl:560
  ...
Stacktrace:
 [1] vnoaliasstore! at /home/scheme/.julia/packages/VectorizationBase/T6nfs/src/vectorizable.jl:220 [inlined]
 [2] vnoaliasstore! at /home/scheme/.julia/packages/VectorizationBase/T6nfs/src/vectorizable.jl:218 [inlined]
 [3] macro expansion at /home/scheme/.julia/packages/LoopVectorization/IESri/src/reconstruct_loopset.jl:416 [inlined]
 [4] _avx_! at /home/scheme/.julia/packages/LoopVectorization/IESri/src/reconstruct_loopset.jl:416 [inlined]
 [5] foo(::Array{Float64,1}) at ./REPL[21]:1
 [6] top-level scope at REPL[22]:1
 [7] eval(::Module, ::Any) at ./boot.jl:331
 [8] eval_user_input(::Any, ::REPL.REPLBackend) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
 [9] run_backend(::REPL.REPLBackend) at /home/scheme/.julia/packages/Revise/Pcs5V/src/Revise.jl:1073
 [10] top-level scope at none:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant