Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import("gen/neonfp16_microkernels.bzl")
import("gen/neonfp16arith_aarch64_microkernels.bzl")
import("gen/neonfp16arith_microkernels.bzl")
import("gen/neoni8mm_microkernels.bzl")
import("gen/neoni8mmbf16_microkernels.bzl")
import("gen/neonsme2_microkernels.bzl")
import("gen/neonsme_microkernels.bzl")
import("gen/neonv8_microkernels.bzl")
Expand Down Expand Up @@ -551,6 +552,37 @@ if (current_cpu == "arm64") {
]
}

xnnpack_source_set("neon_i8mmbf16_microkernels") {
deps = [
":microkernel_defs",
":microkernel_headers",
]
if (xnnpack_enable_arm_kleidiai) {
deps += [ "//third_party/kleidiai" ]
}
sources = ALL_NEONI8MMBF16_MICROKERNEL_SRCS

cflags = [
"-Xclang",
"-target-feature",
"-Xclang",
"+i8mm",
"-Xclang",
"-target-feature",
"-Xclang",
"+fullfp16",
"-Xclang",
"-target-feature",
"-Xclang",
"+bf16",
"-Xclang",
"-target-feature",
"-Xclang",
"+dotprod",
]
cflags += [ "-march=armv8.2-a+bf16" ]
}

xnnpack_source_set("neon_aarch64_microkernels") {
deps = [
":microkernel_defs",
Expand Down Expand Up @@ -1011,6 +1043,7 @@ template("xnnpack_library") {
":neon_bf16_microkernels",
":neon_fullfp16_microkernels",
":neon_i8mm_microkernels",
":neon_i8mmbf16_microkernels",
]
if (xnnpack_enable_arm_dotprod) {
deps += [
Expand Down
Loading