Skip to content

Conversation

@simeonschaub
Copy link
Member

GPUCompiler will set inline_cost_threshold to typemax(Int) as a way to force inlining, make sure this doesn't cause integer overflow.

should fix JuliaGPU/AMDGPU.jl#846

GPUCompiler will set `inline_cost_threshold` to `typemax(Int)` as a way to force inlining, make sure this doesn't cause integer overflow.

should fix JuliaGPU/AMDGPU.jl#846
@simeonschaub simeonschaub added compiler:inference Type inference backport 1.10 Change should be backported to the 1.10 release backport 1.12 Change should be backported to release-1.12 backport 1.13 labels Nov 13, 2025
@oscardssmith
Copy link
Member

I would probably argue that setting a threshold so high that math doesn't work on it probably isn't a great idea (e.g. maybe set it to a couple billion instead since no GPU can compile that much code into a kernel?)

simeonschaub added a commit to JuliaGPU/GPUCompiler.jl that referenced this pull request Nov 14, 2025
as cost threshold for `always_inline` to avoid integer overflow

fix JuliaGPU/AMDGPU.jl#846

alternative to JuliaLang/julia#60121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.10 Change should be backported to the 1.10 release backport 1.12 Change should be backported to release-1.12 backport 1.13 compiler:inference Type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

call to unknown function jl_f_issubtype but CUDA works

3 participants