Skip to content

Commit

Permalink
Fix Stream-K reduce bug in epilogue with broadcast (#1224)
Browse files Browse the repository at this point in the history
Co-authored-by: Ali Hassani <[email protected]>
  • Loading branch information
alihassanijr and Ali Hassani authored Dec 5, 2023
1 parent e9e30c2 commit a75b4ac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -946,13 +946,13 @@ class EpilogueWithBroadcast<
//

if (OutputOp::kStoreZ) {
destination_iterator += reduce_fragment_idx;
destination_iterator.store(frag_Z);
++destination_iterator;
}

if (OutputOp::kStoreT) {
tensor_iterator += reduce_fragment_idx;
tensor_iterator.store(frag_T);
++tensor_iterator;
}
}
};
Expand Down Expand Up @@ -1698,13 +1698,13 @@ class EpilogueWithBroadcast<
//

if (OutputOp::kStoreZ) {
destination_iterator += reduce_fragment_idx;
destination_iterator.store(frag_Z);
++destination_iterator;
}

if (OutputOp::kStoreT) {
tensor_iterator += reduce_fragment_idx;
tensor_iterator.store(frag_T);
++tensor_iterator;
}
}
};
Expand Down

0 comments on commit a75b4ac

Please sign in to comment.