Skip to content

Commit

Permalink
Update integer literals for PyArg_ParseTuple (#2938)
Browse files Browse the repository at this point in the history
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

---------

Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Dec 5, 2024
1 parent ad950e8 commit 74db036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/triton_kernels_benchmark/benchmark_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def format_of(ty):
"int8_t": "b",
"int16_t": "h",
"int32_t": "i",
"int64_t": "l",
"int64_t": "L",
"uint8_t": "B",
"uint16_t": "H",
"uint32_t": "I",
Expand Down
2 changes: 1 addition & 1 deletion third_party/amd/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def format_of(ty):
"int8_t": "b",
"int16_t": "h",
"int32_t": "i",
"int64_t": "l",
"int64_t": "L",
"uint8_t": "B",
"uint16_t": "H",
"uint32_t": "I",
Expand Down

0 comments on commit 74db036

Please sign in to comment.