blob: 009c235573bf5674ce7cd83bb266e6e406fcb70e [file] [log] [blame]
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
// Specification: test/qs8-gemm-minmax.yaml
// Generator: tools/generate-gemm-test.py
#include <gtest/gtest.h>
#include <xnnpack/common.h>
#include <xnnpack/isa-checks.h>
#include <xnnpack/gemm.h>
#include <xnnpack/igemm.h>
#include <xnnpack/ppmm.h>
#include "gemm-microkernel-tester.h"
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_eq_8) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, strided_cn) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_lt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_gt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_div_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_gt_8) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_div_8) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, qmin) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, qmax) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X8__NEON_MLAL_LANE, strided_cm) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(1)
.sr(1)
.m(1)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8__neon_mlal_lane);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_eq_8) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, strided_cn) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_lt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_gt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_div_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_gt_8) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_div_8) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, qmin) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, qmax) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X8__NEON_MLAL_LANE, strided_cm) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(1)
.sr(1)
.m(2)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8__neon_mlal_lane);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_eq_8) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, strided_cn) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_lt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_gt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_div_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_gt_16) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_div_16) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, qmin) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, qmax) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_1X16__NEON_MLAL_LANE, strided_cm) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(1)
.sr(1)
.m(1)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16__neon_mlal_lane);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_eq_8) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, strided_cn) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_lt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_gt_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_div_8) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_gt_16) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_div_16) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, qmin) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, qmax) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
TEST(QS8_GEMM_MINMAX_2X16__NEON_MLAL_LANE, strided_cm) {
TEST_REQUIRES_ARM_NEON;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(1)
.sr(1)
.m(2)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16__neon_mlal_lane);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X8C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(4)
.sr(1)
.m(1)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X8C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(8)
.kr(4)
.sr(1)
.m(4)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x8c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 6; m++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 6; m++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 6; m++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X8C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(8)
.kr(4)
.sr(1)
.m(6)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x8c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X8C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 12; m++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_gt_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 12; m++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_div_8_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, n_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 12; m++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
TEST(QS8_GEMM_MINMAX_12X8C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(12)
.nr(8)
.kr(4)
.sr(1)
.m(12)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x8c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_1X16C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_4X16C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 6; m++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 6; m++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 6; m++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 6; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_6X16C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(6)
.nr(16)
.kr(4)
.sr(1)
.m(6)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_6x16c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
TEST(QS8_GEMM_MINMAX_8X16C4__NEONDOT, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(8)
.nr(16)
.kr(4)
.sr(1)
.m(8)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_8x16c4__neondot);
}
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_1X16C4__AARCH64_NEONDOT_LD64, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(4)
.sr(1)
.m(1)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c4__aarch64_neondot_ld64);
}
#endif // XNN_ARCH_ARM64
#if XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_eq_8) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_eq_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_lt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_lt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_gt_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_gt_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_div_8) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_div_8_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, k_div_8_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_LD64, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_ld64);
}
#endif // XNN_ARCH_ARM64
#if XNN_ARCH_ARM64
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_eq_16) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(16)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(16)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_eq_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(16)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_eq_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(16)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_eq_16_subtile_m) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(16)
.k(16)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_eq_16_subtile_n) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(16)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_lt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_lt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_lt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 17; k < 32; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 17; k < 32; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(37)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 17; k < 32; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 32; k <= 160; k += 16) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 32; k <= 160; k += 16) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(163)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, k_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 32; k <= 160; k += 16) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_gt_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 80; k += 17) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_gt_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 80; k += 17) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_gt_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 80; k += 17) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_gt_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 80; k += 17) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_div_16) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 80; k += 17) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_div_16_strided_cn) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 80; k += 17) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_div_16_strided_a) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 80; k += 17) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, n_div_16_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 80; k += 17) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, strided_cm_subtile) {
TEST_REQUIRES_ARM_NEON_DOT;
for (size_t k = 1; k <= 80; k += 17) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, qmin) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(16)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, qmax) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(16)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
TEST(QS8_GEMM_MINMAX_4X16C4__AARCH64_NEONDOT_CORTEX_A55, strided_cm) {
TEST_REQUIRES_ARM_NEON_DOT;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(4)
.sr(1)
.m(4)
.n(16)
.k(16)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c4__aarch64_neondot_cortex_a55);
}
#endif // XNN_ARCH_ARM64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD64, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD64, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD64, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD64, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE2_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse2_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE2_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse2_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSSE3_LD128, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__ssse3_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSSE3_LD128, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__ssse3_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__SSE41_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__sse41_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__SSE41_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__sse41_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C2__XOP_LD128, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c2__xop_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_4X4C2__XOP_LD128, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_4x4c2__xop_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE2, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE2, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSSE3, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__ssse3);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSSE3, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__ssse3);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__SSE41, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__sse41);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__SSE41, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__sse41);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C2__XOP, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(2)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c2__xop);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_4X4C2__XOP, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(4)
.nr(4)
.kr(2)
.sr(1)
.m(4)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_4x4c2__xop);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD64, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD64, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD64, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD64, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD64, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD64, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD64, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld64);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE2_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse2_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE2_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse2_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, qmin) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, qmax) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE2_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse2_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSSE3_LD128, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__ssse3_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSSE3_LD128, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__ssse3_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, qmin) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, qmax) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSSE3_LD128, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__ssse3_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__SSE41_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__sse41_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__SSE41_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__sse41_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, qmin) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, qmax) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__SSE41_LD128, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__sse41_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__XOP_LD128, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__xop_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__XOP_LD128, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__xop_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, qmin) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, qmax) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__XOP_LD128, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__xop_ld128);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE2, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE2, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_eq_8) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, strided_cn) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_lt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_gt_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_div_8) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_gt_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_div_4) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE2;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE2, strided_cm) {
TEST_REQUIRES_X86_SSE2;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSSE3, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__ssse3);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSSE3, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__ssse3);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_eq_8) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, strided_cn) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_lt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_gt_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_div_8) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, k_div_8_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_gt_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_div_4) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, n_div_4_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, strided_cm_subtile) {
TEST_REQUIRES_X86_SSSE3;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSSE3, strided_cm) {
TEST_REQUIRES_X86_SSSE3;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__ssse3);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__SSE41, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__sse41);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__SSE41, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__sse41);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_eq_8) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, strided_cn) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_eq_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_eq_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_lt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_lt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_lt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_gt_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_gt_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_gt_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_div_8) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_div_8_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, k_div_8_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_gt_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_gt_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_gt_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_div_4) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_div_4_strided_cn) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_div_4_strided_a) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, n_div_4_subtile) {
TEST_REQUIRES_X86_SSE41;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, strided_cm_subtile) {
TEST_REQUIRES_X86_SSE41;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__SSE41, strided_cm) {
TEST_REQUIRES_X86_SSE41;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__sse41);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__XOP, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__xop);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__XOP, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__xop);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_eq_8) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, strided_cn) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_eq_8_strided_a) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_eq_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_XOP;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_lt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_lt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_lt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_gt_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_gt_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_gt_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_div_8) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_div_8_strided_a) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, k_div_8_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_gt_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_gt_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_gt_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_gt_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_div_4) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_div_4_strided_cn) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_div_4_strided_a) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, n_div_4_subtile) {
TEST_REQUIRES_X86_XOP;
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, strided_cm_subtile) {
TEST_REQUIRES_X86_XOP;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__XOP, strided_cm) {
TEST_REQUIRES_X86_XOP;
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__xop);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_eq_8) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, strided_cn) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_lt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_div_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_gt_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_div_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_div_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, n_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, qmin) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, qmax) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_1X8C8__AVX2, strided_cm) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x8c8__avx2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_eq_8) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, strided_cn) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_lt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_div_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_gt_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_div_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_div_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, n_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, qmin) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, qmax) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_2X8C8__AVX2, strided_cm) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x8c8__avx2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_eq_8) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, strided_cn) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_lt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_div_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_gt_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_div_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_div_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, n_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, qmin) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, qmax) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_MINMAX_3X8C8__AVX2, strided_cm) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x8c8__avx2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_eq_8) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, strided_cn) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_lt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_div_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_gt_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_div_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_div_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, n_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X8C8__AVX2, strided_cm) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(1)
.nr(8)
.kr(8)
.sr(1)
.m(1)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x8c8__avx2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_eq_8) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, strided_cn) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_lt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_div_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_gt_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_div_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_div_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, n_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X8C8__AVX2, strided_cm) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(2)
.nr(8)
.kr(8)
.sr(1)
.m(2)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x8c8__avx2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_eq_8) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, strided_cn) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(8)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_lt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_div_8) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_gt_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_gt_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_gt_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_div_8) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_div_8_strided_cn) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_div_8_strided_a) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, n_div_8_subtile) {
TEST_REQUIRES_X86_AVX2;
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX2;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X8C8__AVX2, strided_cm) {
TEST_REQUIRES_X86_AVX2;
GemmMicrokernelTester()
.mr(3)
.nr(8)
.kr(8)
.sr(1)
.m(3)
.n(8)
.k(8)
.cm_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x8c8__avx2);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_eq_8) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_lt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_gt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_div_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_gt_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_gt_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_gt_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_gt_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_div_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_div_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_div_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, n_div_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, qmin) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, qmax) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_1X16C8__AVX512SKX, strided_cm) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(1)
.nr(16)
.kr(8)
.sr(1)
.m(1)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x16c8__avx512skx);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_eq_8) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_lt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_gt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_div_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_gt_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_gt_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_gt_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_gt_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_div_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_div_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_div_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, n_div_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, qmin) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, qmax) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_2X16C8__AVX512SKX, strided_cm) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(2)
.nr(16)
.kr(8)
.sr(1)
.m(2)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x16c8__avx512skx);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_eq_8) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_lt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_gt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_div_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_gt_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_gt_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_gt_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_gt_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_div_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_div_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_div_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, n_div_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, qmin) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, qmax) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_3X16C8__AVX512SKX, strided_cm) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(3)
.nr(16)
.kr(8)
.sr(1)
.m(3)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x16c8__avx512skx);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_eq_8) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(8)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_eq_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_eq_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_eq_8_subtile_m) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(16)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_eq_8_subtile_n) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_lt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_lt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_lt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_gt_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_gt_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_gt_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_div_8) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_div_8_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, k_div_8_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_gt_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_gt_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_gt_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_gt_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 17; n < 32; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_div_16) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_div_16_strided_cn) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(n)
.k(k)
.cn_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_div_16_strided_a) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, n_div_16_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (uint32_t n = 32; n <= 48; n += 16) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, strided_cm_subtile) {
TEST_REQUIRES_X86_AVX512SKX;
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 4; m++) {
for (uint32_t n = 1; n <= 16; n++) {
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(19)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
}
}
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, qmin) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, qmax) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
TEST(QS8_GEMM_MINMAX_4X16C8__AVX512SKX, strided_cm) {
TEST_REQUIRES_X86_AVX512SKX;
GemmMicrokernelTester()
.mr(4)
.nr(16)
.kr(8)
.sr(1)
.m(4)
.n(16)
.k(8)
.cm_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx);
}
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_eq_8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, strided_cn) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, qmin) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, qmax) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD64, strided_cm) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld64);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_eq_8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, strided_cn) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, qmin) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, qmax) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD64, strided_cm) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld64);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_eq_8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, strided_cn) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, qmin) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, qmax) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD64, strided_cm) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld64);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_eq_8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, strided_cn) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, qmin) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, qmax) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_1X4C8__WASMSIMD_LD128, strided_cm) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_1x4c8__wasmsimd_ld128);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_eq_8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, strided_cn) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, qmin) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, qmax) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_2X4C8__WASMSIMD_LD128, strided_cm) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_2x4c8__wasmsimd_ld128);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_eq_8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, strided_cn) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
}
}
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, qmin) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, qmax) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
TEST(QS8_GEMM_MINMAX_3X4C8__WASMSIMD_LD128, strided_cm) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_3x4c8__wasmsimd_ld128);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_eq_8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, strided_cn) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 1; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_1X4C8__WASMSIMD, strided_cm) {
GemmMicrokernelTester()
.mr(1)
.nr(4)
.kr(8)
.sr(1)
.m(1)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_1x4c8__wasmsimd);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_eq_8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, strided_cn) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 2; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_2X4C8__WASMSIMD, strided_cm) {
GemmMicrokernelTester()
.mr(2)
.nr(4)
.kr(8)
.sr(1)
.m(2)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_2x4c8__wasmsimd);
}
#endif // XNN_ARCH_WASMSIMD
#if XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_eq_8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, strided_cn) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_eq_8_strided_a) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_eq_8_subtile) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_eq_8_subtile_m) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(4)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_eq_8_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(8)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_lt_8) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_lt_8_strided_a) {
for (size_t k = 1; k < 8; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_lt_8_subtile) {
for (size_t k = 1; k < 8; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_gt_8) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_gt_8_strided_a) {
for (size_t k = 9; k < 16; k++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(19)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_gt_8_subtile) {
for (size_t k = 9; k < 16; k++) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_div_8) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_div_8_strided_a) {
for (size_t k = 16; k <= 80; k += 8) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.a_stride(83)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, k_div_8_subtile) {
for (size_t k = 16; k <= 80; k += 8) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(n)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, strided_cm_subtile) {
for (size_t k = 1; k <= 40; k += 9) {
for (uint32_t m = 1; m <= 3; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
}
}
}
TEST(QS8_GEMM_XW_MINMAX_3X4C8__WASMSIMD, strided_cm) {
GemmMicrokernelTester()
.mr(3)
.nr(4)
.kr(8)
.sr(1)
.m(3)
.n(4)
.k(8)
.cm_stride(7)
.Test(xnn_qs8_gemm_xw_minmax_ukernel_3x4c8__wasmsimd);
}
#endif // XNN_ARCH_WASMSIMD
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_eq_4) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(4)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, strided_cn) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(4)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_eq_4_strided_a) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(4)
.a_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_eq_4_subtile) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(4)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_eq_4_subtile_m) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(8)
.k(4)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_eq_4_subtile_n) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(4)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_lt_4) {
for (size_t k = 1; k < 4; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_lt_4_strided_a) {
for (size_t k = 1; k < 4; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.a_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_lt_4_subtile) {
for (size_t k = 1; k < 4; k++) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_gt_4) {
for (size_t k = 5; k < 8; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_gt_4_strided_a) {
for (size_t k = 5; k < 8; k++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_gt_4_subtile) {
for (size_t k = 5; k < 8; k++) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_div_4) {
for (size_t k = 8; k <= 40; k += 4) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_div_4_strided_a) {
for (size_t k = 8; k <= 40; k += 4) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, k_div_4_subtile) {
for (size_t k = 8; k <= 40; k += 4) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_gt_8) {
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_gt_8_strided_cn) {
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_gt_8_strided_a) {
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.a_stride(23)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_gt_8_subtile) {
for (uint32_t n = 9; n < 16; n++) {
for (size_t k = 1; k <= 20; k += 5) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_div_8) {
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_div_8_strided_cn) {
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.cn_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_div_8_strided_a) {
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(n)
.k(k)
.a_stride(23)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, n_div_8_subtile) {
for (uint32_t n = 16; n <= 24; n += 8) {
for (size_t k = 1; k <= 20; k += 5) {
for (uint32_t m = 1; m <= 8; m++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, strided_cm_subtile) {
for (size_t k = 1; k <= 20; k += 5) {
for (uint32_t m = 1; m <= 8; m++) {
for (uint32_t n = 1; n <= 8; n++) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(11)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, qmin) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(4)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, qmax) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(4)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_8X8C4__SCALAR, strided_cm) {
GemmMicrokernelTester()
.mr(8)
.nr(8)
.kr(4)
.sr(1)
.m(8)
.n(8)
.k(4)
.cm_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_8x8c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_eq_4) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(4)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, strided_cn) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(4)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_eq_4_strided_a) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(4)
.a_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_eq_4_subtile) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(4)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_eq_4_subtile_m) {
for (uint32_t m = 1; m <= 12; m++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(4)
.k(4)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_eq_4_subtile_n) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(4)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_lt_4) {
for (size_t k = 1; k < 4; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_lt_4_strided_a) {
for (size_t k = 1; k < 4; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.a_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_lt_4_subtile) {
for (size_t k = 1; k < 4; k++) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_gt_4) {
for (size_t k = 5; k < 8; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_gt_4_strided_a) {
for (size_t k = 5; k < 8; k++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.a_stride(11)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_gt_4_subtile) {
for (size_t k = 5; k < 8; k++) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_div_4) {
for (size_t k = 8; k <= 40; k += 4) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_div_4_strided_a) {
for (size_t k = 8; k <= 40; k += 4) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.a_stride(43)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, k_div_4_subtile) {
for (size_t k = 8; k <= 40; k += 4) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_gt_4) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_gt_4_strided_cn) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_gt_4_strided_a) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(k)
.a_stride(23)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_gt_4_subtile) {
for (uint32_t n = 5; n < 8; n++) {
for (size_t k = 1; k <= 20; k += 5) {
for (uint32_t m = 1; m <= 12; m++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_div_4) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(k)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_div_4_strided_cn) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(k)
.cn_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_div_4_strided_a) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 20; k += 5) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(n)
.k(k)
.a_stride(23)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, n_div_4_subtile) {
for (uint32_t n = 8; n <= 12; n += 4) {
for (size_t k = 1; k <= 20; k += 5) {
for (uint32_t m = 1; m <= 12; m++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, strided_cm_subtile) {
for (size_t k = 1; k <= 20; k += 5) {
for (uint32_t m = 1; m <= 12; m++) {
for (uint32_t n = 1; n <= 4; n++) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(m)
.n(n)
.k(k)
.cm_stride(7)
.iterations(1)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
}
}
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, qmin) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(4)
.qmin(128)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, qmax) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(4)
.qmax(128)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}
TEST(QS8_GEMM_MINMAX_12X4C4__SCALAR, strided_cm) {
GemmMicrokernelTester()
.mr(12)
.nr(4)
.kr(4)
.sr(1)
.m(12)
.n(4)
.k(4)
.cm_stride(7)
.Test(xnn_qs8_gemm_minmax_ukernel_12x4c4__scalar, GemmMicrokernelTester::Variant::Scalar);
}