Repository navigation
Collect the workarounds for bugs of numba in one guide, with markers that trigger their removal - #1068
Merged
Conversation
…that trigger their removal numba_workarounds.md has a section for each bug of numba that qLDPC works around: clashing names of code compiled in different processes (numba/numba#11016), and data files that hold code for another key (numba/numba#10862). Each section gives the trigger for removing its workaround and the migration steps. The explanation of the second bug moves from the docstring of _compilation into the guide. Every site carries a marker that names its trigger and section, so that git grep "TEMPORARY until" lists them. No behavior changes. The docstring of _compilation also gains a missing serial comma and a missing space between sentences. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Motivation
qLDPC works around two bugs in numba's disk cache: clashing names of code compiled in different processes (numba/numba#11016, worked around in #1062) and data files that hold code for another key (numba/numba#10862). As with the Stim workarounds in
circuits/stim_workarounds.md, each workaround should state when it can go and how to remove it, andgit grep "TEMPORARY until"should list every site.Changes
numba_workarounds.mdhas a section for each bug: a short explanation, the trigger for removing the workaround, and the migration steps. Every site of each workaround in_compilation.pyand_compilation_test.pycarries a marker that names its trigger and section. The explanation of numba/numba#10862 moves from the module docstring of_compilationinto the guide. No behavior changes.Additional notes
The trigger for the second workaround is the property that
_KeyCheckedCacheFileprovides: numba loads a data file only if its own version saved it for the key that it loads. A fix for numba/numba#10862 alone would not be enough, since environments with different numba versions that share a cache directory also write each other's data files.