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

Add a testsuite for inference caching #567

Merged
merged 16 commits into from
Apr 16, 2024
Merged

Add a testsuite for inference caching #567

merged 16 commits into from
Apr 16, 2024

Conversation

vchuravy
Copy link
Member

No description provided.

test/precompile_tests.jl Outdated Show resolved Hide resolved
vchuravy added a commit to JuliaLang/julia that referenced this pull request Apr 15, 2024
…reters (#54069)

Partially reverts #49391

PrecompileTools uses the timing infrastructure to snoop on the inference
process.
The reason for #49391 was that this could lead to accidental pollution
of the caches
with foreign results
(timholy/SnoopCompile.jl#338)

After #52233 and especially #53336 we now filter results by cache owner
and
don't try to cache foreign code using the native pipeline.

Motivated by JuliaGPU/GPUCompiler.jl#567 which
demonstrated
that a foreign code instance would not be cached without
PrecompileTools.
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 82.96%. Comparing base (cb736ee) to head (d786ac6).

Files Patch % Lines
src/jlgen.jl 42.85% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #567      +/-   ##
==========================================
- Coverage   83.04%   82.96%   -0.09%     
==========================================
  Files          24       24              
  Lines        3345     3352       +7     
==========================================
+ Hits         2778     2781       +3     
- Misses        567      571       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vchuravy vchuravy merged commit 46edf96 into master Apr 16, 2024
21 checks passed
@vchuravy vchuravy deleted the vc/cross branch April 16, 2024 10:59
@@ -749,3 +749,14 @@ function compile_method_instance(@nospecialize(job::CompilerJob))

return llvm_mod, compiled
end

function CC.typeinf(interp::GPUInterpreter, frame::CC.InferenceState)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't do things without drinking coffee first. This should needs a version bound to limit it for 1.11.

In 1.11-beta2 it should not be necessary anymore

KristofferC pushed a commit to JuliaLang/julia that referenced this pull request Apr 17, 2024
…reters (#54069)

Partially reverts #49391

PrecompileTools uses the timing infrastructure to snoop on the inference
process.
The reason for #49391 was that this could lead to accidental pollution
of the caches
with foreign results
(timholy/SnoopCompile.jl#338)

After #52233 and especially #53336 we now filter results by cache owner
and
don't try to cache foreign code using the native pipeline.

Motivated by JuliaGPU/GPUCompiler.jl#567 which
demonstrated
that a foreign code instance would not be cached without
PrecompileTools.

(cherry picked from commit c0611e8)
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

Successfully merging this pull request may close these issues.

1 participant