Draft
Conversation
Contributor
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/src/jlgen.jl b/src/jlgen.jl
index db3ab6e..0a97877 100644
--- a/src/jlgen.jl
+++ b/src/jlgen.jl
@@ -426,7 +426,7 @@ function GPUInterpreter(world::UInt=Base.get_world_counter();
opt_params::CC.OptimizationParams)
@assert world <= Base.get_world_counter()
- inf_cache = INFERENCE_CACHE_TYPE()
+ inf_cache = INFERENCE_CACHE_TYPE()
return GPUInterpreter(world, method_table_view,
token, inf_cache,
@@ -437,7 +437,7 @@ function GPUInterpreter(interp::GPUInterpreter;
world::UInt=interp.world,
method_table_view::CC.MethodTableView=interp.method_table_view,
token::Any=interp.token,
- inf_cache::INFERENCE_CACHE_TYPE=interp.inf_cache,
+ inf_cache::INFERENCE_CACHE_TYPE = interp.inf_cache,
inf_params::CC.InferenceParams=interp.inf_params,
opt_params::CC.OptimizationParams=interp.opt_params)
return GPUInterpreter(world, method_table_view,
diff --git a/src/reflection.jl b/src/reflection.jl
index ffffa8e..386327b 100644
--- a/src/reflection.jl
+++ b/src/reflection.jl
@@ -167,10 +167,10 @@ InteractiveUtils.code_warntype(err::KernelError; kwargs...) = code_warntype(err.
struct jl_llvmf_dump
TSM::LLVM.API.LLVMOrcThreadSafeModuleRef
F::LLVM.API.LLVMValueRef
-@static if VERSION >= v"1.14.0-DEV.1823" # JuliaLang/julia#60698
- dump::Ptr{Nothing}
- jl_llvmf_dump(TSM::LLVM.API.LLVMOrcThreadSafeModuleRef, F::LLVM.API.LLVMValueRef) = new(TSM, F, C_NULL)
-end
+ @static if VERSION >= v"1.14.0-DEV.1823" # JuliaLang/julia#60698
+ dump::Ptr{Nothing}
+ jl_llvmf_dump(TSM::LLVM.API.LLVMOrcThreadSafeModuleRef, F::LLVM.API.LLVMValueRef) = new(TSM, F, C_NULL)
+ end
end
"""
diff --git a/test/native.jl b/test/native.jl
index 4289c45..951dc17 100644
--- a/test/native.jl
+++ b/test/native.jl
@@ -304,7 +304,7 @@ end
# breaking recursion in print_to_string makes it possible to compile
# even in the presence of the above bug
- # Native.code_llvm(devnull, Base.print_to_string, Tuple{Int,Int}; optimize=false)
+ # Native.code_llvm(devnull, Base.print_to_string, Tuple{Int,Int}; optimize=false)
@test "We did not crash!" != ""
end
diff --git a/test/native/precompile.jl b/test/native/precompile.jl
index a7f9b95..c2eaffc 100644
--- a/test/native/precompile.jl
+++ b/test/native/precompile.jl
@@ -76,7 +76,7 @@ precompile_test_harness("Inference caching") do load_path
@test check_presence(square_mi, token)
# check that identity survived
- @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || v"1.13.0-" <= VERSION < v"1.13.0-rc1" || v"1.14.0-" <= VERSION < v"1.14.0-DEV.1843")
+ @test check_presence(identity_mi, token) broken = (v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || v"1.13.0-" <= VERSION < v"1.13.0-rc1" || v"1.14.0-" <= VERSION < v"1.14.0-DEV.1843")
GPUCompiler.clear_disk_cache!()
@test GPUCompiler.disk_cache_enabled() == false
diff --git a/test/ptx/precompile.jl b/test/ptx/precompile.jl
index fb6910f..e670c78 100644
--- a/test/ptx/precompile.jl
+++ b/test/ptx/precompile.jl
@@ -49,6 +49,6 @@ precompile_test_harness("Inference caching") do load_path
@test check_presence(kernel_mi, token)
# check that identity survived
- @test check_presence(identity_mi, token) broken=(v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || v"1.13.0-" <= VERSION < v"1.13.0-rc1" || v"1.14.0-" <= VERSION < v"1.14.0-DEV.1843")
+ @test check_presence(identity_mi, token) broken = (v"1.12.0-DEV.1268" <= VERSION < v"1.12.5" || v"1.13.0-" <= VERSION < v"1.13.0-rc1" || v"1.14.0-" <= VERSION < v"1.14.0-DEV.1843")
end
end |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #771 +/- ##
==========================================
+ Coverage 74.92% 75.09% +0.16%
==========================================
Files 24 24
Lines 3781 3782 +1
==========================================
+ Hits 2833 2840 +7
+ Misses 948 942 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
maleadt
reviewed
Mar 10, 2026
| # breaking recursion in print_to_string makes it possible to compile | ||
| # even in the presence of the above bug | ||
| Native.code_llvm(devnull, Base.print_to_string, Tuple{Int,Int}; optimize=false) | ||
| # Native.code_llvm(devnull, Base.print_to_string, Tuple{Int,Int}; optimize=false) |
Member
Author
There was a problem hiding this comment.
It's a temporary commit I pushed to confirm that it was the source of the hang in the native testset on nightly. Any idea what could be causing the hang?
Member
There was a problem hiding this comment.
The recursion triggering recursion during codegen? There's been inference cache changes, after all.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Includes #770