Fix grouped gemm invalid memory access to problem shapes (#1543)
This commit is contained in:
parent
52fb43f30f
commit
56b46e2d13
@ -465,6 +465,9 @@ public:
|
||||
|
||||
TileScheduler scheduler{params.scheduler};
|
||||
auto work_tile_info = scheduler.get_current_work();
|
||||
if (not work_tile_info.is_valid()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Optionally append 1s until problem shape is rank-4 in case it is only rank-3 (MNK)
|
||||
auto problem_shape_MNKL = append<4>(params.problem_shape.get_problem_shape(work_tile_info.L_idx), Int<1>{});
|
||||
@ -623,8 +626,10 @@ public:
|
||||
// Get next work tile
|
||||
work_tile_info = fetch_next_work(work_tile_info, scheduler);
|
||||
if constexpr (IsGroupedGemmKernel) {
|
||||
if (work_tile_info.is_valid()) {
|
||||
problem_shape_MNKL = append<4>(params.problem_shape.get_problem_shape(work_tile_info.L_idx), Int<1>{});
|
||||
}
|
||||
}
|
||||
} // Scheduler work fetch loop
|
||||
|
||||
// Make sure all Consumer Warp Groups have been waited upon
|
||||
@ -702,8 +707,10 @@ public:
|
||||
// Get next work tile
|
||||
work_tile_info = fetch_next_work(work_tile_info, scheduler);
|
||||
if constexpr (IsGroupedGemmKernel) {
|
||||
if (work_tile_info.is_valid()) {
|
||||
problem_shape_MNKL = append<4>(params.problem_shape.get_problem_shape(work_tile_info.L_idx), Int<1>{});
|
||||
}
|
||||
}
|
||||
} // Scheduler work fetch loop
|
||||
|
||||
if (do_store_tail) {
|
||||
|
Loading…
Reference in New Issue
Block a user