Skip to content

Commit

Permalink
fixing a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
protonu committed Dec 14, 2024
1 parent d87495b commit 09cb407
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions csrc/scheduler/hopper_multi_matmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ void HopperMultipleMatmulScheduler::scheduleMmaResults() {

void HopperMultipleMatmulScheduler::scheduleEpilogue() {
std::vector<TensorView*> cached_tvs;
std::vector<TensorView*> c_tvs;

// Propagate to (not including) the splitk output if there is a splitk
// else this is just mma_results_
Expand Down Expand Up @@ -478,7 +477,9 @@ void HopperMultipleMatmulScheduler::scheduleEpilogue() {
// inner-dim with extent 2.
// TODO: support vectorization_factor.
d->axis(-1)->parallelize(ParallelType::Vectorize);
scheduler_utils::parallelizeAllLike(d, -1, cached_tvs);
if (!cached_tvs.empty()) {
scheduler_utils::parallelizeAllLike(d, -1, cached_tvs);
}
}
} else {
constexpr int64_t stmatrix_tile_m = 16;
Expand Down

0 comments on commit 09cb407

Please sign in to comment.