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

BUG: Fix numba DUFuncs added loops getting picked up #21113

Merged
merged 1 commit into from Feb 26, 2022

Conversation

seberg
Copy link
Member

@seberg seberg commented Feb 23, 2022

It was always my intention to do this: If no loop is found and we
go into the legacy ufunc path and legacy resolving works, we need
to double check that the ufunc was not mutated.

Normal operation never mutates ufuncs (its really not meant to be)
but numbas DUFuncs need to do it (they compile loops dynamically).
The future is much brighter for them in this regard, but right now
they have to keep working.

Closes gh-20735

@seberg
Copy link
Member Author

seberg commented Feb 23, 2022

Note: This needs to be tested by numba, but I currently don't have a working numba environment. (The test doesn't have to be thorough, if any DUFunc works, we should be good.)

@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Feb 23, 2022
It was always my intention to do this: If no loop is found and we
go into the legacy ufunc path and legacy resolving works, we need
to double check that the ufunc was not mutated.

Normal operation never mutates ufuncs (its really not meant to be)
but numbas DUFuncs need to do it (they compile loops dynamically).
The future is much brighter for them in this regard, but right now
they have to keep working.

Closes numpygh-20735
@charris
Copy link
Member

charris commented Feb 26, 2022

Thanks Sebastian.

@seberg seberg deleted the fix-numba branch February 26, 2022 23:00
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: ufunc 'x' did not contain a loop with signature matching types
2 participants