Repository navigation
Use numba automatically for numpy inputs and deprecate the backend argument - #178
Merged
Merged
Conversation
… every backend value
…umba import check
…mba on guarded inputs
…the exclusion table says otherwise
…and generator limits of config_context
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.
The array framework is inferred from the inputs since the array API migration, which left the backend argument with one real job: opting into numba. With the gufuncs now faster than the array path, loaded lazily and guarded against inputs they do not support, numba becomes an automatic accelerator for numpy inputs and the backend argument is deprecated.
What changed
Notes
Score docstrings and the user guide are updated in the next PR. The dispatch decision costs about 1.6 us per call; crps_ensemble at N=10 drops from 38 us to 14 us in auto mode. config_context does not reach work sent to thread pools or dask's threaded scheduler; the docstring says to use set_config there.
This change was developed in tandem with AI coding agents.