44 _OPERATOR_SRCS = "OPERATOR_SRCS" ,
55 _SUBGRAPH_SRCS = "SUBGRAPH_SRCS" ,
66 _TABLE_SRCS = "TABLE_SRCS" ,
7- _XNNPACK_SRCS = "XNNPACK_SRCS" ,
7+ # _MICROKERNEL_DEFS = "MICROKERNEL_DEFS",
8+ # _MICROKERNEL_SRCS = "MICROKERNEL_SRCS",
89)
910load ("//backends/xnnpack/third-party/XNNPACK/gen:microkernels.bzl" , "prod_srcs_for_arch" )
1011load ("@fbsource//xplat/executorch/third-party:glob_defs.bzl" , "subdir_glob" )
1112
13+ _XNNPACK_SRCS = [
14+ "src/configs/argmaxpool-config.c" ,
15+ "src/configs/avgpool-config.c" ,
16+ "src/configs/binary-elementwise-config.c" ,
17+ "src/configs/cmul-config.c" ,
18+ "src/configs/conv-hwc2chw-config.c" ,
19+ "src/configs/dwconv-config.c" ,
20+ "src/configs/dwconv2d-chw-config.c" ,
21+ "src/configs/gemm-config.c" ,
22+ "src/configs/ibilinear-chw-config.c" ,
23+ "src/configs/ibilinear-config.c" ,
24+ "src/configs/lut32norm-config.c" ,
25+ "src/configs/maxpool-config.c" ,
26+ "src/configs/pack-lh-config.c" ,
27+ "src/configs/raddstoreexpminusmax-config.c" ,
28+ "src/configs/reduce-config.c" ,
29+ "src/configs/spmm-config.c" ,
30+ "src/configs/transpose-config.c" ,
31+ "src/configs/unary-elementwise-config.c" ,
32+ "src/configs/unpool-config.c" ,
33+ "src/configs/vmulcaddc-config.c" ,
34+ "src/configs/x8-lut-config.c" ,
35+ "src/configs/xx-fill-config.c" ,
36+ "src/configs/xx-pad-config.c" ,
37+ ]
38+
1239def define_xnnpack_build_src (xnnpack_build_src ):
1340 return ["XNNPACK/{}" .format (src ) for src in xnnpack_build_src ]
1441
@@ -18,10 +45,12 @@ def prod_srcs_for_arch_wrapper(arch):
1845
1946def get_xnnpack_headers ():
2047 src_headers = subdir_glob ([
21- ("XNNPACK/src" , "**/*.h" ),
48+ ("xnnpack/src" , "**/*.h" ),
49+ ("xnnpack/src" , "**/*.inc" ),
2250 ])
2351 include_headers = subdir_glob ([
2452 ("XNNPACK/include" , "*.h" ),
53+ ("XNNPACK/include" , "*.inc" ),
2554 ])
2655
2756 return src_headers | include_headers
@@ -31,3 +60,5 @@ SUBGRAPH_SRCS = define_xnnpack_build_src(_SUBGRAPH_SRCS)
3160TABLE_SRCS = define_xnnpack_build_src (_TABLE_SRCS )
3261XNNPACK_SRCS = define_xnnpack_build_src (_XNNPACK_SRCS )
3362LOGGING_SRCS = define_xnnpack_build_src (_LOGGING_SRCS )
63+ # MICROKERNEL_DEFS = define_xnnpack_build_src(_MICROKERNEL_DEFS)
64+ # MICROKERNEL_SRCS = define_xnnpack_build_src(_MICROKERNEL_SRCS)
0 commit comments