Skip to content

Commit

Permalink
Handle cases where k == 1 in GEMM tester.
Browse files Browse the repository at this point in the history
Microkernels with k == 1 were not being tested.

PiperOrigin-RevId: 689298675
  • Loading branch information
alankelly authored and xnnpack-bot committed Oct 24, 2024
1 parent bdfdb7a commit a205406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/gemm-microkernel-tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ TEST_P(GemmTest, Test) {
if (params.loop_bzp_.is_set) {
tester.b_zero_point(bzp);
}
for (size_t bl = params.loop_bl_.from; bl <= tester.k() / 2;
for (size_t bl = params.loop_bl_.from; bl <= tester.k() == 1 ? 1 : tester.k() / 2;
bl = params.loop_bl_.next(bl)) {
if (params.loop_bl_.is_set) {
// Require block size to divide (padded) column size.
Expand Down

0 comments on commit a205406

Please sign in to comment.