Skip to content

Commit

Permalink
Fix induction variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
minjang committed Jun 7, 2024
1 parent 7a22fc7 commit 1438856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/cpu/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def format_of(ty):
if (getBoolEnv("TRITON_CPU_OMP_DEBUG"))
printf("Single core launcher\\n");
for (uint32_t i = 0; i < N; ++i) {{
for (size_t i = 0; i < N; ++i) {{
const auto [x, y, z] = all_grids[i];
(*kernel_ptr)({kernel_fn_args_list + ', ' if len(kernel_fn_args) > 0 else ''} x, y, z);
}}
Expand All @@ -299,7 +299,7 @@ def format_of(ty):
// For now, use the default chunk size, total iterations / max_threads.
#pragma omp parallel for schedule(static) num_threads(max_threads.value())
for (uint32_t i = 0; i < N; ++i) {{
for (size_t i = 0; i < N; ++i) {{
const auto [x, y, z] = all_grids[i];
(*kernel_ptr)({kernel_fn_args_list + ', ' if len(kernel_fn_args) > 0 else ''} x, y, z);
}}
Expand Down

0 comments on commit 1438856

Please sign in to comment.