blob: 71bf4232c216d0b5c64aa668466d6d783d2f4cac [file] [log] [blame]
Marat Dukhan08c4a432019-10-03 09:29:21 -07001# Copyright 2019 Google LLC
2#
3# This source code is licensed under the BSD-style license found in the
4# LICENSE file in the root directory of this source tree.
5#
6# Description:
7# XNNPACK - optimized floating-point neural network operators library
8
Marat Dukhan10a38082020-04-17 03:58:35 -07009load(":build_defs.bzl", "xnnpack_aggregate_library", "xnnpack_benchmark", "xnnpack_binary", "xnnpack_cc_library", "xnnpack_gcc_std_copts", "xnnpack_min_size_copts", "xnnpack_msvc_std_copts", "xnnpack_optional_armcl_copts", "xnnpack_optional_armcl_deps", "xnnpack_optional_dnnl_copts", "xnnpack_optional_dnnl_deps", "xnnpack_optional_gemmlowp_copts", "xnnpack_optional_gemmlowp_deps", "xnnpack_optional_ruy_copts", "xnnpack_optional_ruy_deps", "xnnpack_optional_tflite_copts", "xnnpack_optional_tflite_deps", "xnnpack_std_cxxopts", "xnnpack_unit_test", "xnnpack_visibility")
Marat Dukhan69c3f2c2019-11-06 12:30:01 -080010
Marat Dukhan08c4a432019-10-03 09:29:21 -070011licenses(["notice"])
12
13exports_files(["LICENSE"])
14
Marat Dukhan1b354632020-03-23 12:50:22 -070015OPERATOR_BENCHMARK_DEPS = [
16 ":XNNPACK",
17 ":bench_utils",
18 "@cpuinfo",
19 "@pthreadpool",
20]
21
Marat Dukhan08c4a432019-10-03 09:29:21 -070022MICROKERNEL_BENCHMARK_DEPS = [
23 ":ukernels",
24 ":bench_utils",
Frank Barchard7e955972019-10-11 10:34:25 -070025 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070026 "@cpuinfo",
27 "@FP16",
28 "@pthreadpool",
29]
30
Marat Dukhan6adff4e2019-10-14 18:32:07 -070031ACCURACY_EVAL_DEPS = [
32 ":XNNPACK",
33 ":ukernels",
34 "@FP16",
35 "@pthreadpool",
36]
37
Marat Dukhan08c4a432019-10-03 09:29:21 -070038MICROKERNEL_TEST_DEPS = [
39 ":ukernels",
Frank Barchard7e955972019-10-11 10:34:25 -070040 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070041 "@cpuinfo",
42 "@FP16",
43 "@pthreadpool",
44]
45
Marat Dukhan1b354632020-03-23 12:50:22 -070046OPERATOR_TEST_DEPS = [
47 ":XNNPACK",
48 "@pthreadpool",
49 "@FP16",
50]
51
Marat Dukhan08c4a432019-10-03 09:29:21 -070052OPERATOR_SRCS = [
Marat Dukhanefc47b82019-11-18 09:25:38 -080053 "src/add-nc.c",
54 "src/argmax-pooling-nhwc.c",
55 "src/average-pooling-nhwc.c",
Marat Dukhanb1a0fc32019-12-02 19:32:02 -080056 "src/binary-elementwise-nd.c",
Marat Dukhanefc47b82019-11-18 09:25:38 -080057 "src/channel-pad-nc.c",
58 "src/channel-shuffle-nc.c",
59 "src/clamp-nc.c",
60 "src/convolution-nchw.c",
61 "src/convolution-nhwc.c",
62 "src/deconvolution-nhwc.c",
63 "src/fully-connected-nc.c",
64 "src/global-average-pooling-ncw.c",
65 "src/global-average-pooling-nwc.c",
66 "src/hardswish-nc.c",
67 "src/leaky-relu-nc.c",
68 "src/max-pooling-nhwc.c",
Marat Dukhanefc47b82019-11-18 09:25:38 -080069 "src/prelu-nc.c",
70 "src/resize-bilinear-nhwc.c",
71 "src/sigmoid-nc.c",
Marat Dukhanfd8e6892020-01-27 15:25:25 -080072 "src/softmax-nc.c",
Marat Dukhanefc47b82019-11-18 09:25:38 -080073 "src/unpooling-nhwc.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -070074]
75
Marat Dukhan3a77ea72019-12-23 12:10:24 -080076TABLE_SRCS = [
77 "src/tables/exp2-k-over-64.c",
78 "src/tables/exp2-k-over-2048.c",
79]
80
Marat Dukhan08c4a432019-10-03 09:29:21 -070081SCALAR_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -080082 "src/f32-argmaxpool/4x-scalar-c1.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -080083 "src/f32-argmaxpool/9p8x-scalar-c1.c",
Marat Dukhan329da642019-11-19 21:44:39 -080084 "src/f32-argmaxpool/9x-scalar-c1.c",
Marat Dukhan99936602020-04-11 16:47:01 -070085 "src/f32-avgpool/9p8x-minmax-scalar-c1.c",
86 "src/f32-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -070087 "src/f32-clamp/gen/scalar-x1.c",
88 "src/f32-clamp/gen/scalar-x2.c",
89 "src/f32-clamp/gen/scalar-x4.c",
Marat Dukhan441e2212019-12-04 18:30:49 -080090 "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c",
Marat Dukhan6b7dfae2019-12-04 16:00:52 -080091 "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c",
Erich Elsen563df5f2019-10-23 08:02:21 -070092 "src/f32-conv-hwc2spchw/3x3s2p1c3x4-scalar-1x1.c",
Erich Elsen0cc2c532019-10-15 04:44:18 -070093 "src/f32-dwconv-spchw/3x3p1-scalar.c",
Erich Elsenac4de802019-10-16 04:35:30 -070094 "src/f32-dwconv-spchw/3x3s2p1-scalar.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -080095 "src/f32-dwconv-spchw/5x5p2-scalar.c",
Erich Elsen38709a62019-11-08 11:58:45 -080096 "src/f32-dwconv-spchw/5x5s2p2-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -070097 "src/f32-dwconv/gen/up1x4-scalar-acc2.c",
98 "src/f32-dwconv/gen/up1x4-scalar.c",
99 "src/f32-dwconv/gen/up1x9-scalar-acc2.c",
100 "src/f32-dwconv/gen/up1x9-scalar.c",
101 "src/f32-dwconv/gen/up1x25-scalar-acc2.c",
102 "src/f32-dwconv/gen/up1x25-scalar.c",
103 "src/f32-dwconv/gen/up2x4-scalar-acc2.c",
104 "src/f32-dwconv/gen/up2x4-scalar.c",
105 "src/f32-dwconv/gen/up2x9-scalar-acc2.c",
106 "src/f32-dwconv/gen/up2x9-scalar.c",
107 "src/f32-dwconv/gen/up2x25-scalar-acc2.c",
108 "src/f32-dwconv/gen/up2x25-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700109 "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c",
110 "src/f32-dwconv/gen/up1x4-minmax-scalar.c",
111 "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c",
112 "src/f32-dwconv/gen/up1x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700113 "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c",
114 "src/f32-dwconv/gen/up1x25-minmax-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700115 "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c",
116 "src/f32-dwconv/gen/up2x4-minmax-scalar.c",
117 "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c",
118 "src/f32-dwconv/gen/up2x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700119 "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c",
120 "src/f32-dwconv/gen/up2x25-minmax-scalar.c",
Erich Elsen34dc2c02019-10-16 05:11:41 -0700121 "src/f32-gavgpool-spchw/scalar-x1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700122 "src/f32-gavgpool/7p7x-minmax-scalar-c1.c",
123 "src/f32-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700124 "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c",
125 "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c",
126 "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700127 "src/f32-gemm/gen/1x4-scalar.c",
128 "src/f32-gemm/gen/2x4-scalar.c",
129 "src/f32-gemm/gen/4x2-scalar.c",
130 "src/f32-gemm/gen/4x4-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700131 "src/f32-gemm/gen/1x4-minmax-scalar.c",
132 "src/f32-gemm/gen/2x4-minmax-scalar.c",
133 "src/f32-gemm/gen/4x2-minmax-scalar.c",
134 "src/f32-gemm/gen/4x4-minmax-scalar.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800135 "src/f32-hswish/gen/scalar-x1.c",
136 "src/f32-hswish/gen/scalar-x2.c",
137 "src/f32-hswish/gen/scalar-x4.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700138 "src/f32-ibilinear/gen/scalar-c1.c",
139 "src/f32-ibilinear/gen/scalar-c2.c",
140 "src/f32-ibilinear/gen/scalar-c4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700141 "src/f32-igemm/gen/1x4-scalar.c",
142 "src/f32-igemm/gen/2x4-scalar.c",
143 "src/f32-igemm/gen/4x2-scalar.c",
144 "src/f32-igemm/gen/4x4-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700145 "src/f32-igemm/gen/1x4-minmax-scalar.c",
146 "src/f32-igemm/gen/2x4-minmax-scalar.c",
147 "src/f32-igemm/gen/4x2-minmax-scalar.c",
148 "src/f32-igemm/gen/4x4-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700149 "src/f32-maxpool/9p8x-minmax-scalar-c1.c",
150 "src/f32-pavgpool/9p8x-minmax-scalar-c1.c",
151 "src/f32-pavgpool/9x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700152 "src/f32-ppmm/gen/2x4-minmax-scalar.c",
153 "src/f32-ppmm/gen/3x3-minmax-scalar.c",
154 "src/f32-ppmm/gen/4x2-minmax-scalar.c",
155 "src/f32-ppmm/gen/4x4-minmax-scalar.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800156 "src/f32-prelu/gen/scalar-2x1.c",
157 "src/f32-prelu/gen/scalar-2x4.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800158 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c",
159 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c",
160 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c",
161 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c",
162 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c",
163 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c",
164 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c",
165 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c",
166 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c",
167 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c",
168 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c",
169 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700170 "src/f32-rmax/scalar.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800171 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c",
172 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c",
173 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c",
174 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c",
175 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c",
176 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c",
177 "src/f32-sigmoid/gen/scalar-p5-div-x1.c",
178 "src/f32-sigmoid/gen/scalar-p5-div-x2.c",
179 "src/f32-sigmoid/gen/scalar-p5-div-x4.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700180 "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c",
181 "src/f32-spmm/gen/1x1-minmax-scalar.c",
182 "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c",
183 "src/f32-spmm/gen/2x1-minmax-scalar.c",
184 "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c",
185 "src/f32-spmm/gen/4x1-minmax-scalar.c",
186 "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c",
187 "src/f32-spmm/gen/8x1-minmax-scalar.c",
188 "src/f32-spmm/gen/8x2-minmax-scalar.c",
189 "src/f32-spmm/gen/8x4-minmax-scalar.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700190 "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c",
191 "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c",
192 "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c",
193 "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c",
194 "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c",
195 "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c",
196 "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c",
197 "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c",
198 "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c",
199 "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c",
200 "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c",
201 "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800202 "src/f32-vbinary/gen/vmax-scalar-x1.c",
203 "src/f32-vbinary/gen/vmax-scalar-x2.c",
204 "src/f32-vbinary/gen/vmax-scalar-x4.c",
205 "src/f32-vbinary/gen/vmaxc-scalar-x1.c",
206 "src/f32-vbinary/gen/vmaxc-scalar-x2.c",
207 "src/f32-vbinary/gen/vmaxc-scalar-x4.c",
208 "src/f32-vbinary/gen/vmin-scalar-x1.c",
209 "src/f32-vbinary/gen/vmin-scalar-x2.c",
210 "src/f32-vbinary/gen/vmin-scalar-x4.c",
211 "src/f32-vbinary/gen/vminc-scalar-x1.c",
212 "src/f32-vbinary/gen/vminc-scalar-x2.c",
213 "src/f32-vbinary/gen/vminc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700214 "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c",
215 "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c",
216 "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c",
217 "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c",
218 "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c",
219 "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c",
220 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c",
221 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c",
222 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c",
223 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c",
224 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c",
225 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c",
226 "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c",
227 "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c",
228 "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c",
229 "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c",
230 "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c",
231 "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700232 "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c",
233 "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c",
234 "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800235 "src/math/expminus-scalar-lut2048-p1.c",
236 "src/math/expminus-scalar-lut64-p2.c",
237 "src/math/expminus-scalar-p5.c",
238 "src/math/sigmoid-scalar-lut2048-p1-div.c",
239 "src/math/sigmoid-scalar-lut64-p2-div.c",
240 "src/math/sigmoid-scalar-p5-div.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700241 "src/q8-avgpool/9p8x-minmax-scalar-c1.c",
242 "src/q8-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700243 "src/q8-dwconv/up1x9-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700244 "src/q8-gavgpool/7p7x-minmax-scalar-c1.c",
245 "src/q8-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700246 "src/q8-gemm/2x2-minmax-scalar.c",
247 "src/q8-igemm/2x2-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700248 "src/q8-vadd/minmax-scalar.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700249 "src/u8-clamp/scalar-x4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700250 "src/u8-lut32norm/scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700251 "src/u8-maxpool/9p8x-minmax-scalar-c1.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700252 "src/u8-rmax/scalar.c",
253 "src/x32-packx/x2-scalar.c",
254 "src/x32-packx/x3-scalar.c",
255 "src/x32-packx/x4-scalar.c",
256 "src/x32-pad/x2-scalar.c",
257 "src/x32-unpool/scalar.c",
258 "src/x32-zip/x2-scalar.c",
259 "src/x32-zip/x3-scalar.c",
260 "src/x32-zip/x4-scalar.c",
261 "src/x32-zip/xm-scalar.c",
262 "src/x8-lut/scalar.c",
263 "src/x8-zip/x2-scalar.c",
264 "src/x8-zip/x3-scalar.c",
265 "src/x8-zip/x4-scalar.c",
266 "src/x8-zip/xm-scalar.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700267 "src/requantization/precise-scalar.c",
268 "src/requantization/fp32-scalar.c",
269 "src/requantization/q31-scalar.c",
270 "src/requantization/gemmlowp-scalar.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700271]
272
Marat Dukhan436ebe62019-12-04 15:10:12 -0800273WASM_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700274 "src/f32-avgpool/9p8x-minmax-wasm-c1.c",
275 "src/f32-avgpool/9x-minmax-wasm-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700276 "src/f32-clamp/gen/wasm-x1.c",
277 "src/f32-clamp/gen/wasm-x2.c",
278 "src/f32-clamp/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700279 "src/f32-dwconv/gen/up1x4-wasm-acc2.c",
280 "src/f32-dwconv/gen/up1x4-wasm.c",
281 "src/f32-dwconv/gen/up1x9-wasm-acc2.c",
282 "src/f32-dwconv/gen/up1x9-wasm.c",
283 "src/f32-dwconv/gen/up1x25-wasm-acc2.c",
284 "src/f32-dwconv/gen/up1x25-wasm.c",
285 "src/f32-dwconv/gen/up2x4-wasm-acc2.c",
286 "src/f32-dwconv/gen/up2x4-wasm.c",
287 "src/f32-dwconv/gen/up2x9-wasm-acc2.c",
288 "src/f32-dwconv/gen/up2x9-wasm.c",
289 "src/f32-dwconv/gen/up2x25-wasm-acc2.c",
290 "src/f32-dwconv/gen/up2x25-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700291 "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c",
292 "src/f32-dwconv/gen/up1x4-minmax-wasm.c",
293 "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c",
294 "src/f32-dwconv/gen/up1x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700295 "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c",
296 "src/f32-dwconv/gen/up1x25-minmax-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700297 "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c",
298 "src/f32-dwconv/gen/up2x4-minmax-wasm.c",
299 "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c",
300 "src/f32-dwconv/gen/up2x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700301 "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c",
302 "src/f32-dwconv/gen/up2x25-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700303 "src/f32-gavgpool/7p7x-minmax-wasm-c1.c",
304 "src/f32-gavgpool/7x-minmax-wasm-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700305 "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c",
306 "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c",
307 "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700308 "src/f32-gemm/gen/1x4-wasm.c",
309 "src/f32-gemm/gen/2x4-wasm.c",
310 "src/f32-gemm/gen/4x2-wasm.c",
311 "src/f32-gemm/gen/4x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700312 "src/f32-gemm/gen/1x4-minmax-wasm.c",
313 "src/f32-gemm/gen/2x4-minmax-wasm.c",
314 "src/f32-gemm/gen/4x2-minmax-wasm.c",
315 "src/f32-gemm/gen/4x4-minmax-wasm.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800316 "src/f32-hswish/gen/wasm-x1.c",
317 "src/f32-hswish/gen/wasm-x2.c",
318 "src/f32-hswish/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700319 "src/f32-igemm/gen/1x4-wasm.c",
320 "src/f32-igemm/gen/2x4-wasm.c",
321 "src/f32-igemm/gen/4x2-wasm.c",
322 "src/f32-igemm/gen/4x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700323 "src/f32-igemm/gen/1x4-minmax-wasm.c",
324 "src/f32-igemm/gen/2x4-minmax-wasm.c",
325 "src/f32-igemm/gen/4x2-minmax-wasm.c",
326 "src/f32-igemm/gen/4x4-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700327 "src/f32-maxpool/9p8x-minmax-wasm-c1.c",
328 "src/f32-pavgpool/9p8x-minmax-wasm-c1.c",
329 "src/f32-pavgpool/9x-minmax-wasm-c1.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700330 "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c",
331 "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c",
332 "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c",
333 "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c",
334 "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c",
335 "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c",
336 "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c",
337 "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c",
338 "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c",
339 "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c",
340 "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c",
341 "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800342 "src/f32-vbinary/gen/vmax-wasm-x1.c",
343 "src/f32-vbinary/gen/vmax-wasm-x2.c",
344 "src/f32-vbinary/gen/vmax-wasm-x4.c",
345 "src/f32-vbinary/gen/vmaxc-wasm-x1.c",
346 "src/f32-vbinary/gen/vmaxc-wasm-x2.c",
347 "src/f32-vbinary/gen/vmaxc-wasm-x4.c",
348 "src/f32-vbinary/gen/vmin-wasm-x1.c",
349 "src/f32-vbinary/gen/vmin-wasm-x2.c",
350 "src/f32-vbinary/gen/vmin-wasm-x4.c",
351 "src/f32-vbinary/gen/vminc-wasm-x1.c",
352 "src/f32-vbinary/gen/vminc-wasm-x2.c",
353 "src/f32-vbinary/gen/vminc-wasm-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700354 "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c",
355 "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c",
356 "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c",
357 "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c",
358 "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c",
359 "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c",
360 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c",
361 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c",
362 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c",
363 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c",
364 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c",
365 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c",
366 "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c",
367 "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c",
368 "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c",
369 "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c",
370 "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c",
371 "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700372 "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c",
373 "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c",
374 "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c",
Marat Dukhan436ebe62019-12-04 15:10:12 -0800375]
376
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800377PSIMD_FASTMATH_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -0800378 "src/f32-argmaxpool/4x-psimd-c4.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800379 "src/f32-argmaxpool/9p8x-psimd-c4.c",
Marat Dukhan329da642019-11-19 21:44:39 -0800380 "src/f32-argmaxpool/9x-psimd-c4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700381 "src/f32-avgpool/9p8x-minmax-psimd-c4.c",
382 "src/f32-avgpool/9x-minmax-psimd-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700383 "src/f32-clamp/gen/psimd-x4.c",
384 "src/f32-clamp/gen/psimd-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700385 "src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c",
386 "src/f32-dwconv/gen/up4x25-minmax-psimd.c",
387 "src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c",
388 "src/f32-dwconv/gen/up4x4-minmax-psimd.c",
389 "src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c",
390 "src/f32-dwconv/gen/up4x9-minmax-psimd.c",
391 "src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c",
392 "src/f32-dwconv/gen/up8x25-minmax-psimd.c",
393 "src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c",
394 "src/f32-dwconv/gen/up8x4-minmax-psimd.c",
395 "src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c",
396 "src/f32-dwconv/gen/up8x9-minmax-psimd.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700397 "src/f32-gavgpool/7p7x-minmax-psimd-c4.c",
398 "src/f32-gavgpool/7x-minmax-psimd-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700399 "src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c",
400 "src/f32-gemm/gen/1x8-minmax-psimd-splat.c",
401 "src/f32-gemm/gen/1x8s4-minmax-psimd.c",
402 "src/f32-gemm/gen/4x2c4-minmax-psimd.c",
403 "src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c",
404 "src/f32-gemm/gen/4x8-minmax-psimd-splat.c",
405 "src/f32-gemm/gen/4x8s4-minmax-psimd.c",
406 "src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c",
407 "src/f32-gemm/gen/6x8-minmax-psimd-splat.c",
408 "src/f32-gemm/gen/6x8s4-minmax-psimd.c",
409 "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c",
410 "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c",
411 "src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c",
412 "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c",
413 "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c",
414 "src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c",
415 "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c",
416 "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c",
417 "src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800418 "src/f32-hswish/gen/psimd-x4.c",
419 "src/f32-hswish/gen/psimd-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700420 "src/f32-ibilinear/gen/psimd-c4.c",
421 "src/f32-ibilinear/gen/psimd-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700422 "src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c",
423 "src/f32-igemm/gen/1x8-minmax-psimd-splat.c",
424 "src/f32-igemm/gen/1x8s4-minmax-psimd.c",
425 "src/f32-igemm/gen/4x2c4-minmax-psimd.c",
426 "src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c",
427 "src/f32-igemm/gen/4x8-minmax-psimd-splat.c",
428 "src/f32-igemm/gen/4x8s4-minmax-psimd.c",
429 "src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c",
430 "src/f32-igemm/gen/6x8-minmax-psimd-splat.c",
431 "src/f32-igemm/gen/6x8s4-minmax-psimd.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700432 "src/f32-maxpool/9p8x-minmax-psimd-c4.c",
433 "src/f32-pavgpool/9p8x-minmax-psimd-c4.c",
434 "src/f32-pavgpool/9x-minmax-psimd-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700435 "src/f32-ppmm/gen/4x8-minmax-psimd.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800436 "src/f32-prelu/gen/psimd-2x4.c",
437 "src/f32-prelu/gen/psimd-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -0800438 "src/f32-rmax/psimd.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700439 "src/f32-vbinary/gen/vadd-minmax-psimd-x4.c",
440 "src/f32-vbinary/gen/vadd-minmax-psimd-x8.c",
441 "src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c",
442 "src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c",
443 "src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c",
444 "src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c",
445 "src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c",
446 "src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800447 "src/f32-vbinary/gen/vmax-psimd-x4.c",
448 "src/f32-vbinary/gen/vmax-psimd-x8.c",
449 "src/f32-vbinary/gen/vmaxc-psimd-x4.c",
450 "src/f32-vbinary/gen/vmaxc-psimd-x8.c",
451 "src/f32-vbinary/gen/vmin-psimd-x4.c",
452 "src/f32-vbinary/gen/vmin-psimd-x8.c",
453 "src/f32-vbinary/gen/vminc-psimd-x4.c",
454 "src/f32-vbinary/gen/vminc-psimd-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700455 "src/f32-vbinary/gen/vmul-minmax-psimd-x4.c",
456 "src/f32-vbinary/gen/vmul-minmax-psimd-x8.c",
457 "src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c",
458 "src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c",
459 "src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c",
460 "src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c",
461 "src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c",
462 "src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c",
463 "src/f32-vbinary/gen/vsub-minmax-psimd-x4.c",
464 "src/f32-vbinary/gen/vsub-minmax-psimd-x8.c",
465 "src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c",
466 "src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700467 "src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c",
468 "src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700469 "src/x32-packx/x4-psimd.c",
470 "src/x32-pad/x2-psimd.c",
471 "src/x32-unpool/psimd.c",
472 "src/x32-zip/x2-psimd.c",
473 "src/x32-zip/x3-psimd.c",
474 "src/x32-zip/x4-psimd.c",
475 "src/x32-zip/xm-psimd.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700476 "src/requantization/precise-psimd.c",
477 "src/requantization/fp32-psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700478]
479
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800480PSIMD_ACCMATH_UKERNELS = [
Marat Dukhanb39689d2020-01-24 13:32:20 -0800481 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c",
482 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c",
483 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c",
484 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c",
485 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c",
486 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c",
487 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c",
488 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c",
489 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c",
490 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c",
491 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c",
492 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800493 "src/f32-sigmoid/gen/psimd-p5-div-x4.c",
494 "src/f32-sigmoid/gen/psimd-p5-div-x8.c",
495 "src/f32-sigmoid/gen/psimd-p5-div-x12.c",
496 "src/f32-sigmoid/gen/psimd-p5-div-x16.c",
497 "src/f32-sigmoid/gen/psimd-p5-div-x20.c",
498 "src/f32-sigmoid/gen/psimd-p5-div-x24.c",
499 "src/math/sigmoid-psimd-p5-div.c",
500]
501
Marat Dukhan08c4a432019-10-03 09:29:21 -0700502# ISA-specific micro-kernels
503NEON_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700504 "src/f32-avgpool/9p8x-minmax-neon-c4.c",
505 "src/f32-avgpool/9x-minmax-neon-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700506 "src/f32-clamp/gen/neon-x4.c",
507 "src/f32-clamp/gen/neon-x8.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700508 "src/f32-dwconv/gen/up4x4-minmax-neon.c",
509 "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c",
510 "src/f32-dwconv/gen/up8x4-minmax-neon.c",
511 "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700512 "src/f32-dwconv/gen/up4x9-minmax-neon.c",
513 "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c",
514 "src/f32-dwconv/gen/up8x9-minmax-neon.c",
515 "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700516 "src/f32-dwconv/gen/up4x25-minmax-neon.c",
517 "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c",
518 "src/f32-dwconv/gen/up8x25-minmax-neon.c",
519 "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700520 "src/f32-gavgpool-spchw/neon-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700521 "src/f32-gavgpool/7p7x-minmax-neon-c4.c",
522 "src/f32-gavgpool/7x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700523 "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c",
524 "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c",
525 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c",
526 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c",
527 "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c",
528 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c",
529 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c",
530 "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c",
531 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c",
532 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c",
533 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c",
534 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c",
535 "src/f32-gemm/gen/1x8s4-minmax-neon.c",
536 "src/f32-gemm/gen/4x8s4-minmax-neon.c",
537 "src/f32-gemm/gen/6x8s4-minmax-neon.c",
538 "src/f32-gemm/gen/8x8s4-minmax-neon.c",
539 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c",
540 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c",
541 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c",
542 "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c",
543 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c",
544 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c",
545 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c",
546 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c",
547 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c",
548 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c",
549 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c",
550 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c",
551 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c",
552 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c",
553 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800554 "src/f32-hswish/gen/neon-x4.c",
555 "src/f32-hswish/gen/neon-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700556 "src/f32-ibilinear/gen/neon-c4.c",
557 "src/f32-ibilinear/gen/neon-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700558 "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c",
559 "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c",
560 "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c",
561 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c",
562 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c",
563 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c",
564 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c",
565 "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c",
566 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c",
567 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c",
568 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c",
569 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c",
570 "src/f32-igemm/gen/1x8s4-minmax-neon.c",
571 "src/f32-igemm/gen/4x8s4-minmax-neon.c",
572 "src/f32-igemm/gen/6x8s4-minmax-neon.c",
573 "src/f32-igemm/gen/8x8s4-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700574 "src/f32-maxpool/9p8x-minmax-neon-c4.c",
575 "src/f32-pavgpool/9p8x-minmax-neon-c4.c",
576 "src/f32-pavgpool/9x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700577 "src/f32-ppmm/gen/4x8-minmax-neon.c",
578 "src/f32-ppmm/gen/8x8-minmax-neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800579 "src/f32-prelu/gen/neon-2x4.c",
580 "src/f32-prelu/gen/neon-2x8.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800581 "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c",
582 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c",
583 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c",
584 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c",
585 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c",
586 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c",
587 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c",
588 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c",
589 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c",
590 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c",
591 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c",
592 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c",
593 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c",
594 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c",
595 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c",
596 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c",
597 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c",
598 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c",
599 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c",
600 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c",
601 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c",
602 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c",
603 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c",
604 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700605 "src/f32-rmax/neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800606 "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -0800607 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c",
608 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c",
609 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c",
610 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c",
611 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c",
612 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c",
613 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c",
614 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c",
615 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c",
616 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c",
617 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c",
618 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c",
619 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c",
620 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c",
621 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c",
622 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c",
623 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c",
624 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700625 "src/f32-vbinary/gen/vadd-minmax-neon-x4.c",
626 "src/f32-vbinary/gen/vadd-minmax-neon-x8.c",
627 "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c",
628 "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800629 "src/f32-vbinary/gen/vmax-neon-x4.c",
630 "src/f32-vbinary/gen/vmax-neon-x8.c",
631 "src/f32-vbinary/gen/vmaxc-neon-x4.c",
632 "src/f32-vbinary/gen/vmaxc-neon-x8.c",
633 "src/f32-vbinary/gen/vmin-neon-x4.c",
634 "src/f32-vbinary/gen/vmin-neon-x8.c",
635 "src/f32-vbinary/gen/vminc-neon-x4.c",
636 "src/f32-vbinary/gen/vminc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700637 "src/f32-vbinary/gen/vmul-minmax-neon-x4.c",
638 "src/f32-vbinary/gen/vmul-minmax-neon-x8.c",
639 "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c",
640 "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c",
641 "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c",
642 "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c",
643 "src/f32-vbinary/gen/vsub-minmax-neon-x4.c",
644 "src/f32-vbinary/gen/vsub-minmax-neon-x8.c",
645 "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c",
646 "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700647 "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c",
648 "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c",
649 "src/q8-avgpool/9p8x-minmax-neon-c8.c",
650 "src/q8-avgpool/9x-minmax-neon-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700651 "src/q8-dwconv/up8x9-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700652 "src/q8-gavgpool/7p7x-minmax-neon-c8.c",
653 "src/q8-gavgpool/7x-minmax-neon-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700654 "src/q8-gemm/4x8-minmax-neon.c",
655 "src/q8-gemm/8x8-minmax-neon.c",
656 "src/q8-igemm/4x8-minmax-neon.c",
657 "src/q8-igemm/8x8-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700658 "src/q8-vadd/minmax-neon.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700659 "src/u8-clamp/neon-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700660 "src/u8-maxpool/9p8x-minmax-neon-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700661 "src/u8-rmax/neon.c",
662 "src/x32-packx/x4-neon-st4.c",
663 "src/x32-pad/x2-neon.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -0700664 "src/x32-unpool/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700665 "src/x32-zip/x2-neon.c",
666 "src/x32-zip/x3-neon.c",
667 "src/x32-zip/x4-neon.c",
668 "src/x32-zip/xm-neon.c",
669 "src/x8-zip/x2-neon.c",
670 "src/x8-zip/x3-neon.c",
671 "src/x8-zip/x4-neon.c",
672 "src/x8-zip/xm-neon.c",
Marat Dukhan68b3b452020-01-02 10:11:15 -0800673 "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -0800674 "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c",
675 "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c",
676 "src/math/sigmoid-neon-rr1-p5-nr2recps.c",
677 "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c",
678 "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c",
679 "src/math/sigmoid-neon-rr2-p5-nr2recps.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700680 "src/requantization/precise-neon.c",
681 "src/requantization/fp32-neon.c",
682 "src/requantization/q31-neon.c",
683 "src/requantization/gemmlowp-neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700684]
685
686NEONFMA_UKERNELS = [
Marat Dukhan660fd192020-03-10 04:55:30 -0700687 "src/f32-ibilinear/gen/neonfma-c4.c",
688 "src/f32-ibilinear/gen/neonfma-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700689 "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c",
690 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c",
691 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c",
692 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c",
693 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c",
694 "src/f32-igemm/gen/1x8s4-minmax-neonfma.c",
695 "src/f32-igemm/gen/4x8s4-minmax-neonfma.c",
696 "src/f32-igemm/gen/6x8s4-minmax-neonfma.c",
697 "src/f32-igemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700698 "src/f32-dwconv/gen/up4x4-minmax-neonfma.c",
699 "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c",
700 "src/f32-dwconv/gen/up8x4-minmax-neonfma.c",
701 "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700702 "src/f32-dwconv/gen/up4x9-minmax-neonfma.c",
703 "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c",
704 "src/f32-dwconv/gen/up8x9-minmax-neonfma.c",
705 "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700706 "src/f32-dwconv/gen/up4x25-minmax-neonfma.c",
707 "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c",
708 "src/f32-dwconv/gen/up8x25-minmax-neonfma.c",
709 "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700710 "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c",
711 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c",
712 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c",
713 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c",
714 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c",
715 "src/f32-gemm/gen/1x8s4-minmax-neonfma.c",
716 "src/f32-gemm/gen/4x8s4-minmax-neonfma.c",
717 "src/f32-gemm/gen/6x8s4-minmax-neonfma.c",
718 "src/f32-gemm/gen/8x8s4-minmax-neonfma.c",
719 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c",
720 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c",
721 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c",
722 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c",
723 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c",
724 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c",
725 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c",
726 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c",
727 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800728 "src/f32-hswish/gen/neonfma-x4.c",
729 "src/f32-hswish/gen/neonfma-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700730 "src/f32-ppmm/gen/4x8-minmax-neonfma.c",
731 "src/f32-ppmm/gen/8x8-minmax-neonfma.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800732 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c",
733 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c",
734 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c",
735 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c",
736 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c",
737 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c",
738 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c",
739 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c",
740 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c",
741 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c",
742 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c",
743 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c",
744 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c",
745 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c",
746 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c",
747 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c",
748 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c",
749 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c",
750 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c",
751 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c",
752 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c",
753 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c",
754 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c",
755 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -0800756 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c",
757 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c",
758 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c",
759 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c",
760 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c",
761 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c",
762 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c",
763 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c",
764 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c",
765 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c",
766 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c",
767 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c",
768 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c",
769 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c",
770 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c",
771 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c",
772 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c",
773 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c",
774 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c",
775 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c",
776 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c",
777 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c",
778 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c",
779 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c",
780 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c",
781 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c",
782 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c",
783 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c",
784 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c",
785 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c",
786 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c",
787 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c",
788 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c",
789 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c",
790 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c",
791 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c",
792 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c",
793 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c",
794 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c",
795 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c",
796 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c",
797 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c",
798 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c",
799 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c",
800 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c",
801 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c",
802 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c",
803 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c",
804 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c",
805 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c",
806 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c",
807 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c",
808 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c",
809 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700810 "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c",
811 "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c",
Marat Dukhan797a8fe2019-11-14 20:21:57 -0800812 "src/math/exp-neonfma-lut64-p2.c",
813 "src/math/exp-neonfma-p5.c",
Marat Dukhan189ae802019-11-26 11:28:44 -0800814 "src/math/expminus-neonfma-lut2048-p1.c",
815 "src/math/expminus-neonfma-lut64-p2.c",
Marat Dukhan346a9e52019-11-15 09:06:30 -0800816 "src/math/expminus-neonfma-p5.c",
Marat Dukhan77221d32020-01-06 10:04:39 -0800817 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c",
818 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c",
819 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c",
820 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c",
821 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c",
822 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c",
823 "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c",
824 "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c",
825 "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c",
826 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c",
827 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c",
828 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c",
829 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c",
830 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c",
831 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c",
832 "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c",
833 "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c",
834 "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700835]
836
837AARCH64_NEONFMA_UKERNELS = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700838 "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c",
839 "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c",
840 "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c",
841 "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c",
842 "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c",
843 "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700844 "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c",
845 "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c",
846 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c",
847 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c",
848 "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c",
849 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c",
850 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c",
851 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c",
852 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c",
853 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c",
854 "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c",
855 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c",
856 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c",
857 "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c",
858 "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c",
859 "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c",
860 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c",
861 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c",
862 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c",
863 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700864 "src/f32-conv-hwc/3x3s2p1c3x4-neonfma-2x2.c",
865 "src/f32-conv-hwc/3x3s2p1c3x8-neonfma-2x2.c",
866 "src/f32-conv-hwc2spchw/3x3s2p1c3x4-neonfma-2x2.c",
867 "src/f32-dwconv-spchw/3x3p1-neonfma.c",
868 "src/f32-dwconv-spchw/5x5p2-neonfma.c",
869 "src/f32-dwconv-spchw/3x3s2p1-neonfma.c",
870 "src/f32-dwconv-spchw/5x5s2p2-neonfma.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -0800871 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c",
872 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c",
873 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c",
874 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c",
875 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c",
876 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c",
877 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c",
878 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c",
879 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c",
880 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c",
881 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c",
882 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c",
883 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c",
884 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c",
885 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c",
886 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c",
887 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c",
888 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700889 "src/f32-spmm/gen/12x1-minmax-neonfma.c",
890 "src/f32-spmm/gen/12x2-minmax-neonfma.c",
891 "src/f32-spmm/gen/12x4-minmax-neonfma.c",
892 "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c",
893 "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c",
894 "src/f32-spmm/gen/16x1-minmax-neonfma.c",
895 "src/f32-spmm/gen/16x2-minmax-neonfma.c",
896 "src/f32-spmm/gen/16x4-minmax-neonfma.c",
897 "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c",
898 "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c",
899 "src/f32-spmm/gen/4x1-minmax-neonfma.c",
900 "src/f32-spmm/gen/4x2-minmax-neonfma.c",
901 "src/f32-spmm/gen/4x4-minmax-neonfma.c",
902 "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c",
903 "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c",
904 "src/f32-spmm/gen/8x1-minmax-neonfma.c",
905 "src/f32-spmm/gen/8x2-minmax-neonfma.c",
906 "src/f32-spmm/gen/8x4-minmax-neonfma.c",
Marat Dukhan77221d32020-01-06 10:04:39 -0800907 "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c",
908 "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c",
909 "src/math/sigmoid-neonfma-rr1-p5-div.c",
910 "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c",
911 "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c",
912 "src/math/sigmoid-neonfma-rr2-p5-div.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700913]
914
915AARCH64_NEONFP16ARITH_UKERNELS = [
Frank Barchard83ea9392020-04-20 20:15:14 -0700916 "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c",
917 "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c",
918 "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c",
919 "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c",
920 "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c",
921 "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c",
922 "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c",
923 "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700924 "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c",
925 "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c",
926 "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c",
927 "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c",
928 "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c",
929 "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c",
930 "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c",
931 "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700932]
933
934SSE_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700935 "src/f32-avgpool/9p8x-minmax-sse-c4.c",
936 "src/f32-avgpool/9x-minmax-sse-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700937 "src/f32-clamp/gen/sse-x4.c",
938 "src/f32-clamp/gen/sse-x8.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800939 "src/f32-dwconv-spchw/3x3p1-sse.c",
940 "src/f32-dwconv-spchw/3x3s2p1-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700941 "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c",
942 "src/f32-dwconv/gen/up4x25-minmax-sse.c",
943 "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c",
944 "src/f32-dwconv/gen/up4x4-minmax-sse.c",
945 "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c",
946 "src/f32-dwconv/gen/up4x9-minmax-sse.c",
947 "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c",
948 "src/f32-dwconv/gen/up8x25-minmax-sse.c",
949 "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c",
950 "src/f32-dwconv/gen/up8x4-minmax-sse.c",
951 "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c",
952 "src/f32-dwconv/gen/up8x9-minmax-sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700953 "src/f32-gavgpool-spchw/sse-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700954 "src/f32-gavgpool/7p7x-minmax-sse-c4.c",
955 "src/f32-gavgpool/7x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700956 "src/f32-gemm/gen/1x8-minmax-sse-dup.c",
957 "src/f32-gemm/gen/1x8-minmax-sse-load1.c",
958 "src/f32-gemm/gen/1x8s4-minmax-sse.c",
959 "src/f32-gemm/gen/4x2c4-minmax-sse.c",
960 "src/f32-gemm/gen/4x8-minmax-sse-dup.c",
961 "src/f32-gemm/gen/4x8-minmax-sse-load1.c",
962 "src/f32-gemm/gen/4x8s4-minmax-sse.c",
963 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c",
964 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c",
965 "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c",
966 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c",
967 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c",
968 "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800969 "src/f32-hswish/gen/sse-x4.c",
970 "src/f32-hswish/gen/sse-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700971 "src/f32-ibilinear/gen/sse-c4.c",
972 "src/f32-ibilinear/gen/sse-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700973 "src/f32-igemm/gen/1x8-minmax-sse-dup.c",
974 "src/f32-igemm/gen/1x8-minmax-sse-load1.c",
975 "src/f32-igemm/gen/1x8s4-minmax-sse.c",
976 "src/f32-igemm/gen/4x2c4-minmax-sse.c",
977 "src/f32-igemm/gen/4x8-minmax-sse-dup.c",
978 "src/f32-igemm/gen/4x8-minmax-sse-load1.c",
979 "src/f32-igemm/gen/4x8s4-minmax-sse.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700980 "src/f32-maxpool/9p8x-minmax-sse-c4.c",
981 "src/f32-pavgpool/9p8x-minmax-sse-c4.c",
982 "src/f32-pavgpool/9x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700983 "src/f32-ppmm/gen/4x8-minmax-sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700984 "src/f32-rmax/sse.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700985 "src/f32-spmm/gen/4x1-minmax-sse.c",
986 "src/f32-spmm/gen/8x1-minmax-sse.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700987 "src/f32-vbinary/gen/vadd-minmax-sse-x4.c",
988 "src/f32-vbinary/gen/vadd-minmax-sse-x8.c",
989 "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c",
990 "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c",
991 "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c",
992 "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c",
993 "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c",
994 "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800995 "src/f32-vbinary/gen/vmax-sse-x4.c",
996 "src/f32-vbinary/gen/vmax-sse-x8.c",
997 "src/f32-vbinary/gen/vmaxc-sse-x4.c",
998 "src/f32-vbinary/gen/vmaxc-sse-x8.c",
999 "src/f32-vbinary/gen/vmin-sse-x4.c",
1000 "src/f32-vbinary/gen/vmin-sse-x8.c",
1001 "src/f32-vbinary/gen/vminc-sse-x4.c",
1002 "src/f32-vbinary/gen/vminc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001003 "src/f32-vbinary/gen/vmul-minmax-sse-x4.c",
1004 "src/f32-vbinary/gen/vmul-minmax-sse-x8.c",
1005 "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c",
1006 "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c",
1007 "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c",
1008 "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c",
1009 "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c",
1010 "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c",
1011 "src/f32-vbinary/gen/vsub-minmax-sse-x4.c",
1012 "src/f32-vbinary/gen/vsub-minmax-sse-x8.c",
1013 "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c",
1014 "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001015 "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c",
1016 "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001017 "src/x32-packx/x4-sse.c",
1018]
1019
1020SSE2_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -08001021 "src/f32-argmaxpool/9p8x-sse2-c4.c",
1022 "src/f32-argmaxpool/4x-sse2-c4.c",
1023 "src/f32-argmaxpool/9x-sse2-c4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001024 "src/f32-prelu/gen/sse2-2x4.c",
1025 "src/f32-prelu/gen/sse2-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001026 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c",
1027 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c",
1028 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c",
1029 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c",
1030 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c",
1031 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c",
1032 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c",
1033 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c",
1034 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c",
1035 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c",
1036 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c",
1037 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001038 "src/f32-sigmoid/gen/sse2-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001039 "src/f32-sigmoid/gen/sse2-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001040 "src/f32-sigmoid/gen/sse2-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001041 "src/f32-sigmoid/gen/sse2-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001042 "src/f32-sigmoid/gen/sse2-p5-div-x20.c",
1043 "src/f32-sigmoid/gen/sse2-p5-div-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001044 "src/q8-avgpool/9p8x-minmax-sse2-c8.c",
1045 "src/q8-avgpool/9x-minmax-sse2-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001046 "src/q8-igemm/4x4c2-minmax-sse2.c",
1047 "src/q8-dwconv/up8x9-minmax-sse2.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001048 "src/q8-gavgpool/7p7x-minmax-sse2-c8.c",
1049 "src/q8-gavgpool/7x-minmax-sse2-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001050 "src/q8-gemm/2x4c8-minmax-sse2.c",
1051 "src/q8-gemm/4x4c2-minmax-sse2.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001052 "src/q8-vadd/minmax-sse2.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001053 "src/u8-clamp/sse2-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001054 "src/u8-maxpool/9p8x-minmax-sse2-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001055 "src/u8-rmax/sse2.c",
1056 "src/x32-pad/x2-sse2.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001057 "src/x32-unpool/sse2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001058 "src/x32-zip/x2-sse2.c",
1059 "src/x32-zip/x3-sse2.c",
1060 "src/x32-zip/x4-sse2.c",
1061 "src/x32-zip/xm-sse2.c",
1062 "src/x8-zip/x2-sse2.c",
1063 "src/x8-zip/x3-sse2.c",
1064 "src/x8-zip/x4-sse2.c",
1065 "src/x8-zip/xm-sse2.c",
Marat Dukhanffd68402019-11-15 15:19:11 -08001066 "src/math/exp-sse2-p5.c",
1067 "src/math/expminus-sse2-p5.c",
Marat Dukhan80bafd22019-11-18 10:16:01 -08001068 "src/math/sigmoid-sse2-p5-div.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001069 "src/requantization/precise-sse2.c",
1070 "src/requantization/fp32-sse2.c",
1071 "src/requantization/q31-sse2.c",
1072 "src/requantization/gemmlowp-sse2.c",
1073]
1074
1075SSSE3_UKERNELS = [
1076 "src/requantization/precise-ssse3.c",
1077 "src/requantization/q31-ssse3.c",
1078 "src/requantization/gemmlowp-ssse3.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001079]
1080
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001081SSE41_UKERNELS = [
Marat Dukhan40a672f2019-11-25 03:08:22 -08001082 "src/f32-prelu/gen/sse41-2x4.c",
1083 "src/f32-prelu/gen/sse41-2x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001084 "src/f32-sigmoid/gen/sse41-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001085 "src/f32-sigmoid/gen/sse41-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001086 "src/f32-sigmoid/gen/sse41-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001087 "src/f32-sigmoid/gen/sse41-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001088 "src/f32-sigmoid/gen/sse41-p5-div-x20.c",
1089 "src/f32-sigmoid/gen/sse41-p5-div-x24.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001090 "src/requantization/precise-sse4.c",
1091 "src/requantization/q31-sse4.c",
1092 "src/requantization/gemmlowp-sse4.c",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001093]
1094
Marat Dukhan08c4a432019-10-03 09:29:21 -07001095AVX_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001096 "src/f32-clamp/gen/avx-x8.c",
1097 "src/f32-clamp/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001098 "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c",
1099 "src/f32-dwconv/gen/up16x4-minmax-avx.c",
1100 "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c",
1101 "src/f32-dwconv/gen/up8x4-minmax-avx.c",
1102 "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c",
1103 "src/f32-dwconv/gen/up16x9-minmax-avx.c",
1104 "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c",
1105 "src/f32-dwconv/gen/up8x9-minmax-avx.c",
1106 "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c",
1107 "src/f32-dwconv/gen/up16x25-minmax-avx.c",
1108 "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c",
1109 "src/f32-dwconv/gen/up8x25-minmax-avx.c",
1110 "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c",
1111 "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c",
1112 "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c",
1113 "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c",
1114 "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c",
1115 "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c",
1116 "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c",
1117 "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c",
1118 "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c",
1119 "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c",
1120 "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c",
1121 "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c",
1122 "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c",
1123 "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c",
1124 "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c",
1125 "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c",
1126 "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c",
1127 "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001128 "src/f32-hswish/gen/avx-x8.c",
1129 "src/f32-hswish/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001130 "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c",
1131 "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c",
1132 "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c",
1133 "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c",
1134 "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c",
1135 "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c",
1136 "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c",
1137 "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c",
1138 "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001139 "src/f32-prelu/gen/avx-2x8.c",
1140 "src/f32-prelu/gen/avx-2x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001141 "src/f32-rmax/avx.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001142 "src/f32-vbinary/gen/vadd-minmax-avx-x8.c",
1143 "src/f32-vbinary/gen/vadd-minmax-avx-x16.c",
1144 "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c",
1145 "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c",
1146 "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c",
1147 "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c",
1148 "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c",
1149 "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001150 "src/f32-vbinary/gen/vmax-avx-x8.c",
1151 "src/f32-vbinary/gen/vmax-avx-x16.c",
1152 "src/f32-vbinary/gen/vmaxc-avx-x8.c",
1153 "src/f32-vbinary/gen/vmaxc-avx-x16.c",
1154 "src/f32-vbinary/gen/vmin-avx-x8.c",
1155 "src/f32-vbinary/gen/vmin-avx-x16.c",
1156 "src/f32-vbinary/gen/vminc-avx-x8.c",
1157 "src/f32-vbinary/gen/vminc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001158 "src/f32-vbinary/gen/vmul-minmax-avx-x8.c",
1159 "src/f32-vbinary/gen/vmul-minmax-avx-x16.c",
1160 "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c",
1161 "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c",
1162 "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c",
1163 "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c",
1164 "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c",
1165 "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c",
1166 "src/f32-vbinary/gen/vsub-minmax-avx-x8.c",
1167 "src/f32-vbinary/gen/vsub-minmax-avx-x16.c",
1168 "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c",
1169 "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001170 "src/f32-vscale/avx-unroll32.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001171]
1172
Marat Dukhanfda12b82019-11-21 12:27:59 -08001173FMA3_UKERNELS = [
Marat Dukhan1c587112020-04-08 20:04:28 -07001174 "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c",
1175 "src/f32-dwconv/gen/up16x4-minmax-fma3.c",
1176 "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c",
1177 "src/f32-dwconv/gen/up8x4-minmax-fma3.c",
1178 "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c",
1179 "src/f32-dwconv/gen/up16x9-minmax-fma3.c",
1180 "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c",
1181 "src/f32-dwconv/gen/up8x9-minmax-fma3.c",
1182 "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c",
1183 "src/f32-dwconv/gen/up16x25-minmax-fma3.c",
1184 "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c",
1185 "src/f32-dwconv/gen/up8x25-minmax-fma3.c",
1186 "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c",
1187 "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c",
1188 "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c",
1189 "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c",
1190 "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c",
1191 "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c",
1192 "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c",
1193 "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c",
1194 "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c",
1195 "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c",
1196 "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c",
1197 "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c",
1198 "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c",
1199 "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c",
1200 "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c",
1201 "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c",
1202 "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c",
1203 "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c",
1204 "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c",
1205 "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c",
1206 "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c",
1207 "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c",
1208 "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c",
1209 "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c",
1210 "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c",
1211 "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c",
1212 "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c",
1213 "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001214 "src/f32-hswish/gen/fma3-x8.c",
1215 "src/f32-hswish/gen/fma3-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001216 "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c",
1217 "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c",
1218 "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c",
1219 "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c",
1220 "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c",
1221 "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c",
1222 "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c",
1223 "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c",
1224 "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c",
1225 "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c",
1226 "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c",
1227 "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c",
1228 "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c",
1229 "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c",
Marat Dukhanfda12b82019-11-21 12:27:59 -08001230]
1231
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001232AVX2_UKERNELS = [
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001233 "src/f32-raddexpminusmax/gen/avx2-p5-x64.c",
1234 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c",
1235 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c",
1236 "src/f32-raddexpminusmax/gen/avx2-p5-x72.c",
1237 "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c",
1238 "src/f32-raddexpminusmax/gen/avx2-p5-x80.c",
1239 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c",
1240 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c",
1241 "src/f32-raddexpminusmax/gen/avx2-p5-x96.c",
1242 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c",
1243 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c",
1244 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c",
1245 "src/f32-raddextexp/gen/avx2-p5-x64.c",
1246 "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c",
1247 "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c",
1248 "src/f32-raddextexp/gen/avx2-p5-x72.c",
1249 "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c",
1250 "src/f32-raddextexp/gen/avx2-p5-x80.c",
1251 "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c",
1252 "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c",
1253 "src/f32-raddextexp/gen/avx2-p5-x96.c",
1254 "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c",
1255 "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c",
1256 "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c",
1257 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c",
1258 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c",
1259 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c",
1260 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c",
1261 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c",
1262 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c",
1263 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c",
1264 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c",
1265 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c",
1266 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c",
1267 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c",
1268 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c",
Marat Dukhanfa0a4322020-01-06 16:14:29 -08001269 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c",
1270 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c",
1271 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c",
1272 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c",
1273 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c",
1274 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c",
1275 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c",
1276 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c",
1277 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c",
1278 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c",
1279 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c",
1280 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c",
1281 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c",
1282 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c",
1283 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c",
1284 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c",
1285 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c",
1286 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c",
1287 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c",
1288 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c",
1289 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c",
1290 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c",
1291 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c",
1292 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c",
1293 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c",
1294 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c",
1295 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c",
1296 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c",
1297 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c",
1298 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001299 "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c",
1300 "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c",
1301 "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c",
1302 "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c",
1303 "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c",
1304 "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c",
1305 "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c",
1306 "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c",
1307 "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c",
1308 "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c",
1309 "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c",
1310 "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c",
1311 "src/f32-vscaleextexp/gen/avx2-p5-x8.c",
1312 "src/f32-vscaleextexp/gen/avx2-p5-x16.c",
1313 "src/f32-vscaleextexp/gen/avx2-p5-x24.c",
1314 "src/f32-vscaleextexp/gen/avx2-p5-x32.c",
1315 "src/f32-vscaleextexp/gen/avx2-p5-x40.c",
1316 "src/f32-vscaleextexp/gen/avx2-p5-x48.c",
1317 "src/f32-vscaleextexp/gen/avx2-p5-x56.c",
1318 "src/f32-vscaleextexp/gen/avx2-p5-x64.c",
1319 "src/f32-vscaleextexp/gen/avx2-p5-x72.c",
1320 "src/f32-vscaleextexp/gen/avx2-p5-x80.c",
1321 "src/f32-vscaleextexp/gen/avx2-p5-x88.c",
1322 "src/f32-vscaleextexp/gen/avx2-p5-x96.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001323 "src/math/exp-avx2-p5.c",
1324 "src/math/exp-avx2-perm-p3.c",
1325 "src/math/exp-avx2-perm-p4.c",
Marat Dukhan515c9772019-10-17 18:07:57 -07001326 "src/math/expminus-avx2-p5.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07001327 "src/math/extexp-avx2-p5.c",
Marat Dukhan72416002020-01-05 21:53:19 -08001328 "src/math/sigmoid-avx2-rr2-p5-div.c",
1329 "src/math/sigmoid-avx2-rr1-p5-div.c",
1330 "src/math/sigmoid-avx2-rr2-p5-nr2fma.c",
1331 "src/math/sigmoid-avx2-rr1-p5-nr2fma.c",
1332 "src/math/sigmoid-avx2-rr2-p5-nr1fma.c",
1333 "src/math/sigmoid-avx2-rr1-p5-nr1fma.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001334]
1335
Marat Dukhan08c4a432019-10-03 09:29:21 -07001336AVX512F_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001337 "src/f32-clamp/gen/avx512f-x16.c",
1338 "src/f32-clamp/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001339 "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c",
1340 "src/f32-dwconv/gen/up32x4-minmax-avx512f.c",
1341 "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c",
1342 "src/f32-dwconv/gen/up16x4-minmax-avx512f.c",
1343 "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c",
1344 "src/f32-dwconv/gen/up32x9-minmax-avx512f.c",
1345 "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c",
1346 "src/f32-dwconv/gen/up16x9-minmax-avx512f.c",
1347 "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c",
1348 "src/f32-dwconv/gen/up32x25-minmax-avx512f.c",
1349 "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c",
1350 "src/f32-dwconv/gen/up16x25-minmax-avx512f.c",
1351 "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c",
1352 "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c",
1353 "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c",
1354 "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c",
1355 "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c",
1356 "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c",
1357 "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c",
1358 "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c",
1359 "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c",
1360 "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c",
1361 "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c",
1362 "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001363 "src/f32-hswish/gen/avx512f-x16.c",
1364 "src/f32-hswish/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001365 "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c",
1366 "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c",
1367 "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c",
1368 "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c",
1369 "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c",
1370 "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001371 "src/f32-prelu/gen/avx512f-2x16.c",
1372 "src/f32-prelu/gen/avx512f-2x32.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001373 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c",
1374 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
1375 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
1376 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c",
1377 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
1378 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c",
1379 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
1380 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
1381 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c",
1382 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
1383 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
1384 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
1385 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c",
1386 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c",
1387 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c",
1388 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c",
1389 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c",
1390 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c",
1391 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c",
1392 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c",
1393 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c",
1394 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c",
1395 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c",
1396 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c",
1397 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c",
1398 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
1399 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
1400 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c",
1401 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
1402 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c",
1403 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
1404 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
1405 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c",
1406 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
1407 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
1408 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001409 "src/f32-rmax/avx512f.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001410 "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c",
1411 "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c",
1412 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c",
1413 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c",
1414 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c",
1415 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c",
1416 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c",
1417 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001418 "src/f32-vbinary/gen/vmax-avx512f-x16.c",
1419 "src/f32-vbinary/gen/vmax-avx512f-x32.c",
1420 "src/f32-vbinary/gen/vmaxc-avx512f-x16.c",
1421 "src/f32-vbinary/gen/vmaxc-avx512f-x32.c",
1422 "src/f32-vbinary/gen/vmin-avx512f-x16.c",
1423 "src/f32-vbinary/gen/vmin-avx512f-x32.c",
1424 "src/f32-vbinary/gen/vminc-avx512f-x16.c",
1425 "src/f32-vbinary/gen/vminc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001426 "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c",
1427 "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c",
1428 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c",
1429 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c",
1430 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c",
1431 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c",
1432 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c",
1433 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c",
1434 "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c",
1435 "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c",
1436 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c",
1437 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001438 "src/f32-vscale/avx512f-unroll64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001439 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c",
1440 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c",
1441 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c",
1442 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c",
1443 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c",
1444 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c",
1445 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c",
1446 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c",
1447 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c",
1448 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c",
1449 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c",
1450 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c",
1451 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c",
1452 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c",
1453 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c",
1454 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c",
1455 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c",
1456 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c",
1457 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c",
1458 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c",
1459 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c",
1460 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c",
1461 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c",
1462 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001463 "src/math/exp-avx512f-p5-scalef.c",
1464 "src/math/exp-avx512f-p5.c",
1465 "src/math/exp-avx512f-perm-p3.c",
Marat Dukhanfeb49232019-10-28 11:03:31 -07001466 "src/math/exp-avx512f-perm2-p2.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07001467 "src/math/extexp-avx512f-p5.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001468]
1469
1470AARCH32_ASM_UKERNELS = [
Marat Dukhande06f492020-04-09 00:19:31 -07001471 "src/q8-dwconv/up8x9-minmax-aarch32-neon.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001472 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S",
1473 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S",
1474 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
1475 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
1476 "src/f32-gemm/4x8-minmax-aarch32-neon-ld64.S",
1477 "src/f32-igemm/4x8-minmax-aarch32-neon-ld64.S",
1478 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
1479 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
1480 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S",
1481 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001482]
1483
1484AARCH64_ASM_UKERNELS = [
Frank Barchard36b76b62020-04-10 12:39:17 -07001485 "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07001486 "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S",
1487 "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard36b76b62020-04-10 12:39:17 -07001488 "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07001489 "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S",
1490 "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07001491 "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S",
1492 "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S",
1493 "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07001494 "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07001495 "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S",
1496 "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S",
1497 "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07001498 "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001499 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S",
1500 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07001501 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001502 "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S",
1503 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S",
1504 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
1505 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
1506 "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S",
1507 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S",
1508 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S",
1509 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
1510 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
1511 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S",
1512 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S",
1513 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
1514 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
1515 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S",
1516 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S",
1517 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S",
1518 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
1519 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
1520 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ios.S",
1521 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S",
1522 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07001523 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001524 "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S",
1525 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S",
1526 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1527 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1528 "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S",
1529 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S",
1530 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S",
1531 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1532 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1533 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S",
1534 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S",
1535 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1536 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1537 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S",
1538 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S",
1539 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S",
1540 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1541 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1542 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ios.S",
1543 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S",
1544 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S",
1545 "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S",
1546 "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S",
1547 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
1548 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
1549 "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S",
1550 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S",
1551 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S",
1552 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
1553 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
1554 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
1555 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
1556 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S",
1557 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S",
1558 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S",
1559 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
1560 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
1561 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-ios.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001562]
1563
Marat Dukhan1b354632020-03-23 12:50:22 -07001564INTERNAL_MICROKERNEL_HDRS = [
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001565 "src/requantization/gemmlowp-requantization.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001566 "src/xnnpack/argmaxpool.h",
1567 "src/xnnpack/avgpool.h",
1568 "src/xnnpack/clamp.h",
1569 "src/xnnpack/common.h",
1570 "src/xnnpack/conv.h",
1571 "src/xnnpack/dwconv.h",
1572 "src/xnnpack/gavgpool.h",
1573 "src/xnnpack/gemm.h",
1574 "src/xnnpack/hswish.h",
Marat Dukhan660fd192020-03-10 04:55:30 -07001575 "src/xnnpack/ibilinear.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001576 "src/xnnpack/igemm.h",
Marat Dukhancfb31342019-12-05 10:42:57 -08001577 "src/xnnpack/intrinsics-polyfill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001578 "src/xnnpack/lut.h",
1579 "src/xnnpack/math.h",
1580 "src/xnnpack/maxpool.h",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001581 "src/xnnpack/memory.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001582 "src/xnnpack/packx.h",
1583 "src/xnnpack/pad.h",
1584 "src/xnnpack/params.h",
1585 "src/xnnpack/pavgpool.h",
1586 "src/xnnpack/ppmm.h",
1587 "src/xnnpack/prelu.h",
Marat Dukhan97579532019-10-18 16:40:39 -07001588 "src/xnnpack/raddexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07001589 "src/xnnpack/raddextexp.h",
Marat Dukhan97579532019-10-18 16:40:39 -07001590 "src/xnnpack/raddstoreexpminusmax.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001591 "src/xnnpack/rmax.h",
1592 "src/xnnpack/scalar-utils.h",
1593 "src/xnnpack/spmm.h",
1594 "src/xnnpack/unpool.h",
1595 "src/xnnpack/vadd.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08001596 "src/xnnpack/vbinary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001597 "src/xnnpack/vmulcaddc.h",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001598 "src/xnnpack/vscale.h",
Marat Dukhan97579532019-10-18 16:40:39 -07001599 "src/xnnpack/vscaleexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07001600 "src/xnnpack/vscaleextexp.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08001601 "src/xnnpack/vunary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001602 "src/xnnpack/zip.h",
Marat Dukhan1b354632020-03-23 12:50:22 -07001603]
1604
1605INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001606 "include/xnnpack.h",
1607 "src/xnnpack/allocator.h",
1608 "src/xnnpack/compute.h",
1609 "src/xnnpack/im2col.h",
1610 "src/xnnpack/indirection.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001611 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001612 "src/xnnpack/operator.h",
1613 "src/xnnpack/pack.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07001614 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001615 "src/xnnpack/requantization-stubs.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001616 "src/xnnpack/requantization.h",
Marat Dukhan1d75a542020-02-03 12:23:01 -08001617 "src/xnnpack/subgraph.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001618]
1619
Marat Dukhan1b354632020-03-23 12:50:22 -07001620ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001621 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001622]
1623
Marat Dukhan1b354632020-03-23 12:50:22 -07001624MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07001625 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001626 "include/xnnpack.h",
1627]
1628
Marat Dukhan1b354632020-03-23 12:50:22 -07001629MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001630 "src/xnnpack/isa-checks.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07001631 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001632 "src/xnnpack/requantization.h",
1633 "include/xnnpack.h",
1634]
1635
1636OPERATOR_TEST_PARAMS_HDRS = [
1637 "src/xnnpack/params.h",
1638 "src/xnnpack/common.h",
1639]
1640
1641WEIGHTS_PACK_HDRS = [
1642 "src/xnnpack/pack.h",
1643 "src/xnnpack/operator.h",
1644 "src/xnnpack/compute.h",
1645]
1646
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07001647LOGGING_COPTS = select({
1648 # No logging in optimized mode
1649 ":optimized_build": ["-DXNN_LOG_LEVEL=0"],
1650 # Full logging in debug mode
1651 ":debug_build": ["-DXNN_LOG_LEVEL=5"],
1652 # Error-only logging in default (fastbuild) mode
1653 "//conditions:default": ["-DXNN_LOG_LEVEL=2"],
1654})
1655
1656LOGGING_HDRS = [
1657 "src/xnnpack/log.h",
1658]
1659
Marat Dukhan08c4a432019-10-03 09:29:21 -07001660xnnpack_cc_library(
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001661 name = "tables",
1662 srcs = TABLE_SRCS,
1663 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001664 gcc_copts = xnnpack_gcc_std_copts(),
1665 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001666)
1667
1668xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001669 name = "scalar_ukernels",
1670 srcs = SCALAR_UKERNELS,
1671 hdrs = INTERNAL_HDRS,
1672 aarch32_copts = ["-marm"],
Marat Dukhan10a38082020-04-17 03:58:35 -07001673 gcc_copts = xnnpack_gcc_std_copts(),
1674 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001675 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001676 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001677 "@FP16",
1678 "@FXdiv",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001679 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001680 ],
1681)
1682
1683xnnpack_cc_library(
Marat Dukhan436ebe62019-12-04 15:10:12 -08001684 name = "wasm_ukernels",
1685 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001686 gcc_copts = xnnpack_gcc_std_copts(),
1687 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan436ebe62019-12-04 15:10:12 -08001688 wasm_srcs = WASM_UKERNELS,
1689 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001690 ":tables",
Marat Dukhan436ebe62019-12-04 15:10:12 -08001691 "@FP16",
1692 "@FXdiv",
1693 "@pthreadpool",
1694 ],
1695)
1696
1697xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001698 name = "psimd_fastmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001699 hdrs = INTERNAL_HDRS,
1700 aarch32_copts = [
1701 "-marm",
1702 "-mfpu=neon",
1703 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07001704 gcc_copts = xnnpack_gcc_std_copts(),
1705 gcc_x86_copts = ["-msse2"],
1706 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001707 optimized_copts = [
1708 "-O3",
1709 "-ffast-math",
1710 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07001711 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07001712 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001713 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001714 "@FP16",
1715 "@psimd",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001716 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001717 ],
1718)
1719
1720xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001721 name = "psimd_accmath_ukernels",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001722 hdrs = INTERNAL_HDRS,
1723 aarch32_copts = [
1724 "-marm",
1725 "-mfpu=neon",
1726 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07001727 gcc_copts = xnnpack_gcc_std_copts(),
1728 gcc_x86_copts = ["-msse2"],
1729 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001730 optimized_copts = [
1731 "-O3",
1732 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07001733 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001734 deps = [
1735 ":tables",
1736 "@FP16",
1737 "@psimd",
1738 "@pthreadpool",
1739 ],
1740)
1741
1742xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001743 name = "neon_ukernels",
1744 hdrs = INTERNAL_HDRS,
1745 aarch32_copts = [
1746 "-marm",
1747 "-mfpu=neon",
1748 ],
1749 aarch32_srcs = NEON_UKERNELS,
1750 aarch64_srcs = NEON_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001751 gcc_copts = xnnpack_gcc_std_copts(),
1752 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08001753 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001754 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001755 "@FP16",
1756 "@pthreadpool",
1757 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001758)
1759
1760xnnpack_cc_library(
1761 name = "neonfma_ukernels",
1762 hdrs = INTERNAL_HDRS,
1763 aarch32_copts = [
1764 "-marm",
1765 "-mfpu=neon-vfpv4",
1766 ],
1767 aarch32_srcs = NEONFMA_UKERNELS,
1768 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001769 gcc_copts = xnnpack_gcc_std_copts(),
1770 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08001771 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001772 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001773 "@FP16",
1774 "@pthreadpool",
1775 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001776)
1777
1778xnnpack_cc_library(
1779 name = "neonfp16arith_ukernels",
1780 hdrs = INTERNAL_HDRS,
1781 aarch64_copts = ["-march=armv8.2-a+fp16"],
1782 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001783 gcc_copts = xnnpack_gcc_std_copts(),
1784 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08001785 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001786 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001787 "@FP16",
1788 "@pthreadpool",
1789 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001790)
1791
1792xnnpack_cc_library(
1793 name = "sse2_ukernels",
1794 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001795 gcc_copts = xnnpack_gcc_std_copts(),
1796 gcc_x86_copts = ["-msse2"],
1797 msvc_copts = xnnpack_msvc_std_copts(),
1798 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001799 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08001800 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001801 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001802 "@FP16",
1803 "@pthreadpool",
1804 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001805)
1806
1807xnnpack_cc_library(
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001808 name = "ssse3_ukernels",
1809 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001810 gcc_copts = xnnpack_gcc_std_copts(),
1811 gcc_x86_copts = ["-mssse3"],
1812 msvc_copts = xnnpack_msvc_std_copts(),
1813 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001814 x86_srcs = SSSE3_UKERNELS,
1815 deps = [
1816 ":tables",
1817 "@FP16",
1818 "@pthreadpool",
1819 ],
1820)
1821
1822xnnpack_cc_library(
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001823 name = "sse41_ukernels",
1824 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001825 gcc_copts = xnnpack_gcc_std_copts(),
1826 gcc_x86_copts = ["-msse4.1"],
1827 msvc_copts = xnnpack_msvc_std_copts(),
1828 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001829 x86_srcs = SSE41_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08001830 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001831 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001832 "@FP16",
1833 "@pthreadpool",
1834 ],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001835)
1836
1837xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001838 name = "avx_ukernels",
1839 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001840 gcc_copts = xnnpack_gcc_std_copts(),
1841 gcc_x86_copts = ["-mavx"],
1842 msvc_copts = xnnpack_msvc_std_copts(),
1843 msvc_x86_32_copts = ["/arch:AVX"],
1844 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001845 x86_srcs = AVX_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08001846 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001847 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001848 "@FP16",
1849 "@pthreadpool",
1850 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001851)
1852
1853xnnpack_cc_library(
Marat Dukhanfda12b82019-11-21 12:27:59 -08001854 name = "fma3_ukernels",
1855 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001856 gcc_copts = xnnpack_gcc_std_copts(),
1857 gcc_x86_copts = ["-mfma"],
1858 msvc_copts = xnnpack_msvc_std_copts(),
1859 msvc_x86_32_copts = ["/arch:AVX"],
1860 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhanfda12b82019-11-21 12:27:59 -08001861 x86_srcs = FMA3_UKERNELS,
1862 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001863 ":tables",
Marat Dukhanfda12b82019-11-21 12:27:59 -08001864 "@FP16",
1865 "@pthreadpool",
1866 ],
1867)
1868
1869xnnpack_cc_library(
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001870 name = "avx2_ukernels",
1871 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001872 gcc_copts = xnnpack_gcc_std_copts(),
1873 gcc_x86_copts = [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001874 "-mfma",
1875 "-mavx2",
1876 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07001877 msvc_copts = xnnpack_msvc_std_copts(),
1878 msvc_x86_32_copts = ["/arch:AVX2"],
1879 msvc_x86_64_copts = ["/arch:AVX2"],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001880 x86_srcs = AVX2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08001881 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001882 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001883 "@FP16",
1884 "@pthreadpool",
1885 ],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001886)
1887
1888xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001889 name = "avx512f_ukernels",
1890 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001891 gcc_copts = xnnpack_gcc_std_copts(),
1892 gcc_x86_copts = ["-mavx512f"],
1893 mingw_copts = ["-fno-asynchronous-unwind-tables"],
1894 msvc_copts = xnnpack_msvc_std_copts(),
1895 msvc_x86_32_copts = ["/arch:AVX512"],
1896 msvc_x86_64_copts = ["/arch:AVX512"],
1897 msys_copts = ["-fno-asynchronous-unwind-tables"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001898 x86_srcs = AVX512F_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08001899 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001900 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001901 "@FP16",
1902 "@pthreadpool",
1903 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001904)
1905
1906xnnpack_cc_library(
1907 name = "asm_ukernels",
1908 hdrs = ["src/xnnpack/assembly.h"],
1909 aarch32_srcs = AARCH32_ASM_UKERNELS,
Frank Barchard683f5592020-04-10 00:48:26 -07001910 aarch64_copts = ["-march=armv8.2-a+fp16"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001911 aarch64_srcs = AARCH64_ASM_UKERNELS,
1912)
1913
1914xnnpack_aggregate_library(
1915 name = "ukernels",
1916 aarch32_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001917 ":neon_ukernels",
1918 ":neonfma_ukernels",
1919 ":asm_ukernels",
1920 ],
1921 aarch64_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001922 ":neon_ukernels",
1923 ":neonfma_ukernels",
1924 ":neonfp16arith_ukernels",
1925 ":asm_ukernels",
1926 ],
1927 generic_deps = [":scalar_ukernels"],
Marat Dukhan500b8892020-04-15 17:09:50 -07001928 psimd_deps = [
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001929 ":psimd_fastmath_ukernels",
1930 ":psimd_accmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001931 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07001932 wasm_deps = [":wasm_ukernels"],
1933 wasmsimd_deps = [":wasm_ukernels"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001934 x86_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001935 ":sse2_ukernels",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001936 ":ssse3_ukernels",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001937 ":sse41_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001938 ":avx_ukernels",
Marat Dukhanfda12b82019-11-21 12:27:59 -08001939 ":fma3_ukernels",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001940 ":avx2_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001941 ":avx512f_ukernels",
1942 ],
1943)
1944
1945xnnpack_cc_library(
1946 name = "im2col",
1947 srcs = ["src/im2col.c"],
1948 hdrs = [
1949 "src/xnnpack/common.h",
1950 "src/xnnpack/im2col.h",
1951 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07001952 gcc_copts = xnnpack_gcc_std_copts(),
1953 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001954)
1955
1956xnnpack_cc_library(
1957 name = "indirection",
1958 srcs = ["src/indirection.c"],
1959 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001960 gcc_copts = xnnpack_gcc_std_copts(),
1961 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001962 deps = [
1963 "@FP16",
1964 "@FXdiv",
1965 "@pthreadpool",
1966 ],
1967)
1968
1969xnnpack_cc_library(
1970 name = "operator_run",
1971 srcs = ["src/operator-run.c"],
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07001972 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001973 copts = LOGGING_COPTS + select({
Marat Dukhan05702cf2020-03-26 15:41:33 -07001974 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
1975 "//conditions:default": [],
1976 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07001977 gcc_copts = xnnpack_gcc_std_copts(),
1978 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001979 deps = [
1980 "@FP16",
1981 "@FXdiv",
1982 "@clog",
1983 "@pthreadpool",
1984 ],
1985)
1986
1987cc_library(
1988 name = "enable_assembly",
1989 defines = select({
1990 ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"],
1991 ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"],
Frank Barchard810171d2019-10-10 10:34:51 -07001992 "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001993 }),
1994)
1995
Marat Dukhancf056b22019-10-07 10:26:29 -07001996xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001997 name = "operators",
1998 srcs = OPERATOR_SRCS + [
Marat Dukhan04f03be2019-11-19 12:36:47 -08001999 "src/memory.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002000 "src/operator-delete.c",
Marat Dukhancf056b22019-10-07 10:26:29 -07002001 ],
2002 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002003 copts = LOGGING_COPTS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002004 "-Isrc",
2005 "-Iinclude",
2006 ] + select({
2007 ":debug_build": [],
2008 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07002009 }) + select({
2010 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2011 "//conditions:default": [],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002012 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07002013 gcc_copts = xnnpack_gcc_std_copts(),
2014 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhancf056b22019-10-07 10:26:29 -07002015 wasm_srcs = ["src/wasm-stubs.c"],
2016 wasmsimd_srcs = ["src/wasm-stubs.c"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002017 deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002018 ":indirection",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002019 "@FP16",
2020 "@FXdiv",
2021 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002022 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002023 ],
2024)
2025
Marat Dukhan10a38082020-04-17 03:58:35 -07002026xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002027 name = "XNNPACK",
2028 srcs = [
2029 "src/init.c",
Marat Dukhanccfdbd12020-02-03 14:27:45 -08002030 "src/runtime.c",
2031 "src/subgraph.c",
2032 "src/tensor.c",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002033 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002034 hdrs = ["include/xnnpack.h"],
2035 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002036 "-Isrc",
2037 "-Iinclude",
2038 ] + select({
2039 ":debug_build": [],
2040 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07002041 }) + select({
2042 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2043 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002044 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07002045 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002046 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002047 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002048 visibility = xnnpack_visibility(),
2049 deps = [
2050 ":enable_assembly",
2051 ":ukernels",
2052 ":operator_run",
2053 ":operators",
2054 "@clog",
2055 "@pthreadpool",
Marat Dukhand343c222019-10-07 09:22:14 -07002056 ] + select({
2057 ":emscripten": [],
2058 "//conditions:default": ["@cpuinfo"],
2059 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002060)
2061
Marat Dukhan10a38082020-04-17 03:58:35 -07002062xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002063 name = "xnnpack_operators_nhwc_f32",
2064 srcs = [
2065 "src/init.c",
2066 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002067 hdrs = ["include/xnnpack.h"],
2068 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002069 "-Isrc",
2070 "-Iinclude",
2071 ] + select({
2072 ":debug_build": [],
2073 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07002074 }) + select({
2075 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2076 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002077 }),
2078 defines = [
2079 "XNN_NO_Q8_OPERATORS",
2080 "XNN_NO_U8_OPERATORS",
2081 "XNN_NO_X8_OPERATORS",
Marat Dukhanefc47b82019-11-18 09:25:38 -08002082 "XNN_NO_NCHW_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002083 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002084 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002085 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002086 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002087 visibility = xnnpack_visibility(),
2088 deps = [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002089 ":enable_assembly",
2090 ":ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002091 ":operator_run",
2092 ":operators",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002093 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002094 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002095 ] + select({
2096 ":emscripten": [],
2097 "//conditions:default": ["@cpuinfo"],
2098 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002099)
2100
Marat Dukhancf056b22019-10-07 10:26:29 -07002101xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002102 name = "bench_utils",
2103 srcs = ["bench/utils.cc"],
2104 hdrs = ["bench/utils.h"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002105 gcc_copts = ["-Wno-unused-result"],
Marat Dukhanbad48fe2019-11-04 10:35:22 -08002106 deps = [
2107 "@com_google_benchmark//:benchmark",
2108 "@cpuinfo",
2109 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002110)
2111
Frank Barchard7e955972019-10-11 10:34:25 -07002112######################### Benchmarks for micro-kernels #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07002113
2114xnnpack_benchmark(
2115 name = "q8_gemm_bench",
2116 srcs = [
2117 "bench/gemm.h",
2118 "bench/q8-gemm.cc",
2119 "src/xnnpack/AlignedAllocator.h",
2120 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002121 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
2122 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002123 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
2124)
2125
2126xnnpack_benchmark(
2127 name = "f16_gemm_bench",
2128 srcs = [
2129 "bench/f16-gemm.cc",
2130 "bench/gemm.h",
2131 "src/xnnpack/AlignedAllocator.h",
2132 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002133 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002134 deps = MICROKERNEL_BENCHMARK_DEPS,
2135)
2136
2137xnnpack_benchmark(
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002138 name = "f16_spmm_bench",
2139 srcs = [
2140 "bench/f16-spmm.cc",
2141 "bench/gemm.h",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002142 "src/xnnpack/AlignedAllocator.h",
2143 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002144 gcc_copts = ["-Wno-unused-function"],
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002145 deps = MICROKERNEL_BENCHMARK_DEPS,
2146)
2147
2148xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002149 name = "f32_igemm_bench",
2150 srcs = [
2151 "bench/f32-igemm.cc",
2152 "bench/conv.h",
2153 "src/xnnpack/AlignedAllocator.h",
2154 ] + MICROKERNEL_BENCHMARK_HDRS,
Frank Barchard7e955972019-10-11 10:34:25 -07002155 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002156)
2157
2158xnnpack_benchmark(
2159 name = "f32_conv_hwc_bench",
2160 srcs = [
2161 "bench/f32-conv-hwc.cc",
2162 "bench/dconv.h",
2163 "src/xnnpack/AlignedAllocator.h",
2164 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002165 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002166 deps = MICROKERNEL_BENCHMARK_DEPS,
2167)
2168
2169xnnpack_benchmark(
Erich Elsen563df5f2019-10-23 08:02:21 -07002170 name = "f32_conv_hwc2spchw_bench",
2171 srcs = [
2172 "bench/f32-conv-hwc2spchw.cc",
2173 "bench/dconv.h",
2174 "src/xnnpack/AlignedAllocator.h",
2175 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002176 gcc_copts = ["-Wno-unused-function"],
Erich Elsen563df5f2019-10-23 08:02:21 -07002177 deps = MICROKERNEL_BENCHMARK_DEPS,
2178)
2179
2180xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002181 name = "f32_dwconv_bench",
2182 srcs = [
2183 "bench/f32-dwconv.cc",
2184 "bench/dwconv.h",
2185 "src/xnnpack/AlignedAllocator.h",
2186 ] + MICROKERNEL_BENCHMARK_HDRS,
2187 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
2188)
2189
2190xnnpack_benchmark(
2191 name = "f32_dwconv_spchw_bench",
2192 srcs = [
2193 "bench/f32-dwconv-spchw.cc",
2194 "bench/dwconv.h",
2195 "src/xnnpack/AlignedAllocator.h",
2196 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
2197 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
2198)
2199
2200xnnpack_benchmark(
2201 name = "f32_gemm_bench",
2202 srcs = [
2203 "bench/f32-gemm.cc",
2204 "bench/gemm.h",
2205 "src/xnnpack/AlignedAllocator.h",
2206 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002207 copts = xnnpack_optional_ruy_copts(),
2208 gcc_copts = ["-Wno-unused-function"],
Frank Barchard7e955972019-10-11 10:34:25 -07002209 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002210)
2211
2212xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002213 name = "f32_raddexpminusmax_bench",
2214 srcs = [
2215 "bench/f32-raddexpminusmax.cc",
2216 "src/xnnpack/AlignedAllocator.h",
2217 ] + MICROKERNEL_BENCHMARK_HDRS,
2218 deps = MICROKERNEL_BENCHMARK_DEPS,
2219)
2220
2221xnnpack_benchmark(
2222 name = "f32_raddextexp_bench",
2223 srcs = [
2224 "bench/f32-raddextexp.cc",
2225 "src/xnnpack/AlignedAllocator.h",
2226 ] + MICROKERNEL_BENCHMARK_HDRS,
2227 deps = MICROKERNEL_BENCHMARK_DEPS,
2228)
2229
2230xnnpack_benchmark(
2231 name = "f32_raddstoreexpminusmax_bench",
2232 srcs = [
2233 "bench/f32-raddstoreexpminusmax.cc",
2234 "src/xnnpack/AlignedAllocator.h",
2235 ] + MICROKERNEL_BENCHMARK_HDRS,
2236 deps = MICROKERNEL_BENCHMARK_DEPS,
2237)
2238
2239xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002240 name = "f32_rmax_bench",
2241 srcs = [
2242 "bench/f32-rmax.cc",
2243 "src/xnnpack/AlignedAllocator.h",
2244 ] + MICROKERNEL_BENCHMARK_HDRS,
2245 deps = MICROKERNEL_BENCHMARK_DEPS,
2246)
2247
2248xnnpack_benchmark(
Marat Dukhan14bec502019-11-18 11:35:31 -08002249 name = "f32_sigmoid_bench",
2250 srcs = [
2251 "bench/f32-sigmoid.cc",
2252 "src/xnnpack/AlignedAllocator.h",
2253 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002254 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan14bec502019-11-18 11:35:31 -08002255 deps = MICROKERNEL_BENCHMARK_DEPS,
2256)
2257
2258xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002259 name = "f32_spmm_bench",
2260 srcs = [
2261 "bench/f32-spmm.cc",
2262 "bench/gemm.h",
2263 "src/xnnpack/AlignedAllocator.h",
2264 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002265 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002266 deps = MICROKERNEL_BENCHMARK_DEPS,
2267)
2268
2269xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002270 name = "f32_softmax_bench",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07002271 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002272 "bench/f32-softmax.cc",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07002273 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002274 copts = xnnpack_optional_dnnl_copts(),
2275 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan8d3c6932020-03-06 20:27:27 -08002276 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(),
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07002277)
2278
2279xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002280 name = "f32_vscaleexpminusmax_bench",
2281 srcs = [
2282 "bench/f32-vscaleexpminusmax.cc",
2283 "src/xnnpack/AlignedAllocator.h",
2284 ] + MICROKERNEL_BENCHMARK_HDRS,
2285 deps = MICROKERNEL_BENCHMARK_DEPS,
2286)
2287
2288xnnpack_benchmark(
2289 name = "f32_vscaleextexp_bench",
2290 srcs = [
2291 "bench/f32-vscaleextexp.cc",
2292 "src/xnnpack/AlignedAllocator.h",
2293 ] + MICROKERNEL_BENCHMARK_HDRS,
2294 deps = MICROKERNEL_BENCHMARK_DEPS,
2295)
2296
2297xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002298 name = "f32_im2col_gemm_bench",
2299 srcs = [
2300 "bench/f32-im2col-gemm.cc",
2301 "bench/conv.h",
2302 "src/xnnpack/AlignedAllocator.h",
2303 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
2304 deps = MICROKERNEL_BENCHMARK_DEPS + [":im2col"],
2305)
2306
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002307xnnpack_benchmark(
2308 name = "requantization_bench",
2309 srcs = [
2310 "bench/requantization.cc",
2311 "src/xnnpack/requantization-stubs.h",
2312 "src/xnnpack/AlignedAllocator.h",
2313 ] + MICROKERNEL_BENCHMARK_HDRS,
2314 deps = MICROKERNEL_BENCHMARK_DEPS,
2315)
2316
Marat Dukhan08c4a432019-10-03 09:29:21 -07002317########################### Benchmarks for operators ###########################
2318
2319xnnpack_benchmark(
2320 name = "add_bench",
2321 srcs = ["bench/add.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002322 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002323)
2324
2325xnnpack_benchmark(
2326 name = "average_pooling_bench",
2327 srcs = ["bench/average-pooling.cc"],
Marat Dukhan7a16d8b2020-03-11 04:22:44 -07002328 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07002329 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002330 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002331)
2332
2333xnnpack_benchmark(
2334 name = "channel_shuffle_bench",
2335 srcs = ["bench/channel-shuffle.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002336 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002337)
2338
2339xnnpack_benchmark(
2340 name = "convolution_bench",
2341 srcs = ["bench/convolution.cc"],
2342 copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07002343 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002344 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002345)
2346
2347xnnpack_benchmark(
2348 name = "deconvolution_bench",
2349 srcs = ["bench/deconvolution.cc"],
2350 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07002351 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002352 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002353)
2354
2355xnnpack_benchmark(
2356 name = "global_average_pooling_bench",
2357 srcs = ["bench/global-average-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002358 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002359)
2360
2361xnnpack_benchmark(
2362 name = "max_pooling_bench",
2363 srcs = ["bench/max-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002364 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002365)
2366
2367xnnpack_benchmark(
2368 name = "sigmoid_bench",
2369 srcs = ["bench/sigmoid.cc"],
Marat Dukhanc3b9e862019-11-17 13:18:54 -08002370 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07002371 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002372 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002373)
2374
2375xnnpack_benchmark(
Marat Dukhan95b22432019-10-30 16:30:14 -07002376 name = "prelu_bench",
2377 srcs = ["bench/prelu.cc"],
2378 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07002379 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002380 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan95b22432019-10-30 16:30:14 -07002381)
2382
2383xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002384 name = "softmax_bench",
2385 srcs = ["bench/softmax.cc"],
Marat Dukhan9c0db962020-01-28 12:30:14 -08002386 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07002387 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002388 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002389)
2390
Marat Dukhanc068bb62019-10-04 13:24:39 -07002391############################# End-to-end benchmarks ############################
2392
2393cc_library(
2394 name = "mobilenet_v1",
2395 srcs = ["models/mobilenet-v1.cc"],
2396 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08002397 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07002398 linkstatic = True,
2399 deps = [
2400 ":XNNPACK",
2401 "@pthreadpool",
2402 ],
2403)
2404
2405cc_library(
2406 name = "mobilenet_v2",
2407 srcs = ["models/mobilenet-v2.cc"],
2408 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08002409 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07002410 linkstatic = True,
2411 deps = [
2412 ":XNNPACK",
2413 "@pthreadpool",
2414 ],
2415)
2416
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002417cc_library(
2418 name = "mobilenet_v3_large",
2419 srcs = ["models/mobilenet-v3-large.cc"],
2420 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08002421 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002422 linkstatic = True,
2423 deps = [
2424 ":XNNPACK",
2425 "@pthreadpool",
2426 ],
2427)
2428
2429cc_library(
2430 name = "mobilenet_v3_small",
2431 srcs = ["models/mobilenet-v3-small.cc"],
2432 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08002433 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002434 linkstatic = True,
2435 deps = [
2436 ":XNNPACK",
2437 "@pthreadpool",
2438 ],
2439)
2440
Marat Dukhanc068bb62019-10-04 13:24:39 -07002441xnnpack_benchmark(
Marat Dukhanef4416e2019-10-31 13:44:40 -07002442 name = "f32_dwconv_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002443 srcs = [
2444 "bench/f32-dwconv-e2e.cc",
2445 "bench/end2end.h",
2446 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002447 gcc_copts = ["-Wno-unused-function"],
Marat Dukhanef4416e2019-10-31 13:44:40 -07002448 deps = MICROKERNEL_BENCHMARK_DEPS + [
2449 ":XNNPACK",
2450 ":mobilenet_v1",
2451 ":mobilenet_v2",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002452 ":mobilenet_v3_large",
2453 ":mobilenet_v3_small",
Marat Dukhanef4416e2019-10-31 13:44:40 -07002454 ],
2455)
2456
2457xnnpack_benchmark(
Marat Dukhan5f18d262019-10-31 10:24:14 -07002458 name = "f32_gemm_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002459 srcs = [
2460 "bench/f32-gemm-e2e.cc",
2461 "bench/end2end.h",
2462 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002463 gcc_copts = ["-Wno-unused-function"],
Marat Dukhan5f18d262019-10-31 10:24:14 -07002464 deps = MICROKERNEL_BENCHMARK_DEPS + [
2465 ":XNNPACK",
2466 ":mobilenet_v1",
2467 ":mobilenet_v2",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002468 ":mobilenet_v3_large",
2469 ":mobilenet_v3_small",
Marat Dukhan5f18d262019-10-31 10:24:14 -07002470 ],
2471)
2472
2473xnnpack_benchmark(
Marat Dukhanc068bb62019-10-04 13:24:39 -07002474 name = "end2end_bench",
2475 srcs = ["bench/end2end.cc"],
2476 deps = [
2477 ":XNNPACK",
Frank Barchardc712fa42019-10-31 14:00:21 -07002478 ":bench_utils",
Marat Dukhanc068bb62019-10-04 13:24:39 -07002479 ":mobilenet_v1",
2480 ":mobilenet_v2",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002481 ":mobilenet_v3_large",
2482 ":mobilenet_v3_small",
Marat Dukhanc068bb62019-10-04 13:24:39 -07002483 "@pthreadpool",
2484 ],
2485)
2486
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002487#################### Accuracy evaluation for math functions ####################
2488
2489xnnpack_benchmark(
2490 name = "f32_exp_eval",
2491 srcs = [
2492 "eval/f32-exp.cc",
2493 "src/xnnpack/AlignedAllocator.h",
2494 ] + ACCURACY_EVAL_HDRS,
2495 deps = ACCURACY_EVAL_DEPS,
2496)
2497
Marat Dukhan515c9772019-10-17 18:07:57 -07002498xnnpack_benchmark(
2499 name = "f32_expminus_eval",
2500 srcs = [
2501 "eval/f32-expminus.cc",
2502 "src/xnnpack/AlignedAllocator.h",
2503 ] + ACCURACY_EVAL_HDRS,
2504 deps = ACCURACY_EVAL_DEPS,
2505)
2506
Marat Dukhan98ba4412019-10-23 02:14:28 -07002507xnnpack_benchmark(
2508 name = "f32_extexp_eval",
2509 srcs = [
2510 "eval/f32-extexp.cc",
2511 "src/xnnpack/AlignedAllocator.h",
2512 ] + ACCURACY_EVAL_HDRS,
2513 deps = ACCURACY_EVAL_DEPS,
2514)
2515
Marat Dukhan346a9e52019-11-15 09:06:30 -08002516xnnpack_benchmark(
2517 name = "f32_sigmoid_eval",
2518 srcs = [
2519 "eval/f32-sigmoid.cc",
2520 "src/xnnpack/AlignedAllocator.h",
2521 ] + ACCURACY_EVAL_HDRS,
2522 deps = ACCURACY_EVAL_DEPS,
2523)
2524
Marat Dukhan08c4a432019-10-03 09:29:21 -07002525######################### Unit tests for micro-kernels #########################
2526
2527xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07002528 name = "f16_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002529 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07002530 "test/f16-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002531 "test/gemm-microkernel-tester.h",
2532 "src/xnnpack/AlignedAllocator.h",
2533 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2534 deps = MICROKERNEL_TEST_DEPS,
2535)
2536
2537xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07002538 name = "f16_spmm_minmax_test",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002539 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07002540 "test/f16-spmm-minmax.cc",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002541 "test/spmm-microkernel-tester.h",
2542 "src/xnnpack/AlignedAllocator.h",
2543 ] + MICROKERNEL_TEST_HDRS,
2544 deps = MICROKERNEL_TEST_DEPS,
2545)
2546
2547xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002548 name = "f32_argmaxpool_test",
2549 srcs = [
2550 "test/f32-argmaxpool.cc",
2551 "test/argmaxpool-microkernel-tester.h",
2552 "src/xnnpack/AlignedAllocator.h",
2553 ] + MICROKERNEL_TEST_HDRS,
2554 deps = MICROKERNEL_TEST_DEPS,
2555)
2556
2557xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07002558 name = "f32_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002559 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07002560 "test/f32-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002561 "test/avgpool-microkernel-tester.h",
2562 "src/xnnpack/AlignedAllocator.h",
2563 ] + MICROKERNEL_TEST_HDRS,
2564 deps = MICROKERNEL_TEST_DEPS,
2565)
2566
2567xnnpack_unit_test(
Marat Dukhan660fd192020-03-10 04:55:30 -07002568 name = "f32_ibilinear_test",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08002569 srcs = [
Marat Dukhan660fd192020-03-10 04:55:30 -07002570 "test/f32-ibilinear.cc",
2571 "test/ibilinear-microkernel-tester.h",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08002572 "src/xnnpack/AlignedAllocator.h",
2573 ] + MICROKERNEL_TEST_HDRS,
2574 deps = MICROKERNEL_TEST_DEPS,
2575)
2576
2577xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002578 name = "f32_clamp_test",
2579 srcs = [
2580 "test/f32-clamp.cc",
2581 "test/clamp-microkernel-tester.h",
2582 ] + MICROKERNEL_TEST_HDRS,
2583 deps = MICROKERNEL_TEST_DEPS,
2584)
2585
2586xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07002587 name = "f32_igemm_test",
2588 srcs = [
2589 "test/f32-igemm.cc",
2590 "test/gemm-microkernel-tester.h",
2591 "src/xnnpack/AlignedAllocator.h",
2592 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2593 deps = MICROKERNEL_TEST_DEPS,
2594)
2595
2596xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07002597 name = "f32_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002598 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07002599 "test/f32-igemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002600 "test/gemm-microkernel-tester.h",
2601 "src/xnnpack/AlignedAllocator.h",
2602 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002603 # Work-around for "too many sections" error
2604 mingw_copts = ["-Wa,-mbig-obj"],
2605 msys_copts = ["-Wa,-mbig-obj"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002606 deps = MICROKERNEL_TEST_DEPS,
2607)
2608
2609xnnpack_unit_test(
2610 name = "f32_conv_hwc_test",
2611 srcs = [
2612 "test/f32-conv-hwc.cc",
2613 "test/conv-hwc-microkernel-tester.h",
2614 "src/xnnpack/AlignedAllocator.h",
2615 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2616 deps = MICROKERNEL_TEST_DEPS,
2617)
2618
2619xnnpack_unit_test(
2620 name = "f32_conv_hwc2spchw_test",
2621 srcs = [
2622 "test/f32-conv-hwc2spchw.cc",
2623 "test/conv-hwc2spchw-microkernel-tester.h",
2624 "src/xnnpack/AlignedAllocator.h",
2625 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2626 deps = MICROKERNEL_TEST_DEPS,
2627)
2628
2629xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07002630 name = "f32_dwconv_test",
2631 srcs = [
2632 "test/f32-dwconv.cc",
2633 "test/dwconv-microkernel-tester.h",
2634 "src/xnnpack/AlignedAllocator.h",
2635 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2636 deps = MICROKERNEL_TEST_DEPS,
2637)
2638
2639xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07002640 name = "f32_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002641 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07002642 "test/f32-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002643 "test/dwconv-microkernel-tester.h",
2644 "src/xnnpack/AlignedAllocator.h",
2645 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2646 deps = MICROKERNEL_TEST_DEPS,
2647)
2648
2649xnnpack_unit_test(
2650 name = "f32_dwconv_spchw_test",
2651 srcs = [
2652 "test/f32-dwconv-spchw.cc",
2653 "test/dwconv-spchw-microkernel-tester.h",
2654 "src/xnnpack/AlignedAllocator.h",
2655 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2656 deps = MICROKERNEL_TEST_DEPS,
2657)
2658
2659xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07002660 name = "f32_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002661 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07002662 "test/f32-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002663 "test/gavgpool-microkernel-tester.h",
2664 "src/xnnpack/AlignedAllocator.h",
2665 ] + MICROKERNEL_TEST_HDRS,
2666 deps = MICROKERNEL_TEST_DEPS,
2667)
2668
2669xnnpack_unit_test(
2670 name = "f32_gavgpool_spchw_test",
2671 srcs = [
2672 "test/f32-gavgpool-spchw.cc",
2673 "test/gavgpool-spchw-microkernel-tester.h",
2674 "src/xnnpack/AlignedAllocator.h",
2675 ] + MICROKERNEL_TEST_HDRS,
2676 deps = MICROKERNEL_TEST_DEPS,
2677)
2678
2679xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07002680 name = "f32_gemm_test",
2681 srcs = [
2682 "test/f32-gemm.cc",
2683 "test/gemm-microkernel-tester.h",
2684 "src/xnnpack/AlignedAllocator.h",
2685 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2686 deps = MICROKERNEL_TEST_DEPS,
2687)
2688
2689xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07002690 name = "f32_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002691 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07002692 "test/f32-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002693 "test/gemm-microkernel-tester.h",
2694 "src/xnnpack/AlignedAllocator.h",
2695 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2696 deps = MICROKERNEL_TEST_DEPS,
2697)
2698
2699xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07002700 name = "f32_gemminc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002701 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07002702 "test/f32-gemminc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002703 "test/gemm-microkernel-tester.h",
2704 "src/xnnpack/AlignedAllocator.h",
2705 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2706 deps = MICROKERNEL_TEST_DEPS,
2707)
2708
2709xnnpack_unit_test(
2710 name = "f32_hswish_test",
2711 srcs = [
2712 "test/f32-hswish.cc",
2713 "test/hswish-microkernel-tester.h",
2714 ] + MICROKERNEL_TEST_HDRS,
2715 deps = MICROKERNEL_TEST_DEPS,
2716)
2717
2718xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07002719 name = "f32_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002720 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07002721 "test/f32-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002722 "test/maxpool-microkernel-tester.h",
2723 ] + MICROKERNEL_TEST_HDRS,
2724 deps = MICROKERNEL_TEST_DEPS,
2725)
2726
2727xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07002728 name = "f32_pavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002729 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07002730 "test/f32-pavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002731 "test/avgpool-microkernel-tester.h",
2732 "src/xnnpack/AlignedAllocator.h",
2733 ] + MICROKERNEL_TEST_HDRS,
2734 deps = MICROKERNEL_TEST_DEPS,
2735)
2736
2737xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07002738 name = "f32_ppmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002739 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07002740 "test/f32-ppmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002741 "test/gemm-microkernel-tester.h",
2742 "src/xnnpack/AlignedAllocator.h",
2743 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2744 deps = MICROKERNEL_TEST_DEPS,
2745)
2746
2747xnnpack_unit_test(
2748 name = "f32_prelu_test",
2749 srcs = [
2750 "test/f32-prelu.cc",
2751 "test/prelu-microkernel-tester.h",
2752 "src/xnnpack/AlignedAllocator.h",
2753 ] + MICROKERNEL_TEST_HDRS,
2754 deps = MICROKERNEL_TEST_DEPS,
2755)
2756
2757xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07002758 name = "f32_raddexpminusmax_test",
2759 srcs = [
2760 "test/f32-raddexpminusmax.cc",
2761 "test/raddexpminusmax-microkernel-tester.h",
2762 ] + MICROKERNEL_TEST_HDRS,
2763 deps = MICROKERNEL_TEST_DEPS,
2764)
2765
2766xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002767 name = "f32_raddextexp_test",
2768 srcs = [
2769 "test/f32-raddextexp.cc",
2770 "test/raddextexp-microkernel-tester.h",
2771 ] + MICROKERNEL_TEST_HDRS,
2772 deps = MICROKERNEL_TEST_DEPS,
2773)
2774
2775xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07002776 name = "f32_raddstoreexpminusmax_test",
2777 srcs = [
2778 "test/f32-raddstoreexpminusmax.cc",
2779 "test/raddstoreexpminusmax-microkernel-tester.h",
2780 ] + MICROKERNEL_TEST_HDRS,
2781 deps = MICROKERNEL_TEST_DEPS,
2782)
2783
2784xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002785 name = "f32_rmax_test",
2786 srcs = [
2787 "test/f32-rmax.cc",
2788 "test/rmax-microkernel-tester.h",
2789 ] + MICROKERNEL_TEST_HDRS,
2790 deps = MICROKERNEL_TEST_DEPS,
2791)
2792
2793xnnpack_unit_test(
Marat Dukhan346a9e52019-11-15 09:06:30 -08002794 name = "f32_sigmoid_test",
2795 srcs = [
2796 "test/f32-sigmoid.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002797 "test/vunary-microkernel-tester.h",
Marat Dukhan346a9e52019-11-15 09:06:30 -08002798 ] + MICROKERNEL_TEST_HDRS,
2799 deps = MICROKERNEL_TEST_DEPS,
2800)
2801
2802xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07002803 name = "f32_spmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002804 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07002805 "test/f32-spmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002806 "test/spmm-microkernel-tester.h",
2807 "src/xnnpack/AlignedAllocator.h",
2808 ] + MICROKERNEL_TEST_HDRS,
2809 deps = MICROKERNEL_TEST_DEPS,
2810)
2811
2812xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002813 name = "f32_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002814 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002815 "test/f32-vadd-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002816 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002817 ] + MICROKERNEL_TEST_HDRS,
2818 deps = MICROKERNEL_TEST_DEPS,
2819)
2820
2821xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002822 name = "f32_vaddc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002823 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002824 "test/f32-vaddc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002825 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002826 ] + MICROKERNEL_TEST_HDRS,
2827 deps = MICROKERNEL_TEST_DEPS,
2828)
2829
2830xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002831 name = "f32_vdiv_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08002832 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002833 "test/f32-vdiv-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08002834 "test/vbinary-microkernel-tester.h",
2835 ] + MICROKERNEL_TEST_HDRS,
2836 deps = MICROKERNEL_TEST_DEPS,
2837)
2838
2839xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002840 name = "f32_vdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08002841 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002842 "test/f32-vdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08002843 "test/vbinaryc-microkernel-tester.h",
2844 ] + MICROKERNEL_TEST_HDRS,
2845 deps = MICROKERNEL_TEST_DEPS,
2846)
2847
2848xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002849 name = "f32_vrdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08002850 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002851 "test/f32-vrdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08002852 "test/vbinaryc-microkernel-tester.h",
2853 ] + MICROKERNEL_TEST_HDRS,
2854 deps = MICROKERNEL_TEST_DEPS,
2855)
2856
2857xnnpack_unit_test(
Marat Dukhan403b7d42019-12-05 12:49:11 -08002858 name = "f32_vmax_test",
2859 srcs = [
2860 "test/f32-vmax.cc",
2861 "test/vbinary-microkernel-tester.h",
2862 ] + MICROKERNEL_TEST_HDRS,
2863 deps = MICROKERNEL_TEST_DEPS,
2864)
2865
2866xnnpack_unit_test(
2867 name = "f32_vmaxc_test",
2868 srcs = [
2869 "test/f32-vmaxc.cc",
2870 "test/vbinaryc-microkernel-tester.h",
2871 ] + MICROKERNEL_TEST_HDRS,
2872 deps = MICROKERNEL_TEST_DEPS,
2873)
2874
2875xnnpack_unit_test(
2876 name = "f32_vmin_test",
2877 srcs = [
2878 "test/f32-vmin.cc",
2879 "test/vbinary-microkernel-tester.h",
2880 ] + MICROKERNEL_TEST_HDRS,
2881 deps = MICROKERNEL_TEST_DEPS,
2882)
2883
2884xnnpack_unit_test(
2885 name = "f32_vminc_test",
2886 srcs = [
2887 "test/f32-vminc.cc",
2888 "test/vbinaryc-microkernel-tester.h",
2889 ] + MICROKERNEL_TEST_HDRS,
2890 deps = MICROKERNEL_TEST_DEPS,
2891)
2892
2893xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002894 name = "f32_vmul_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002895 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002896 "test/f32-vmul-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002897 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002898 ] + MICROKERNEL_TEST_HDRS,
2899 deps = MICROKERNEL_TEST_DEPS,
2900)
2901
2902xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002903 name = "f32_vmulc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002904 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002905 "test/f32-vmulc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002906 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002907 ] + MICROKERNEL_TEST_HDRS,
2908 deps = MICROKERNEL_TEST_DEPS,
2909)
2910
2911xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07002912 name = "f32_vmulcaddc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002913 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07002914 "test/f32-vmulcaddc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002915 "test/vmulcaddc-microkernel-tester.h",
2916 "src/xnnpack/AlignedAllocator.h",
2917 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2918 deps = MICROKERNEL_TEST_DEPS,
2919)
2920
2921xnnpack_unit_test(
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002922 name = "f32_vscale_test",
2923 srcs = [
2924 "test/f32-vscale.cc",
2925 "test/vscale-microkernel-tester.h",
2926 ] + MICROKERNEL_TEST_HDRS,
2927 deps = MICROKERNEL_TEST_DEPS,
2928)
2929
2930xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07002931 name = "f32_vscaleexpminusmax_test",
2932 srcs = [
2933 "test/f32-vscaleexpminusmax.cc",
2934 "test/vscaleexpminusmax-microkernel-tester.h",
2935 ] + MICROKERNEL_TEST_HDRS,
2936 deps = MICROKERNEL_TEST_DEPS,
2937)
2938
2939xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002940 name = "f32_vscaleextexp_test",
2941 srcs = [
2942 "test/f32-vscaleextexp.cc",
2943 "test/vscaleextexp-microkernel-tester.h",
2944 ] + MICROKERNEL_TEST_HDRS,
2945 deps = MICROKERNEL_TEST_DEPS,
2946)
2947
2948xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002949 name = "f32_vsub_minmax_test",
Marat Dukhan97579532019-10-18 16:40:39 -07002950 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002951 "test/f32-vsub-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002952 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002953 ] + MICROKERNEL_TEST_HDRS,
2954 deps = MICROKERNEL_TEST_DEPS,
2955)
2956
2957xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002958 name = "f32_vsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002959 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002960 "test/f32-vsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002961 "test/vbinaryc-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002962 ] + MICROKERNEL_TEST_HDRS,
2963 deps = MICROKERNEL_TEST_DEPS,
2964)
2965
2966xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002967 name = "f32_vrsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08002968 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002969 "test/f32-vrsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002970 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002971 ] + MICROKERNEL_TEST_HDRS,
2972 deps = MICROKERNEL_TEST_DEPS,
2973)
2974
2975xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07002976 name = "q8_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002977 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07002978 "test/q8-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002979 "test/avgpool-microkernel-tester.h",
2980 "src/xnnpack/AlignedAllocator.h",
2981 ] + MICROKERNEL_TEST_HDRS,
2982 deps = MICROKERNEL_TEST_DEPS,
2983)
2984
2985xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07002986 name = "q8_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002987 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07002988 "test/q8-igemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002989 "test/gemm-microkernel-tester.h",
2990 "src/xnnpack/AlignedAllocator.h",
2991 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
2992 deps = MICROKERNEL_TEST_DEPS,
2993)
2994
2995xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07002996 name = "q8_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002997 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07002998 "test/q8-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002999 "test/dwconv-microkernel-tester.h",
3000 "src/xnnpack/AlignedAllocator.h",
3001 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3002 deps = MICROKERNEL_TEST_DEPS,
3003)
3004
3005xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003006 name = "q8_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003007 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003008 "test/q8-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003009 "test/gavgpool-microkernel-tester.h",
3010 "src/xnnpack/AlignedAllocator.h",
3011 ] + MICROKERNEL_TEST_HDRS,
3012 deps = MICROKERNEL_TEST_DEPS,
3013)
3014
3015xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07003016 name = "q8_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003017 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07003018 "test/q8-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003019 "test/gemm-microkernel-tester.h",
3020 "src/xnnpack/AlignedAllocator.h",
3021 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3022 deps = MICROKERNEL_TEST_DEPS,
3023)
3024
3025xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003026 name = "q8_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003027 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003028 "test/q8-vadd-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003029 "test/vadd-microkernel-tester.h",
3030 ] + MICROKERNEL_TEST_HDRS,
3031 deps = MICROKERNEL_TEST_DEPS,
3032)
3033
3034xnnpack_unit_test(
3035 name = "u8_clamp_test",
3036 srcs = [
3037 "test/u8-clamp.cc",
3038 "test/clamp-microkernel-tester.h",
3039 ] + MICROKERNEL_TEST_HDRS,
3040 deps = MICROKERNEL_TEST_DEPS,
3041)
3042
3043xnnpack_unit_test(
3044 name = "u8_lut32norm_test",
3045 srcs = [
3046 "test/u8-lut32norm.cc",
3047 "test/lut-norm-microkernel-tester.h",
3048 ] + MICROKERNEL_TEST_HDRS,
3049 deps = MICROKERNEL_TEST_DEPS,
3050)
3051
3052xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003053 name = "u8_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003054 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003055 "test/u8-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003056 "test/maxpool-microkernel-tester.h",
3057 ] + MICROKERNEL_TEST_HDRS,
3058 deps = MICROKERNEL_TEST_DEPS,
3059)
3060
3061xnnpack_unit_test(
3062 name = "u8_rmax_test",
3063 srcs = [
3064 "test/u8-rmax.cc",
3065 "test/rmax-microkernel-tester.h",
3066 ] + MICROKERNEL_TEST_HDRS,
3067 deps = MICROKERNEL_TEST_DEPS,
3068)
3069
3070xnnpack_unit_test(
3071 name = "x32_packx_test",
3072 srcs = [
3073 "test/x32-packx.cc",
3074 "test/pack-microkernel-tester.h",
3075 "src/xnnpack/AlignedAllocator.h",
3076 ] + MICROKERNEL_TEST_HDRS,
3077 deps = MICROKERNEL_TEST_DEPS,
3078)
3079
3080xnnpack_unit_test(
3081 name = "x32_pad_test",
3082 srcs = [
3083 "test/x32-pad.cc",
3084 "test/pad-microkernel-tester.h",
3085 ] + MICROKERNEL_TEST_HDRS,
3086 deps = MICROKERNEL_TEST_DEPS,
3087)
3088
3089xnnpack_unit_test(
3090 name = "x32_unpool_test",
3091 srcs = [
3092 "test/x32-unpool.cc",
3093 "test/unpool-microkernel-tester.h",
3094 ] + MICROKERNEL_TEST_HDRS,
3095 deps = MICROKERNEL_TEST_DEPS,
3096)
3097
3098xnnpack_unit_test(
3099 name = "x32_zip_test",
3100 srcs = [
3101 "test/x32-zip.cc",
3102 "test/zip-microkernel-tester.h",
3103 ] + MICROKERNEL_TEST_HDRS,
3104 deps = MICROKERNEL_TEST_DEPS,
3105)
3106
3107xnnpack_unit_test(
3108 name = "x8_lut_test",
3109 srcs = [
3110 "test/x8-lut.cc",
3111 "test/lut-microkernel-tester.h",
3112 ] + MICROKERNEL_TEST_HDRS,
3113 deps = MICROKERNEL_TEST_DEPS,
3114)
3115
3116xnnpack_unit_test(
3117 name = "x8_zip_test",
3118 srcs = [
3119 "test/x8-zip.cc",
3120 "test/zip-microkernel-tester.h",
3121 ] + MICROKERNEL_TEST_HDRS,
3122 deps = MICROKERNEL_TEST_DEPS,
3123)
3124
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003125xnnpack_unit_test(
3126 name = "requantization_test",
3127 srcs = [
3128 "src/xnnpack/requantization-stubs.h",
3129 "test/requantization.cc",
3130 "test/requantization-tester.h",
3131 ] + MICROKERNEL_TEST_HDRS,
3132 deps = MICROKERNEL_TEST_DEPS,
3133)
3134
Marat Dukhan20c3b922020-03-10 03:45:06 -07003135########################## Size tests for the library #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07003136
3137xnnpack_binary(
Marat Dukhan20c3b922020-03-10 03:45:06 -07003138 name = "operator_size_test",
3139 srcs = ["test/operator-size.c"],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003140 deps = [":xnnpack_operators_nhwc_f32"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003141)
3142
Marat Dukhan20c3b922020-03-10 03:45:06 -07003143xnnpack_binary(
3144 name = "subgraph_size_test",
3145 srcs = ["test/subgraph-size.c"],
3146 deps = [":XNNPACK"],
3147)
3148
3149########################### Unit tests for operators ##########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07003150
3151xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003152 name = "add_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003153 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003154 "test/add-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003155 "test/add-operator-tester.h",
3156 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003157 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003158)
3159
3160xnnpack_unit_test(
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08003161 name = "add_nd_test",
3162 srcs = [
3163 "test/add-nd.cc",
3164 "test/binary-elementwise-operator-tester.h",
3165 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003166 deps = OPERATOR_TEST_DEPS,
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08003167)
3168
3169xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003170 name = "argmax_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003171 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003172 "test/argmax-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003173 "test/argmax-pooling-operator-tester.h",
3174 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003175 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003176)
3177
3178xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003179 name = "average_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003180 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003181 "test/average-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003182 "test/average-pooling-operator-tester.h",
3183 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003184 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003185)
3186
3187xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003188 name = "channel_pad_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003189 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003190 "test/channel-pad-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003191 "test/channel-pad-operator-tester.h",
3192 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003193 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003194)
3195
3196xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003197 name = "channel_shuffle_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003198 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003199 "test/channel-shuffle-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003200 "test/channel-shuffle-operator-tester.h",
3201 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003202 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003203)
3204
3205xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003206 name = "clamp_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003207 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003208 "test/clamp-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003209 "test/clamp-operator-tester.h",
3210 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003211 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003212)
3213
3214xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003215 name = "convolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003216 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003217 "test/convolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003218 "test/convolution-operator-tester.h",
3219 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003220 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003221)
3222
3223xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003224 name = "convolution_nchw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003225 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003226 "test/convolution-nchw.cc",
3227 "test/convolution-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003228 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003229 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003230)
3231
3232xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003233 name = "deconvolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003234 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003235 "test/deconvolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003236 "test/deconvolution-operator-tester.h",
3237 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003238 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003239)
3240
3241xnnpack_unit_test(
Marat Dukhan69180502019-12-06 15:00:31 -08003242 name = "divide_nd_test",
3243 srcs = [
3244 "test/binary-elementwise-operator-tester.h",
3245 "test/divide-nd.cc",
3246 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003247 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69180502019-12-06 15:00:31 -08003248)
3249
3250xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003251 name = "fully_connected_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003252 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003253 "test/fully-connected-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003254 "test/fully-connected-operator-tester.h",
3255 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003256 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003257)
3258
3259xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003260 name = "global_average_pooling_nwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003261 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003262 "test/global-average-pooling-nwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003263 "test/global-average-pooling-operator-tester.h",
3264 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003265 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003266)
3267
3268xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003269 name = "global_average_pooling_ncw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003270 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003271 "test/global-average-pooling-ncw.cc",
3272 "test/global-average-pooling-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003273 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003274 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003275)
3276
3277xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003278 name = "hardswish_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003279 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003280 "test/hardswish-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003281 "test/hardswish-operator-tester.h",
3282 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003283 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003284)
3285
3286xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003287 name = "leaky_relu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003288 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003289 "test/leaky-relu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003290 "test/leaky-relu-operator-tester.h",
3291 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003292 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003293)
3294
3295xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003296 name = "max_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003297 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003298 "test/max-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003299 "test/max-pooling-operator-tester.h",
3300 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003301 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003302)
3303
3304xnnpack_unit_test(
Marat Dukhan79e7f842019-12-05 14:35:50 -08003305 name = "maximum_nd_test",
3306 srcs = [
3307 "test/binary-elementwise-operator-tester.h",
3308 "test/maximum-nd.cc",
3309 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003310 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08003311)
3312
3313xnnpack_unit_test(
3314 name = "minimum_nd_test",
3315 srcs = [
3316 "test/binary-elementwise-operator-tester.h",
3317 "test/minimum-nd.cc",
3318 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003319 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08003320)
3321
3322xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003323 name = "multiply_nd_test",
Marat Dukhanca2733c2019-11-15 23:21:17 -08003324 srcs = [
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08003325 "test/binary-elementwise-operator-tester.h",
Marat Dukhanefc47b82019-11-18 09:25:38 -08003326 "test/multiply-nd.cc",
Marat Dukhanca2733c2019-11-15 23:21:17 -08003327 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003328 deps = OPERATOR_TEST_DEPS,
Marat Dukhanca2733c2019-11-15 23:21:17 -08003329)
3330
3331xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003332 name = "prelu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003333 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003334 "test/prelu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003335 "test/prelu-operator-tester.h",
3336 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003337 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003338)
3339
3340xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003341 name = "resize_bilinear_nhwc_test",
Marat Dukhan69722492019-11-11 19:55:50 -08003342 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003343 "test/resize-bilinear-nhwc.cc",
Marat Dukhan69722492019-11-11 19:55:50 -08003344 "test/resize-bilinear-operator-tester.h",
3345 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07003346 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69722492019-11-11 19:55:50 -08003347)
3348
3349xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003350 name = "sigmoid_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003351 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003352 "test/sigmoid-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003353 "test/sigmoid-operator-tester.h",
3354 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003355 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003356)
3357
3358xnnpack_unit_test(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003359 name = "softmax_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003360 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003361 "test/softmax-nc.cc",
3362 "test/softmax-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003363 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003364 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003365)
3366
3367xnnpack_unit_test(
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08003368 name = "subtract_nd_test",
3369 srcs = [
3370 "test/binary-elementwise-operator-tester.h",
3371 "test/subtract-nd.cc",
3372 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003373 deps = OPERATOR_TEST_DEPS,
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08003374)
3375
3376xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08003377 name = "unpooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003378 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08003379 "test/unpooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003380 "test/unpooling-operator-tester.h",
3381 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07003382 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003383)
3384
3385############################# Build configurations #############################
3386
Marat Dukhanb8642352019-10-30 15:43:02 -07003387# Enables usage of assembly kernels.
Marat Dukhan08c4a432019-10-03 09:29:21 -07003388config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07003389 name = "xnn_enable_assembly_explicit_true",
3390 define_values = {"xnn_enable_assembly": "true"},
3391)
3392
3393# Disables usage of assembly kernels.
3394config_setting(
3395 name = "xnn_enable_assembly_explicit_false",
3396 define_values = {"xnn_enable_assembly": "false"},
3397)
3398
Marat Dukhan05702cf2020-03-26 15:41:33 -07003399# Disables usage of HMP-aware optimizations.
3400config_setting(
3401 name = "xnn_enable_hmp_explicit_false",
3402 define_values = {"xnn_enable_hmp": "false"},
3403)
3404
Marat Dukhanb8642352019-10-30 15:43:02 -07003405# Builds with -c dbg
3406config_setting(
3407 name = "debug_build",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003408 values = {
Marat Dukhanb8642352019-10-30 15:43:02 -07003409 "compilation_mode": "dbg",
3410 },
3411)
3412
3413# Builds with -c opt
3414config_setting(
3415 name = "optimized_build",
3416 values = {
3417 "compilation_mode": "opt",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003418 },
3419)
3420
3421config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07003422 name = "linux_k8",
3423 values = {"cpu": "k8"},
3424)
3425
3426config_setting(
Marat Dukhan4e45e662019-10-03 15:40:24 -07003427 name = "linux_aarch64",
Marat Dukhanb8642352019-10-30 15:43:02 -07003428 values = {"cpu": "aarch64"},
Marat Dukhan4e45e662019-10-03 15:40:24 -07003429)
3430
3431config_setting(
Terry Heo68eef3f2020-04-13 22:53:52 -07003432 name = "linux_armhf",
3433 values = {"cpu": "armhf"},
3434)
3435
3436config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003437 name = "android",
3438 values = {"crosstool_top": "//external:android/crosstool"},
3439)
3440
3441config_setting(
3442 name = "android_armv7",
3443 values = {
3444 "crosstool_top": "//external:android/crosstool",
3445 "cpu": "armeabi-v7a",
3446 },
3447)
3448
3449config_setting(
3450 name = "android_arm64",
3451 values = {
3452 "crosstool_top": "//external:android/crosstool",
3453 "cpu": "arm64-v8a",
3454 },
3455)
3456
3457config_setting(
3458 name = "android_x86",
3459 values = {
3460 "crosstool_top": "//external:android/crosstool",
3461 "cpu": "x86",
3462 },
3463)
3464
3465config_setting(
3466 name = "android_x86_64",
3467 values = {
3468 "crosstool_top": "//external:android/crosstool",
3469 "cpu": "x86_64",
3470 },
3471)
3472
3473config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07003474 name = "windows_x86_64",
3475 values = {"cpu": "x64_windows"},
Marat Dukhan9fe932e2020-04-11 17:14:15 -07003476)
3477
3478config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07003479 name = "windows_x86_64_clang",
3480 values = {
3481 "compiler": "clang-cl",
3482 "cpu": "x64_windows",
3483 },
3484)
3485
3486config_setting(
3487 name = "windows_x86_64_mingw",
3488 values = {
3489 "compiler": "mingw-gcc",
3490 "cpu": "x64_windows",
3491 },
3492)
3493
3494config_setting(
3495 name = "windows_x86_64_msys",
3496 values = {
3497 "compiler": "msys-gcc",
3498 "cpu": "x64_windows",
3499 },
Marat Dukhan9fe932e2020-04-11 17:14:15 -07003500)
3501
3502config_setting(
Marat Dukhan885ca242019-10-07 09:17:32 -07003503 name = "macos_x86_64",
3504 values = {
3505 "apple_platform_type": "macos",
3506 "cpu": "darwin",
3507 },
3508)
3509
3510config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003511 name = "emscripten",
Marat Dukhan1a729ec2019-10-07 09:31:44 -07003512 values = {"crosstool_top": "//toolchain:emscripten"},
Marat Dukhan08c4a432019-10-03 09:29:21 -07003513)
3514
3515config_setting(
3516 name = "emscripten_wasm",
3517 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07003518 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003519 "cpu": "wasm",
3520 },
3521)
3522
3523config_setting(
3524 name = "emscripten_wasmsimd",
3525 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07003526 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003527 "cpu": "wasm",
Marat Dukhan8c19e3c2019-10-30 12:14:58 -07003528 "features": "wasm_simd",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003529 },
3530)
3531
3532config_setting(
3533 name = "emscripten_asmjs",
3534 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07003535 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003536 "cpu": "asmjs",
3537 },
3538)
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003539
3540config_setting(
3541 name = "ios_armv7",
3542 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003543 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003544 "cpu": "ios_armv7",
3545 },
3546)
3547
3548config_setting(
3549 name = "ios_arm64",
3550 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003551 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003552 "cpu": "ios_arm64",
3553 },
3554)
3555
3556config_setting(
3557 name = "ios_arm64e",
3558 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003559 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003560 "cpu": "ios_arm64e",
3561 },
3562)
3563
3564config_setting(
3565 name = "ios_x86",
3566 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003567 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003568 "cpu": "ios_i386",
3569 },
3570)
3571
3572config_setting(
3573 name = "ios_x86_64",
3574 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003575 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003576 "cpu": "ios_x86_64",
3577 },
3578)
3579
3580config_setting(
3581 name = "watchos_armv7k",
3582 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003583 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003584 "cpu": "watchos_armv7k",
3585 },
3586)
3587
3588config_setting(
3589 name = "watchos_arm64_32",
3590 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003591 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003592 "cpu": "watchos_arm64_32",
3593 },
3594)
3595
3596config_setting(
3597 name = "watchos_x86",
3598 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003599 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003600 "cpu": "watchos_i386",
3601 },
3602)
3603
3604config_setting(
3605 name = "watchos_x86_64",
3606 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003607 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003608 "cpu": "watchos_x86_64",
3609 },
3610)
3611
3612config_setting(
3613 name = "tvos_arm64",
3614 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003615 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003616 "cpu": "tvos_arm64",
3617 },
3618)
3619
3620config_setting(
3621 name = "tvos_x86_64",
3622 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08003623 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08003624 "cpu": "tvos_x86_64",
3625 },
3626)