Fix numba compilation crashes from functions cached in fork processes - #1992
Merged
Merged
Conversation
ricardoV94
force-pushed
the
numba_fork_cache
branch
from
March 20, 2026 09:09
7ced77d to
d3a087d
Compare
ricardoV94
force-pushed
the
numba_fork_cache
branch
from
March 20, 2026 09:12
d3a087d to
1845e92
Compare
ricardoV94
force-pushed
the
numba_fork_cache
branch
2 times, most recently
from
March 20, 2026 09:13
0fb0a7c to
66d0e19
Compare
ricardoV94
force-pushed
the
numba_fork_cache
branch
from
March 20, 2026 18:41
66d0e19 to
f808419
Compare
Merged
ricardoV94
added a commit
to pymc-devs/pymc-model-catalogue
that referenced
this pull request
Apr 13, 2026
Historical pytensor versions that ship the numba disk-cache infrastructure but predate pymc-devs/pytensor#1992 crash on LLVM symbol-mangling collisions when asv's two-phase Build->Eval benchmark hits the numba cache across process boundaries. Patch the installed pytensor in place from the provisioner so the timeline keeps building cleanly on those commits without disabling the numba cache (which would change what we're measuring).
ricardoV94
added a commit
to pymc-devs/pymc-model-catalogue
that referenced
this pull request
Apr 13, 2026
Historical pytensor versions that ship the numba disk-cache infrastructure but predate pymc-devs/pytensor#1992 crash on LLVM symbol-mangling collisions when asv's two-phase Build->Eval benchmark hits the numba cache across process boundaries. Patch the installed pytensor in place from the provisioner so the timeline keeps building cleanly on those commits without disabling the numba cache (which would change what we're measuring).
ricardoV94
added a commit
to pymc-devs/pymc-model-catalogue
that referenced
this pull request
Apr 13, 2026
Historical pytensor versions that ship the numba disk-cache infrastructure but predate pymc-devs/pytensor#1992 crash on LLVM symbol-mangling collisions when asv's two-phase Build->Eval benchmark hits the numba cache across process boundaries. Patch the installed pytensor in place from the provisioner so the timeline keeps building cleanly on those commits without disabling the numba cache (which would change what we're measuring).
ricardoV94
added a commit
to pymc-devs/pymc-model-catalogue
that referenced
this pull request
Apr 13, 2026
Historical pytensor versions that ship the numba disk-cache infrastructure but predate pymc-devs/pytensor#1992 crash on LLVM symbol-mangling collisions when asv's two-phase Build->Eval benchmark hits the numba cache across process boundaries. Patch the installed pytensor in place from the provisioner so the timeline keeps building cleanly on those commits without disabling the numba cache (which would change what we're measuring).
ricardoV94
added a commit
to pymc-devs/pymc-model-catalogue
that referenced
this pull request
Apr 13, 2026
Historical pytensor versions that ship the numba disk-cache infrastructure but predate pymc-devs/pytensor#1992 crash on LLVM symbol-mangling collisions when asv's two-phase Build->Eval benchmark hits the numba cache across process boundaries. Patch the installed pytensor in place from the provisioner so the timeline keeps building cleanly on those commits without disabling the numba cache (which would change what we're measuring).
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.
Cherry picked from #1988
Issue comes from LLVM symbol mangling of caches created across os.fork processes. LLM "thought" dump in numba/numba#10486
Functions with the same name + input signature would get messed up. PyTensor knows these are different (they have a different cache key). To avoid this we put the signature in the name of the wrapper cached function as well.