Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions benchmarks/triton_kernels_benchmark/benchmark_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def format_of(ty):
"long": "l",
"int8_t": "b",
"int16_t": "h",
"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

"uint8_t": "B",
"uint16_t": "H",
"uint32_t": "I",
Expand Down
4 changes: 2 additions & 2 deletions third_party/amd/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ def format_of(ty):
"long": "l",
"int8_t": "b",
"int16_t": "h",
"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.

Corresponding change in the upstream: triton-lang/triton@390e27f

"uint8_t": "B",
"uint16_t": "H",
"uint32_t": "I",
Expand Down
2 changes: 1 addition & 1 deletion third_party/intel/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def format_of(ty):
"long": "l",
"int8_t": "b",
"int16_t": "h",
"int32_t": "i",
"int32_t": "l",
"int64_t": "L",
"uint8_t": "B",
"uint16_t": "H",
Expand Down
2 changes: 1 addition & 1 deletion third_party/nvidia/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def format_of(ty):
"long": "l",
"int8_t": "b",
"int16_t": "h",
"int32_t": "i",
"int32_t": "l",
"int64_t": "L",
"uint8_t": "B",
"uint16_t": "H",
Expand Down
Loading