Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Wilkinson <lwilkinson@neuralmagic.com>
  • Loading branch information
LucasWilkinson committed Feb 26, 2025
1 parent 60ddaa3 commit 2a9256f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ void gett_mainloop(
const int N = cute::size<0>(mainloop_params.B.layout());
const int ScaleGranularityM = M / cute::size<0>(mainloop_params.ScaleA);
const int ScaleGranularityN = N / cute::size<0>(mainloop_params.ScaleB);
assert(M % ScaleGranularityM == 0 && "ScaleGranularityM must divide M");
assert(N % ScaleGranularityN == 0 && "ScaleGranularityN must divide N");
assert(ScaleGranularityM && M % ScaleGranularityM == 0
&& "ScaleGranularityM must divide M");
assert(ScaleGranularityN && N % ScaleGranularityN == 0
&& "ScaleGranularityN must divide N");

cute::Tensor blockscale_A = domain_offset(
make_coord(m / ScaleGranularityM, _0{}), mainloop_params.ScaleA(_, _, l));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ struct CollectiveMma<
}

#pragma unroll
for (int i = 0; i < size(tApA_ScaleA); ++i) {
for (int i = 0; i < size(tBpB_ScaleB); ++i) {
tBpB_ScaleB(i) = get<0>(tBcB_ScaleB(i)) <
std::min(scales_n, (n_coord + 1) * ScaleNsPerTile);
}
Expand Down

0 comments on commit 2a9256f

Please sign in to comment.