#ifndef CPU_AARCH64_BRGEMM_BRGEMM_UTILS_HPP
#define CPU_AARCH64_BRGEMM_BRGEMM_UTILS_HPP
#include "cpu/aarch64/brgemm/brgemm.hpp"
#include "cpu/aarch64/cpu_isa_traits.hpp"
#include "common/c_types_map.hpp"
namespace dnnl {
namespace impl {
namespace cpu {
namespace aarch64 {
status_t init_kernel_datatype(
brgemm_desc_t *brg, data_type_t dt_a, data_type_t dt_b);
namespace brgemm_utils {
bool can_dispatch_uker(const brgemm_desc_t *brg);
void maybe_try_bf32(brgemm_desc_t *brg);
status_t set_isa_impl(brgemm_desc_t *brg);
status_t brgemm_blocking(brgemm_desc_t *brg);
status_t brdgmm_blocking(brgemm_desc_t *brg);
status_t init_brgemm_conf(brgemm_desc_t *brg, cpu_isa_t isa,
brgemm_batch_kind_t type, impl::data_type_t dt_a,
impl::data_type_t dt_b, brgemm_layout_t layout, float alpha, float beta,
dim_t LDA, dim_t LDB, dim_t LDC, dim_t M, dim_t N, dim_t K,
const brgemm_strides_t *strides = nullptr, bool is_bf32 = false);
status_t init_brdgmm_conf(brgemm_desc_t *brg, cpu_isa_t isa,
brgemm_batch_kind_t type, impl::data_type_t dt_a,
impl::data_type_t dt_b, brgemm_layout_t layout, float alpha, float beta,
dim_t LDA, dim_t LDC, dim_t M, dim_t N,
const brgemm_strides_t *strides = nullptr);
}
} } } }
#endif