Skip to content

Conversation

@anmyachev
Copy link
Contributor

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

"int32_t": "i",
"int64_t": "l",
"int32_t": "l",
"int64_t": "L",
Copy link
Contributor Author

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]>
@anmyachev anmyachev marked this pull request as ready for review December 5, 2024 18:23
"int16_t": "h",
"int32_t": "i",
"int64_t": "l",
"int64_t": "L",
Copy link
Contributor Author

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

@anmyachev anmyachev merged commit 74db036 into main Dec 5, 2024
6 checks passed
@anmyachev anmyachev deleted the amyachev/int-literals branch December 5, 2024 18:47
@whitneywhtsang
Copy link
Contributor

Oh I thought you are going to directly upstream this change.

@anmyachev
Copy link
Contributor Author

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: benchmark_driver.py.

@whitneywhtsang
Copy link
Contributor

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: benchmark_driver.py.

icic, it just got merged 1 hour ago upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants