Skip to content

Commit

Permalink
Use Google XNNPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryComer committed Aug 21, 2024
1 parent 4588e86 commit 1895baf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion backends/xnnpack/third-party/XNNPACK
Submodule XNNPACK updated 5475 files
26 changes: 0 additions & 26 deletions backends/xnnpack/third-party/xnnpack.buck.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
load("//third-party:glob_defs.bzl", "subdir_glob")
load(
":xnnpack_src_defs.bzl",
"JIT_SRCS",
"LOGGING_SRCS",
"OPERATOR_SRCS",
"SUBGRAPH_SRCS",
Expand Down Expand Up @@ -68,27 +67,6 @@ def define_xnnpack():
],
)

# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
native.cxx_library(
name = "jit_memory",
srcs = JIT_SRCS,
headers = subdir_glob([
("XNNPACK/src", "**/*.h"),
]),
header_namespace = "",
compiler_flags = [
"-std=c++17",
],
preferred_linkage = "static",
preprocessor_flags = [
"-DXNN_LOG_LEVEL=0",
],
exported_deps = [
":clog",
":interface",
],
)

# @lint-ignore BUCKLINT: native and fb_native are explicitly forbidden in fbcode.
native.cxx_library(
name = "operators",
Expand Down Expand Up @@ -138,7 +116,6 @@ def define_xnnpack():
preferred_linkage = "static",
preprocessor_flags = [
"-DXNN_LOG_LEVEL=0",
"-DXNN_ENABLE_JIT=0",
"-DXNN_ENABLE_SPARSE=0",
"-DXNN_ENABLE_GEMM_M_SPECIALIZATION=0",
"-DXNN_ENABLE_MEMOPT",
Expand Down Expand Up @@ -1189,7 +1166,6 @@ def define_xnnpack():
]

ARM_XNNPACK_DEPS = [
":jit_memory",
":ukernels_armsimd32",
":ukernels_fp16arith",
":ukernels_asm",
Expand All @@ -1212,7 +1188,6 @@ def define_xnnpack():
"XNNPACK/src/configs/hardware-config.c",
"XNNPACK/src/microparams-init.c",
"XNNPACK/src/operator-run.c",
"XNNPACK/src/operators/post-operation.c",
"XNNPACK/src/microkernel-utils.c",
],
headers = subdir_glob([
Expand All @@ -1237,7 +1212,6 @@ def define_xnnpack():
"-DXNN_NO_X8_OPERATORS",
"-DXNN_ENABLE_MEMOPT",
"-DXNN_ENABLE_SPARSE=0",
"-DXNN_ENABLE_JIT=0",
"-DXNN_ENABLE_ASSEMBLY",
"-DXNN_ENABLE_GEMM_M_SPECIALIZATION",
"-DXNN_ENABLE_ARM_DOTPROD",
Expand Down

0 comments on commit 1895baf

Please sign in to comment.