-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[INTERPRETER] Support sort #3426
Conversation
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.
wow, that's all it took?
At some point we're going to have to switch the default and make tests opt-out for the interpreter. This is exciting!
python/triton/language/core.py
Outdated
@@ -535,6 +535,30 @@ def to_ir(self, builder: ir.builder): | |||
# pointer types | |||
pi32_t = pointer_type(int32) | |||
|
|||
|
|||
def get_int_dtype(bitwidth, signed: bool = True) -> dtype: |
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.
Nit: Up to you, but PEP1 "explicit is better than implicit", maybe make signed
a non-defaulted parameter?
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.
Sounds good. Just changed.
No description provided.