-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Removes context.compile_internal
where easy
#8493
base: main
Are you sure you want to change the base?
Changes from all commits
0b51a7e
685b729
d8c8b73
dbd4304
586410b
6426a01
07526ea
54e3fe3
4806e14
f331241
0905939
fa69396
52bdecb
fb055b8
49870f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,13 @@ | |
Added for symmetry with the core API | ||
""" | ||
|
||
from functools import partial | ||
from numba.core.extending import intrinsic as _intrinsic | ||
from numba.core.extending import overload as _overload | ||
from numba.core.extending import overload_method as _overload_method | ||
from numba.core.extending import overload_attribute as _overload_attribute | ||
|
||
intrinsic = _intrinsic(target='cuda') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I have used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't thin so, as the only argument you can feed to intrinsic is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it worth doing |
||
overload = partial(_overload, target='cuda') | ||
guilhermeleobas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
overload_method = partial(_overload_method, target='cuda') | ||
overload_attribute = partial(_overload_attribute, target='cuda') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it support
ndigits=None
with something like:?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it crashes with the following error:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's at least two problems going on here, one of which is #8528, the other is what is causing this lowering error. It seems like non-matching default kwargs might be part of the cause, it's also strange that the overload validation step doesn't catch this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also involved: #8530