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

Cleanups for tagged code instance #53336

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Cleanups for tagged code instance #53336

merged 2 commits into from
Feb 15, 2024

Conversation

vchuravy
Copy link
Member

Two small cleanups to #52233

  • Don't use foreign code-instances for native code caching decision making
  • don't return a non-native codeinst for jl_method_compiled

@vchuravy vchuravy added the merge me PR is reviewed. Merge when all tests are passing label Feb 14, 2024
src/precompile_utils.c Outdated Show resolved Hide resolved
src/precompile_utils.c Outdated Show resolved Hide resolved
@vchuravy vchuravy force-pushed the vc/cleanup_tagged_ci branch from 0f45f10 to 9624283 Compare February 14, 2024 18:15
@fingolfin fingolfin merged commit 2c0098e into master Feb 15, 2024
5 of 7 checks passed
@fingolfin fingolfin deleted the vc/cleanup_tagged_ci branch February 15, 2024 02:22
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Feb 15, 2024
tecosaur pushed a commit to tecosaur/julia that referenced this pull request Mar 4, 2024
Two small cleanups to JuliaLang#52233
- Don't use foreign code-instances for native code caching decision
making
- don't return a non-native codeinst for jl_method_compiled

---------

Co-authored-by: Keno Fischer <[email protected]>
vchuravy added a commit 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.
KristofferC pushed a commit 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.

4 participants