-
Notifications
You must be signed in to change notification settings - Fork 75
Update integer literals for PyArg_ParseTuple
#2938
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
Conversation
Signed-off-by: Anatoly Myachev <[email protected]>
| "int32_t": "i", | ||
| "int64_t": "l", | ||
| "int32_t": "l", | ||
| "int64_t": "L", |
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.
From python docs:
L ([int](https://docs.python.org/3/library/functions.html#int)) [long long]
Convert a Python integer to a C long long.L ~ long long int at least 64 bits
Signed-off-by: Anatoly Myachev <[email protected]>
| "int16_t": "h", | ||
| "int32_t": "i", | ||
| "int64_t": "l", | ||
| "int64_t": "L", |
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.
Corresponding change in the upstream: triton-lang/triton@390e27f
|
Oh I thought you are going to directly upstream this change. |
The change for AMD is already in Triton upstream. I merged this pull request so that the change would also be for our file: |
icic, it just got merged 1 hour ago upstream. |
This is a test pull request before upstreaming.
The changes are based on https://docs.python.org/3/c-api/arg.html#numbers and https://en.cppreference.com/w/c/language/arithmetic_types