Skip to content

Commit

Permalink
x64: brgemm 1x1 conv: fix maybe_rtus
Browse files Browse the repository at this point in the history
  • Loading branch information
ankalinin authored and vpirogov committed Dec 23, 2023
1 parent ee3b12d commit b5f916e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/cpu/x64/jit_brgemm_1x1_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,13 @@ void brgemm_1x1_convolution_fwd_t<isa>::maybe_rtus(int ithr,
while (od < OD) {
// copy to end of column
const auto nh = nstl::min(count / OW, OH - oh);
call_kernel(nh, 0, od, oh, ow);
count -= nh * OW;
if (count == 0) return;
oh = (oh + nh) % OH;
if (oh == 0) od++;
if (nh > 0) {
call_kernel(nh, 0, od, oh, ow);
count -= nh * OW;
if (count == 0) return;
oh = (oh + nh) % OH;
if (oh == 0) od++;
}
if (count < OW) {
// copy partial row
const auto nw = count;
Expand Down

0 comments on commit b5f916e

Please sign in to comment.