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

InvalidIRError: hide GC intrinsics #554

Open
maleadt opened this issue Mar 13, 2024 · 0 comments
Open

InvalidIRError: hide GC intrinsics #554

maleadt opened this issue Mar 13, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@maleadt
Copy link
Member

maleadt commented Mar 13, 2024

When there's actual useful frames to report, the GC ones are pretty much irrelevant:

julia> map(i->evalpoly(i,p.coefficients), cux)
ERROR: InvalidIRError: compiling MethodInstance for (::GPUArrays.var"#broadcast_kernel#34")(::CUDA.CuKernelContext, ::CuDeviceVector{…}, ::CartesianIndices{…}, ::Base.Broadcast.Broadcasted{…}, ::Int64) resulted in invalid LLVM IR
Reason: unsupported call to an unknown function (call to julia.new_gc_frame)
Stacktrace:
 [1] _broadcast_getindex_evalf
   @ ./broadcast.jl:709
 [2] _broadcast_getindex
   @ ./broadcast.jl:682
 [3] getindex
   @ ./broadcast.jl:636
 [4] broadcast_kernel
   @ ~/Julia/pkg/GPUArrays/src/host/broadcast.jl:62
Reason: unsupported call to an unknown function (call to julia.push_gc_frame)
Stacktrace:
 [1] _broadcast_getindex_evalf
   @ ./broadcast.jl:709
 [2] _broadcast_getindex
   @ ./broadcast.jl:682
 [3] getindex
   @ ./broadcast.jl:636
 [4] broadcast_kernel
   @ ~/Julia/pkg/GPUArrays/src/host/broadcast.jl:62
Reason: unsupported call to an unknown function (call to julia.get_gc_frame_slot)
Stacktrace:
 [1] _broadcast_getindex_evalf
   @ ./broadcast.jl:709
 [2] _broadcast_getindex
   @ ./broadcast.jl:682
 [3] getindex
   @ ./broadcast.jl:636
 [4] broadcast_kernel
   @ ~/Julia/pkg/GPUArrays/src/host/broadcast.jl:62
Reason: unsupported dynamic function invocation (call to getproperty)
Stacktrace:
 [1] #34
   @ ./REPL[25]:1
 [2] _broadcast_getindex_evalf
   @ ./broadcast.jl:709
 [3] _broadcast_getindex
   @ ./broadcast.jl:682
 [4] getindex
   @ ./broadcast.jl:636
 [5] broadcast_kernel
   @ ~/Julia/pkg/GPUArrays/src/host/broadcast.jl:62
Reason: unsupported dynamic function invocation (call to evalpoly)
Stacktrace:
 [1] #34
   @ ./REPL[25]:1
 [2] _broadcast_getindex_evalf
   @ ./broadcast.jl:709
 [3] _broadcast_getindex
   @ ./broadcast.jl:682
 [4] getindex
   @ ./broadcast.jl:636
 [5] broadcast_kernel
   @ ~/Julia/pkg/GPUArrays/src/host/broadcast.jl:62
Reason: unsupported call to an unknown function (call to julia.pop_gc_frame)
Stacktrace:
 [1] _broadcast_getindex_evalf
   @ ./broadcast.jl:709
 [2] _broadcast_getindex
   @ ./broadcast.jl:682
 [3] getindex
   @ ./broadcast.jl:636
 [4] broadcast_kernel
   @ ~/Julia/pkg/GPUArrays/src/host/broadcast.jl:62

However, we can't always hide them, as it's possible that there's GC operations without type instabilities (as commonly encountered with escaping StaticArrays).

@maleadt maleadt added enhancement New feature or request good first issue Good for newcomers labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant