Skip to content

Commit

Permalink
Fix the behavior of decompose_reduction to keep thread_binding inform…
Browse files Browse the repository at this point in the history
…ation (apache#59)
  • Loading branch information
yzh119 authored Oct 26, 2022
1 parent f045903 commit a2f4447
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tir/schedule/primitive/reduction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ StmtSRef DecomposeReduction(ScheduleState self, const StmtSRef& block_sref,
/*min=*/old_loop->min,
/*extent=*/old_loop->extent,
/*kind=*/old_loop->kind,
/*body=*/body);
/*body=*/body,
/*thread_binding=*/old_loop->thread_binding,
/*annotations=*/old_loop->annotations);
}
body = Substitute(body, loop_var_map);
// Step 6. Mutate IR
Expand Down

0 comments on commit a2f4447

Please sign in to comment.