| 1 | // |
| 2 | // SPDX-FileCopyrightText: Copyright 2025-2026 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 3 | // |
| 4 | // SPDX-License-Identifier: Apache-2.0 |
| 5 | // |
| 6 | |
| 7 | // To date, only AArch64 has these 8-bit kernels. |
| 8 | #ifdef __aarch64__ |
| 9 | |
| 10 | #include "gemm-wrappers.hpp" |
| 11 | |
| 12 | #include "kai_ops_kernels.hpp" |
| 13 | #include "gemm_transpose.hpp" |
| 14 | |
| 15 | // gemm_u8_new - GEMM only |
| 16 | template void benchmark<gemm_u8_new, false, QuantizationType::NONE, false>(GemmProblem *, int, int, int, mapfn, const char *); |
| 17 | template void test<gemm_transposeB<uint8_t, uint32_t>, gemm_u8_new, false>(GemmProblem *, int, int, const char *, FILE *); |
| 18 | template void print_kernels<gemm_u8_new, false>(GemmProblem *, unsigned int); |
| 19 | |
| 20 | // gemm_u8_quant - requantizing (per layer) GEMM |
| 21 | template void benchmark<gemm_u8_quant, false, QuantizationType::INTEGER, false>(GemmProblem *, int, int, int, mapfn, const char *); |
| 22 | template void test_quantized<sgemm_new, gemm_u8_quant>(GemmProblem *, int, int, const char *, FILE *); |
| 23 | template void print_kernels<gemm_u8_quant, false>(GemmProblem *, unsigned int); |
| 24 | |
| 25 | template void benchmark<depthwise_u8q, false, QuantizationType::INTEGER, false>(GemmProblem *, int, int, int, mapfn, const char *); |
| 26 | template void benchmark<depthwise_u8q, false, QuantizationType::INTEGER, true>(GemmProblem *, int, int, int, mapfn, const char *); |
| 27 | template void test_quantized<depthwise_fp32, depthwise_u8q>(GemmProblem *, int, int, const char *, FILE *); |
| 28 | template void test_quantized<depthwise_fp32, depthwise_u8q, true>(GemmProblem *, int, int, const char *, FILE *); |
| 29 | template void print_kernels<depthwise_u8q, false>(GemmProblem *, unsigned int); |
| 30 | |
| 31 | #endif // aarch64 |