From 90cf96ad33f42ec8d733e15f0fc63a0fb08b74b2 Mon Sep 17 00:00:00 2001 From: Gregory James Comer Date: Wed, 21 Aug 2024 00:06:55 -0700 Subject: [PATCH] Use Google XNNPACK --- backends/xnnpack/third-party/XNNPACK | 2 +- backends/xnnpack/third-party/xnnpack.buck.bzl | 25 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/backends/xnnpack/third-party/XNNPACK b/backends/xnnpack/third-party/XNNPACK index 9bb33a6d17..87ee0b46b8 160000 --- a/backends/xnnpack/third-party/XNNPACK +++ b/backends/xnnpack/third-party/XNNPACK @@ -1 +1 @@ -Subproject commit 9bb33a6d17dfe3c6cc59d246626c01e829d02b9e +Subproject commit 87ee0b46b834f67bad9025d4a82ed5654f3403d3 diff --git a/backends/xnnpack/third-party/xnnpack.buck.bzl b/backends/xnnpack/third-party/xnnpack.buck.bzl index f4f4af6c5b..72a4169ec1 100644 --- a/backends/xnnpack/third-party/xnnpack.buck.bzl +++ b/backends/xnnpack/third-party/xnnpack.buck.bzl @@ -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", @@ -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", @@ -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", @@ -1189,7 +1166,6 @@ def define_xnnpack(): ] ARM_XNNPACK_DEPS = [ - ":jit_memory", ":ukernels_armsimd32", ":ukernels_fp16arith", ":ukernels_asm", @@ -1237,7 +1213,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",