| 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 | #pragma once |
| 8 | |
| 9 | #include <cstddef> |
| 10 | |
| 11 | #include "depthwise_wrapper.hpp" |
| 12 | #include "kai/ops/bfloat.hpp" |
| 13 | #include "kai_ops_wrapper.hpp" |
| 14 | #include "winograd_wrapper.hpp" |
| 15 | |
| 16 | // FP types. |
| 17 | typedef kai_ops_wrapper<float, float, float> sgemm_new; |
| 18 | typedef kai_ops_wrapper<__fp16, __fp16, __fp16> hgemm_new; |
| 19 | typedef kai_ops_wrapper<bfloat16, bfloat16, float> gemm_bf16_new; |
| 20 | typedef kai_ops_wrapper<bfloat16, bfloat16, bfloat16> gemm_bf16bf16; |
| 21 | typedef kai_ops_wrapper<__fp16, __fp16, float> gemm_fp16fp32; |
| 22 | |
| 23 | typedef winograd_wrapper<float, float> winograd_fp32; |
| 24 | |
| 25 | #ifdef __aarch64__ |
| 26 | typedef winograd_wrapper<__fp16, __fp16> winograd_fp16; |
| 27 | |
| 28 | typedef depthwise_wrapper<float, float, float> depthwise_fp32; |
| 29 | typedef depthwise_wrapper<__fp16, __fp16, __fp16> depthwise_fp16; |
| 30 | |
| 31 | // FP64 is AArch64 only |
| 32 | typedef kai_ops_wrapper<double, double, double> dgemm_new; |
| 33 | |
| 34 | // int types (AArch64 only). |
| 35 | typedef kai_ops_wrapper<uint16_t, uint16_t, uint32_t> gemm_u16; |
| 36 | typedef kai_ops_wrapper<int16_t, int16_t, int32_t> gemm_s16; |
| 37 | typedef kai_ops_wrapper<uint8_t, uint8_t, uint32_t> gemm_u8_new; |
| 38 | typedef kai_ops_wrapper<int8_t, int8_t, int32_t> gemm_s8_new; |
| 39 | typedef kai_ops_wrapper<int8_t, int8_t, float, QuantizationType::FLOAT> gemm_s8fp32; |
| 40 | typedef kai_ops_wrapper<int8_t, int8_t, __fp16, QuantizationType::FLOAT> gemm_s8fp16; |
| 41 | typedef kai_ops_wrapper<uint8_t, int8_t, float, QuantizationType::FLOAT> gemm_u8s8fp32; |
| 42 | |
| 43 | typedef kai_ops_quantized<uint8_t, uint8_t, uint8_t> gemm_u8_quant; |
| 44 | typedef kai_ops_quantized<int8_t, int8_t, int8_t> gemm_s8_quant; |
| 45 | typedef kai_ops_quantized<uint8_t, int8_t, uint8_t> gemm_u8s8_quant; |
| 46 | |
| 47 | typedef depthwise_wrapper<int8_t, int8_t, int8_t, QuantizationType::INTEGER> depthwise_s8q; |
| 48 | typedef depthwise_wrapper<uint8_t, uint8_t, uint8_t, QuantizationType::INTEGER> depthwise_u8q; |
| 49 | #endif |