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

@turbo slightly broken on 1.12 #540

Open
oscardssmith opened this issue Dec 30, 2024 · 0 comments
Open

@turbo slightly broken on 1.12 #540

oscardssmith opened this issue Dec 30, 2024 · 0 comments

Comments

@oscardssmith
Copy link

on nightly, the following code

using LoopVectorization
function f()
    B = zeros(3)
    @turbo B .+ 1
    B
end
f()

produces

ERROR: LoadError: TypeError: in typeassert, expected Expr, got a value of type GlobalRef
Stacktrace:
 [1] substitute_broadcast(q::Expr, mod::Symbol, inline::Bool, u₁::Int8, u₂::Int8, v::Int8, threads::Int64, warncheckarg::Int64, safe::Bool)
   @ LoopVectorization ~/.julia/dev/LoopVectorization/src/constructors.jl:70
 [2] turbo_macro(::Module, ::LineNumberNode, ::Expr)
   @ LoopVectorization ~/.julia/dev/LoopVectorization/src/constructors.jl:295
 [3] var"@turbo"(__source__::LineNumberNode, __module__::Module, args::Vararg{Any})
   @ LoopVectorization ~/.julia/dev/LoopVectorization/src/constructors.jl:404
 [4] include(mod::Module, _path::String)
   @ Base ./Base.jl:300
 [5] exec_options(opts::Base.JLOptions)
   @ Base ./client.jl:329
 [6] _start()
   @ Base ./client.jl:558
in expression starting at /home/oscardssmith/.julia/dev/LoopVectorization/test.jl:6

rather than working as expected. This seems to be a consequence of JuliaLang/julia#56746

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