Elffuss BraidHub

kikocis/kleidiai public

main · 1.6 KiBRawPermalink
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
16template void benchmark<gemm_u8_new, false, QuantizationType::NONE, false>(GemmProblem *, int, int, int, mapfn, const char *);
17template void test<gemm_transposeB<uint8_t, uint32_t>, gemm_u8_new, false>(GemmProblem *, int, int, const char *, FILE *);
18template void print_kernels<gemm_u8_new, false>(GemmProblem *, unsigned int);
19
20// gemm_u8_quant - requantizing (per layer) GEMM
21template void benchmark<gemm_u8_quant, false, QuantizationType::INTEGER, false>(GemmProblem *, int, int, int, mapfn, const char *);
22template void test_quantized<sgemm_new, gemm_u8_quant>(GemmProblem *, int, int, const char *, FILE *);
23template void print_kernels<gemm_u8_quant, false>(GemmProblem *, unsigned int);
24
25template void benchmark<depthwise_u8q, false, QuantizationType::INTEGER, false>(GemmProblem *, int, int, int, mapfn, const char *);
26template void benchmark<depthwise_u8q, false, QuantizationType::INTEGER, true>(GemmProblem *, int, int, int, mapfn, const char *);
27template void test_quantized<depthwise_fp32, depthwise_u8q>(GemmProblem *, int, int, const char *, FILE *);
28template void test_quantized<depthwise_fp32, depthwise_u8q, true>(GemmProblem *, int, int, const char *, FILE *);
29template void print_kernels<depthwise_u8q, false>(GemmProblem *, unsigned int);
30
31#endif // aarch64