blob: 2978aa152ca1557e5696835ab1f4714013dbe505 [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",
Frank Barchard0c849732020-06-12 13:31:32 -070019 "@FP16",
Marat Dukhan1b354632020-03-23 12:50:22 -070020 "@pthreadpool",
21]
22
Marat Dukhan08c4a432019-10-03 09:29:21 -070023MICROKERNEL_BENCHMARK_DEPS = [
24 ":ukernels",
25 ":bench_utils",
Frank Barchard7e955972019-10-11 10:34:25 -070026 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070027 "@cpuinfo",
28 "@FP16",
29 "@pthreadpool",
30]
31
Marat Dukhan6adff4e2019-10-14 18:32:07 -070032ACCURACY_EVAL_DEPS = [
33 ":XNNPACK",
34 ":ukernels",
35 "@FP16",
36 "@pthreadpool",
37]
38
Marat Dukhan08c4a432019-10-03 09:29:21 -070039MICROKERNEL_TEST_DEPS = [
Marat Dukhan33fcf782020-05-24 14:27:15 -070040 ":ukernels_test_mode",
Frank Barchard7e955972019-10-11 10:34:25 -070041 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070042 "@cpuinfo",
43 "@FP16",
44 "@pthreadpool",
45]
46
Marat Dukhan1b354632020-03-23 12:50:22 -070047OPERATOR_TEST_DEPS = [
Marat Dukhan33fcf782020-05-24 14:27:15 -070048 ":XNNPACK_test_mode",
Marat Dukhan1b354632020-03-23 12:50:22 -070049 "@pthreadpool",
50 "@FP16",
51]
52
Marat Dukhan08c4a432019-10-03 09:29:21 -070053OPERATOR_SRCS = [
Marat Dukhane8265432020-04-28 18:42:59 -070054 "src/operators/argmax-pooling-nhwc.c",
55 "src/operators/average-pooling-nhwc.c",
56 "src/operators/binary-elementwise-nd.c",
Marat Dukhane8265432020-04-28 18:42:59 -070057 "src/operators/channel-shuffle-nc.c",
Marat Dukhan065b11e2020-05-22 09:49:41 -070058 "src/operators/constant-pad-nd.c",
Marat Dukhane8265432020-04-28 18:42:59 -070059 "src/operators/convolution-nchw.c",
60 "src/operators/convolution-nhwc.c",
61 "src/operators/deconvolution-nhwc.c",
62 "src/operators/fully-connected-nc.c",
63 "src/operators/global-average-pooling-ncw.c",
64 "src/operators/global-average-pooling-nwc.c",
Marat Dukhane8265432020-04-28 18:42:59 -070065 "src/operators/leaky-relu-nc.c",
66 "src/operators/max-pooling-nhwc.c",
67 "src/operators/prelu-nc.c",
68 "src/operators/resize-bilinear-nhwc.c",
69 "src/operators/sigmoid-nc.c",
70 "src/operators/softmax-nc.c",
Marat Dukhanc3065f52020-06-04 13:33:32 -070071 "src/operators/unary-elementwise-nc.c",
Marat Dukhane8265432020-04-28 18:42:59 -070072 "src/operators/unpooling-nhwc.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -070073]
74
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070075SUBGRAPH_SRCS = [
Marat Dukhan5fab4092020-06-10 01:28:28 -070076 "src/subgraph/abs.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070077 "src/subgraph/add2.c",
78 "src/subgraph/argmax-pooling-2d.c",
79 "src/subgraph/average-pooling-2d.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -070080 "src/subgraph/bankers-rounding.c",
81 "src/subgraph/ceiling.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070082 "src/subgraph/clamp.c",
83 "src/subgraph/convolution-2d.c",
84 "src/subgraph/deconvolution-2d.c",
85 "src/subgraph/depthwise-convolution-2d.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -070086 "src/subgraph/divide.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070087 "src/subgraph/fully-connected.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -070088 "src/subgraph/floor.c",
Marat Dukhana059b7d2020-06-11 11:41:27 -070089 "src/subgraph/global-average-pooling-2d.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070090 "src/subgraph/hardswish.c",
Marat Dukhan5bbebac2020-06-10 19:42:15 -070091 "src/subgraph/leaky-relu.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070092 "src/subgraph/max-pooling-2d.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -070093 "src/subgraph/maximum2.c",
94 "src/subgraph/minimum2.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070095 "src/subgraph/multiply2.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -070096 "src/subgraph/negate.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070097 "src/subgraph/prelu.c",
98 "src/subgraph/sigmoid.c",
99 "src/subgraph/softmax.c",
100 "src/subgraph/static-constant-pad.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -0700101 "src/subgraph/square.c",
Marat Dukhan51a01c62020-07-09 03:26:57 -0700102 "src/subgraph/square-root.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -0700103 "src/subgraph/squared-difference.c",
104 "src/subgraph/subtract.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -0700105 "src/subgraph/unpooling-2d.c",
106]
107
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800108TABLE_SRCS = [
109 "src/tables/exp2-k-over-64.c",
110 "src/tables/exp2-k-over-2048.c",
111]
112
Marat Dukhan08c4a432019-10-03 09:29:21 -0700113SCALAR_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -0800114 "src/f32-argmaxpool/4x-scalar-c1.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800115 "src/f32-argmaxpool/9p8x-scalar-c1.c",
Marat Dukhan329da642019-11-19 21:44:39 -0800116 "src/f32-argmaxpool/9x-scalar-c1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700117 "src/f32-avgpool/9p8x-minmax-scalar-c1.c",
118 "src/f32-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700119 "src/f32-clamp/gen/scalar-x1.c",
120 "src/f32-clamp/gen/scalar-x2.c",
121 "src/f32-clamp/gen/scalar-x4.c",
Marat Dukhan441e2212019-12-04 18:30:49 -0800122 "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c",
Marat Dukhan6b7dfae2019-12-04 16:00:52 -0800123 "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700124 "src/f32-conv-hwc2chw/3x3s2p1c3x4-scalar-1x1.c",
125 "src/f32-dwconv-chw/3x3p1-scalar.c",
126 "src/f32-dwconv-chw/3x3s2p1-scalar.c",
127 "src/f32-dwconv-chw/5x5p2-scalar.c",
128 "src/f32-dwconv-chw/5x5s2p2-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700129 "src/f32-dwconv/gen/up1x4-scalar-acc2.c",
130 "src/f32-dwconv/gen/up1x4-scalar.c",
131 "src/f32-dwconv/gen/up1x9-scalar-acc2.c",
132 "src/f32-dwconv/gen/up1x9-scalar.c",
133 "src/f32-dwconv/gen/up1x25-scalar-acc2.c",
134 "src/f32-dwconv/gen/up1x25-scalar.c",
135 "src/f32-dwconv/gen/up2x4-scalar-acc2.c",
136 "src/f32-dwconv/gen/up2x4-scalar.c",
137 "src/f32-dwconv/gen/up2x9-scalar-acc2.c",
138 "src/f32-dwconv/gen/up2x9-scalar.c",
139 "src/f32-dwconv/gen/up2x25-scalar-acc2.c",
140 "src/f32-dwconv/gen/up2x25-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700141 "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c",
142 "src/f32-dwconv/gen/up1x4-minmax-scalar.c",
143 "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c",
144 "src/f32-dwconv/gen/up1x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700145 "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c",
146 "src/f32-dwconv/gen/up1x25-minmax-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700147 "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c",
148 "src/f32-dwconv/gen/up2x4-minmax-scalar.c",
149 "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c",
150 "src/f32-dwconv/gen/up2x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700151 "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c",
152 "src/f32-dwconv/gen/up2x25-minmax-scalar.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700153 "src/f32-gavgpool-cw/scalar-x1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700154 "src/f32-gavgpool/7p7x-minmax-scalar-c1.c",
155 "src/f32-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700156 "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c",
157 "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c",
158 "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700159 "src/f32-gemm/gen/1x4-scalar.c",
160 "src/f32-gemm/gen/2x4-scalar.c",
161 "src/f32-gemm/gen/4x2-scalar.c",
162 "src/f32-gemm/gen/4x4-scalar.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700163 "src/f32-gemm/gen/1x4-relu-scalar.c",
164 "src/f32-gemm/gen/2x4-relu-scalar.c",
165 "src/f32-gemm/gen/4x2-relu-scalar.c",
166 "src/f32-gemm/gen/4x4-relu-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700167 "src/f32-gemm/gen/1x4-minmax-scalar.c",
168 "src/f32-gemm/gen/2x4-minmax-scalar.c",
169 "src/f32-gemm/gen/4x2-minmax-scalar.c",
170 "src/f32-gemm/gen/4x4-minmax-scalar.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800171 "src/f32-hswish/gen/scalar-x1.c",
172 "src/f32-hswish/gen/scalar-x2.c",
173 "src/f32-hswish/gen/scalar-x4.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700174 "src/f32-ibilinear/gen/scalar-c1.c",
175 "src/f32-ibilinear/gen/scalar-c2.c",
176 "src/f32-ibilinear/gen/scalar-c4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700177 "src/f32-igemm/gen/1x4-scalar.c",
178 "src/f32-igemm/gen/2x4-scalar.c",
179 "src/f32-igemm/gen/4x2-scalar.c",
180 "src/f32-igemm/gen/4x4-scalar.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700181 "src/f32-igemm/gen/1x4-relu-scalar.c",
182 "src/f32-igemm/gen/2x4-relu-scalar.c",
183 "src/f32-igemm/gen/4x2-relu-scalar.c",
184 "src/f32-igemm/gen/4x4-relu-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700185 "src/f32-igemm/gen/1x4-minmax-scalar.c",
186 "src/f32-igemm/gen/2x4-minmax-scalar.c",
187 "src/f32-igemm/gen/4x2-minmax-scalar.c",
188 "src/f32-igemm/gen/4x4-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700189 "src/f32-maxpool/9p8x-minmax-scalar-c1.c",
190 "src/f32-pavgpool/9p8x-minmax-scalar-c1.c",
191 "src/f32-pavgpool/9x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700192 "src/f32-ppmm/gen/2x4-minmax-scalar.c",
193 "src/f32-ppmm/gen/3x3-minmax-scalar.c",
194 "src/f32-ppmm/gen/4x2-minmax-scalar.c",
195 "src/f32-ppmm/gen/4x4-minmax-scalar.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800196 "src/f32-prelu/gen/scalar-2x1.c",
197 "src/f32-prelu/gen/scalar-2x4.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800198 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c",
199 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c",
200 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c",
201 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c",
202 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c",
203 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c",
204 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c",
205 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c",
206 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c",
207 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c",
208 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c",
209 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700210 "src/f32-rmax/scalar.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800211 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c",
212 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c",
213 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c",
214 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c",
215 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c",
216 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c",
217 "src/f32-sigmoid/gen/scalar-p5-div-x1.c",
218 "src/f32-sigmoid/gen/scalar-p5-div-x2.c",
219 "src/f32-sigmoid/gen/scalar-p5-div-x4.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700220 "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c",
221 "src/f32-spmm/gen/1x1-minmax-scalar.c",
222 "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c",
223 "src/f32-spmm/gen/2x1-minmax-scalar.c",
224 "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c",
225 "src/f32-spmm/gen/4x1-minmax-scalar.c",
226 "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c",
227 "src/f32-spmm/gen/8x1-minmax-scalar.c",
228 "src/f32-spmm/gen/8x2-minmax-scalar.c",
229 "src/f32-spmm/gen/8x4-minmax-scalar.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700230 "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c",
231 "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c",
232 "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700233 "src/f32-vbinary/gen/vadd-scalar-x1.c",
234 "src/f32-vbinary/gen/vadd-scalar-x2.c",
235 "src/f32-vbinary/gen/vadd-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700236 "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c",
237 "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c",
238 "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700239 "src/f32-vbinary/gen/vaddc-scalar-x1.c",
240 "src/f32-vbinary/gen/vaddc-scalar-x2.c",
241 "src/f32-vbinary/gen/vaddc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700242 "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c",
243 "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c",
244 "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700245 "src/f32-vbinary/gen/vdiv-scalar-x1.c",
246 "src/f32-vbinary/gen/vdiv-scalar-x2.c",
247 "src/f32-vbinary/gen/vdiv-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700248 "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c",
249 "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c",
250 "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700251 "src/f32-vbinary/gen/vdivc-scalar-x1.c",
252 "src/f32-vbinary/gen/vdivc-scalar-x2.c",
253 "src/f32-vbinary/gen/vdivc-scalar-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800254 "src/f32-vbinary/gen/vmax-scalar-x1.c",
255 "src/f32-vbinary/gen/vmax-scalar-x2.c",
256 "src/f32-vbinary/gen/vmax-scalar-x4.c",
257 "src/f32-vbinary/gen/vmaxc-scalar-x1.c",
258 "src/f32-vbinary/gen/vmaxc-scalar-x2.c",
259 "src/f32-vbinary/gen/vmaxc-scalar-x4.c",
260 "src/f32-vbinary/gen/vmin-scalar-x1.c",
261 "src/f32-vbinary/gen/vmin-scalar-x2.c",
262 "src/f32-vbinary/gen/vmin-scalar-x4.c",
263 "src/f32-vbinary/gen/vminc-scalar-x1.c",
264 "src/f32-vbinary/gen/vminc-scalar-x2.c",
265 "src/f32-vbinary/gen/vminc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700266 "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c",
267 "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c",
268 "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700269 "src/f32-vbinary/gen/vmul-scalar-x1.c",
270 "src/f32-vbinary/gen/vmul-scalar-x2.c",
271 "src/f32-vbinary/gen/vmul-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700272 "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c",
273 "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c",
274 "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700275 "src/f32-vbinary/gen/vmulc-scalar-x1.c",
276 "src/f32-vbinary/gen/vmulc-scalar-x2.c",
277 "src/f32-vbinary/gen/vmulc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700278 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c",
279 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c",
280 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700281 "src/f32-vbinary/gen/vrdivc-scalar-x1.c",
282 "src/f32-vbinary/gen/vrdivc-scalar-x2.c",
283 "src/f32-vbinary/gen/vrdivc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700284 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c",
285 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c",
286 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700287 "src/f32-vbinary/gen/vrsubc-scalar-x1.c",
288 "src/f32-vbinary/gen/vrsubc-scalar-x2.c",
289 "src/f32-vbinary/gen/vrsubc-scalar-x4.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -0700290 "src/f32-vbinary/gen/vsqrdiff-scalar-x1.c",
291 "src/f32-vbinary/gen/vsqrdiff-scalar-x2.c",
292 "src/f32-vbinary/gen/vsqrdiff-scalar-x4.c",
293 "src/f32-vbinary/gen/vsqrdiffc-scalar-x1.c",
294 "src/f32-vbinary/gen/vsqrdiffc-scalar-x2.c",
295 "src/f32-vbinary/gen/vsqrdiffc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700296 "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c",
297 "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c",
298 "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700299 "src/f32-vbinary/gen/vsub-scalar-x1.c",
300 "src/f32-vbinary/gen/vsub-scalar-x2.c",
301 "src/f32-vbinary/gen/vsub-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700302 "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c",
303 "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c",
304 "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700305 "src/f32-vbinary/gen/vsubc-scalar-x1.c",
306 "src/f32-vbinary/gen/vsubc-scalar-x2.c",
307 "src/f32-vbinary/gen/vsubc-scalar-x4.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -0700308 "src/f32-vlrelu/gen/scalar-x1.c",
309 "src/f32-vlrelu/gen/scalar-x2.c",
310 "src/f32-vlrelu/gen/scalar-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700311 "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c",
312 "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c",
313 "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -0700314 "src/f32-vrnd/gen/vrndne-scalar-libm-x1.c",
315 "src/f32-vrnd/gen/vrndne-scalar-libm-x2.c",
316 "src/f32-vrnd/gen/vrndne-scalar-libm-x4.c",
317 "src/f32-vrnd/gen/vrndz-scalar-libm-x1.c",
318 "src/f32-vrnd/gen/vrndz-scalar-libm-x2.c",
319 "src/f32-vrnd/gen/vrndz-scalar-libm-x4.c",
320 "src/f32-vrnd/gen/vrndu-scalar-libm-x1.c",
321 "src/f32-vrnd/gen/vrndu-scalar-libm-x2.c",
322 "src/f32-vrnd/gen/vrndu-scalar-libm-x4.c",
323 "src/f32-vrnd/gen/vrndd-scalar-libm-x1.c",
324 "src/f32-vrnd/gen/vrndd-scalar-libm-x2.c",
325 "src/f32-vrnd/gen/vrndd-scalar-libm-x4.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -0700326 "src/f32-vsqrt/gen/scalar-sqrt-x1.c",
327 "src/f32-vsqrt/gen/scalar-sqrt-x2.c",
328 "src/f32-vsqrt/gen/scalar-sqrt-x4.c",
Marat Dukhan5020b962020-06-08 13:30:10 -0700329 "src/f32-vunary/gen/vabs-scalar-x1.c",
330 "src/f32-vunary/gen/vabs-scalar-x2.c",
331 "src/f32-vunary/gen/vabs-scalar-x4.c",
332 "src/f32-vunary/gen/vneg-scalar-x1.c",
333 "src/f32-vunary/gen/vneg-scalar-x2.c",
334 "src/f32-vunary/gen/vneg-scalar-x4.c",
335 "src/f32-vunary/gen/vsqr-scalar-x1.c",
336 "src/f32-vunary/gen/vsqr-scalar-x2.c",
337 "src/f32-vunary/gen/vsqr-scalar-x4.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800338 "src/math/expminus-scalar-lut2048-p1.c",
339 "src/math/expminus-scalar-lut64-p2.c",
340 "src/math/expminus-scalar-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -0700341 "src/math/roundne-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700342 "src/math/roundne-scalar-nearbyint.c",
343 "src/math/roundne-scalar-rint.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700344 "src/math/roundd-scalar-addsub.c",
345 "src/math/roundd-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700346 "src/math/roundd-scalar-floor.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700347 "src/math/roundu-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700348 "src/math/roundu-scalar-ceil.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700349 "src/math/roundu-scalar-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700350 "src/math/roundz-scalar-addsub.c",
351 "src/math/roundz-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700352 "src/math/roundz-scalar-trunc.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800353 "src/math/sigmoid-scalar-lut2048-p1-div.c",
354 "src/math/sigmoid-scalar-lut64-p2-div.c",
355 "src/math/sigmoid-scalar-p5-div.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700356 "src/q8-avgpool/9p8x-minmax-scalar-c1.c",
357 "src/q8-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700358 "src/q8-dwconv/up1x9-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700359 "src/q8-gavgpool/7p7x-minmax-scalar-c1.c",
360 "src/q8-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700361 "src/q8-gemm/2x2-minmax-scalar.c",
362 "src/q8-igemm/2x2-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700363 "src/q8-vadd/minmax-scalar.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700364 "src/u8-clamp/scalar-x4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700365 "src/u8-lut32norm/scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700366 "src/u8-maxpool/9p8x-minmax-scalar-c1.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700367 "src/u8-rmax/scalar.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700368 "src/x32-fill/scalar-float.c",
369 "src/x32-fill/scalar-int.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700370 "src/x32-packx/x2-scalar.c",
371 "src/x32-packx/x3-scalar.c",
372 "src/x32-packx/x4-scalar.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700373 "src/x32-pad/scalar-int.c",
374 "src/x32-pad/scalar-float.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700375 "src/x32-unpool/scalar.c",
376 "src/x32-zip/x2-scalar.c",
377 "src/x32-zip/x3-scalar.c",
378 "src/x32-zip/x4-scalar.c",
379 "src/x32-zip/xm-scalar.c",
380 "src/x8-lut/scalar.c",
381 "src/x8-zip/x2-scalar.c",
382 "src/x8-zip/x3-scalar.c",
383 "src/x8-zip/x4-scalar.c",
384 "src/x8-zip/xm-scalar.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700385 "src/requantization/precise-scalar.c",
386 "src/requantization/fp32-scalar.c",
387 "src/requantization/q31-scalar.c",
388 "src/requantization/gemmlowp-scalar.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700389]
390
Marat Dukhan436ebe62019-12-04 15:10:12 -0800391WASM_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700392 "src/f32-avgpool/9p8x-minmax-wasm-c1.c",
393 "src/f32-avgpool/9x-minmax-wasm-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700394 "src/f32-clamp/gen/wasm-x1.c",
395 "src/f32-clamp/gen/wasm-x2.c",
396 "src/f32-clamp/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700397 "src/f32-dwconv/gen/up1x4-wasm-acc2.c",
398 "src/f32-dwconv/gen/up1x4-wasm.c",
399 "src/f32-dwconv/gen/up1x9-wasm-acc2.c",
400 "src/f32-dwconv/gen/up1x9-wasm.c",
401 "src/f32-dwconv/gen/up1x25-wasm-acc2.c",
402 "src/f32-dwconv/gen/up1x25-wasm.c",
403 "src/f32-dwconv/gen/up2x4-wasm-acc2.c",
404 "src/f32-dwconv/gen/up2x4-wasm.c",
405 "src/f32-dwconv/gen/up2x9-wasm-acc2.c",
406 "src/f32-dwconv/gen/up2x9-wasm.c",
407 "src/f32-dwconv/gen/up2x25-wasm-acc2.c",
408 "src/f32-dwconv/gen/up2x25-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700409 "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c",
410 "src/f32-dwconv/gen/up1x4-minmax-wasm.c",
411 "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c",
412 "src/f32-dwconv/gen/up1x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700413 "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c",
414 "src/f32-dwconv/gen/up1x25-minmax-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700415 "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c",
416 "src/f32-dwconv/gen/up2x4-minmax-wasm.c",
417 "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c",
418 "src/f32-dwconv/gen/up2x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700419 "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c",
420 "src/f32-dwconv/gen/up2x25-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700421 "src/f32-gavgpool/7p7x-minmax-wasm-c1.c",
422 "src/f32-gavgpool/7x-minmax-wasm-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700423 "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c",
424 "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c",
425 "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700426 "src/f32-gemm/gen/1x4-wasm.c",
427 "src/f32-gemm/gen/2x4-wasm.c",
428 "src/f32-gemm/gen/4x2-wasm.c",
429 "src/f32-gemm/gen/4x4-wasm.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700430 "src/f32-gemm/gen/1x4-relu-wasm.c",
431 "src/f32-gemm/gen/2x4-relu-wasm.c",
432 "src/f32-gemm/gen/4x2-relu-wasm.c",
433 "src/f32-gemm/gen/4x4-relu-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700434 "src/f32-gemm/gen/1x4-minmax-wasm.c",
435 "src/f32-gemm/gen/2x4-minmax-wasm.c",
436 "src/f32-gemm/gen/4x2-minmax-wasm.c",
437 "src/f32-gemm/gen/4x4-minmax-wasm.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800438 "src/f32-hswish/gen/wasm-x1.c",
439 "src/f32-hswish/gen/wasm-x2.c",
440 "src/f32-hswish/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700441 "src/f32-igemm/gen/1x4-wasm.c",
442 "src/f32-igemm/gen/2x4-wasm.c",
443 "src/f32-igemm/gen/4x2-wasm.c",
444 "src/f32-igemm/gen/4x4-wasm.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700445 "src/f32-igemm/gen/1x4-relu-wasm.c",
446 "src/f32-igemm/gen/2x4-relu-wasm.c",
447 "src/f32-igemm/gen/4x2-relu-wasm.c",
448 "src/f32-igemm/gen/4x4-relu-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700449 "src/f32-igemm/gen/1x4-minmax-wasm.c",
450 "src/f32-igemm/gen/2x4-minmax-wasm.c",
451 "src/f32-igemm/gen/4x2-minmax-wasm.c",
452 "src/f32-igemm/gen/4x4-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700453 "src/f32-maxpool/9p8x-minmax-wasm-c1.c",
454 "src/f32-pavgpool/9p8x-minmax-wasm-c1.c",
455 "src/f32-pavgpool/9x-minmax-wasm-c1.c",
Marat Dukhan7c1f8082020-06-25 13:26:20 -0700456 "src/f32-prelu/gen/wasm-2x1.c",
457 "src/f32-prelu/gen/wasm-2x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700458 "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c",
459 "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c",
460 "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c",
461 "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c",
462 "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c",
463 "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c",
464 "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c",
465 "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c",
466 "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c",
467 "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c",
468 "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c",
469 "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800470 "src/f32-vbinary/gen/vmax-wasm-x1.c",
471 "src/f32-vbinary/gen/vmax-wasm-x2.c",
472 "src/f32-vbinary/gen/vmax-wasm-x4.c",
473 "src/f32-vbinary/gen/vmaxc-wasm-x1.c",
474 "src/f32-vbinary/gen/vmaxc-wasm-x2.c",
475 "src/f32-vbinary/gen/vmaxc-wasm-x4.c",
476 "src/f32-vbinary/gen/vmin-wasm-x1.c",
477 "src/f32-vbinary/gen/vmin-wasm-x2.c",
478 "src/f32-vbinary/gen/vmin-wasm-x4.c",
479 "src/f32-vbinary/gen/vminc-wasm-x1.c",
480 "src/f32-vbinary/gen/vminc-wasm-x2.c",
481 "src/f32-vbinary/gen/vminc-wasm-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700482 "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c",
483 "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c",
484 "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c",
485 "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c",
486 "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c",
487 "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c",
488 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c",
489 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c",
490 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c",
491 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c",
492 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c",
493 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c",
494 "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c",
495 "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c",
496 "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c",
497 "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c",
498 "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c",
499 "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -0700500 "src/f32-vlrelu/gen/wasm-x1.c",
501 "src/f32-vlrelu/gen/wasm-x2.c",
502 "src/f32-vlrelu/gen/wasm-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700503 "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c",
504 "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c",
505 "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c",
Marat Dukhan436ebe62019-12-04 15:10:12 -0800506]
507
Marat Dukhan290055c2020-06-09 12:24:29 -0700508WASMSIMD_UKERNELS = [
Marat Dukhan3fa52c82020-07-08 12:54:33 -0700509 "src/f32-clamp/gen/wasmsimd-arm-x4.c",
510 "src/f32-clamp/gen/wasmsimd-arm-x8.c",
511 "src/f32-clamp/gen/wasmsimd-x86-x4.c",
512 "src/f32-clamp/gen/wasmsimd-x86-x8.c",
Marat Dukhanb8e7b072020-06-16 12:34:23 -0700513 "src/f32-dwconv/gen/up4x25-wasmsimd.c",
514 "src/f32-dwconv/gen/up4x4-wasmsimd.c",
515 "src/f32-dwconv/gen/up4x9-wasmsimd.c",
516 "src/f32-dwconv/gen/up8x25-wasmsimd.c",
517 "src/f32-dwconv/gen/up8x4-wasmsimd.c",
518 "src/f32-dwconv/gen/up8x9-wasmsimd.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700519 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-arm.c",
520 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-arm.c",
521 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-arm.c",
522 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-arm.c",
523 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-arm.c",
524 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-arm.c",
525 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-arm.c",
526 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-arm.c",
527 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-arm.c",
528 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-arm.c",
529 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-arm.c",
530 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-arm.c",
531 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-x86.c",
532 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-x86.c",
533 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-x86.c",
534 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-x86.c",
535 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-x86.c",
536 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-x86.c",
537 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-x86.c",
538 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-x86.c",
539 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-x86.c",
540 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-x86.c",
541 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-x86.c",
542 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-x86.c",
Marat Dukhan802808c2020-06-16 11:01:17 -0700543 "src/f32-gemm/gen/1x8-wasmsimd-splat.c",
544 "src/f32-gemm/gen/4x8-wasmsimd-splat.c",
545 "src/f32-gemm/gen/5x8-wasmsimd-splat.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700546 "src/f32-gemm/gen/4x2c4-wasmsimd.c",
Marat Dukhan802808c2020-06-16 11:01:17 -0700547 "src/f32-gemm/gen/1x8-relu-wasmsimd-splat-arm.c",
548 "src/f32-gemm/gen/5x8-relu-wasmsimd-splat-arm.c",
549 "src/f32-gemm/gen/1x8-relu-wasmsimd-splat-x86.c",
550 "src/f32-gemm/gen/4x8-relu-wasmsimd-splat-x86.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700551 "src/f32-gemm/gen/4x2c4-relu-wasmsimd-arm.c",
552 "src/f32-gemm/gen/4x2c4-relu-wasmsimd-x86.c",
Marat Dukhan1bbf96b2020-06-15 23:01:20 -0700553 "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c",
554 "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-arm.c",
555 "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-arm.c",
556 "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c",
557 "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-arm.c",
558 "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-arm.c",
559 "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c",
560 "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-arm.c",
561 "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-arm.c",
562 "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c",
563 "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-arm.c",
564 "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-arm.c",
565 "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c",
566 "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-arm.c",
567 "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-arm.c",
568 "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c",
569 "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-x86.c",
570 "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-x86.c",
571 "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c",
572 "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-x86.c",
573 "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-x86.c",
574 "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c",
575 "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-x86.c",
576 "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-x86.c",
577 "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c",
578 "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-x86.c",
579 "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-x86.c",
580 "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c",
581 "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-x86.c",
582 "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-x86.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700583 "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-arm.c",
584 "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-x86.c",
Marat Dukhan1bbf96b2020-06-15 23:01:20 -0700585 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-arm.c",
586 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-arm.c",
587 "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-arm.c",
588 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-arm.c",
589 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-arm.c",
590 "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-arm.c",
591 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-arm.c",
592 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-arm.c",
593 "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-arm.c",
594 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-arm.c",
595 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-arm.c",
596 "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-arm.c",
597 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-arm.c",
598 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-arm.c",
599 "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-arm.c",
600 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-x86.c",
601 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-x86.c",
602 "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-x86.c",
603 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-x86.c",
604 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-x86.c",
605 "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-x86.c",
606 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-x86.c",
607 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-x86.c",
608 "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-x86.c",
609 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-x86.c",
610 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-x86.c",
611 "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-x86.c",
612 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-x86.c",
613 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-x86.c",
614 "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-x86.c",
Marat Dukhan00d1d6e2020-07-09 01:37:27 -0700615 "src/f32-ibilinear/gen/wasmsimd-c4.c",
616 "src/f32-ibilinear/gen/wasmsimd-c8.c",
Marat Dukhan802808c2020-06-16 11:01:17 -0700617 "src/f32-igemm/gen/1x8-wasmsimd-splat.c",
618 "src/f32-igemm/gen/4x8-wasmsimd-splat.c",
619 "src/f32-igemm/gen/5x8-wasmsimd-splat.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700620 "src/f32-igemm/gen/4x2c4-wasmsimd.c",
Marat Dukhan802808c2020-06-16 11:01:17 -0700621 "src/f32-igemm/gen/1x8-relu-wasmsimd-splat-arm.c",
622 "src/f32-igemm/gen/5x8-relu-wasmsimd-splat-arm.c",
623 "src/f32-igemm/gen/1x8-relu-wasmsimd-splat-x86.c",
624 "src/f32-igemm/gen/4x8-relu-wasmsimd-splat-x86.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700625 "src/f32-igemm/gen/4x2c4-relu-wasmsimd-arm.c",
626 "src/f32-igemm/gen/4x2c4-relu-wasmsimd-x86.c",
Marat Dukhan1bbf96b2020-06-15 23:01:20 -0700627 "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c",
628 "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-arm.c",
629 "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-arm.c",
630 "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c",
631 "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-arm.c",
632 "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-arm.c",
633 "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c",
634 "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-arm.c",
635 "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-arm.c",
636 "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c",
637 "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-arm.c",
638 "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-arm.c",
639 "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c",
640 "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-arm.c",
641 "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-arm.c",
642 "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c",
643 "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-x86.c",
644 "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-x86.c",
645 "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c",
646 "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-x86.c",
647 "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-x86.c",
648 "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c",
649 "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-x86.c",
650 "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-x86.c",
651 "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c",
652 "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-x86.c",
653 "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-x86.c",
654 "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c",
655 "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-x86.c",
656 "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-x86.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700657 "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-arm.c",
658 "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-x86.c",
Marat Dukhan9baec802020-06-25 21:34:35 -0700659 "src/f32-hswish/gen/wasmsimd-arm-x4.c",
660 "src/f32-hswish/gen/wasmsimd-arm-x8.c",
Marat Dukhanc303fe62020-06-26 10:09:25 -0700661 "src/f32-hswish/gen/wasmsimd-arm-x16.c",
Marat Dukhan9baec802020-06-25 21:34:35 -0700662 "src/f32-hswish/gen/wasmsimd-x86-x4.c",
663 "src/f32-hswish/gen/wasmsimd-x86-x8.c",
Marat Dukhanc303fe62020-06-26 10:09:25 -0700664 "src/f32-hswish/gen/wasmsimd-x86-x16.c",
Marat Dukhanf6e24802020-07-08 22:20:40 -0700665 "src/f32-maxpool/9p8x-minmax-wasmsimd-arm-c4.c",
666 "src/f32-maxpool/9p8x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan195f8eb2020-06-25 12:50:57 -0700667 "src/f32-prelu/gen/wasmsimd-bitselect-2x4.c",
668 "src/f32-prelu/gen/wasmsimd-bitselect-2x8.c",
669 "src/f32-prelu/gen/wasmsimd-minmax-2x4.c",
670 "src/f32-prelu/gen/wasmsimd-minmax-2x8.c",
Marat Dukhan8c417962020-07-08 12:27:50 -0700671 "src/f32-rmax/wasmsimd-arm.c",
672 "src/f32-rmax/wasmsimd-x86.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700673 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x4.c",
674 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x8.c",
675 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x4.c",
676 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700677 "src/f32-vbinary/gen/vadd-wasmsimd-x4.c",
678 "src/f32-vbinary/gen/vadd-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700679 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x4.c",
680 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x8.c",
681 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x4.c",
682 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700683 "src/f32-vbinary/gen/vaddc-wasmsimd-x4.c",
684 "src/f32-vbinary/gen/vaddc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700685 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x4.c",
686 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x8.c",
687 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x4.c",
688 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700689 "src/f32-vbinary/gen/vdiv-wasmsimd-x4.c",
690 "src/f32-vbinary/gen/vdiv-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700691 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x4.c",
692 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x8.c",
693 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x4.c",
694 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700695 "src/f32-vbinary/gen/vdivc-wasmsimd-x4.c",
696 "src/f32-vbinary/gen/vdivc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700697 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x4.c",
698 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x8.c",
699 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x4.c",
700 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700701 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x4.c",
702 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x8.c",
703 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x4.c",
704 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700705 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x4.c",
706 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x8.c",
707 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x4.c",
708 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700709 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x4.c",
710 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x8.c",
711 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x4.c",
712 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700713 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x4.c",
714 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x8.c",
715 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x4.c",
716 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700717 "src/f32-vbinary/gen/vmul-wasmsimd-x4.c",
718 "src/f32-vbinary/gen/vmul-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700719 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x4.c",
720 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x8.c",
721 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x4.c",
722 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700723 "src/f32-vbinary/gen/vmulc-wasmsimd-x4.c",
724 "src/f32-vbinary/gen/vmulc-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700725 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x4.c",
726 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x8.c",
727 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x4.c",
728 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700729 "src/f32-vbinary/gen/vrdivc-wasmsimd-x4.c",
730 "src/f32-vbinary/gen/vrdivc-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700731 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x4.c",
732 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x8.c",
733 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x4.c",
734 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700735 "src/f32-vbinary/gen/vrsubc-wasmsimd-x4.c",
736 "src/f32-vbinary/gen/vrsubc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700737 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x4.c",
738 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700739 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x4.c",
740 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700741 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x4.c",
742 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x8.c",
743 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x4.c",
744 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700745 "src/f32-vbinary/gen/vsub-wasmsimd-x4.c",
746 "src/f32-vbinary/gen/vsub-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700747 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x4.c",
748 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x8.c",
749 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x4.c",
750 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700751 "src/f32-vbinary/gen/vsubc-wasmsimd-x4.c",
752 "src/f32-vbinary/gen/vsubc-wasmsimd-x8.c",
Marat Dukhan72b399a2020-06-28 22:41:38 -0700753 "src/f32-vrnd/gen/vrndne-wasmsimd-x4.c",
754 "src/f32-vrnd/gen/vrndne-wasmsimd-x8.c",
755 "src/f32-vrnd/gen/vrndz-wasmsimd-x4.c",
756 "src/f32-vrnd/gen/vrndz-wasmsimd-x8.c",
757 "src/f32-vrnd/gen/vrndu-wasmsimd-x4.c",
758 "src/f32-vrnd/gen/vrndu-wasmsimd-x8.c",
759 "src/f32-vrnd/gen/vrndd-wasmsimd-x4.c",
760 "src/f32-vrnd/gen/vrndd-wasmsimd-x8.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -0700761 "src/f32-vsqrt/gen/wasmsimd-sqrt-x4.c",
762 "src/f32-vsqrt/gen/wasmsimd-sqrt-x8.c",
Marat Dukhan37c83512020-06-29 13:25:53 -0700763 "src/f32-vunary/gen/vabs-wasmsimd-x4.c",
764 "src/f32-vunary/gen/vabs-wasmsimd-x8.c",
765 "src/f32-vunary/gen/vneg-wasmsimd-x4.c",
766 "src/f32-vunary/gen/vneg-wasmsimd-x8.c",
767 "src/f32-vunary/gen/vsqr-wasmsimd-x4.c",
768 "src/f32-vunary/gen/vsqr-wasmsimd-x8.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700769 "src/math/roundne-wasmsimd-addsub.c",
770 "src/math/roundd-wasmsimd-addsub.c",
771 "src/math/roundu-wasmsimd-addsub.c",
772 "src/math/roundz-wasmsimd-addsub.c",
Marat Dukhan290055c2020-06-09 12:24:29 -0700773 "src/requantization/fp32-wasmsimd.c",
774]
775
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800776PSIMD_FASTMATH_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -0800777 "src/f32-argmaxpool/4x-psimd-c4.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800778 "src/f32-argmaxpool/9p8x-psimd-c4.c",
Marat Dukhan329da642019-11-19 21:44:39 -0800779 "src/f32-argmaxpool/9x-psimd-c4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700780 "src/f32-avgpool/9p8x-minmax-psimd-c4.c",
781 "src/f32-avgpool/9x-minmax-psimd-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700782 "src/f32-clamp/gen/psimd-x4.c",
783 "src/f32-clamp/gen/psimd-x8.c",
Erich Elsen0a1970e2020-06-10 09:24:59 -0700784 "src/f32-conv-hwc2chw/3x3s2p1c3x4-psimd-2x2.c",
Erich Elsene6214af2020-06-10 22:17:22 -0700785 "src/f32-dwconv-chw/3x3p1-psimd.c",
Erich Elsenfd7a6e32020-06-11 12:04:44 -0700786 "src/f32-dwconv-chw/3x3s2p1-psimd.c",
Erich Elsen28928892020-06-12 08:08:19 -0700787 "src/f32-dwconv-chw/5x5p2-psimd.c",
Erich Elsen7465a892020-06-13 14:02:04 -0700788 "src/f32-dwconv-chw/5x5s2p2-psimd.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700789 "src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c",
790 "src/f32-dwconv/gen/up4x25-minmax-psimd.c",
791 "src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c",
792 "src/f32-dwconv/gen/up4x4-minmax-psimd.c",
793 "src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c",
794 "src/f32-dwconv/gen/up4x9-minmax-psimd.c",
795 "src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c",
796 "src/f32-dwconv/gen/up8x25-minmax-psimd.c",
797 "src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c",
798 "src/f32-dwconv/gen/up8x4-minmax-psimd.c",
799 "src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c",
800 "src/f32-dwconv/gen/up8x9-minmax-psimd.c",
Erich Elsen6f278b52020-06-10 16:13:11 -0700801 "src/f32-gavgpool-cw/psimd-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700802 "src/f32-gavgpool/7p7x-minmax-psimd-c4.c",
803 "src/f32-gavgpool/7x-minmax-psimd-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700804 "src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c",
805 "src/f32-gemm/gen/1x8-minmax-psimd-splat.c",
806 "src/f32-gemm/gen/1x8s4-minmax-psimd.c",
807 "src/f32-gemm/gen/4x2c4-minmax-psimd.c",
808 "src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c",
809 "src/f32-gemm/gen/4x8-minmax-psimd-splat.c",
810 "src/f32-gemm/gen/4x8s4-minmax-psimd.c",
811 "src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c",
812 "src/f32-gemm/gen/6x8-minmax-psimd-splat.c",
813 "src/f32-gemm/gen/6x8s4-minmax-psimd.c",
814 "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c",
815 "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c",
816 "src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c",
817 "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c",
818 "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c",
819 "src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c",
820 "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c",
821 "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c",
822 "src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800823 "src/f32-hswish/gen/psimd-x4.c",
824 "src/f32-hswish/gen/psimd-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700825 "src/f32-ibilinear/gen/psimd-c4.c",
826 "src/f32-ibilinear/gen/psimd-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700827 "src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c",
828 "src/f32-igemm/gen/1x8-minmax-psimd-splat.c",
829 "src/f32-igemm/gen/1x8s4-minmax-psimd.c",
830 "src/f32-igemm/gen/4x2c4-minmax-psimd.c",
831 "src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c",
832 "src/f32-igemm/gen/4x8-minmax-psimd-splat.c",
833 "src/f32-igemm/gen/4x8s4-minmax-psimd.c",
834 "src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c",
835 "src/f32-igemm/gen/6x8-minmax-psimd-splat.c",
836 "src/f32-igemm/gen/6x8s4-minmax-psimd.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700837 "src/f32-maxpool/9p8x-minmax-psimd-c4.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -0700838 "src/f32-spmm/gen/4x1-minmax-psimd.c",
839 "src/f32-spmm/gen/8x1-minmax-psimd.c",
840 "src/f32-spmm/gen/16x1-minmax-psimd.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700841 "src/f32-pavgpool/9p8x-minmax-psimd-c4.c",
842 "src/f32-pavgpool/9x-minmax-psimd-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700843 "src/f32-ppmm/gen/4x8-minmax-psimd.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800844 "src/f32-prelu/gen/psimd-2x4.c",
845 "src/f32-prelu/gen/psimd-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -0800846 "src/f32-rmax/psimd.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700847 "src/f32-vbinary/gen/vadd-minmax-psimd-x4.c",
848 "src/f32-vbinary/gen/vadd-minmax-psimd-x8.c",
849 "src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c",
850 "src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c",
851 "src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c",
852 "src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c",
853 "src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c",
854 "src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800855 "src/f32-vbinary/gen/vmax-psimd-x4.c",
856 "src/f32-vbinary/gen/vmax-psimd-x8.c",
857 "src/f32-vbinary/gen/vmaxc-psimd-x4.c",
858 "src/f32-vbinary/gen/vmaxc-psimd-x8.c",
859 "src/f32-vbinary/gen/vmin-psimd-x4.c",
860 "src/f32-vbinary/gen/vmin-psimd-x8.c",
861 "src/f32-vbinary/gen/vminc-psimd-x4.c",
862 "src/f32-vbinary/gen/vminc-psimd-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700863 "src/f32-vbinary/gen/vmul-minmax-psimd-x4.c",
864 "src/f32-vbinary/gen/vmul-minmax-psimd-x8.c",
865 "src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c",
866 "src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c",
867 "src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c",
868 "src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c",
869 "src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c",
870 "src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -0700871 "src/f32-vbinary/gen/vsqrdiff-psimd-x4.c",
872 "src/f32-vbinary/gen/vsqrdiff-psimd-x8.c",
873 "src/f32-vbinary/gen/vsqrdiffc-psimd-x4.c",
874 "src/f32-vbinary/gen/vsqrdiffc-psimd-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700875 "src/f32-vbinary/gen/vsub-minmax-psimd-x4.c",
876 "src/f32-vbinary/gen/vsub-minmax-psimd-x8.c",
877 "src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c",
878 "src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -0700879 "src/f32-vlrelu/gen/psimd-x4.c",
880 "src/f32-vlrelu/gen/psimd-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700881 "src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c",
882 "src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c",
Marat Dukhan5020b962020-06-08 13:30:10 -0700883 "src/f32-vunary/gen/vabs-psimd-x4.c",
884 "src/f32-vunary/gen/vabs-psimd-x8.c",
885 "src/f32-vunary/gen/vneg-psimd-x4.c",
886 "src/f32-vunary/gen/vneg-psimd-x8.c",
887 "src/f32-vunary/gen/vsqr-psimd-x4.c",
888 "src/f32-vunary/gen/vsqr-psimd-x8.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700889 "src/x32-fill/psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700890 "src/x32-packx/x4-psimd.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700891 "src/x32-pad/psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700892 "src/x32-unpool/psimd.c",
893 "src/x32-zip/x2-psimd.c",
894 "src/x32-zip/x3-psimd.c",
895 "src/x32-zip/x4-psimd.c",
896 "src/x32-zip/xm-psimd.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700897 "src/requantization/precise-psimd.c",
898 "src/requantization/fp32-psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700899]
900
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800901PSIMD_ACCMATH_UKERNELS = [
Marat Dukhanb39689d2020-01-24 13:32:20 -0800902 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c",
903 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c",
904 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c",
905 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c",
906 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c",
907 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c",
908 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c",
909 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c",
910 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c",
911 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c",
912 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c",
913 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800914 "src/f32-sigmoid/gen/psimd-p5-div-x4.c",
915 "src/f32-sigmoid/gen/psimd-p5-div-x8.c",
916 "src/f32-sigmoid/gen/psimd-p5-div-x12.c",
917 "src/f32-sigmoid/gen/psimd-p5-div-x16.c",
918 "src/f32-sigmoid/gen/psimd-p5-div-x20.c",
919 "src/f32-sigmoid/gen/psimd-p5-div-x24.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -0700920 "src/f32-vrnd/gen/vrndne-psimd-x4.c",
921 "src/f32-vrnd/gen/vrndne-psimd-x8.c",
922 "src/f32-vrnd/gen/vrndz-psimd-x4.c",
923 "src/f32-vrnd/gen/vrndz-psimd-x8.c",
924 "src/f32-vrnd/gen/vrndu-psimd-x4.c",
925 "src/f32-vrnd/gen/vrndu-psimd-x8.c",
926 "src/f32-vrnd/gen/vrndd-psimd-x4.c",
927 "src/f32-vrnd/gen/vrndd-psimd-x8.c",
Marat Dukhan075088a2020-05-12 19:42:12 -0700928 "src/math/roundne-psimd-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700929 "src/math/roundd-psimd-addsub.c",
930 "src/math/roundu-psimd-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700931 "src/math/roundz-psimd-addsub.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800932 "src/math/sigmoid-psimd-p5-div.c",
933]
934
Marat Dukhan08c4a432019-10-03 09:29:21 -0700935# ISA-specific micro-kernels
936NEON_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700937 "src/f32-avgpool/9p8x-minmax-neon-c4.c",
938 "src/f32-avgpool/9x-minmax-neon-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700939 "src/f32-clamp/gen/neon-x4.c",
940 "src/f32-clamp/gen/neon-x8.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700941 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c",
942 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700943 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c",
944 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700945 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c",
946 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700947 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c",
948 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700949 "src/f32-dwconv/gen/up4x4-minmax-neon.c",
950 "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c",
951 "src/f32-dwconv/gen/up8x4-minmax-neon.c",
952 "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700953 "src/f32-dwconv/gen/up4x9-minmax-neon.c",
954 "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c",
955 "src/f32-dwconv/gen/up8x9-minmax-neon.c",
956 "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700957 "src/f32-dwconv/gen/up4x25-minmax-neon.c",
958 "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c",
959 "src/f32-dwconv/gen/up8x25-minmax-neon.c",
960 "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700961 "src/f32-gavgpool-cw/neon-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700962 "src/f32-gavgpool/7p7x-minmax-neon-c4.c",
963 "src/f32-gavgpool/7x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700964 "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c",
965 "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c",
966 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c",
967 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c",
968 "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c",
969 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c",
970 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c",
971 "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c",
972 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c",
973 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c",
974 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c",
975 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c",
976 "src/f32-gemm/gen/1x8s4-minmax-neon.c",
977 "src/f32-gemm/gen/4x8s4-minmax-neon.c",
978 "src/f32-gemm/gen/6x8s4-minmax-neon.c",
979 "src/f32-gemm/gen/8x8s4-minmax-neon.c",
980 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c",
981 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c",
982 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c",
983 "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c",
984 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c",
985 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c",
986 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c",
987 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c",
988 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c",
989 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c",
990 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c",
991 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c",
992 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c",
993 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c",
994 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800995 "src/f32-hswish/gen/neon-x4.c",
996 "src/f32-hswish/gen/neon-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700997 "src/f32-ibilinear/gen/neon-c4.c",
998 "src/f32-ibilinear/gen/neon-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700999 "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c",
1000 "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c",
1001 "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c",
1002 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c",
1003 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c",
1004 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c",
1005 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c",
1006 "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c",
1007 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c",
1008 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c",
1009 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c",
1010 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c",
1011 "src/f32-igemm/gen/1x8s4-minmax-neon.c",
1012 "src/f32-igemm/gen/4x8s4-minmax-neon.c",
1013 "src/f32-igemm/gen/6x8s4-minmax-neon.c",
1014 "src/f32-igemm/gen/8x8s4-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001015 "src/f32-maxpool/9p8x-minmax-neon-c4.c",
1016 "src/f32-pavgpool/9p8x-minmax-neon-c4.c",
1017 "src/f32-pavgpool/9x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001018 "src/f32-ppmm/gen/4x8-minmax-neon.c",
1019 "src/f32-ppmm/gen/8x8-minmax-neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001020 "src/f32-prelu/gen/neon-2x4.c",
1021 "src/f32-prelu/gen/neon-2x8.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001022 "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c",
1023 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c",
1024 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c",
1025 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c",
1026 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c",
1027 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c",
1028 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c",
1029 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c",
1030 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c",
1031 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c",
1032 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c",
1033 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c",
1034 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c",
1035 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c",
1036 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c",
1037 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c",
1038 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c",
1039 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c",
1040 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c",
1041 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c",
1042 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c",
1043 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c",
1044 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c",
1045 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001046 "src/f32-rmax/neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001047 "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001048 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c",
1049 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c",
1050 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c",
1051 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c",
1052 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c",
1053 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c",
1054 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c",
1055 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c",
1056 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c",
1057 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c",
1058 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c",
1059 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c",
1060 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c",
1061 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c",
1062 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c",
1063 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c",
1064 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c",
1065 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001066 "src/f32-vbinary/gen/vadd-minmax-neon-x4.c",
1067 "src/f32-vbinary/gen/vadd-minmax-neon-x8.c",
1068 "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c",
1069 "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001070 "src/f32-vbinary/gen/vmax-neon-x4.c",
1071 "src/f32-vbinary/gen/vmax-neon-x8.c",
1072 "src/f32-vbinary/gen/vmaxc-neon-x4.c",
1073 "src/f32-vbinary/gen/vmaxc-neon-x8.c",
1074 "src/f32-vbinary/gen/vmin-neon-x4.c",
1075 "src/f32-vbinary/gen/vmin-neon-x8.c",
1076 "src/f32-vbinary/gen/vminc-neon-x4.c",
1077 "src/f32-vbinary/gen/vminc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001078 "src/f32-vbinary/gen/vmul-minmax-neon-x4.c",
1079 "src/f32-vbinary/gen/vmul-minmax-neon-x8.c",
1080 "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c",
1081 "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c",
1082 "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c",
1083 "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001084 "src/f32-vbinary/gen/vsqrdiff-neon-x4.c",
1085 "src/f32-vbinary/gen/vsqrdiff-neon-x8.c",
1086 "src/f32-vbinary/gen/vsqrdiffc-neon-x4.c",
1087 "src/f32-vbinary/gen/vsqrdiffc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001088 "src/f32-vbinary/gen/vsub-minmax-neon-x4.c",
1089 "src/f32-vbinary/gen/vsub-minmax-neon-x8.c",
1090 "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c",
1091 "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07001092 "src/f32-vlrelu/gen/neon-x4.c",
1093 "src/f32-vlrelu/gen/neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001094 "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c",
1095 "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001096 "src/f32-vrnd/gen/vrndne-neon-x4.c",
1097 "src/f32-vrnd/gen/vrndne-neon-x8.c",
1098 "src/f32-vrnd/gen/vrndz-neon-x4.c",
1099 "src/f32-vrnd/gen/vrndz-neon-x8.c",
1100 "src/f32-vrnd/gen/vrndu-neon-x4.c",
1101 "src/f32-vrnd/gen/vrndu-neon-x8.c",
1102 "src/f32-vrnd/gen/vrndd-neon-x4.c",
1103 "src/f32-vrnd/gen/vrndd-neon-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001104 "src/f32-vunary/gen/vabs-neon-x4.c",
1105 "src/f32-vunary/gen/vabs-neon-x8.c",
1106 "src/f32-vunary/gen/vneg-neon-x4.c",
1107 "src/f32-vunary/gen/vneg-neon-x8.c",
1108 "src/f32-vunary/gen/vsqr-neon-x4.c",
1109 "src/f32-vunary/gen/vsqr-neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001110 "src/q8-avgpool/9p8x-minmax-neon-c8.c",
1111 "src/q8-avgpool/9x-minmax-neon-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001112 "src/q8-dwconv/up8x9-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001113 "src/q8-gavgpool/7p7x-minmax-neon-c8.c",
1114 "src/q8-gavgpool/7x-minmax-neon-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001115 "src/q8-gemm/4x8-minmax-neon.c",
1116 "src/q8-gemm/8x8-minmax-neon.c",
1117 "src/q8-igemm/4x8-minmax-neon.c",
1118 "src/q8-igemm/8x8-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001119 "src/q8-vadd/minmax-neon.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001120 "src/u8-clamp/neon-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001121 "src/u8-maxpool/9p8x-minmax-neon-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001122 "src/u8-rmax/neon.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001123 "src/x32-fill/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001124 "src/x32-packx/x4-neon-st4.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001125 "src/x32-pad/neon.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001126 "src/x32-unpool/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001127 "src/x32-zip/x2-neon.c",
1128 "src/x32-zip/x3-neon.c",
1129 "src/x32-zip/x4-neon.c",
1130 "src/x32-zip/xm-neon.c",
1131 "src/x8-zip/x2-neon.c",
1132 "src/x8-zip/x3-neon.c",
1133 "src/x8-zip/x4-neon.c",
1134 "src/x8-zip/xm-neon.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001135 "src/math/roundne-neon-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001136 "src/math/roundd-neon-addsub.c",
1137 "src/math/roundd-neon-cvt.c",
1138 "src/math/roundu-neon-addsub.c",
1139 "src/math/roundu-neon-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001140 "src/math/roundz-neon-addsub.c",
1141 "src/math/roundz-neon-cvt.c",
Marat Dukhan68b3b452020-01-02 10:11:15 -08001142 "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001143 "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c",
1144 "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c",
1145 "src/math/sigmoid-neon-rr1-p5-nr2recps.c",
1146 "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c",
1147 "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c",
1148 "src/math/sigmoid-neon-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001149 "src/math/sqrt-neon-nr1rsqrts.c",
1150 "src/math/sqrt-neon-nr2rsqrts.c",
1151 "src/math/sqrt-neon-nr3rsqrts.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001152 "src/requantization/precise-neon.c",
1153 "src/requantization/fp32-neon.c",
1154 "src/requantization/q31-neon.c",
1155 "src/requantization/gemmlowp-neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001156]
1157
1158NEONFMA_UKERNELS = [
Marat Dukhan660fd192020-03-10 04:55:30 -07001159 "src/f32-ibilinear/gen/neonfma-c4.c",
1160 "src/f32-ibilinear/gen/neonfma-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001161 "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1162 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1163 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1164 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1165 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1166 "src/f32-igemm/gen/1x8s4-minmax-neonfma.c",
1167 "src/f32-igemm/gen/4x8s4-minmax-neonfma.c",
1168 "src/f32-igemm/gen/6x8s4-minmax-neonfma.c",
1169 "src/f32-igemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001170 "src/f32-dwconv/gen/up4x4-minmax-neonfma.c",
1171 "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c",
1172 "src/f32-dwconv/gen/up8x4-minmax-neonfma.c",
1173 "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001174 "src/f32-dwconv/gen/up4x9-minmax-neonfma.c",
1175 "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c",
1176 "src/f32-dwconv/gen/up8x9-minmax-neonfma.c",
1177 "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001178 "src/f32-dwconv/gen/up4x25-minmax-neonfma.c",
1179 "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c",
1180 "src/f32-dwconv/gen/up8x25-minmax-neonfma.c",
1181 "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001182 "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1183 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1184 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1185 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1186 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1187 "src/f32-gemm/gen/1x8s4-minmax-neonfma.c",
1188 "src/f32-gemm/gen/4x8s4-minmax-neonfma.c",
1189 "src/f32-gemm/gen/6x8s4-minmax-neonfma.c",
1190 "src/f32-gemm/gen/8x8s4-minmax-neonfma.c",
1191 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c",
1192 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c",
1193 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c",
1194 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c",
1195 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c",
1196 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c",
1197 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c",
1198 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c",
1199 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001200 "src/f32-hswish/gen/neonfma-x4.c",
1201 "src/f32-hswish/gen/neonfma-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001202 "src/f32-ppmm/gen/4x8-minmax-neonfma.c",
1203 "src/f32-ppmm/gen/8x8-minmax-neonfma.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001204 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c",
1205 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c",
1206 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c",
1207 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c",
1208 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c",
1209 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c",
1210 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c",
1211 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c",
1212 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c",
1213 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c",
1214 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c",
1215 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c",
1216 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c",
1217 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c",
1218 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c",
1219 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c",
1220 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c",
1221 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c",
1222 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c",
1223 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c",
1224 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c",
1225 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c",
1226 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c",
1227 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001228 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c",
1229 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c",
1230 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c",
1231 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c",
1232 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c",
1233 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c",
1234 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c",
1235 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c",
1236 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c",
1237 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c",
1238 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c",
1239 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c",
1240 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c",
1241 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c",
1242 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c",
1243 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c",
1244 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c",
1245 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c",
1246 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c",
1247 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c",
1248 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c",
1249 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c",
1250 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c",
1251 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c",
1252 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c",
1253 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c",
1254 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c",
1255 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c",
1256 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c",
1257 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c",
1258 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c",
1259 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c",
1260 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c",
1261 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c",
1262 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c",
1263 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c",
1264 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c",
1265 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c",
1266 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c",
1267 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c",
1268 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c",
1269 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c",
1270 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c",
1271 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c",
1272 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c",
1273 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c",
1274 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c",
1275 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c",
1276 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c",
1277 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c",
1278 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c",
1279 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c",
1280 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c",
1281 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001282 "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c",
1283 "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001284 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x4.c",
1285 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x8.c",
1286 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x12.c",
1287 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x16.c",
1288 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x20.c",
1289 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x24.c",
1290 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x28.c",
1291 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x32.c",
1292 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x36.c",
1293 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x40.c",
1294 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x4.c",
1295 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x8.c",
1296 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x12.c",
1297 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x16.c",
1298 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x20.c",
1299 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x24.c",
1300 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x28.c",
1301 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x32.c",
1302 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x36.c",
1303 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x40.c",
Marat Dukhan797a8fe2019-11-14 20:21:57 -08001304 "src/math/exp-neonfma-lut64-p2.c",
1305 "src/math/exp-neonfma-p5.c",
Marat Dukhan189ae802019-11-26 11:28:44 -08001306 "src/math/expminus-neonfma-lut2048-p1.c",
1307 "src/math/expminus-neonfma-lut64-p2.c",
Marat Dukhan346a9e52019-11-15 09:06:30 -08001308 "src/math/expminus-neonfma-p5.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001309 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c",
1310 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c",
1311 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c",
1312 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c",
1313 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c",
1314 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c",
1315 "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c",
1316 "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c",
1317 "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c",
1318 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c",
1319 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c",
1320 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c",
1321 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c",
1322 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c",
1323 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c",
1324 "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c",
1325 "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c",
1326 "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001327 "src/math/sqrt-neonfma-nr1fma.c",
1328 "src/math/sqrt-neonfma-nr2fma.c",
1329 "src/math/sqrt-neonfma-nr3fma.c",
1330 "src/math/sqrt-neonfma-nr2fma1adj.c",
1331 "src/math/sqrt-neonfma-nr1rsqrts1fma1adj.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001332]
1333
1334AARCH64_NEONFMA_UKERNELS = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001335 "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c",
1336 "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c",
1337 "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c",
1338 "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c",
1339 "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c",
1340 "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001341 "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1342 "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1343 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1344 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1345 "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c",
1346 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1347 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c",
1348 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c",
1349 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c",
1350 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c",
1351 "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c",
1352 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c",
1353 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c",
1354 "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1355 "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1356 "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c",
1357 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1358 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1359 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1360 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001361 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c",
1362 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001363 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c",
1364 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001365 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c",
1366 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001367 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c",
1368 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001369 "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c",
1370 "src/f32-dwconv-chw/3x3p1-neonfma.c",
1371 "src/f32-dwconv-chw/5x5p2-neonfma.c",
1372 "src/f32-dwconv-chw/3x3s2p1-neonfma.c",
1373 "src/f32-dwconv-chw/5x5s2p2-neonfma.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001374 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c",
1375 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c",
1376 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c",
1377 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c",
1378 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c",
1379 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c",
1380 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c",
1381 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c",
1382 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c",
1383 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c",
1384 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c",
1385 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c",
1386 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c",
1387 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c",
1388 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c",
1389 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c",
1390 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c",
1391 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001392 "src/f32-spmm/gen/12x1-minmax-neonfma.c",
1393 "src/f32-spmm/gen/12x2-minmax-neonfma.c",
1394 "src/f32-spmm/gen/12x4-minmax-neonfma.c",
1395 "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c",
1396 "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c",
1397 "src/f32-spmm/gen/16x1-minmax-neonfma.c",
1398 "src/f32-spmm/gen/16x2-minmax-neonfma.c",
1399 "src/f32-spmm/gen/16x4-minmax-neonfma.c",
1400 "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c",
1401 "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c",
1402 "src/f32-spmm/gen/4x1-minmax-neonfma.c",
1403 "src/f32-spmm/gen/4x2-minmax-neonfma.c",
1404 "src/f32-spmm/gen/4x4-minmax-neonfma.c",
1405 "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c",
1406 "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c",
1407 "src/f32-spmm/gen/8x1-minmax-neonfma.c",
1408 "src/f32-spmm/gen/8x2-minmax-neonfma.c",
1409 "src/f32-spmm/gen/8x4-minmax-neonfma.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001410 "src/f32-vsqrt/gen/neon-sqrt-x4.c",
1411 "src/f32-vsqrt/gen/neon-sqrt-x8.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001412 "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c",
1413 "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c",
1414 "src/math/sigmoid-neonfma-rr1-p5-div.c",
1415 "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c",
1416 "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c",
1417 "src/math/sigmoid-neonfma-rr2-p5-div.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001418]
1419
Marat Dukhan8853b822020-05-07 12:19:01 -07001420NEONV8_UKERNELS = [
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001421 "src/f32-vrnd/gen/vrndne-neonv8-x4.c",
1422 "src/f32-vrnd/gen/vrndne-neonv8-x8.c",
1423 "src/f32-vrnd/gen/vrndz-neonv8-x4.c",
1424 "src/f32-vrnd/gen/vrndz-neonv8-x8.c",
1425 "src/f32-vrnd/gen/vrndu-neonv8-x4.c",
1426 "src/f32-vrnd/gen/vrndu-neonv8-x8.c",
1427 "src/f32-vrnd/gen/vrndd-neonv8-x4.c",
1428 "src/f32-vrnd/gen/vrndd-neonv8-x8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001429 "src/math/roundne-neonv8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001430 "src/math/roundd-neonv8.c",
1431 "src/math/roundu-neonv8.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001432 "src/math/roundz-neonv8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001433]
1434
Marat Dukhan08c4a432019-10-03 09:29:21 -07001435AARCH64_NEONFP16ARITH_UKERNELS = [
Frank Barchardb1966592020-05-12 13:47:06 -07001436 "src/f16-clamp/gen/neonfp16arith-x16.c",
1437 "src/f16-clamp/gen/neonfp16arith-x8.c",
Frank Barchard5a599a62020-06-04 20:12:44 -07001438 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith-acc2.c",
1439 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith.c",
1440 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith-acc2.c",
1441 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith.c",
1442 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith-acc2.c",
1443 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith.c",
1444 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith-acc2.c",
1445 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith.c",
1446 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c",
1447 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c",
1448 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith-acc2.c",
1449 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith.c",
Frank Barchard0bb49a72020-06-04 11:35:11 -07001450 "src/f16-gavgpool/7p7x-minmax-neonfp16arith-c8.c",
1451 "src/f16-gavgpool/7x-minmax-neonfp16arith-c8.c",
Frank Barchardb1966592020-05-12 13:47:06 -07001452 "src/f16-hswish/gen/neonfp16arith-x16.c",
1453 "src/f16-hswish/gen/neonfp16arith-x8.c",
1454 "src/f16-prelu/gen/neonfp16arith-2x16.c",
1455 "src/f16-prelu/gen/neonfp16arith-2x8.c",
Frank Barchardd793f6c2020-05-08 13:37:43 -07001456 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c",
1457 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c",
1458 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c",
1459 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c",
1460 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c",
1461 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c",
1462 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c",
1463 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c",
1464 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c",
1465 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c",
1466 "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c",
1467 "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c",
1468 "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c",
1469 "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c",
1470 "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c",
1471 "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c",
1472 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c",
1473 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c",
1474 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c",
1475 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c",
1476 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c",
1477 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c",
1478 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c",
1479 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c",
1480 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c",
1481 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c",
1482 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c",
1483 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c",
Frank Barchard2a1049c2020-06-03 02:31:27 -07001484 "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c",
1485 "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c",
Frank Barchard83ea9392020-04-20 20:15:14 -07001486 "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1487 "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1488 "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1489 "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c",
1490 "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c",
1491 "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c",
1492 "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c",
1493 "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c",
Frank Barchardb0e4fae2020-05-04 15:27:51 -07001494 "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1495 "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1496 "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1497 "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c",
Frank Barchard3f9f99f2020-05-06 01:12:04 -07001498 "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1499 "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1500 "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1501 "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c",
1502 "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c",
1503 "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c",
1504 "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c",
1505 "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c",
1506 "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1507 "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1508 "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1509 "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001510 "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c",
1511 "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c",
1512 "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c",
1513 "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c",
1514 "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c",
1515 "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c",
1516 "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c",
1517 "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001518]
1519
1520SSE_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -07001521 "src/f32-avgpool/9p8x-minmax-sse-c4.c",
1522 "src/f32-avgpool/9x-minmax-sse-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001523 "src/f32-clamp/gen/sse-x4.c",
1524 "src/f32-clamp/gen/sse-x8.c",
Erich Elsenb1233402020-06-08 15:53:15 -07001525 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-1x1.c",
1526 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001527 "src/f32-dwconv-chw/3x3p1-sse.c",
1528 "src/f32-dwconv-chw/3x3s2p1-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001529 "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c",
1530 "src/f32-dwconv/gen/up4x25-minmax-sse.c",
1531 "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c",
1532 "src/f32-dwconv/gen/up4x4-minmax-sse.c",
1533 "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c",
1534 "src/f32-dwconv/gen/up4x9-minmax-sse.c",
1535 "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c",
1536 "src/f32-dwconv/gen/up8x25-minmax-sse.c",
1537 "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c",
1538 "src/f32-dwconv/gen/up8x4-minmax-sse.c",
1539 "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c",
1540 "src/f32-dwconv/gen/up8x9-minmax-sse.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001541 "src/f32-gavgpool-cw/sse-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001542 "src/f32-gavgpool/7p7x-minmax-sse-c4.c",
1543 "src/f32-gavgpool/7x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001544 "src/f32-gemm/gen/1x8-minmax-sse-dup.c",
1545 "src/f32-gemm/gen/1x8-minmax-sse-load1.c",
1546 "src/f32-gemm/gen/1x8s4-minmax-sse.c",
1547 "src/f32-gemm/gen/4x2c4-minmax-sse.c",
1548 "src/f32-gemm/gen/4x8-minmax-sse-dup.c",
1549 "src/f32-gemm/gen/4x8-minmax-sse-load1.c",
1550 "src/f32-gemm/gen/4x8s4-minmax-sse.c",
1551 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c",
1552 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c",
1553 "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c",
1554 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c",
1555 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c",
1556 "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001557 "src/f32-hswish/gen/sse-x4.c",
1558 "src/f32-hswish/gen/sse-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001559 "src/f32-ibilinear/gen/sse-c4.c",
1560 "src/f32-ibilinear/gen/sse-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001561 "src/f32-igemm/gen/1x8-minmax-sse-dup.c",
1562 "src/f32-igemm/gen/1x8-minmax-sse-load1.c",
1563 "src/f32-igemm/gen/1x8s4-minmax-sse.c",
1564 "src/f32-igemm/gen/4x2c4-minmax-sse.c",
1565 "src/f32-igemm/gen/4x8-minmax-sse-dup.c",
1566 "src/f32-igemm/gen/4x8-minmax-sse-load1.c",
1567 "src/f32-igemm/gen/4x8s4-minmax-sse.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001568 "src/f32-maxpool/9p8x-minmax-sse-c4.c",
1569 "src/f32-pavgpool/9p8x-minmax-sse-c4.c",
1570 "src/f32-pavgpool/9x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001571 "src/f32-ppmm/gen/4x8-minmax-sse.c",
Marat Dukhan39b5e942020-06-24 15:03:48 -07001572 "src/f32-prelu/gen/sse-2x4.c",
1573 "src/f32-prelu/gen/sse-2x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001574 "src/f32-rmax/sse.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001575 "src/f32-spmm/gen/4x1-minmax-sse.c",
1576 "src/f32-spmm/gen/8x1-minmax-sse.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -07001577 "src/f32-spmm/gen/16x1-minmax-sse.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001578 "src/f32-vbinary/gen/vadd-minmax-sse-x4.c",
1579 "src/f32-vbinary/gen/vadd-minmax-sse-x8.c",
1580 "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c",
1581 "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c",
1582 "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c",
1583 "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c",
1584 "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c",
1585 "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001586 "src/f32-vbinary/gen/vmax-sse-x4.c",
1587 "src/f32-vbinary/gen/vmax-sse-x8.c",
1588 "src/f32-vbinary/gen/vmaxc-sse-x4.c",
1589 "src/f32-vbinary/gen/vmaxc-sse-x8.c",
1590 "src/f32-vbinary/gen/vmin-sse-x4.c",
1591 "src/f32-vbinary/gen/vmin-sse-x8.c",
1592 "src/f32-vbinary/gen/vminc-sse-x4.c",
1593 "src/f32-vbinary/gen/vminc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001594 "src/f32-vbinary/gen/vmul-minmax-sse-x4.c",
1595 "src/f32-vbinary/gen/vmul-minmax-sse-x8.c",
1596 "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c",
1597 "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c",
1598 "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c",
1599 "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c",
1600 "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c",
1601 "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001602 "src/f32-vbinary/gen/vsqrdiff-sse-x4.c",
1603 "src/f32-vbinary/gen/vsqrdiff-sse-x8.c",
1604 "src/f32-vbinary/gen/vsqrdiffc-sse-x4.c",
1605 "src/f32-vbinary/gen/vsqrdiffc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001606 "src/f32-vbinary/gen/vsub-minmax-sse-x4.c",
1607 "src/f32-vbinary/gen/vsub-minmax-sse-x8.c",
1608 "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c",
1609 "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07001610 "src/f32-vlrelu/gen/sse-x4.c",
1611 "src/f32-vlrelu/gen/sse-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001612 "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c",
1613 "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001614 "src/f32-vsqrt/gen/sse-sqrt-x4.c",
1615 "src/f32-vsqrt/gen/sse-sqrt-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001616 "src/f32-vunary/gen/vabs-sse-x4.c",
1617 "src/f32-vunary/gen/vabs-sse-x8.c",
1618 "src/f32-vunary/gen/vneg-sse-x4.c",
1619 "src/f32-vunary/gen/vneg-sse-x8.c",
1620 "src/f32-vunary/gen/vsqr-sse-x4.c",
1621 "src/f32-vunary/gen/vsqr-sse-x8.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001622 "src/x32-fill/sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001623 "src/x32-packx/x4-sse.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001624 "src/x32-pad/sse.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001625 "src/math/roundne-sse-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001626 "src/math/roundd-sse-addsub.c",
1627 "src/math/roundu-sse-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001628 "src/math/roundz-sse-addsub.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001629 "src/math/sqrt-sse-hh1mac.c",
1630 "src/math/sqrt-sse-nr1mac.c",
1631 "src/math/sqrt-sse-nr2mac.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001632]
1633
1634SSE2_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -08001635 "src/f32-argmaxpool/9p8x-sse2-c4.c",
1636 "src/f32-argmaxpool/4x-sse2-c4.c",
1637 "src/f32-argmaxpool/9x-sse2-c4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001638 "src/f32-prelu/gen/sse2-2x4.c",
1639 "src/f32-prelu/gen/sse2-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001640 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c",
1641 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c",
1642 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c",
1643 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c",
1644 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c",
1645 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c",
1646 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c",
1647 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c",
1648 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c",
1649 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c",
1650 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c",
1651 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001652 "src/f32-sigmoid/gen/sse2-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001653 "src/f32-sigmoid/gen/sse2-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001654 "src/f32-sigmoid/gen/sse2-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001655 "src/f32-sigmoid/gen/sse2-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001656 "src/f32-sigmoid/gen/sse2-p5-div-x20.c",
1657 "src/f32-sigmoid/gen/sse2-p5-div-x24.c",
Marat Dukhan0d3f4672020-06-25 16:42:58 -07001658 "src/f32-vlrelu/gen/sse2-x4.c",
1659 "src/f32-vlrelu/gen/sse2-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001660 "src/f32-vrnd/gen/vrndne-sse2-x4.c",
1661 "src/f32-vrnd/gen/vrndne-sse2-x8.c",
1662 "src/f32-vrnd/gen/vrndz-sse2-x4.c",
1663 "src/f32-vrnd/gen/vrndz-sse2-x8.c",
1664 "src/f32-vrnd/gen/vrndu-sse2-x4.c",
1665 "src/f32-vrnd/gen/vrndu-sse2-x8.c",
1666 "src/f32-vrnd/gen/vrndd-sse2-x4.c",
1667 "src/f32-vrnd/gen/vrndd-sse2-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001668 "src/q8-avgpool/9p8x-minmax-sse2-c8.c",
1669 "src/q8-avgpool/9x-minmax-sse2-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001670 "src/q8-igemm/4x4c2-minmax-sse2.c",
1671 "src/q8-dwconv/up8x9-minmax-sse2.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001672 "src/q8-gavgpool/7p7x-minmax-sse2-c8.c",
1673 "src/q8-gavgpool/7x-minmax-sse2-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001674 "src/q8-gemm/2x4c8-minmax-sse2.c",
1675 "src/q8-gemm/4x4c2-minmax-sse2.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001676 "src/q8-vadd/minmax-sse2.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001677 "src/u8-clamp/sse2-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001678 "src/u8-maxpool/9p8x-minmax-sse2-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001679 "src/u8-rmax/sse2.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001680 "src/x32-unpool/sse2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001681 "src/x32-zip/x2-sse2.c",
1682 "src/x32-zip/x3-sse2.c",
1683 "src/x32-zip/x4-sse2.c",
1684 "src/x32-zip/xm-sse2.c",
1685 "src/x8-zip/x2-sse2.c",
1686 "src/x8-zip/x3-sse2.c",
1687 "src/x8-zip/x4-sse2.c",
1688 "src/x8-zip/xm-sse2.c",
Marat Dukhanffd68402019-11-15 15:19:11 -08001689 "src/math/exp-sse2-p5.c",
1690 "src/math/expminus-sse2-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001691 "src/math/roundne-sse2-cvt.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001692 "src/math/roundd-sse2-cvt.c",
1693 "src/math/roundu-sse2-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001694 "src/math/roundz-sse2-cvt.c",
Marat Dukhan80bafd22019-11-18 10:16:01 -08001695 "src/math/sigmoid-sse2-p5-div.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001696 "src/requantization/precise-sse2.c",
1697 "src/requantization/fp32-sse2.c",
1698 "src/requantization/q31-sse2.c",
1699 "src/requantization/gemmlowp-sse2.c",
1700]
1701
1702SSSE3_UKERNELS = [
1703 "src/requantization/precise-ssse3.c",
1704 "src/requantization/q31-ssse3.c",
1705 "src/requantization/gemmlowp-ssse3.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001706]
1707
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001708SSE41_UKERNELS = [
Marat Dukhan40a672f2019-11-25 03:08:22 -08001709 "src/f32-prelu/gen/sse41-2x4.c",
1710 "src/f32-prelu/gen/sse41-2x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001711 "src/f32-sigmoid/gen/sse41-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001712 "src/f32-sigmoid/gen/sse41-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001713 "src/f32-sigmoid/gen/sse41-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001714 "src/f32-sigmoid/gen/sse41-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001715 "src/f32-sigmoid/gen/sse41-p5-div-x20.c",
1716 "src/f32-sigmoid/gen/sse41-p5-div-x24.c",
Marat Dukhan0d3f4672020-06-25 16:42:58 -07001717 "src/f32-vlrelu/gen/sse41-x4.c",
1718 "src/f32-vlrelu/gen/sse41-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001719 "src/f32-vrnd/gen/vrndne-sse41-x4.c",
1720 "src/f32-vrnd/gen/vrndne-sse41-x8.c",
1721 "src/f32-vrnd/gen/vrndz-sse41-x4.c",
1722 "src/f32-vrnd/gen/vrndz-sse41-x8.c",
1723 "src/f32-vrnd/gen/vrndu-sse41-x4.c",
1724 "src/f32-vrnd/gen/vrndu-sse41-x8.c",
1725 "src/f32-vrnd/gen/vrndd-sse41-x4.c",
1726 "src/f32-vrnd/gen/vrndd-sse41-x8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001727 "src/math/roundne-sse41.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001728 "src/math/roundd-sse41.c",
1729 "src/math/roundu-sse41.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001730 "src/math/roundz-sse41.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001731 "src/requantization/precise-sse4.c",
1732 "src/requantization/q31-sse4.c",
1733 "src/requantization/gemmlowp-sse4.c",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001734]
1735
Marat Dukhan08c4a432019-10-03 09:29:21 -07001736AVX_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001737 "src/f32-clamp/gen/avx-x8.c",
1738 "src/f32-clamp/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001739 "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c",
1740 "src/f32-dwconv/gen/up16x4-minmax-avx.c",
1741 "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c",
1742 "src/f32-dwconv/gen/up8x4-minmax-avx.c",
1743 "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c",
1744 "src/f32-dwconv/gen/up16x9-minmax-avx.c",
1745 "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c",
1746 "src/f32-dwconv/gen/up8x9-minmax-avx.c",
1747 "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c",
1748 "src/f32-dwconv/gen/up16x25-minmax-avx.c",
1749 "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c",
1750 "src/f32-dwconv/gen/up8x25-minmax-avx.c",
1751 "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c",
1752 "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c",
1753 "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c",
1754 "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c",
1755 "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c",
1756 "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c",
1757 "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c",
1758 "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c",
1759 "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c",
1760 "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c",
1761 "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c",
1762 "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c",
1763 "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c",
1764 "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c",
1765 "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c",
1766 "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c",
1767 "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c",
1768 "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001769 "src/f32-hswish/gen/avx-x8.c",
1770 "src/f32-hswish/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001771 "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c",
1772 "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c",
1773 "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c",
1774 "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c",
1775 "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c",
1776 "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c",
1777 "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c",
1778 "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c",
1779 "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001780 "src/f32-prelu/gen/avx-2x8.c",
1781 "src/f32-prelu/gen/avx-2x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001782 "src/f32-rmax/avx.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001783 "src/f32-vbinary/gen/vadd-minmax-avx-x8.c",
1784 "src/f32-vbinary/gen/vadd-minmax-avx-x16.c",
1785 "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c",
1786 "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c",
1787 "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c",
1788 "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c",
1789 "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c",
1790 "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001791 "src/f32-vbinary/gen/vmax-avx-x8.c",
1792 "src/f32-vbinary/gen/vmax-avx-x16.c",
1793 "src/f32-vbinary/gen/vmaxc-avx-x8.c",
1794 "src/f32-vbinary/gen/vmaxc-avx-x16.c",
1795 "src/f32-vbinary/gen/vmin-avx-x8.c",
1796 "src/f32-vbinary/gen/vmin-avx-x16.c",
1797 "src/f32-vbinary/gen/vminc-avx-x8.c",
1798 "src/f32-vbinary/gen/vminc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001799 "src/f32-vbinary/gen/vmul-minmax-avx-x8.c",
1800 "src/f32-vbinary/gen/vmul-minmax-avx-x16.c",
1801 "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c",
1802 "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c",
1803 "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c",
1804 "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c",
1805 "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c",
1806 "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001807 "src/f32-vbinary/gen/vsqrdiff-avx-x8.c",
1808 "src/f32-vbinary/gen/vsqrdiff-avx-x16.c",
1809 "src/f32-vbinary/gen/vsqrdiffc-avx-x8.c",
1810 "src/f32-vbinary/gen/vsqrdiffc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001811 "src/f32-vbinary/gen/vsub-minmax-avx-x8.c",
1812 "src/f32-vbinary/gen/vsub-minmax-avx-x16.c",
1813 "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c",
1814 "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07001815 "src/f32-vlrelu/gen/avx-x8.c",
1816 "src/f32-vlrelu/gen/avx-x16.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001817 "src/f32-vscale/avx-unroll32.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001818 "src/f32-vrnd/gen/vrndne-avx-x8.c",
1819 "src/f32-vrnd/gen/vrndne-avx-x16.c",
1820 "src/f32-vrnd/gen/vrndz-avx-x8.c",
1821 "src/f32-vrnd/gen/vrndz-avx-x16.c",
1822 "src/f32-vrnd/gen/vrndu-avx-x8.c",
1823 "src/f32-vrnd/gen/vrndu-avx-x16.c",
1824 "src/f32-vrnd/gen/vrndd-avx-x8.c",
1825 "src/f32-vrnd/gen/vrndd-avx-x16.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001826 "src/f32-vsqrt/gen/avx-sqrt-x8.c",
1827 "src/f32-vsqrt/gen/avx-sqrt-x16.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001828 "src/f32-vunary/gen/vabs-avx-x8.c",
1829 "src/f32-vunary/gen/vabs-avx-x16.c",
1830 "src/f32-vunary/gen/vneg-avx-x8.c",
1831 "src/f32-vunary/gen/vneg-avx-x16.c",
1832 "src/f32-vunary/gen/vsqr-avx-x8.c",
1833 "src/f32-vunary/gen/vsqr-avx-x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001834]
1835
Marat Dukhanfda12b82019-11-21 12:27:59 -08001836FMA3_UKERNELS = [
Marat Dukhan1c587112020-04-08 20:04:28 -07001837 "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c",
1838 "src/f32-dwconv/gen/up16x4-minmax-fma3.c",
1839 "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c",
1840 "src/f32-dwconv/gen/up8x4-minmax-fma3.c",
1841 "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c",
1842 "src/f32-dwconv/gen/up16x9-minmax-fma3.c",
1843 "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c",
1844 "src/f32-dwconv/gen/up8x9-minmax-fma3.c",
1845 "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c",
1846 "src/f32-dwconv/gen/up16x25-minmax-fma3.c",
1847 "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c",
1848 "src/f32-dwconv/gen/up8x25-minmax-fma3.c",
1849 "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c",
1850 "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c",
1851 "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c",
1852 "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c",
1853 "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c",
1854 "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c",
1855 "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c",
1856 "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c",
1857 "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c",
1858 "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c",
1859 "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c",
1860 "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c",
1861 "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c",
1862 "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c",
1863 "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c",
1864 "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c",
1865 "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c",
1866 "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c",
1867 "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c",
1868 "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c",
1869 "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c",
1870 "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c",
1871 "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c",
1872 "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c",
1873 "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c",
1874 "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c",
1875 "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c",
1876 "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001877 "src/f32-hswish/gen/fma3-x8.c",
1878 "src/f32-hswish/gen/fma3-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001879 "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c",
1880 "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c",
1881 "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c",
1882 "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c",
1883 "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c",
1884 "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c",
1885 "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c",
1886 "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c",
1887 "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c",
1888 "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c",
1889 "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c",
1890 "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c",
1891 "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c",
1892 "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001893 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x8.c",
1894 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x16.c",
1895 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x24.c",
1896 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x32.c",
1897 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x40.c",
1898 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x48.c",
1899 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x56.c",
1900 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x64.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001901 "src/math/sqrt-fma3-nr1fma.c",
1902 "src/math/sqrt-fma3-nr2fma.c",
1903 "src/math/sqrt-fma3-nr1fma1adj.c",
Marat Dukhanfda12b82019-11-21 12:27:59 -08001904]
1905
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001906AVX2_UKERNELS = [
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001907 "src/f32-raddexpminusmax/gen/avx2-p5-x64.c",
1908 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c",
1909 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c",
1910 "src/f32-raddexpminusmax/gen/avx2-p5-x72.c",
1911 "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c",
1912 "src/f32-raddexpminusmax/gen/avx2-p5-x80.c",
1913 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c",
1914 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c",
1915 "src/f32-raddexpminusmax/gen/avx2-p5-x96.c",
1916 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c",
1917 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c",
1918 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c",
1919 "src/f32-raddextexp/gen/avx2-p5-x64.c",
1920 "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c",
1921 "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c",
1922 "src/f32-raddextexp/gen/avx2-p5-x72.c",
1923 "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c",
1924 "src/f32-raddextexp/gen/avx2-p5-x80.c",
1925 "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c",
1926 "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c",
1927 "src/f32-raddextexp/gen/avx2-p5-x96.c",
1928 "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c",
1929 "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c",
1930 "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c",
1931 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c",
1932 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c",
1933 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c",
1934 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c",
1935 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c",
1936 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c",
1937 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c",
1938 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c",
1939 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c",
1940 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c",
1941 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c",
1942 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c",
Marat Dukhanfa0a4322020-01-06 16:14:29 -08001943 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c",
1944 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c",
1945 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c",
1946 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c",
1947 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c",
1948 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c",
1949 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c",
1950 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c",
1951 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c",
1952 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c",
1953 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c",
1954 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c",
1955 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c",
1956 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c",
1957 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c",
1958 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c",
1959 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c",
1960 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c",
1961 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c",
1962 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c",
1963 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c",
1964 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c",
1965 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c",
1966 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c",
1967 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c",
1968 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c",
1969 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c",
1970 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c",
1971 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c",
1972 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001973 "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c",
1974 "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c",
1975 "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c",
1976 "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c",
1977 "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c",
1978 "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c",
1979 "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c",
1980 "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c",
1981 "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c",
1982 "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c",
1983 "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c",
1984 "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c",
1985 "src/f32-vscaleextexp/gen/avx2-p5-x8.c",
1986 "src/f32-vscaleextexp/gen/avx2-p5-x16.c",
1987 "src/f32-vscaleextexp/gen/avx2-p5-x24.c",
1988 "src/f32-vscaleextexp/gen/avx2-p5-x32.c",
1989 "src/f32-vscaleextexp/gen/avx2-p5-x40.c",
1990 "src/f32-vscaleextexp/gen/avx2-p5-x48.c",
1991 "src/f32-vscaleextexp/gen/avx2-p5-x56.c",
1992 "src/f32-vscaleextexp/gen/avx2-p5-x64.c",
1993 "src/f32-vscaleextexp/gen/avx2-p5-x72.c",
1994 "src/f32-vscaleextexp/gen/avx2-p5-x80.c",
1995 "src/f32-vscaleextexp/gen/avx2-p5-x88.c",
1996 "src/f32-vscaleextexp/gen/avx2-p5-x96.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001997 "src/math/exp-avx2-p5.c",
1998 "src/math/exp-avx2-perm-p3.c",
1999 "src/math/exp-avx2-perm-p4.c",
Marat Dukhan515c9772019-10-17 18:07:57 -07002000 "src/math/expminus-avx2-p5.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002001 "src/math/extexp-avx2-p5.c",
Marat Dukhan72416002020-01-05 21:53:19 -08002002 "src/math/sigmoid-avx2-rr2-p5-div.c",
2003 "src/math/sigmoid-avx2-rr1-p5-div.c",
2004 "src/math/sigmoid-avx2-rr2-p5-nr2fma.c",
2005 "src/math/sigmoid-avx2-rr1-p5-nr2fma.c",
2006 "src/math/sigmoid-avx2-rr2-p5-nr1fma.c",
2007 "src/math/sigmoid-avx2-rr1-p5-nr1fma.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002008]
2009
Marat Dukhan08c4a432019-10-03 09:29:21 -07002010AVX512F_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07002011 "src/f32-clamp/gen/avx512f-x16.c",
2012 "src/f32-clamp/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002013 "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c",
2014 "src/f32-dwconv/gen/up32x4-minmax-avx512f.c",
2015 "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c",
2016 "src/f32-dwconv/gen/up16x4-minmax-avx512f.c",
2017 "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c",
2018 "src/f32-dwconv/gen/up32x9-minmax-avx512f.c",
2019 "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c",
2020 "src/f32-dwconv/gen/up16x9-minmax-avx512f.c",
2021 "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c",
2022 "src/f32-dwconv/gen/up32x25-minmax-avx512f.c",
2023 "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c",
2024 "src/f32-dwconv/gen/up16x25-minmax-avx512f.c",
2025 "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c",
2026 "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c",
2027 "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c",
2028 "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c",
2029 "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c",
2030 "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c",
2031 "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c",
2032 "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c",
2033 "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c",
2034 "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c",
2035 "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c",
2036 "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08002037 "src/f32-hswish/gen/avx512f-x16.c",
2038 "src/f32-hswish/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002039 "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c",
2040 "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c",
2041 "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c",
2042 "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c",
2043 "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c",
2044 "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07002045 "src/f32-prelu/gen/avx512f-2x16.c",
2046 "src/f32-prelu/gen/avx512f-2x32.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002047 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c",
2048 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2049 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
2050 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c",
2051 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
2052 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c",
2053 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2054 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
2055 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c",
2056 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2057 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2058 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
2059 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c",
2060 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c",
2061 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c",
2062 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c",
2063 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c",
2064 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c",
2065 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c",
2066 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c",
2067 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c",
2068 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c",
2069 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c",
2070 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c",
2071 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c",
2072 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2073 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
2074 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c",
2075 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
2076 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c",
2077 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2078 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
2079 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c",
2080 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2081 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2082 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002083 "src/f32-rmax/avx512f.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002084 "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c",
2085 "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c",
2086 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c",
2087 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c",
2088 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c",
2089 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c",
2090 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c",
2091 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08002092 "src/f32-vbinary/gen/vmax-avx512f-x16.c",
2093 "src/f32-vbinary/gen/vmax-avx512f-x32.c",
2094 "src/f32-vbinary/gen/vmaxc-avx512f-x16.c",
2095 "src/f32-vbinary/gen/vmaxc-avx512f-x32.c",
2096 "src/f32-vbinary/gen/vmin-avx512f-x16.c",
2097 "src/f32-vbinary/gen/vmin-avx512f-x32.c",
2098 "src/f32-vbinary/gen/vminc-avx512f-x16.c",
2099 "src/f32-vbinary/gen/vminc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002100 "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c",
2101 "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c",
2102 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c",
2103 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c",
2104 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c",
2105 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c",
2106 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c",
2107 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07002108 "src/f32-vbinary/gen/vsqrdiff-avx512f-x16.c",
2109 "src/f32-vbinary/gen/vsqrdiff-avx512f-x32.c",
2110 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x16.c",
2111 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002112 "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c",
2113 "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c",
2114 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c",
2115 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c",
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07002116 "src/f32-vlrelu/gen/avx512f-x16.c",
2117 "src/f32-vlrelu/gen/avx512f-x32.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002118 "src/f32-vscale/avx512f-unroll64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002119 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c",
2120 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c",
2121 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c",
2122 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c",
2123 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c",
2124 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c",
2125 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c",
2126 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c",
2127 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c",
2128 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c",
2129 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c",
2130 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c",
2131 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c",
2132 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c",
2133 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c",
2134 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c",
2135 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c",
2136 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c",
2137 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c",
2138 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c",
2139 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c",
2140 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c",
2141 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c",
2142 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07002143 "src/f32-vrnd/gen/vrndne-avx512f-x16.c",
2144 "src/f32-vrnd/gen/vrndne-avx512f-x32.c",
2145 "src/f32-vrnd/gen/vrndz-avx512f-x16.c",
2146 "src/f32-vrnd/gen/vrndz-avx512f-x32.c",
2147 "src/f32-vrnd/gen/vrndu-avx512f-x16.c",
2148 "src/f32-vrnd/gen/vrndu-avx512f-x32.c",
2149 "src/f32-vrnd/gen/vrndd-avx512f-x16.c",
2150 "src/f32-vrnd/gen/vrndd-avx512f-x32.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002151 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x16.c",
2152 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x32.c",
2153 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x48.c",
2154 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x64.c",
2155 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x80.c",
2156 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x96.c",
2157 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x112.c",
2158 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x128.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07002159 "src/f32-vunary/gen/vabs-avx512f-x16.c",
2160 "src/f32-vunary/gen/vabs-avx512f-x32.c",
2161 "src/f32-vunary/gen/vneg-avx512f-x16.c",
2162 "src/f32-vunary/gen/vneg-avx512f-x32.c",
2163 "src/f32-vunary/gen/vsqr-avx512f-x16.c",
2164 "src/f32-vunary/gen/vsqr-avx512f-x32.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002165 "src/math/exp-avx512f-p5-scalef.c",
2166 "src/math/exp-avx512f-p5.c",
2167 "src/math/exp-avx512f-perm-p3.c",
Marat Dukhanfeb49232019-10-28 11:03:31 -07002168 "src/math/exp-avx512f-perm2-p2.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002169 "src/math/extexp-avx512f-p5.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002170 "src/math/sqrt-avx512f-nr1fma.c",
2171 "src/math/sqrt-avx512f-nr2fma.c",
2172 "src/math/sqrt-avx512f-nr1fma1adj.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002173]
2174
2175AARCH32_ASM_UKERNELS = [
Marat Dukhan32f93812020-05-17 20:31:21 -07002176 "src/f32-gemm/4x4-aarch32-vfp-ld64.S",
Marat Dukhan3b98f6b2020-05-17 10:09:22 -07002177 "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002178 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2179 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S",
2180 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
2181 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Frank Barchard569561d2020-06-17 13:11:12 -07002182 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-ld64.S",
2183 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-ld64.S",
2184 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-ld64.S",
2185 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002186 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
2187 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
2188 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2189 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002190]
2191
2192AARCH64_ASM_UKERNELS = [
Frank Barchard36b76b62020-04-10 12:39:17 -07002193 "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07002194 "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S",
2195 "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard36b76b62020-04-10 12:39:17 -07002196 "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07002197 "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S",
2198 "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002199 "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S",
2200 "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S",
2201 "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002202 "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002203 "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S",
2204 "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S",
2205 "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002206 "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002207 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S",
2208 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07002209 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002210 "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2211 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2212 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2213 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2214 "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2215 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2216 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2217 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2218 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2219 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S",
2220 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S",
2221 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2222 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2223 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2224 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2225 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2226 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2227 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002228 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S",
2229 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07002230 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002231 "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S",
2232 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2233 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2234 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2235 "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S",
2236 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2237 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2238 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2239 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2240 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S",
2241 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S",
2242 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2243 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2244 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2245 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2246 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S",
2247 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2248 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002249 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S",
2250 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S",
2251 "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2252 "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2253 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2254 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2255 "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2256 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2257 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2258 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2259 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2260 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2261 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2262 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2263 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2264 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2265 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2266 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002267]
2268
Marat Dukhan1b354632020-03-23 12:50:22 -07002269INTERNAL_MICROKERNEL_HDRS = [
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002270 "src/requantization/gemmlowp-requantization.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002271 "src/xnnpack/argmaxpool.h",
2272 "src/xnnpack/avgpool.h",
2273 "src/xnnpack/clamp.h",
2274 "src/xnnpack/common.h",
2275 "src/xnnpack/conv.h",
2276 "src/xnnpack/dwconv.h",
2277 "src/xnnpack/gavgpool.h",
2278 "src/xnnpack/gemm.h",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07002279 "src/xnnpack/fill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002280 "src/xnnpack/hswish.h",
Marat Dukhan660fd192020-03-10 04:55:30 -07002281 "src/xnnpack/ibilinear.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002282 "src/xnnpack/igemm.h",
Marat Dukhancfb31342019-12-05 10:42:57 -08002283 "src/xnnpack/intrinsics-polyfill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002284 "src/xnnpack/lut.h",
2285 "src/xnnpack/math.h",
2286 "src/xnnpack/maxpool.h",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002287 "src/xnnpack/memory.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002288 "src/xnnpack/packx.h",
2289 "src/xnnpack/pad.h",
2290 "src/xnnpack/params.h",
2291 "src/xnnpack/pavgpool.h",
2292 "src/xnnpack/ppmm.h",
2293 "src/xnnpack/prelu.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002294 "src/xnnpack/raddexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002295 "src/xnnpack/raddextexp.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002296 "src/xnnpack/raddstoreexpminusmax.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002297 "src/xnnpack/rmax.h",
2298 "src/xnnpack/scalar-utils.h",
2299 "src/xnnpack/spmm.h",
2300 "src/xnnpack/unpool.h",
2301 "src/xnnpack/vadd.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002302 "src/xnnpack/vbinary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002303 "src/xnnpack/vmulcaddc.h",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002304 "src/xnnpack/vscale.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002305 "src/xnnpack/vscaleexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002306 "src/xnnpack/vscaleextexp.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002307 "src/xnnpack/vunary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002308 "src/xnnpack/zip.h",
Marat Dukhan1b354632020-03-23 12:50:22 -07002309]
2310
2311INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002312 "include/xnnpack.h",
2313 "src/xnnpack/allocator.h",
2314 "src/xnnpack/compute.h",
2315 "src/xnnpack/im2col.h",
2316 "src/xnnpack/indirection.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002317 "src/xnnpack/math-stubs.h",
Chao Mei6ddfc602020-05-13 22:29:36 -07002318 "src/xnnpack/memory-planner.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002319 "src/xnnpack/operator.h",
2320 "src/xnnpack/pack.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002321 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002322 "src/xnnpack/requantization-stubs.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002323 "src/xnnpack/requantization.h",
Marat Dukhan1d75a542020-02-03 12:23:01 -08002324 "src/xnnpack/subgraph.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002325]
2326
Marat Dukhan1b354632020-03-23 12:50:22 -07002327ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002328 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002329]
2330
Marat Dukhan1b354632020-03-23 12:50:22 -07002331MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002332 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002333 "include/xnnpack.h",
2334]
2335
Marat Dukhan1b354632020-03-23 12:50:22 -07002336MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002337 "src/xnnpack/isa-checks.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002338 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002339 "src/xnnpack/requantization.h",
2340 "include/xnnpack.h",
2341]
2342
2343OPERATOR_TEST_PARAMS_HDRS = [
2344 "src/xnnpack/params.h",
2345 "src/xnnpack/common.h",
2346]
2347
2348WEIGHTS_PACK_HDRS = [
2349 "src/xnnpack/pack.h",
2350 "src/xnnpack/operator.h",
2351 "src/xnnpack/compute.h",
2352]
2353
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002354LOGGING_COPTS = select({
2355 # No logging in optimized mode
2356 ":optimized_build": ["-DXNN_LOG_LEVEL=0"],
2357 # Full logging in debug mode
2358 ":debug_build": ["-DXNN_LOG_LEVEL=5"],
2359 # Error-only logging in default (fastbuild) mode
2360 "//conditions:default": ["-DXNN_LOG_LEVEL=2"],
2361})
2362
Marat Dukhan3b59de22020-06-03 20:15:19 -07002363LOGGING_SRCS = select({
2364 # No logging in optimized mode
2365 ":optimized_build": [],
2366 "//conditions:default": [
2367 "src/operator-strings.c",
2368 "src/subgraph-strings.c",
2369 ],
2370})
2371
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002372LOGGING_HDRS = [
2373 "src/xnnpack/log.h",
2374]
2375
Marat Dukhan08c4a432019-10-03 09:29:21 -07002376xnnpack_cc_library(
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002377 name = "tables",
2378 srcs = TABLE_SRCS,
2379 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002380 gcc_copts = xnnpack_gcc_std_copts(),
2381 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002382)
2383
2384xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002385 name = "scalar_ukernels",
2386 srcs = SCALAR_UKERNELS,
2387 hdrs = INTERNAL_HDRS,
2388 aarch32_copts = ["-marm"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002389 gcc_copts = xnnpack_gcc_std_copts(),
2390 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002391 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002392 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002393 "@FP16",
2394 "@FXdiv",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002395 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002396 ],
2397)
2398
2399xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002400 name = "scalar_ukernels_test_mode",
2401 srcs = SCALAR_UKERNELS,
2402 hdrs = INTERNAL_HDRS,
2403 aarch32_copts = ["-marm"],
2404 copts = [
2405 "-UNDEBUG",
2406 "-DXNN_TEST_MODE=1",
2407 ],
2408 gcc_copts = xnnpack_gcc_std_copts(),
2409 msvc_copts = xnnpack_msvc_std_copts(),
2410 deps = [
2411 ":tables",
2412 "@FP16",
2413 "@FXdiv",
2414 "@pthreadpool",
2415 ],
2416)
2417
2418xnnpack_cc_library(
Marat Dukhan436ebe62019-12-04 15:10:12 -08002419 name = "wasm_ukernels",
2420 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002421 gcc_copts = xnnpack_gcc_std_copts(),
2422 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan436ebe62019-12-04 15:10:12 -08002423 wasm_srcs = WASM_UKERNELS,
Marat Dukhan1c6e3892020-06-25 23:56:10 -07002424 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan436ebe62019-12-04 15:10:12 -08002425 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002426 ":tables",
Marat Dukhan436ebe62019-12-04 15:10:12 -08002427 "@FP16",
2428 "@FXdiv",
2429 "@pthreadpool",
2430 ],
2431)
2432
2433xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002434 name = "wasm_ukernels_test_mode",
2435 hdrs = INTERNAL_HDRS,
2436 copts = [
2437 "-UNDEBUG",
2438 "-DXNN_TEST_MODE=1",
2439 ],
2440 gcc_copts = xnnpack_gcc_std_copts(),
2441 msvc_copts = xnnpack_msvc_std_copts(),
2442 wasm_srcs = WASM_UKERNELS,
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07002443 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07002444 deps = [
2445 ":tables",
2446 "@FP16",
2447 "@FXdiv",
2448 "@pthreadpool",
2449 ],
2450)
2451
2452xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002453 name = "psimd_fastmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002454 hdrs = INTERNAL_HDRS,
2455 aarch32_copts = [
2456 "-marm",
2457 "-mfpu=neon",
2458 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002459 gcc_copts = xnnpack_gcc_std_copts(),
2460 gcc_x86_copts = ["-msse2"],
2461 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002462 optimized_copts = [
2463 "-O3",
2464 "-ffast-math",
2465 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002466 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002467 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002468 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002469 "@FP16",
2470 "@psimd",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002471 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002472 ],
2473)
2474
2475xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002476 name = "psimd_fastmath_ukernels_test_mode",
2477 hdrs = INTERNAL_HDRS,
2478 aarch32_copts = [
2479 "-marm",
2480 "-mfpu=neon",
2481 ],
2482 copts = [
2483 "-UNDEBUG",
2484 "-DXNN_TEST_MODE=1",
2485 ],
2486 gcc_copts = xnnpack_gcc_std_copts(),
2487 gcc_x86_copts = ["-msse2"],
2488 msvc_copts = xnnpack_msvc_std_copts(),
2489 optimized_copts = [
2490 "-O3",
2491 "-ffast-math",
2492 ],
2493 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
2494 deps = [
2495 ":tables",
2496 "@FP16",
2497 "@psimd",
2498 "@pthreadpool",
2499 ],
2500)
2501
2502xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002503 name = "psimd_accmath_ukernels",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002504 hdrs = INTERNAL_HDRS,
2505 aarch32_copts = [
2506 "-marm",
2507 "-mfpu=neon",
2508 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002509 gcc_copts = xnnpack_gcc_std_copts(),
2510 gcc_x86_copts = ["-msse2"],
2511 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002512 optimized_copts = [
2513 "-O3",
2514 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002515 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002516 deps = [
2517 ":tables",
2518 "@FP16",
2519 "@psimd",
2520 "@pthreadpool",
2521 ],
2522)
2523
2524xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002525 name = "psimd_accmath_ukernels_test_mode",
2526 hdrs = INTERNAL_HDRS,
2527 aarch32_copts = [
2528 "-marm",
2529 "-mfpu=neon",
2530 ],
2531 copts = [
2532 "-UNDEBUG",
2533 "-DXNN_TEST_MODE=1",
2534 ],
2535 gcc_copts = xnnpack_gcc_std_copts(),
2536 gcc_x86_copts = ["-msse2"],
2537 msvc_copts = xnnpack_msvc_std_copts(),
2538 optimized_copts = [
2539 "-O3",
2540 ],
2541 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
2542 deps = [
2543 ":tables",
2544 "@FP16",
2545 "@psimd",
2546 "@pthreadpool",
2547 ],
2548)
2549
2550xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002551 name = "neon_ukernels",
2552 hdrs = INTERNAL_HDRS,
2553 aarch32_copts = [
2554 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002555 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002556 "-mfpu=neon",
2557 ],
2558 aarch32_srcs = NEON_UKERNELS,
2559 aarch64_srcs = NEON_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002560 gcc_copts = xnnpack_gcc_std_copts(),
2561 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002562 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002563 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002564 "@FP16",
2565 "@pthreadpool",
2566 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002567)
2568
2569xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002570 name = "neon_ukernels_test_mode",
2571 hdrs = INTERNAL_HDRS,
2572 aarch32_copts = [
2573 "-marm",
2574 "-march=armv7-a",
2575 "-mfpu=neon",
2576 ],
2577 aarch32_srcs = NEON_UKERNELS,
2578 aarch64_srcs = NEON_UKERNELS,
2579 copts = [
2580 "-UNDEBUG",
2581 "-DXNN_TEST_MODE=1",
2582 ],
2583 gcc_copts = xnnpack_gcc_std_copts(),
2584 msvc_copts = xnnpack_msvc_std_copts(),
2585 deps = [
2586 ":tables",
2587 "@FP16",
2588 "@pthreadpool",
2589 ],
2590)
2591
2592xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002593 name = "neonfma_ukernels",
2594 hdrs = INTERNAL_HDRS,
2595 aarch32_copts = [
2596 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002597 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002598 "-mfpu=neon-vfpv4",
2599 ],
2600 aarch32_srcs = NEONFMA_UKERNELS,
2601 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002602 apple_aarch32_copts = [
2603 "-mcpu=swift",
2604 "-mtune=generic",
2605 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002606 gcc_copts = xnnpack_gcc_std_copts(),
2607 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002608 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002609 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002610 "@FP16",
2611 "@pthreadpool",
2612 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002613)
2614
2615xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002616 name = "neonfma_ukernels_test_mode",
2617 hdrs = INTERNAL_HDRS,
2618 aarch32_copts = [
2619 "-marm",
2620 "-march=armv7-a",
2621 "-mfpu=neon-vfpv4",
2622 ],
2623 aarch32_srcs = NEONFMA_UKERNELS,
2624 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002625 apple_aarch32_copts = [
2626 "-mcpu=swift",
2627 "-mtune=generic",
2628 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002629 copts = [
2630 "-UNDEBUG",
2631 "-DXNN_TEST_MODE=1",
2632 ],
2633 gcc_copts = xnnpack_gcc_std_copts(),
2634 msvc_copts = xnnpack_msvc_std_copts(),
2635 deps = [
2636 ":tables",
2637 "@FP16",
2638 "@pthreadpool",
2639 ],
2640)
2641
2642xnnpack_cc_library(
Marat Dukhan8853b822020-05-07 12:19:01 -07002643 name = "neonv8_ukernels",
2644 hdrs = INTERNAL_HDRS,
2645 aarch32_copts = [
2646 "-marm",
2647 "-march=armv8-a",
2648 "-mfpu=neon-fp-armv8",
2649 ],
2650 aarch32_srcs = NEONV8_UKERNELS,
2651 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002652 apple_aarch32_copts = [
2653 "-mcpu=cyclone",
2654 "-mtune=generic",
2655 ],
Marat Dukhan8853b822020-05-07 12:19:01 -07002656 gcc_copts = xnnpack_gcc_std_copts(),
2657 msvc_copts = xnnpack_msvc_std_copts(),
2658 deps = [
2659 ":tables",
2660 "@FP16",
2661 "@pthreadpool",
2662 ],
2663)
2664
2665xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002666 name = "neonv8_ukernels_test_mode",
2667 hdrs = INTERNAL_HDRS,
2668 aarch32_copts = [
2669 "-marm",
2670 "-march=armv8-a",
2671 "-mfpu=neon-fp-armv8",
2672 ],
2673 aarch32_srcs = NEONV8_UKERNELS,
2674 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002675 apple_aarch32_copts = [
2676 "-mcpu=cyclone",
2677 "-mtune=generic",
2678 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002679 copts = [
2680 "-UNDEBUG",
2681 "-DXNN_TEST_MODE=1",
2682 ],
2683 gcc_copts = xnnpack_gcc_std_copts(),
2684 msvc_copts = xnnpack_msvc_std_copts(),
2685 deps = [
2686 ":tables",
2687 "@FP16",
2688 "@pthreadpool",
2689 ],
2690)
2691
2692xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002693 name = "neonfp16arith_ukernels",
2694 hdrs = INTERNAL_HDRS,
2695 aarch64_copts = ["-march=armv8.2-a+fp16"],
2696 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002697 gcc_copts = xnnpack_gcc_std_copts(),
2698 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002699 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002700 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002701 "@FP16",
2702 "@pthreadpool",
2703 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002704)
2705
2706xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002707 name = "neonfp16arith_ukernels_test_mode",
2708 hdrs = INTERNAL_HDRS,
2709 aarch64_copts = ["-march=armv8.2-a+fp16"],
2710 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
2711 copts = [
2712 "-UNDEBUG",
2713 "-DXNN_TEST_MODE=1",
2714 ],
2715 gcc_copts = xnnpack_gcc_std_copts(),
2716 msvc_copts = xnnpack_msvc_std_copts(),
2717 deps = [
2718 ":tables",
2719 "@FP16",
2720 "@pthreadpool",
2721 ],
2722)
2723
2724xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002725 name = "sse2_ukernels",
2726 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002727 gcc_copts = xnnpack_gcc_std_copts(),
2728 gcc_x86_copts = ["-msse2"],
2729 msvc_copts = xnnpack_msvc_std_copts(),
2730 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002731 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002732 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002733 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002734 "@FP16",
2735 "@pthreadpool",
2736 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002737)
2738
2739xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002740 name = "sse2_ukernels_test_mode",
2741 hdrs = INTERNAL_HDRS,
2742 copts = [
2743 "-UNDEBUG",
2744 "-DXNN_TEST_MODE=1",
2745 ],
2746 gcc_copts = xnnpack_gcc_std_copts(),
2747 gcc_x86_copts = ["-msse2"],
2748 msvc_copts = xnnpack_msvc_std_copts(),
2749 msvc_x86_32_copts = ["/arch:SSE2"],
2750 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
2751 deps = [
2752 ":tables",
2753 "@FP16",
2754 "@pthreadpool",
2755 ],
2756)
2757
2758xnnpack_cc_library(
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002759 name = "ssse3_ukernels",
2760 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002761 gcc_copts = xnnpack_gcc_std_copts(),
2762 gcc_x86_copts = ["-mssse3"],
2763 msvc_copts = xnnpack_msvc_std_copts(),
2764 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002765 x86_srcs = SSSE3_UKERNELS,
2766 deps = [
2767 ":tables",
2768 "@FP16",
2769 "@pthreadpool",
2770 ],
2771)
2772
2773xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002774 name = "ssse3_ukernels_test_mode",
2775 hdrs = INTERNAL_HDRS,
2776 copts = [
2777 "-UNDEBUG",
2778 "-DXNN_TEST_MODE=1",
2779 ],
2780 gcc_copts = xnnpack_gcc_std_copts(),
2781 gcc_x86_copts = ["-mssse3"],
2782 msvc_copts = xnnpack_msvc_std_copts(),
2783 msvc_x86_32_copts = ["/arch:SSE2"],
2784 x86_srcs = SSSE3_UKERNELS,
2785 deps = [
2786 ":tables",
2787 "@FP16",
2788 "@pthreadpool",
2789 ],
2790)
2791
2792xnnpack_cc_library(
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002793 name = "sse41_ukernels",
2794 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002795 gcc_copts = xnnpack_gcc_std_copts(),
2796 gcc_x86_copts = ["-msse4.1"],
2797 msvc_copts = xnnpack_msvc_std_copts(),
2798 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002799 x86_srcs = SSE41_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002800 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002801 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002802 "@FP16",
2803 "@pthreadpool",
2804 ],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002805)
2806
2807xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002808 name = "sse41_ukernels_test_mode",
2809 hdrs = INTERNAL_HDRS,
2810 copts = [
2811 "-UNDEBUG",
2812 "-DXNN_TEST_MODE=1",
2813 ],
2814 gcc_copts = xnnpack_gcc_std_copts(),
2815 gcc_x86_copts = ["-msse4.1"],
2816 msvc_copts = xnnpack_msvc_std_copts(),
2817 msvc_x86_32_copts = ["/arch:SSE2"],
2818 x86_srcs = SSE41_UKERNELS,
2819 deps = [
2820 ":tables",
2821 "@FP16",
2822 "@pthreadpool",
2823 ],
2824)
2825
2826xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002827 name = "avx_ukernels",
2828 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002829 gcc_copts = xnnpack_gcc_std_copts(),
2830 gcc_x86_copts = ["-mavx"],
2831 msvc_copts = xnnpack_msvc_std_copts(),
2832 msvc_x86_32_copts = ["/arch:AVX"],
2833 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002834 x86_srcs = AVX_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002835 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002836 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002837 "@FP16",
2838 "@pthreadpool",
2839 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002840)
2841
2842xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002843 name = "avx_ukernels_test_mode",
2844 hdrs = INTERNAL_HDRS,
2845 copts = [
2846 "-UNDEBUG",
2847 "-DXNN_TEST_MODE=1",
2848 ],
2849 gcc_copts = xnnpack_gcc_std_copts(),
2850 gcc_x86_copts = ["-mavx"],
2851 msvc_copts = xnnpack_msvc_std_copts(),
2852 msvc_x86_32_copts = ["/arch:AVX"],
2853 msvc_x86_64_copts = ["/arch:AVX"],
2854 x86_srcs = AVX_UKERNELS,
2855 deps = [
2856 ":tables",
2857 "@FP16",
2858 "@pthreadpool",
2859 ],
2860)
2861
2862xnnpack_cc_library(
Marat Dukhanfda12b82019-11-21 12:27:59 -08002863 name = "fma3_ukernels",
2864 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002865 gcc_copts = xnnpack_gcc_std_copts(),
2866 gcc_x86_copts = ["-mfma"],
2867 msvc_copts = xnnpack_msvc_std_copts(),
2868 msvc_x86_32_copts = ["/arch:AVX"],
2869 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhanfda12b82019-11-21 12:27:59 -08002870 x86_srcs = FMA3_UKERNELS,
2871 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002872 ":tables",
Marat Dukhanfda12b82019-11-21 12:27:59 -08002873 "@FP16",
2874 "@pthreadpool",
2875 ],
2876)
2877
2878xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002879 name = "fma3_ukernels_test_mode",
2880 hdrs = INTERNAL_HDRS,
2881 copts = [
2882 "-UNDEBUG",
2883 "-DXNN_TEST_MODE=1",
2884 ],
2885 gcc_copts = xnnpack_gcc_std_copts(),
2886 gcc_x86_copts = ["-mfma"],
2887 msvc_copts = xnnpack_msvc_std_copts(),
2888 msvc_x86_32_copts = ["/arch:AVX"],
2889 msvc_x86_64_copts = ["/arch:AVX"],
2890 x86_srcs = FMA3_UKERNELS,
2891 deps = [
2892 ":tables",
2893 "@FP16",
2894 "@pthreadpool",
2895 ],
2896)
2897
2898xnnpack_cc_library(
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002899 name = "avx2_ukernels",
2900 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002901 gcc_copts = xnnpack_gcc_std_copts(),
2902 gcc_x86_copts = [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002903 "-mfma",
2904 "-mavx2",
2905 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002906 msvc_copts = xnnpack_msvc_std_copts(),
2907 msvc_x86_32_copts = ["/arch:AVX2"],
2908 msvc_x86_64_copts = ["/arch:AVX2"],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002909 x86_srcs = AVX2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002910 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002911 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002912 "@FP16",
2913 "@pthreadpool",
2914 ],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002915)
2916
2917xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002918 name = "avx2_ukernels_test_mode",
2919 hdrs = INTERNAL_HDRS,
2920 copts = [
2921 "-UNDEBUG",
2922 "-DXNN_TEST_MODE=1",
2923 ],
2924 gcc_copts = xnnpack_gcc_std_copts(),
2925 gcc_x86_copts = [
2926 "-mfma",
2927 "-mavx2",
2928 ],
2929 msvc_copts = xnnpack_msvc_std_copts(),
2930 msvc_x86_32_copts = ["/arch:AVX2"],
2931 msvc_x86_64_copts = ["/arch:AVX2"],
2932 x86_srcs = AVX2_UKERNELS,
2933 deps = [
2934 ":tables",
2935 "@FP16",
2936 "@pthreadpool",
2937 ],
2938)
2939
2940xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002941 name = "avx512f_ukernels",
2942 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002943 gcc_copts = xnnpack_gcc_std_copts(),
2944 gcc_x86_copts = ["-mavx512f"],
2945 mingw_copts = ["-fno-asynchronous-unwind-tables"],
2946 msvc_copts = xnnpack_msvc_std_copts(),
2947 msvc_x86_32_copts = ["/arch:AVX512"],
2948 msvc_x86_64_copts = ["/arch:AVX512"],
2949 msys_copts = ["-fno-asynchronous-unwind-tables"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002950 x86_srcs = AVX512F_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002951 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002952 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002953 "@FP16",
2954 "@pthreadpool",
2955 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002956)
2957
2958xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002959 name = "avx512f_ukernels_test_mode",
2960 hdrs = INTERNAL_HDRS,
2961 copts = [
2962 "-UNDEBUG",
2963 "-DXNN_TEST_MODE=1",
2964 ],
2965 gcc_copts = xnnpack_gcc_std_copts(),
2966 gcc_x86_copts = ["-mavx512f"],
2967 mingw_copts = ["-fno-asynchronous-unwind-tables"],
2968 msvc_copts = xnnpack_msvc_std_copts(),
2969 msvc_x86_32_copts = ["/arch:AVX512"],
2970 msvc_x86_64_copts = ["/arch:AVX512"],
2971 msys_copts = ["-fno-asynchronous-unwind-tables"],
2972 x86_srcs = AVX512F_UKERNELS,
2973 deps = [
2974 ":tables",
2975 "@FP16",
2976 "@pthreadpool",
2977 ],
2978)
2979
2980xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002981 name = "asm_ukernels",
2982 hdrs = ["src/xnnpack/assembly.h"],
2983 aarch32_srcs = AARCH32_ASM_UKERNELS,
Frank Barchard683f5592020-04-10 00:48:26 -07002984 aarch64_copts = ["-march=armv8.2-a+fp16"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002985 aarch64_srcs = AARCH64_ASM_UKERNELS,
2986)
2987
Marat Dukhan3b59de22020-06-03 20:15:19 -07002988xnnpack_cc_library(
2989 name = "logging_utils",
2990 srcs = LOGGING_SRCS,
2991 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
2992 copts = LOGGING_COPTS + [
2993 "-Isrc",
2994 "-Iinclude",
2995 ] + select({
2996 ":debug_build": [],
2997 "//conditions:default": xnnpack_min_size_copts(),
2998 }),
2999 gcc_copts = xnnpack_gcc_std_copts(),
3000 msvc_copts = xnnpack_msvc_std_copts(),
3001 visibility = xnnpack_visibility(),
3002 deps = [
3003 "@FP16",
3004 "@clog",
3005 "@pthreadpool",
3006 ],
3007)
3008
Marat Dukhan08c4a432019-10-03 09:29:21 -07003009xnnpack_aggregate_library(
3010 name = "ukernels",
3011 aarch32_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003012 ":neon_ukernels",
3013 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003014 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003015 ":asm_ukernels",
3016 ],
3017 aarch64_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003018 ":neon_ukernels",
3019 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003020 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003021 ":neonfp16arith_ukernels",
3022 ":asm_ukernels",
3023 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003024 generic_deps = [
3025 ":scalar_ukernels",
3026 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07003027 psimd_deps = [
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003028 ":psimd_fastmath_ukernels",
3029 ":psimd_accmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003030 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003031 wasm_deps = [
3032 ":wasm_ukernels",
3033 ],
3034 wasmsimd_deps = [
3035 ":wasm_ukernels",
3036 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003037 x86_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003038 ":sse2_ukernels",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003039 ":ssse3_ukernels",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003040 ":sse41_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003041 ":avx_ukernels",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003042 ":fma3_ukernels",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003043 ":avx2_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003044 ":avx512f_ukernels",
3045 ],
3046)
3047
Marat Dukhan33fcf782020-05-24 14:27:15 -07003048xnnpack_aggregate_library(
3049 name = "ukernels_test_mode",
3050 aarch32_deps = [
3051 ":neon_ukernels_test_mode",
3052 ":neonfma_ukernels_test_mode",
3053 ":neonv8_ukernels_test_mode",
3054 ":asm_ukernels",
3055 ],
3056 aarch64_deps = [
3057 ":neon_ukernels_test_mode",
3058 ":neonfma_ukernels_test_mode",
3059 ":neonv8_ukernels_test_mode",
3060 ":neonfp16arith_ukernels_test_mode",
3061 ":asm_ukernels",
3062 ],
3063 generic_deps = [
3064 ":scalar_ukernels_test_mode",
3065 ],
3066 psimd_deps = [
3067 ":psimd_fastmath_ukernels_test_mode",
3068 ":psimd_accmath_ukernels_test_mode",
3069 ],
3070 wasm_deps = [
3071 ":wasm_ukernels_test_mode",
3072 ],
3073 wasmsimd_deps = [
3074 ":wasm_ukernels_test_mode",
3075 ],
3076 x86_deps = [
3077 ":sse2_ukernels_test_mode",
3078 ":ssse3_ukernels_test_mode",
3079 ":sse41_ukernels_test_mode",
3080 ":avx_ukernels_test_mode",
3081 ":fma3_ukernels_test_mode",
3082 ":avx2_ukernels_test_mode",
3083 ":avx512f_ukernels_test_mode",
3084 ],
3085)
3086
Marat Dukhan86df3842020-06-17 14:03:31 -07003087# This target must be compatible with Android NDK r17 and compile with Clang 6.
3088# It is similar to :ukernels target, but excludes microkernels which require
3089# NEON FP16 arithmetics, NEON Dot Product, and newer intrinsics.
Marat Dukhanae046f52020-06-15 13:16:14 -07003090xnnpack_aggregate_library(
Marat Dukhan86df3842020-06-17 14:03:31 -07003091 name = "ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003092 aarch32_deps = [
3093 ":neon_ukernels",
3094 ":neonfma_ukernels",
3095 ":neonv8_ukernels",
3096 ":asm_ukernels",
3097 ],
3098 aarch64_deps = [
3099 ":neon_ukernels",
3100 ":neonfma_ukernels",
3101 ":neonv8_ukernels",
3102 ":asm_ukernels",
3103 ],
3104 generic_deps = [
3105 ":scalar_ukernels",
3106 ],
3107 psimd_deps = [
3108 ":psimd_fastmath_ukernels",
3109 ":psimd_accmath_ukernels",
3110 ],
3111 wasm_deps = [
3112 ":wasm_ukernels",
3113 ],
3114 wasmsimd_deps = [
3115 ":wasm_ukernels",
3116 ],
3117 x86_deps = [
3118 ":sse2_ukernels",
3119 ":ssse3_ukernels",
3120 ":sse41_ukernels",
3121 ":avx_ukernels",
3122 ":fma3_ukernels",
3123 ":avx2_ukernels",
3124 ":avx512f_ukernels",
3125 ],
3126)
3127
Marat Dukhan08c4a432019-10-03 09:29:21 -07003128xnnpack_cc_library(
3129 name = "im2col",
3130 srcs = ["src/im2col.c"],
3131 hdrs = [
3132 "src/xnnpack/common.h",
3133 "src/xnnpack/im2col.h",
3134 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003135 gcc_copts = xnnpack_gcc_std_copts(),
3136 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003137)
3138
3139xnnpack_cc_library(
3140 name = "indirection",
3141 srcs = ["src/indirection.c"],
3142 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003143 gcc_copts = xnnpack_gcc_std_copts(),
3144 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003145 deps = [
3146 "@FP16",
3147 "@FXdiv",
3148 "@pthreadpool",
3149 ],
3150)
3151
3152xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003153 name = "indirection_test_mode",
3154 srcs = ["src/indirection.c"],
3155 hdrs = INTERNAL_HDRS,
3156 copts = [
3157 "-UNDEBUG",
3158 "-DXNN_TEST_MODE=1",
3159 ],
3160 gcc_copts = xnnpack_gcc_std_copts(),
3161 msvc_copts = xnnpack_msvc_std_copts(),
3162 deps = [
3163 "@FP16",
3164 "@FXdiv",
3165 "@pthreadpool",
3166 ],
3167)
3168
3169xnnpack_cc_library(
Marat Dukhanab582382020-07-06 13:32:08 -07003170 name = "packing",
3171 srcs = ["src/packing.c"],
3172 hdrs = INTERNAL_HDRS,
3173 gcc_copts = xnnpack_gcc_std_copts(),
3174 msvc_copts = xnnpack_msvc_std_copts(),
3175 deps = [
3176 "@FP16",
3177 "@FXdiv",
3178 "@pthreadpool",
3179 ],
3180)
3181
3182xnnpack_cc_library(
3183 name = "packing_test_mode",
3184 srcs = ["src/packing.c"],
3185 hdrs = INTERNAL_HDRS,
3186 copts = [
3187 "-UNDEBUG",
3188 "-DXNN_TEST_MODE=1",
3189 ],
3190 gcc_copts = xnnpack_gcc_std_copts(),
3191 msvc_copts = xnnpack_msvc_std_copts(),
3192 deps = [
3193 "@FP16",
3194 "@FXdiv",
3195 "@pthreadpool",
3196 ],
3197)
3198
3199xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003200 name = "operator_run",
3201 srcs = ["src/operator-run.c"],
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07003202 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003203 copts = LOGGING_COPTS + select({
Marat Dukhan05702cf2020-03-26 15:41:33 -07003204 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3205 "//conditions:default": [],
3206 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003207 gcc_copts = xnnpack_gcc_std_copts(),
3208 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003209 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003210 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003211 "@FP16",
3212 "@FXdiv",
3213 "@clog",
3214 "@pthreadpool",
3215 ],
3216)
3217
Chao Mei6ddfc602020-05-13 22:29:36 -07003218xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003219 name = "operator_run_test_mode",
3220 srcs = ["src/operator-run.c"],
3221 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3222 copts = LOGGING_COPTS + [
3223 "-UNDEBUG",
3224 "-DXNN_TEST_MODE=1",
3225 ] + select({
3226 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3227 "//conditions:default": [],
3228 }),
3229 gcc_copts = xnnpack_gcc_std_copts(),
3230 msvc_copts = xnnpack_msvc_std_copts(),
3231 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003232 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003233 "@FP16",
3234 "@FXdiv",
3235 "@clog",
3236 "@pthreadpool",
3237 ],
3238)
3239
3240xnnpack_cc_library(
Chao Mei6ddfc602020-05-13 22:29:36 -07003241 name = "memory_planner",
3242 srcs = ["src/memory-planner.c"],
3243 hdrs = INTERNAL_HDRS,
3244 defines = select({
3245 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
3246 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
3247 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
3248 }),
3249 gcc_copts = xnnpack_gcc_std_copts(),
3250 msvc_copts = xnnpack_msvc_std_copts(),
3251 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003252 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07003253 "@pthreadpool",
3254 ],
3255)
3256
Marat Dukhan33fcf782020-05-24 14:27:15 -07003257xnnpack_cc_library(
3258 name = "memory_planner_test_mode",
3259 srcs = ["src/memory-planner.c"],
3260 hdrs = INTERNAL_HDRS,
3261 copts = [
3262 "-UNDEBUG",
3263 "-DXNN_TEST_MODE=1",
3264 ],
3265 defines = select({
3266 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
3267 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
3268 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
3269 }),
3270 gcc_copts = xnnpack_gcc_std_copts(),
3271 msvc_copts = xnnpack_msvc_std_copts(),
3272 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003273 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003274 "@pthreadpool",
3275 ],
3276)
3277
Marat Dukhan08c4a432019-10-03 09:29:21 -07003278cc_library(
3279 name = "enable_assembly",
3280 defines = select({
3281 ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"],
3282 ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"],
Frank Barchard810171d2019-10-10 10:34:51 -07003283 "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003284 }),
3285)
3286
Marat Dukhan9de90e02020-06-18 16:04:12 -07003287cc_library(
3288 name = "enable_sparse",
3289 defines = select({
3290 ":xnn_enable_sparse_explicit_true": ["XNN_ENABLE_SPARSE=1"],
3291 ":xnn_enable_sparse_explicit_false": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan8b283aa2020-06-18 16:48:57 -07003292 "//conditions:default": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan9de90e02020-06-18 16:04:12 -07003293 }),
3294)
3295
Marat Dukhancf056b22019-10-07 10:26:29 -07003296xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003297 name = "operators",
3298 srcs = OPERATOR_SRCS + [
Marat Dukhan04f03be2019-11-19 12:36:47 -08003299 "src/memory.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003300 "src/operator-delete.c",
Marat Dukhancf056b22019-10-07 10:26:29 -07003301 ],
3302 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003303 copts = LOGGING_COPTS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003304 "-Isrc",
3305 "-Iinclude",
3306 ] + select({
3307 ":debug_build": [],
3308 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003309 }) + select({
3310 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3311 "//conditions:default": [],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003312 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003313 gcc_copts = xnnpack_gcc_std_copts(),
3314 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003315 deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003316 ":indirection",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003317 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07003318 ":packing",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003319 "@FP16",
3320 "@FXdiv",
3321 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003322 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003323 ],
3324)
3325
Marat Dukhan10a38082020-04-17 03:58:35 -07003326xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003327 name = "operators_test_mode",
3328 srcs = OPERATOR_SRCS + [
3329 "src/memory.c",
3330 "src/operator-delete.c",
3331 ],
3332 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3333 copts = LOGGING_COPTS + [
3334 "-Isrc",
3335 "-Iinclude",
3336 "-UNDEBUG",
3337 "-DXNN_TEST_MODE=1",
3338 ] + select({
3339 ":debug_build": [],
3340 "//conditions:default": xnnpack_min_size_copts(),
3341 }) + select({
3342 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3343 "//conditions:default": [],
3344 }),
3345 gcc_copts = xnnpack_gcc_std_copts(),
3346 msvc_copts = xnnpack_msvc_std_copts(),
3347 deps = [
3348 ":indirection_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003349 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07003350 ":packing_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003351 "@FP16",
3352 "@FXdiv",
3353 "@clog",
3354 "@pthreadpool",
3355 ],
3356)
3357
3358xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003359 name = "XNNPACK",
3360 srcs = [
3361 "src/init.c",
Marat Dukhanccfdbd12020-02-03 14:27:45 -08003362 "src/runtime.c",
3363 "src/subgraph.c",
3364 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07003365 ] + SUBGRAPH_SRCS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003366 hdrs = ["include/xnnpack.h"],
3367 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003368 "-Isrc",
3369 "-Iinclude",
3370 ] + select({
3371 ":debug_build": [],
3372 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003373 }) + select({
3374 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3375 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003376 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003377 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003378 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003379 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003380 visibility = xnnpack_visibility(),
3381 deps = [
3382 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003383 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003384 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07003385 ":memory_planner",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003386 ":operator_run",
3387 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003388 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003389 "@clog",
Marat Dukhanab2946c2020-05-21 20:04:13 -07003390 "@FP16",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003391 "@pthreadpool",
Marat Dukhand343c222019-10-07 09:22:14 -07003392 ] + select({
3393 ":emscripten": [],
3394 "//conditions:default": ["@cpuinfo"],
3395 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003396)
3397
Marat Dukhan10a38082020-04-17 03:58:35 -07003398xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003399 name = "XNNPACK_test_mode",
3400 srcs = [
3401 "src/init.c",
3402 "src/runtime.c",
3403 "src/subgraph.c",
3404 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07003405 ] + SUBGRAPH_SRCS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07003406 hdrs = ["include/xnnpack.h"],
3407 copts = LOGGING_COPTS + [
3408 "-Isrc",
3409 "-Iinclude",
3410 "-UNDEBUG",
3411 "-DXNN_TEST_MODE=1",
3412 ] + select({
3413 ":debug_build": [],
3414 "//conditions:default": xnnpack_min_size_copts(),
3415 }) + select({
3416 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3417 "//conditions:default": [],
3418 }),
3419 gcc_copts = xnnpack_gcc_std_copts(),
3420 includes = ["include"],
3421 msvc_copts = xnnpack_msvc_std_copts(),
3422 visibility = xnnpack_visibility(),
3423 deps = [
3424 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003425 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003426 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003427 ":memory_planner_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003428 ":operator_run_test_mode",
3429 ":operators_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003430 ":ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003431 "@clog",
3432 "@FP16",
3433 "@pthreadpool",
3434 ] + select({
3435 ":emscripten": [],
3436 "//conditions:default": ["@cpuinfo"],
3437 }),
3438)
3439
3440xnnpack_cc_library(
Marat Dukhanae046f52020-06-15 13:16:14 -07003441 name = "xnnpack_f32",
3442 srcs = [
3443 "src/init.c",
3444 "src/runtime.c",
3445 "src/subgraph.c",
3446 "src/tensor.c",
3447 ] + SUBGRAPH_SRCS,
3448 hdrs = ["include/xnnpack.h"],
3449 copts = LOGGING_COPTS + [
3450 "-Isrc",
3451 "-Iinclude",
3452 ] + select({
3453 ":debug_build": [],
3454 "//conditions:default": xnnpack_min_size_copts(),
3455 }) + select({
3456 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3457 "//conditions:default": [],
3458 }),
3459 defines = [
3460 "XNN_NO_Q8_OPERATORS",
3461 "XNN_NO_U8_OPERATORS",
3462 "XNN_NO_X8_OPERATORS",
3463 "XNN_NO_F16_OPERATORS",
3464 "XNN_NO_X16_OPERATORS",
3465 ],
3466 gcc_copts = xnnpack_gcc_std_copts(),
3467 includes = ["include"],
3468 msvc_copts = xnnpack_msvc_std_copts(),
3469 visibility = xnnpack_visibility(),
3470 deps = [
3471 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003472 ":enable_sparse",
Marat Dukhanae046f52020-06-15 13:16:14 -07003473 ":logging_utils",
3474 ":memory_planner",
3475 ":operator_run",
3476 ":operators",
Marat Dukhan86df3842020-06-17 14:03:31 -07003477 ":ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003478 "@clog",
3479 "@FP16",
3480 "@pthreadpool",
3481 ] + select({
3482 ":emscripten": [],
3483 "//conditions:default": ["@cpuinfo"],
3484 }),
3485)
3486
3487xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003488 name = "xnnpack_operators_nhwc_f32",
3489 srcs = [
3490 "src/init.c",
3491 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003492 hdrs = ["include/xnnpack.h"],
3493 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003494 "-Isrc",
3495 "-Iinclude",
3496 ] + select({
3497 ":debug_build": [],
3498 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003499 }) + select({
3500 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3501 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003502 }),
3503 defines = [
3504 "XNN_NO_Q8_OPERATORS",
3505 "XNN_NO_U8_OPERATORS",
3506 "XNN_NO_X8_OPERATORS",
Marat Dukhanefc47b82019-11-18 09:25:38 -08003507 "XNN_NO_NCHW_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003508 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003509 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003510 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003511 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003512 visibility = xnnpack_visibility(),
3513 deps = [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003514 ":enable_assembly",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003515 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003516 ":operator_run",
3517 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003518 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003519 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003520 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003521 ] + select({
3522 ":emscripten": [],
3523 "//conditions:default": ["@cpuinfo"],
3524 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003525)
3526
Marat Dukhancf056b22019-10-07 10:26:29 -07003527xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003528 name = "bench_utils",
3529 srcs = ["bench/utils.cc"],
3530 hdrs = ["bench/utils.h"],
Marat Dukhanbad48fe2019-11-04 10:35:22 -08003531 deps = [
3532 "@com_google_benchmark//:benchmark",
3533 "@cpuinfo",
3534 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003535)
3536
Frank Barchard7e955972019-10-11 10:34:25 -07003537######################### Benchmarks for micro-kernels #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07003538
3539xnnpack_benchmark(
3540 name = "q8_gemm_bench",
3541 srcs = [
3542 "bench/gemm.h",
3543 "bench/q8-gemm.cc",
3544 "src/xnnpack/AlignedAllocator.h",
3545 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003546 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07003547 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003548)
3549
3550xnnpack_benchmark(
Frank Barchard40d20fe2020-05-05 00:37:45 -07003551 name = "f16_igemm_bench",
3552 srcs = [
3553 "bench/f16-igemm.cc",
3554 "bench/conv.h",
3555 "bench/google/conv.h",
3556 "src/xnnpack/AlignedAllocator.h",
3557 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003558 deps = MICROKERNEL_BENCHMARK_DEPS + [
3559 ":indirection",
3560 ":packing",
3561 ],
Frank Barchard40d20fe2020-05-05 00:37:45 -07003562)
3563
3564xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003565 name = "f16_gemm_bench",
3566 srcs = [
3567 "bench/f16-gemm.cc",
3568 "bench/gemm.h",
3569 "src/xnnpack/AlignedAllocator.h",
3570 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003571 deps = MICROKERNEL_BENCHMARK_DEPS + [
3572 ":packing",
3573 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003574)
3575
3576xnnpack_benchmark(
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003577 name = "f16_spmm_bench",
3578 srcs = [
3579 "bench/f16-spmm.cc",
3580 "bench/gemm.h",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003581 "src/xnnpack/AlignedAllocator.h",
3582 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003583 deps = MICROKERNEL_BENCHMARK_DEPS,
3584)
3585
3586xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003587 name = "f32_igemm_bench",
3588 srcs = [
3589 "bench/f32-igemm.cc",
3590 "bench/conv.h",
3591 "src/xnnpack/AlignedAllocator.h",
3592 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003593 deps = MICROKERNEL_BENCHMARK_DEPS + [
3594 ":indirection",
3595 ":packing",
3596 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003597)
3598
3599xnnpack_benchmark(
3600 name = "f32_conv_hwc_bench",
3601 srcs = [
3602 "bench/f32-conv-hwc.cc",
3603 "bench/dconv.h",
3604 "src/xnnpack/AlignedAllocator.h",
3605 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003606 deps = MICROKERNEL_BENCHMARK_DEPS + [
3607 ":packing",
3608 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003609)
3610
3611xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003612 name = "f32_conv_hwc2chw_bench",
Erich Elsen563df5f2019-10-23 08:02:21 -07003613 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003614 "bench/f32-conv-hwc2chw.cc",
Erich Elsen563df5f2019-10-23 08:02:21 -07003615 "bench/dconv.h",
3616 "src/xnnpack/AlignedAllocator.h",
3617 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003618 deps = MICROKERNEL_BENCHMARK_DEPS + [
3619 ":packing",
3620 ],
Erich Elsen563df5f2019-10-23 08:02:21 -07003621)
3622
3623xnnpack_benchmark(
Frank Barchard5a599a62020-06-04 20:12:44 -07003624 name = "f16_dwconv_bench",
3625 srcs = [
3626 "bench/f16-dwconv.cc",
3627 "bench/dwconv.h",
3628 "bench/google/dwconv.h",
3629 "src/xnnpack/AlignedAllocator.h",
3630 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003631 deps = MICROKERNEL_BENCHMARK_DEPS + [
3632 ":indirection",
3633 ":packing",
3634 ],
Frank Barchard5a599a62020-06-04 20:12:44 -07003635)
3636
3637xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003638 name = "f32_dwconv_bench",
3639 srcs = [
3640 "bench/f32-dwconv.cc",
3641 "bench/dwconv.h",
3642 "src/xnnpack/AlignedAllocator.h",
3643 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003644 deps = MICROKERNEL_BENCHMARK_DEPS + [
3645 ":indirection",
3646 ":packing",
3647 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003648)
3649
3650xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003651 name = "f32_dwconv_chw_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003652 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003653 "bench/f32-dwconv-chw.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003654 "bench/dwconv.h",
3655 "src/xnnpack/AlignedAllocator.h",
3656 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003657 deps = MICROKERNEL_BENCHMARK_DEPS + [
3658 ":indirection",
3659 ":packing",
3660 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003661)
3662
3663xnnpack_benchmark(
3664 name = "f32_gemm_bench",
3665 srcs = [
3666 "bench/f32-gemm.cc",
3667 "bench/gemm.h",
3668 "src/xnnpack/AlignedAllocator.h",
3669 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003670 copts = xnnpack_optional_ruy_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07003671 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003672)
3673
3674xnnpack_benchmark(
Marat Dukhana11ca342020-06-25 23:45:07 -07003675 name = "f32_hswish_bench",
3676 srcs = [
3677 "bench/f32-hswish.cc",
3678 "src/xnnpack/AlignedAllocator.h",
3679 ] + MICROKERNEL_BENCHMARK_HDRS,
3680 deps = MICROKERNEL_BENCHMARK_DEPS,
3681)
3682
3683xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08003684 name = "f32_raddexpminusmax_bench",
3685 srcs = [
3686 "bench/f32-raddexpminusmax.cc",
3687 "src/xnnpack/AlignedAllocator.h",
3688 ] + MICROKERNEL_BENCHMARK_HDRS,
3689 deps = MICROKERNEL_BENCHMARK_DEPS,
3690)
3691
3692xnnpack_benchmark(
3693 name = "f32_raddextexp_bench",
3694 srcs = [
3695 "bench/f32-raddextexp.cc",
3696 "src/xnnpack/AlignedAllocator.h",
3697 ] + MICROKERNEL_BENCHMARK_HDRS,
3698 deps = MICROKERNEL_BENCHMARK_DEPS,
3699)
3700
3701xnnpack_benchmark(
3702 name = "f32_raddstoreexpminusmax_bench",
3703 srcs = [
3704 "bench/f32-raddstoreexpminusmax.cc",
3705 "src/xnnpack/AlignedAllocator.h",
3706 ] + MICROKERNEL_BENCHMARK_HDRS,
3707 deps = MICROKERNEL_BENCHMARK_DEPS,
3708)
3709
3710xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003711 name = "f32_rmax_bench",
3712 srcs = [
3713 "bench/f32-rmax.cc",
3714 "src/xnnpack/AlignedAllocator.h",
3715 ] + MICROKERNEL_BENCHMARK_HDRS,
3716 deps = MICROKERNEL_BENCHMARK_DEPS,
3717)
3718
3719xnnpack_benchmark(
Marat Dukhan14bec502019-11-18 11:35:31 -08003720 name = "f32_sigmoid_bench",
3721 srcs = [
3722 "bench/f32-sigmoid.cc",
3723 "src/xnnpack/AlignedAllocator.h",
3724 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan14bec502019-11-18 11:35:31 -08003725 deps = MICROKERNEL_BENCHMARK_DEPS,
3726)
3727
3728xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003729 name = "f32_spmm_bench",
3730 srcs = [
3731 "bench/f32-spmm.cc",
3732 "bench/gemm.h",
3733 "src/xnnpack/AlignedAllocator.h",
3734 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003735 deps = MICROKERNEL_BENCHMARK_DEPS,
3736)
3737
3738xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003739 name = "f32_softmax_bench",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003740 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003741 "bench/f32-softmax.cc",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003742 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003743 copts = xnnpack_optional_dnnl_copts(),
Marat Dukhan8d3c6932020-03-06 20:27:27 -08003744 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(),
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003745)
3746
3747xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08003748 name = "f32_vscaleexpminusmax_bench",
3749 srcs = [
3750 "bench/f32-vscaleexpminusmax.cc",
3751 "src/xnnpack/AlignedAllocator.h",
3752 ] + MICROKERNEL_BENCHMARK_HDRS,
3753 deps = MICROKERNEL_BENCHMARK_DEPS,
3754)
3755
3756xnnpack_benchmark(
3757 name = "f32_vscaleextexp_bench",
3758 srcs = [
3759 "bench/f32-vscaleextexp.cc",
3760 "src/xnnpack/AlignedAllocator.h",
3761 ] + MICROKERNEL_BENCHMARK_HDRS,
3762 deps = MICROKERNEL_BENCHMARK_DEPS,
3763)
3764
3765xnnpack_benchmark(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07003766 name = "f32_vsqrt_bench",
3767 srcs = [
3768 "bench/f32-vsqrt.cc",
3769 "src/xnnpack/AlignedAllocator.h",
3770 ] + MICROKERNEL_BENCHMARK_HDRS,
3771 deps = MICROKERNEL_BENCHMARK_DEPS,
3772)
3773
3774xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003775 name = "f32_im2col_gemm_bench",
3776 srcs = [
3777 "bench/f32-im2col-gemm.cc",
3778 "bench/conv.h",
3779 "src/xnnpack/AlignedAllocator.h",
3780 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003781 deps = MICROKERNEL_BENCHMARK_DEPS + [
3782 ":im2col",
3783 ":packing",
3784 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003785)
3786
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003787xnnpack_benchmark(
3788 name = "requantization_bench",
3789 srcs = [
3790 "bench/requantization.cc",
3791 "src/xnnpack/requantization-stubs.h",
3792 "src/xnnpack/AlignedAllocator.h",
3793 ] + MICROKERNEL_BENCHMARK_HDRS,
3794 deps = MICROKERNEL_BENCHMARK_DEPS,
3795)
3796
Marat Dukhanffbf96a2020-05-14 02:59:08 -07003797xnnpack_benchmark(
3798 name = "rounding_bench",
3799 srcs = [
3800 "bench/rounding.cc",
3801 "src/xnnpack/math-stubs.h",
3802 "src/xnnpack/AlignedAllocator.h",
3803 ] + MICROKERNEL_BENCHMARK_HDRS,
3804 deps = MICROKERNEL_BENCHMARK_DEPS,
3805)
3806
Marat Dukhan08c4a432019-10-03 09:29:21 -07003807########################### Benchmarks for operators ###########################
3808
3809xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003810 name = "average_pooling_bench",
3811 srcs = ["bench/average-pooling.cc"],
Marat Dukhan7a16d8b2020-03-11 04:22:44 -07003812 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003813 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003814 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003815)
3816
3817xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07003818 name = "bankers_rounding_bench",
3819 srcs = ["bench/bankers-rounding.cc"],
3820 copts = xnnpack_optional_tflite_copts(),
3821 tags = ["nowin32"],
3822 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
3823)
3824
3825xnnpack_benchmark(
3826 name = "ceiling_bench",
3827 srcs = ["bench/ceiling.cc"],
3828 copts = xnnpack_optional_tflite_copts(),
3829 tags = ["nowin32"],
3830 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
3831)
3832
3833xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003834 name = "channel_shuffle_bench",
3835 srcs = ["bench/channel-shuffle.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003836 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003837)
3838
3839xnnpack_benchmark(
3840 name = "convolution_bench",
3841 srcs = ["bench/convolution.cc"],
3842 copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003843 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003844 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003845)
3846
3847xnnpack_benchmark(
3848 name = "deconvolution_bench",
3849 srcs = ["bench/deconvolution.cc"],
3850 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003851 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003852 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003853)
3854
3855xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07003856 name = "floor_bench",
3857 srcs = ["bench/floor.cc"],
3858 copts = xnnpack_optional_tflite_copts(),
3859 tags = ["nowin32"],
3860 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
3861)
3862
3863xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003864 name = "global_average_pooling_bench",
3865 srcs = ["bench/global-average-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003866 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003867)
3868
3869xnnpack_benchmark(
Marat Dukhanad352602020-06-25 21:50:54 -07003870 name = "hardswish_bench",
3871 srcs = ["bench/hardswish.cc"],
3872 copts = xnnpack_optional_tflite_copts(),
3873 tags = ["nowin32"],
3874 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
3875)
3876
3877xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003878 name = "max_pooling_bench",
3879 srcs = ["bench/max-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003880 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003881)
3882
3883xnnpack_benchmark(
3884 name = "sigmoid_bench",
3885 srcs = ["bench/sigmoid.cc"],
Marat Dukhanc3b9e862019-11-17 13:18:54 -08003886 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07003887 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003888 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003889)
3890
3891xnnpack_benchmark(
Marat Dukhan95b22432019-10-30 16:30:14 -07003892 name = "prelu_bench",
3893 srcs = ["bench/prelu.cc"],
3894 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003895 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003896 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan95b22432019-10-30 16:30:14 -07003897)
3898
3899xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003900 name = "softmax_bench",
3901 srcs = ["bench/softmax.cc"],
Marat Dukhan9c0db962020-01-28 12:30:14 -08003902 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07003903 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003904 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003905)
3906
Marat Dukhan87727142020-06-24 15:24:10 -07003907xnnpack_benchmark(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07003908 name = "square_root_bench",
3909 srcs = ["bench/square-root.cc"],
3910 copts = xnnpack_optional_tflite_copts(),
3911 tags = ["nowin32"],
3912 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
3913)
3914
3915xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07003916 name = "truncation_bench",
3917 srcs = ["bench/truncation.cc"],
3918 deps = OPERATOR_BENCHMARK_DEPS,
3919)
3920
Marat Dukhanc068bb62019-10-04 13:24:39 -07003921############################# End-to-end benchmarks ############################
3922
3923cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07003924 name = "fp32_mobilenet_v1",
3925 srcs = ["models/fp32-mobilenet-v1.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07003926 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003927 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07003928 linkstatic = True,
3929 deps = [
3930 ":XNNPACK",
3931 "@pthreadpool",
3932 ],
3933)
3934
3935cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07003936 name = "fp16_mobilenet_v1",
3937 srcs = ["models/fp16-mobilenet-v1.cc"],
3938 hdrs = ["models/models.h"],
3939 copts = xnnpack_std_cxxopts(),
3940 linkstatic = True,
3941 deps = [
3942 ":XNNPACK",
3943 "@FP16",
3944 "@pthreadpool",
3945 ],
3946)
3947
3948cc_library(
3949 name = "fp32_mobilenet_v2",
3950 srcs = ["models/fp32-mobilenet-v2.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07003951 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003952 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07003953 linkstatic = True,
3954 deps = [
3955 ":XNNPACK",
3956 "@pthreadpool",
3957 ],
3958)
3959
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003960cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07003961 name = "fp16_mobilenet_v2",
3962 srcs = ["models/fp16-mobilenet-v2.cc"],
3963 hdrs = ["models/models.h"],
3964 copts = xnnpack_std_cxxopts(),
3965 linkstatic = True,
3966 deps = [
3967 ":XNNPACK",
3968 "@FP16",
3969 "@pthreadpool",
3970 ],
3971)
3972
3973cc_library(
3974 name = "fp32_mobilenet_v3_large",
3975 srcs = ["models/fp32-mobilenet-v3-large.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003976 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003977 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003978 linkstatic = True,
3979 deps = [
3980 ":XNNPACK",
3981 "@pthreadpool",
3982 ],
3983)
3984
3985cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07003986 name = "fp32_mobilenet_v3_small",
3987 srcs = ["models/fp32-mobilenet-v3-small.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003988 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003989 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003990 linkstatic = True,
3991 deps = [
3992 ":XNNPACK",
3993 "@pthreadpool",
3994 ],
3995)
3996
Marat Dukhanc068bb62019-10-04 13:24:39 -07003997xnnpack_benchmark(
Marat Dukhanef4416e2019-10-31 13:44:40 -07003998 name = "f32_dwconv_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003999 srcs = [
4000 "bench/f32-dwconv-e2e.cc",
4001 "bench/end2end.h",
4002 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanef4416e2019-10-31 13:44:40 -07004003 deps = MICROKERNEL_BENCHMARK_DEPS + [
4004 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004005 ":fp32_mobilenet_v1",
4006 ":fp32_mobilenet_v2",
4007 ":fp32_mobilenet_v3_large",
4008 ":fp32_mobilenet_v3_small",
Marat Dukhanef4416e2019-10-31 13:44:40 -07004009 ],
4010)
4011
4012xnnpack_benchmark(
Marat Dukhan5f18d262019-10-31 10:24:14 -07004013 name = "f32_gemm_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004014 srcs = [
4015 "bench/f32-gemm-e2e.cc",
4016 "bench/end2end.h",
4017 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan5f18d262019-10-31 10:24:14 -07004018 deps = MICROKERNEL_BENCHMARK_DEPS + [
4019 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004020 ":fp32_mobilenet_v1",
4021 ":fp32_mobilenet_v2",
4022 ":fp32_mobilenet_v3_large",
4023 ":fp32_mobilenet_v3_small",
Marat Dukhan5f18d262019-10-31 10:24:14 -07004024 ],
4025)
4026
4027xnnpack_benchmark(
Marat Dukhanc068bb62019-10-04 13:24:39 -07004028 name = "end2end_bench",
4029 srcs = ["bench/end2end.cc"],
4030 deps = [
4031 ":XNNPACK",
Frank Barchardc712fa42019-10-31 14:00:21 -07004032 ":bench_utils",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004033 ":fp16_mobilenet_v1",
4034 ":fp16_mobilenet_v2",
4035 ":fp32_mobilenet_v1",
4036 ":fp32_mobilenet_v2",
4037 ":fp32_mobilenet_v3_large",
4038 ":fp32_mobilenet_v3_small",
Marat Dukhanc068bb62019-10-04 13:24:39 -07004039 "@pthreadpool",
4040 ],
4041)
4042
Marat Dukhan6adff4e2019-10-14 18:32:07 -07004043#################### Accuracy evaluation for math functions ####################
4044
4045xnnpack_benchmark(
4046 name = "f32_exp_eval",
4047 srcs = [
4048 "eval/f32-exp.cc",
4049 "src/xnnpack/AlignedAllocator.h",
4050 ] + ACCURACY_EVAL_HDRS,
4051 deps = ACCURACY_EVAL_DEPS,
4052)
4053
Marat Dukhan515c9772019-10-17 18:07:57 -07004054xnnpack_benchmark(
4055 name = "f32_expminus_eval",
4056 srcs = [
4057 "eval/f32-expminus.cc",
4058 "src/xnnpack/AlignedAllocator.h",
4059 ] + ACCURACY_EVAL_HDRS,
4060 deps = ACCURACY_EVAL_DEPS,
4061)
4062
Marat Dukhan98ba4412019-10-23 02:14:28 -07004063xnnpack_benchmark(
4064 name = "f32_extexp_eval",
4065 srcs = [
4066 "eval/f32-extexp.cc",
4067 "src/xnnpack/AlignedAllocator.h",
4068 ] + ACCURACY_EVAL_HDRS,
4069 deps = ACCURACY_EVAL_DEPS,
4070)
4071
Marat Dukhan8853b822020-05-07 12:19:01 -07004072xnnpack_unit_test(
4073 name = "f32_roundne_eval",
4074 srcs = [
4075 "eval/f32-roundne.cc",
4076 "src/xnnpack/AlignedAllocator.h",
4077 "src/xnnpack/math-stubs.h",
4078 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhan22eed3d2020-05-11 20:13:37 -07004079 automatic = False,
Marat Dukhan8853b822020-05-07 12:19:01 -07004080 deps = MICROKERNEL_TEST_DEPS,
4081)
4082
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004083xnnpack_unit_test(
Marat Dukhanc9852ba2020-05-13 17:21:29 -07004084 name = "f32_roundd_eval",
4085 srcs = [
4086 "eval/f32-roundd.cc",
4087 "src/xnnpack/AlignedAllocator.h",
4088 "src/xnnpack/math-stubs.h",
4089 ] + MICROKERNEL_TEST_HDRS,
4090 automatic = False,
4091 deps = MICROKERNEL_TEST_DEPS,
4092)
4093
4094xnnpack_unit_test(
4095 name = "f32_roundu_eval",
4096 srcs = [
4097 "eval/f32-roundu.cc",
4098 "src/xnnpack/AlignedAllocator.h",
4099 "src/xnnpack/math-stubs.h",
4100 ] + MICROKERNEL_TEST_HDRS,
4101 automatic = False,
4102 deps = MICROKERNEL_TEST_DEPS,
4103)
4104
4105xnnpack_unit_test(
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004106 name = "f32_roundz_eval",
4107 srcs = [
4108 "eval/f32-roundz.cc",
4109 "src/xnnpack/AlignedAllocator.h",
4110 "src/xnnpack/math-stubs.h",
4111 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhanc9852ba2020-05-13 17:21:29 -07004112 automatic = False,
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004113 deps = MICROKERNEL_TEST_DEPS,
4114)
4115
Marat Dukhan346a9e52019-11-15 09:06:30 -08004116xnnpack_benchmark(
4117 name = "f32_sigmoid_eval",
4118 srcs = [
4119 "eval/f32-sigmoid.cc",
4120 "src/xnnpack/AlignedAllocator.h",
4121 ] + ACCURACY_EVAL_HDRS,
4122 deps = ACCURACY_EVAL_DEPS,
4123)
4124
Marat Dukhan84000762020-06-29 18:38:43 -07004125xnnpack_benchmark(
4126 name = "f32_sqrt_eval",
4127 srcs = [
4128 "eval/f32-sqrt.cc",
4129 "src/xnnpack/AlignedAllocator.h",
4130 ] + ACCURACY_EVAL_HDRS,
4131 deps = ACCURACY_EVAL_DEPS + [
4132 ":bench_utils",
4133 ],
4134)
4135
Marat Dukhan08c4a432019-10-03 09:29:21 -07004136######################### Unit tests for micro-kernels #########################
4137
4138xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07004139 name = "f16_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004140 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07004141 "test/f16-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004142 "test/gemm-microkernel-tester.h",
4143 "src/xnnpack/AlignedAllocator.h",
4144 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004145 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004146)
4147
4148xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07004149 name = "f16_spmm_minmax_test",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004150 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07004151 "test/f16-spmm-minmax.cc",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004152 "test/spmm-microkernel-tester.h",
4153 "src/xnnpack/AlignedAllocator.h",
4154 ] + MICROKERNEL_TEST_HDRS,
4155 deps = MICROKERNEL_TEST_DEPS,
4156)
4157
4158xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004159 name = "f32_argmaxpool_test",
4160 srcs = [
4161 "test/f32-argmaxpool.cc",
4162 "test/argmaxpool-microkernel-tester.h",
4163 "src/xnnpack/AlignedAllocator.h",
4164 ] + MICROKERNEL_TEST_HDRS,
4165 deps = MICROKERNEL_TEST_DEPS,
4166)
4167
4168xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004169 name = "f32_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004170 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004171 "test/f32-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004172 "test/avgpool-microkernel-tester.h",
4173 "src/xnnpack/AlignedAllocator.h",
4174 ] + MICROKERNEL_TEST_HDRS,
4175 deps = MICROKERNEL_TEST_DEPS,
4176)
4177
4178xnnpack_unit_test(
Marat Dukhan660fd192020-03-10 04:55:30 -07004179 name = "f32_ibilinear_test",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08004180 srcs = [
Marat Dukhan660fd192020-03-10 04:55:30 -07004181 "test/f32-ibilinear.cc",
4182 "test/ibilinear-microkernel-tester.h",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08004183 "src/xnnpack/AlignedAllocator.h",
4184 ] + MICROKERNEL_TEST_HDRS,
4185 deps = MICROKERNEL_TEST_DEPS,
4186)
4187
4188xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004189 name = "f16_clamp_test",
4190 srcs = [
4191 "test/f16-clamp.cc",
4192 "test/clamp-microkernel-tester.h",
4193 ] + MICROKERNEL_TEST_HDRS,
4194 deps = MICROKERNEL_TEST_DEPS,
4195)
4196
4197xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004198 name = "f32_clamp_test",
4199 srcs = [
4200 "test/f32-clamp.cc",
4201 "test/clamp-microkernel-tester.h",
4202 ] + MICROKERNEL_TEST_HDRS,
4203 deps = MICROKERNEL_TEST_DEPS,
4204)
4205
4206xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004207 name = "f32_igemm_test",
4208 srcs = [
4209 "test/f32-igemm.cc",
4210 "test/gemm-microkernel-tester.h",
4211 "src/xnnpack/AlignedAllocator.h",
4212 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004213 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004214)
4215
4216xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07004217 name = "f32_igemm_relu_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004218 srcs = [
Marat Dukhan467f6362020-05-22 23:21:55 -07004219 "test/f32-igemm-relu.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004220 "test/gemm-microkernel-tester.h",
4221 "src/xnnpack/AlignedAllocator.h",
4222 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004223 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004224)
4225
4226xnnpack_unit_test(
Marat Dukhane207b7b2020-05-28 16:27:42 -07004227 name = "f32_igemm_minmax_test",
4228 srcs = [
4229 "test/f32-igemm-minmax.cc",
4230 "test/gemm-microkernel-tester.h",
4231 "src/xnnpack/AlignedAllocator.h",
4232 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004233 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhane207b7b2020-05-28 16:27:42 -07004234)
4235
4236xnnpack_unit_test(
Frank Barchardb0e4fae2020-05-04 15:27:51 -07004237 name = "f16_igemm_minmax_test",
4238 srcs = [
4239 "test/f16-igemm-minmax.cc",
4240 "test/gemm-microkernel-tester.h",
4241 "src/xnnpack/AlignedAllocator.h",
4242 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004243 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchardb0e4fae2020-05-04 15:27:51 -07004244)
4245
4246xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004247 name = "f32_conv_hwc_test",
4248 srcs = [
4249 "test/f32-conv-hwc.cc",
4250 "test/conv-hwc-microkernel-tester.h",
4251 "src/xnnpack/AlignedAllocator.h",
4252 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004253 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004254)
4255
4256xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004257 name = "f32_conv_hwc2chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004258 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004259 "test/f32-conv-hwc2chw.cc",
4260 "test/conv-hwc2chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004261 "src/xnnpack/AlignedAllocator.h",
4262 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004263 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004264)
4265
4266xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004267 name = "f32_dwconv_test",
4268 srcs = [
4269 "test/f32-dwconv.cc",
4270 "test/dwconv-microkernel-tester.h",
4271 "src/xnnpack/AlignedAllocator.h",
4272 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004273 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004274)
4275
4276xnnpack_unit_test(
Frank Barchard5a599a62020-06-04 20:12:44 -07004277 name = "f16_dwconv_minmax_test",
4278 srcs = [
4279 "test/f16-dwconv-minmax.cc",
4280 "test/dwconv-microkernel-tester.h",
4281 "src/xnnpack/AlignedAllocator.h",
4282 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004283 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard5a599a62020-06-04 20:12:44 -07004284)
4285
4286xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004287 name = "f32_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004288 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004289 "test/f32-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004290 "test/dwconv-microkernel-tester.h",
4291 "src/xnnpack/AlignedAllocator.h",
4292 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004293 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004294)
4295
4296xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004297 name = "f32_dwconv_chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004298 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004299 "test/f32-dwconv-chw.cc",
4300 "test/dwconv-chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004301 "src/xnnpack/AlignedAllocator.h",
4302 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004303 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004304)
4305
4306xnnpack_unit_test(
Frank Barchard0bb49a72020-06-04 11:35:11 -07004307 name = "f16_gavgpool_minmax_test",
4308 srcs = [
4309 "test/f16-gavgpool-minmax.cc",
4310 "test/gavgpool-microkernel-tester.h",
4311 "src/xnnpack/AlignedAllocator.h",
4312 ] + MICROKERNEL_TEST_HDRS,
4313 deps = MICROKERNEL_TEST_DEPS,
4314)
4315
4316xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004317 name = "f32_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004318 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004319 "test/f32-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004320 "test/gavgpool-microkernel-tester.h",
4321 "src/xnnpack/AlignedAllocator.h",
4322 ] + MICROKERNEL_TEST_HDRS,
4323 deps = MICROKERNEL_TEST_DEPS,
4324)
4325
4326xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004327 name = "f32_gavgpool_cw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004328 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004329 "test/f32-gavgpool-cw.cc",
4330 "test/gavgpool-cw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004331 "src/xnnpack/AlignedAllocator.h",
4332 ] + MICROKERNEL_TEST_HDRS,
4333 deps = MICROKERNEL_TEST_DEPS,
4334)
4335
4336xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004337 name = "f32_gemm_test",
4338 srcs = [
4339 "test/f32-gemm.cc",
4340 "test/gemm-microkernel-tester.h",
4341 "src/xnnpack/AlignedAllocator.h",
4342 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004343 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004344)
4345
4346xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07004347 name = "f32_gemm_relu_test",
4348 srcs = [
4349 "test/f32-gemm-relu.cc",
4350 "test/gemm-microkernel-tester.h",
4351 "src/xnnpack/AlignedAllocator.h",
4352 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004353 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan467f6362020-05-22 23:21:55 -07004354)
4355
4356xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004357 name = "f32_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004358 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004359 "test/f32-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004360 "test/gemm-microkernel-tester.h",
4361 "src/xnnpack/AlignedAllocator.h",
4362 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004363 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004364)
4365
4366xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004367 name = "f32_gemminc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004368 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004369 "test/f32-gemminc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004370 "test/gemm-microkernel-tester.h",
4371 "src/xnnpack/AlignedAllocator.h",
4372 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004373 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004374)
4375
4376xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004377 name = "f16_hswish_test",
4378 srcs = [
4379 "test/f16-hswish.cc",
4380 "test/hswish-microkernel-tester.h",
4381 ] + MICROKERNEL_TEST_HDRS,
4382 deps = MICROKERNEL_TEST_DEPS,
4383)
4384
4385xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004386 name = "f32_hswish_test",
4387 srcs = [
4388 "test/f32-hswish.cc",
4389 "test/hswish-microkernel-tester.h",
4390 ] + MICROKERNEL_TEST_HDRS,
4391 deps = MICROKERNEL_TEST_DEPS,
4392)
4393
4394xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004395 name = "f32_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004396 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004397 "test/f32-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004398 "test/maxpool-microkernel-tester.h",
4399 ] + MICROKERNEL_TEST_HDRS,
4400 deps = MICROKERNEL_TEST_DEPS,
4401)
4402
4403xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004404 name = "f32_pavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004405 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004406 "test/f32-pavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004407 "test/avgpool-microkernel-tester.h",
4408 "src/xnnpack/AlignedAllocator.h",
4409 ] + MICROKERNEL_TEST_HDRS,
4410 deps = MICROKERNEL_TEST_DEPS,
4411)
4412
4413xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004414 name = "f32_ppmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004415 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004416 "test/f32-ppmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004417 "test/gemm-microkernel-tester.h",
4418 "src/xnnpack/AlignedAllocator.h",
4419 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004420 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004421)
4422
4423xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004424 name = "f16_prelu_test",
4425 srcs = [
4426 "test/f16-prelu.cc",
4427 "test/prelu-microkernel-tester.h",
4428 "src/xnnpack/AlignedAllocator.h",
4429 ] + MICROKERNEL_TEST_HDRS,
4430 deps = MICROKERNEL_TEST_DEPS,
4431)
4432
4433xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004434 name = "f32_prelu_test",
4435 srcs = [
4436 "test/f32-prelu.cc",
4437 "test/prelu-microkernel-tester.h",
4438 "src/xnnpack/AlignedAllocator.h",
4439 ] + MICROKERNEL_TEST_HDRS,
4440 deps = MICROKERNEL_TEST_DEPS,
4441)
4442
4443xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004444 name = "f32_raddexpminusmax_test",
4445 srcs = [
4446 "test/f32-raddexpminusmax.cc",
4447 "test/raddexpminusmax-microkernel-tester.h",
4448 ] + MICROKERNEL_TEST_HDRS,
4449 deps = MICROKERNEL_TEST_DEPS,
4450)
4451
4452xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07004453 name = "f32_raddextexp_test",
4454 srcs = [
4455 "test/f32-raddextexp.cc",
4456 "test/raddextexp-microkernel-tester.h",
4457 ] + MICROKERNEL_TEST_HDRS,
4458 deps = MICROKERNEL_TEST_DEPS,
4459)
4460
4461xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004462 name = "f32_raddstoreexpminusmax_test",
4463 srcs = [
4464 "test/f32-raddstoreexpminusmax.cc",
4465 "test/raddstoreexpminusmax-microkernel-tester.h",
4466 ] + MICROKERNEL_TEST_HDRS,
4467 deps = MICROKERNEL_TEST_DEPS,
4468)
4469
4470xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004471 name = "f32_rmax_test",
4472 srcs = [
4473 "test/f32-rmax.cc",
4474 "test/rmax-microkernel-tester.h",
4475 ] + MICROKERNEL_TEST_HDRS,
4476 deps = MICROKERNEL_TEST_DEPS,
4477)
4478
4479xnnpack_unit_test(
Marat Dukhan346a9e52019-11-15 09:06:30 -08004480 name = "f32_sigmoid_test",
4481 srcs = [
4482 "test/f32-sigmoid.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004483 "test/vunary-microkernel-tester.h",
Marat Dukhan346a9e52019-11-15 09:06:30 -08004484 ] + MICROKERNEL_TEST_HDRS,
4485 deps = MICROKERNEL_TEST_DEPS,
4486)
4487
4488xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07004489 name = "f32_spmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004490 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07004491 "test/f32-spmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004492 "test/spmm-microkernel-tester.h",
4493 "src/xnnpack/AlignedAllocator.h",
4494 ] + MICROKERNEL_TEST_HDRS,
4495 deps = MICROKERNEL_TEST_DEPS,
4496)
4497
4498xnnpack_unit_test(
Frank Barchardd793f6c2020-05-08 13:37:43 -07004499 name = "f16_vadd_minmax_test",
4500 srcs = [
4501 "test/f16-vadd-minmax.cc",
4502 "test/vbinary-microkernel-tester.h",
4503 ] + MICROKERNEL_TEST_HDRS,
4504 deps = MICROKERNEL_TEST_DEPS,
4505)
4506
4507xnnpack_unit_test(
4508 name = "f16_vaddc_minmax_test",
4509 srcs = [
4510 "test/f16-vaddc-minmax.cc",
4511 "test/vbinaryc-microkernel-tester.h",
4512 ] + MICROKERNEL_TEST_HDRS,
4513 deps = MICROKERNEL_TEST_DEPS,
4514)
4515
4516xnnpack_unit_test(
4517 name = "f16_vdiv_minmax_test",
4518 srcs = [
4519 "test/f16-vdiv-minmax.cc",
4520 "test/vbinary-microkernel-tester.h",
4521 ] + MICROKERNEL_TEST_HDRS,
4522 deps = MICROKERNEL_TEST_DEPS,
4523)
4524
4525xnnpack_unit_test(
4526 name = "f16_vdivc_minmax_test",
4527 srcs = [
4528 "test/f16-vdivc-minmax.cc",
4529 "test/vbinaryc-microkernel-tester.h",
4530 ] + MICROKERNEL_TEST_HDRS,
4531 deps = MICROKERNEL_TEST_DEPS,
4532)
4533
4534xnnpack_unit_test(
4535 name = "f16_vrdivc_minmax_test",
4536 srcs = [
4537 "test/f16-vrdivc-minmax.cc",
4538 "test/vbinaryc-microkernel-tester.h",
4539 ] + MICROKERNEL_TEST_HDRS,
4540 deps = MICROKERNEL_TEST_DEPS,
4541)
4542
4543xnnpack_unit_test(
4544 name = "f16_vmax_test",
4545 srcs = [
4546 "test/f16-vmax.cc",
4547 "test/vbinary-microkernel-tester.h",
4548 ] + MICROKERNEL_TEST_HDRS,
4549 deps = MICROKERNEL_TEST_DEPS,
4550)
4551
4552xnnpack_unit_test(
4553 name = "f16_vmaxc_test",
4554 srcs = [
4555 "test/f16-vmaxc.cc",
4556 "test/vbinaryc-microkernel-tester.h",
4557 ] + MICROKERNEL_TEST_HDRS,
4558 deps = MICROKERNEL_TEST_DEPS,
4559)
4560
4561xnnpack_unit_test(
4562 name = "f16_vmin_test",
4563 srcs = [
4564 "test/f16-vmin.cc",
4565 "test/vbinary-microkernel-tester.h",
4566 ] + MICROKERNEL_TEST_HDRS,
4567 deps = MICROKERNEL_TEST_DEPS,
4568)
4569
4570xnnpack_unit_test(
4571 name = "f16_vminc_test",
4572 srcs = [
4573 "test/f16-vminc.cc",
4574 "test/vbinaryc-microkernel-tester.h",
4575 ] + MICROKERNEL_TEST_HDRS,
4576 deps = MICROKERNEL_TEST_DEPS,
4577)
4578
4579xnnpack_unit_test(
4580 name = "f16_vmul_minmax_test",
4581 srcs = [
4582 "test/f16-vmul-minmax.cc",
4583 "test/vbinary-microkernel-tester.h",
4584 ] + MICROKERNEL_TEST_HDRS,
4585 deps = MICROKERNEL_TEST_DEPS,
4586)
4587
4588xnnpack_unit_test(
4589 name = "f16_vmulc_minmax_test",
4590 srcs = [
4591 "test/f16-vmulc-minmax.cc",
4592 "test/vbinaryc-microkernel-tester.h",
4593 ] + MICROKERNEL_TEST_HDRS,
4594 deps = MICROKERNEL_TEST_DEPS,
4595)
4596
4597xnnpack_unit_test(
4598 name = "f16_vsub_minmax_test",
4599 srcs = [
4600 "test/f16-vsub-minmax.cc",
4601 "test/vbinary-microkernel-tester.h",
4602 ] + MICROKERNEL_TEST_HDRS,
4603 deps = MICROKERNEL_TEST_DEPS,
4604)
4605
4606xnnpack_unit_test(
4607 name = "f16_vsubc_minmax_test",
4608 srcs = [
4609 "test/f16-vsubc-minmax.cc",
4610 "test/vbinaryc-microkernel-tester.h",
4611 ] + MICROKERNEL_TEST_HDRS,
4612 deps = MICROKERNEL_TEST_DEPS,
4613)
4614
4615xnnpack_unit_test(
4616 name = "f16_vrsubc_minmax_test",
4617 srcs = [
4618 "test/f16-vrsubc-minmax.cc",
4619 "test/vbinaryc-microkernel-tester.h",
4620 ] + MICROKERNEL_TEST_HDRS,
4621 deps = MICROKERNEL_TEST_DEPS,
4622)
4623
4624xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07004625 name = "f32_vabs_test",
4626 srcs = [
4627 "test/f32-vabs.cc",
4628 "test/vunary-microkernel-tester.h",
4629 ] + MICROKERNEL_TEST_HDRS,
4630 deps = MICROKERNEL_TEST_DEPS,
4631)
4632
4633xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004634 name = "f32_vadd_test",
4635 srcs = [
4636 "test/f32-vadd.cc",
4637 "test/vbinary-microkernel-tester.h",
4638 ] + MICROKERNEL_TEST_HDRS,
4639 deps = MICROKERNEL_TEST_DEPS,
4640)
4641
4642xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004643 name = "f32_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004644 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004645 "test/f32-vadd-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004646 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004647 ] + MICROKERNEL_TEST_HDRS,
4648 deps = MICROKERNEL_TEST_DEPS,
4649)
4650
4651xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004652 name = "f32_vaddc_test",
4653 srcs = [
4654 "test/f32-vaddc.cc",
4655 "test/vbinaryc-microkernel-tester.h",
4656 ] + MICROKERNEL_TEST_HDRS,
4657 deps = MICROKERNEL_TEST_DEPS,
4658)
4659
4660xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004661 name = "f32_vaddc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004662 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004663 "test/f32-vaddc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004664 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004665 ] + MICROKERNEL_TEST_HDRS,
4666 deps = MICROKERNEL_TEST_DEPS,
4667)
4668
4669xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004670 name = "f32_vdiv_test",
4671 srcs = [
4672 "test/f32-vdiv.cc",
4673 "test/vbinary-microkernel-tester.h",
4674 ] + MICROKERNEL_TEST_HDRS,
4675 deps = MICROKERNEL_TEST_DEPS,
4676)
4677
4678xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004679 name = "f32_vdiv_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004680 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004681 "test/f32-vdiv-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004682 "test/vbinary-microkernel-tester.h",
4683 ] + MICROKERNEL_TEST_HDRS,
4684 deps = MICROKERNEL_TEST_DEPS,
4685)
4686
4687xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004688 name = "f32_vdivc_test",
4689 srcs = [
4690 "test/f32-vdivc.cc",
4691 "test/vbinaryc-microkernel-tester.h",
4692 ] + MICROKERNEL_TEST_HDRS,
4693 deps = MICROKERNEL_TEST_DEPS,
4694)
4695
4696xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004697 name = "f32_vdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004698 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004699 "test/f32-vdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004700 "test/vbinaryc-microkernel-tester.h",
4701 ] + MICROKERNEL_TEST_HDRS,
4702 deps = MICROKERNEL_TEST_DEPS,
4703)
4704
4705xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004706 name = "f32_vrdivc_test",
4707 srcs = [
4708 "test/f32-vrdivc.cc",
4709 "test/vbinaryc-microkernel-tester.h",
4710 ] + MICROKERNEL_TEST_HDRS,
4711 deps = MICROKERNEL_TEST_DEPS,
4712)
4713
4714xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004715 name = "f32_vrdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004716 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004717 "test/f32-vrdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004718 "test/vbinaryc-microkernel-tester.h",
4719 ] + MICROKERNEL_TEST_HDRS,
4720 deps = MICROKERNEL_TEST_DEPS,
4721)
4722
4723xnnpack_unit_test(
Marat Dukhan403b7d42019-12-05 12:49:11 -08004724 name = "f32_vmax_test",
4725 srcs = [
4726 "test/f32-vmax.cc",
4727 "test/vbinary-microkernel-tester.h",
4728 ] + MICROKERNEL_TEST_HDRS,
4729 deps = MICROKERNEL_TEST_DEPS,
4730)
4731
4732xnnpack_unit_test(
4733 name = "f32_vmaxc_test",
4734 srcs = [
4735 "test/f32-vmaxc.cc",
4736 "test/vbinaryc-microkernel-tester.h",
4737 ] + MICROKERNEL_TEST_HDRS,
4738 deps = MICROKERNEL_TEST_DEPS,
4739)
4740
4741xnnpack_unit_test(
4742 name = "f32_vmin_test",
4743 srcs = [
4744 "test/f32-vmin.cc",
4745 "test/vbinary-microkernel-tester.h",
4746 ] + MICROKERNEL_TEST_HDRS,
4747 deps = MICROKERNEL_TEST_DEPS,
4748)
4749
4750xnnpack_unit_test(
4751 name = "f32_vminc_test",
4752 srcs = [
4753 "test/f32-vminc.cc",
4754 "test/vbinaryc-microkernel-tester.h",
4755 ] + MICROKERNEL_TEST_HDRS,
4756 deps = MICROKERNEL_TEST_DEPS,
4757)
4758
4759xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004760 name = "f32_vmul_test",
4761 srcs = [
4762 "test/f32-vmul.cc",
4763 "test/vbinary-microkernel-tester.h",
4764 ] + MICROKERNEL_TEST_HDRS,
4765 deps = MICROKERNEL_TEST_DEPS,
4766)
4767
4768xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004769 name = "f32_vmul_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004770 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004771 "test/f32-vmul-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004772 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004773 ] + MICROKERNEL_TEST_HDRS,
4774 deps = MICROKERNEL_TEST_DEPS,
4775)
4776
4777xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004778 name = "f32_vmulc_test",
4779 srcs = [
4780 "test/f32-vmulc.cc",
4781 "test/vbinaryc-microkernel-tester.h",
4782 ] + MICROKERNEL_TEST_HDRS,
4783 deps = MICROKERNEL_TEST_DEPS,
4784)
4785
4786xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004787 name = "f32_vmulc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004788 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004789 "test/f32-vmulc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004790 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004791 ] + MICROKERNEL_TEST_HDRS,
4792 deps = MICROKERNEL_TEST_DEPS,
4793)
4794
4795xnnpack_unit_test(
Frank Barchard2a1049c2020-06-03 02:31:27 -07004796 name = "f16_vmulcaddc_minmax_test",
4797 srcs = [
4798 "test/f16-vmulcaddc-minmax.cc",
4799 "test/vmulcaddc-microkernel-tester.h",
4800 "src/xnnpack/AlignedAllocator.h",
4801 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004802 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard2a1049c2020-06-03 02:31:27 -07004803)
4804
4805xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004806 name = "f32_vmulcaddc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004807 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004808 "test/f32-vmulcaddc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004809 "test/vmulcaddc-microkernel-tester.h",
4810 "src/xnnpack/AlignedAllocator.h",
4811 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004812 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004813)
4814
4815xnnpack_unit_test(
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07004816 name = "f32_vlrelu_test",
4817 srcs = [
4818 "test/f32-vlrelu.cc",
4819 "test/vunary-microkernel-tester.h",
4820 ] + MICROKERNEL_TEST_HDRS,
4821 deps = MICROKERNEL_TEST_DEPS,
4822)
4823
4824xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07004825 name = "f32_vneg_test",
4826 srcs = [
4827 "test/f32-vneg.cc",
4828 "test/vunary-microkernel-tester.h",
4829 ] + MICROKERNEL_TEST_HDRS,
4830 deps = MICROKERNEL_TEST_DEPS,
4831)
4832
4833xnnpack_unit_test(
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07004834 name = "f32_vrndne_test",
4835 srcs = [
4836 "test/f32-vrndne.cc",
4837 "test/vunary-microkernel-tester.h",
4838 ] + MICROKERNEL_TEST_HDRS,
4839 deps = MICROKERNEL_TEST_DEPS,
4840)
4841
4842xnnpack_unit_test(
4843 name = "f32_vrndz_test",
4844 srcs = [
4845 "test/f32-vrndz.cc",
4846 "test/vunary-microkernel-tester.h",
4847 ] + MICROKERNEL_TEST_HDRS,
4848 deps = MICROKERNEL_TEST_DEPS,
4849)
4850
4851xnnpack_unit_test(
4852 name = "f32_vrndu_test",
4853 srcs = [
4854 "test/f32-vrndu.cc",
4855 "test/vunary-microkernel-tester.h",
4856 ] + MICROKERNEL_TEST_HDRS,
4857 deps = MICROKERNEL_TEST_DEPS,
4858)
4859
4860xnnpack_unit_test(
4861 name = "f32_vrndd_test",
4862 srcs = [
4863 "test/f32-vrndd.cc",
4864 "test/vunary-microkernel-tester.h",
4865 ] + MICROKERNEL_TEST_HDRS,
4866 deps = MICROKERNEL_TEST_DEPS,
4867)
4868
4869xnnpack_unit_test(
Marat Dukhan05ac8e32019-10-21 15:39:33 -07004870 name = "f32_vscale_test",
4871 srcs = [
4872 "test/f32-vscale.cc",
4873 "test/vscale-microkernel-tester.h",
4874 ] + MICROKERNEL_TEST_HDRS,
4875 deps = MICROKERNEL_TEST_DEPS,
4876)
4877
4878xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004879 name = "f32_vscaleexpminusmax_test",
4880 srcs = [
4881 "test/f32-vscaleexpminusmax.cc",
4882 "test/vscaleexpminusmax-microkernel-tester.h",
4883 ] + MICROKERNEL_TEST_HDRS,
4884 deps = MICROKERNEL_TEST_DEPS,
4885)
4886
4887xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07004888 name = "f32_vscaleextexp_test",
4889 srcs = [
4890 "test/f32-vscaleextexp.cc",
4891 "test/vscaleextexp-microkernel-tester.h",
4892 ] + MICROKERNEL_TEST_HDRS,
4893 deps = MICROKERNEL_TEST_DEPS,
4894)
4895
4896xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07004897 name = "f32_vsqr_test",
4898 srcs = [
4899 "test/f32-vsqr.cc",
4900 "test/vunary-microkernel-tester.h",
4901 ] + MICROKERNEL_TEST_HDRS,
4902 deps = MICROKERNEL_TEST_DEPS,
4903)
4904
4905xnnpack_unit_test(
Marat Dukhan13bafb02020-06-05 00:43:11 -07004906 name = "f32_vsqrdiff_test",
4907 srcs = [
4908 "test/f32-vsqrdiff.cc",
4909 "test/vbinary-microkernel-tester.h",
4910 ] + MICROKERNEL_TEST_HDRS,
4911 deps = MICROKERNEL_TEST_DEPS,
4912)
4913
4914xnnpack_unit_test(
4915 name = "f32_vsqrdiffc_test",
4916 srcs = [
4917 "test/f32-vsqrdiffc.cc",
4918 "test/vbinaryc-microkernel-tester.h",
4919 ] + MICROKERNEL_TEST_HDRS,
4920 deps = MICROKERNEL_TEST_DEPS,
4921)
4922
4923xnnpack_unit_test(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07004924 name = "f32_vsqrt_test",
4925 srcs = [
4926 "test/f32-vsqrt.cc",
4927 "test/vunary-microkernel-tester.h",
4928 ] + MICROKERNEL_TEST_HDRS,
4929 deps = MICROKERNEL_TEST_DEPS,
4930)
4931
4932xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004933 name = "f32_vsub_test",
4934 srcs = [
4935 "test/f32-vsub.cc",
4936 "test/vbinary-microkernel-tester.h",
4937 ] + MICROKERNEL_TEST_HDRS,
4938 deps = MICROKERNEL_TEST_DEPS,
4939)
4940
4941xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004942 name = "f32_vsub_minmax_test",
Marat Dukhan97579532019-10-18 16:40:39 -07004943 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004944 "test/f32-vsub-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004945 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004946 ] + MICROKERNEL_TEST_HDRS,
4947 deps = MICROKERNEL_TEST_DEPS,
4948)
4949
4950xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004951 name = "f32_vsubc_test",
4952 srcs = [
4953 "test/f32-vsubc.cc",
4954 "test/vbinaryc-microkernel-tester.h",
4955 ] + MICROKERNEL_TEST_HDRS,
4956 deps = MICROKERNEL_TEST_DEPS,
4957)
4958
4959xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004960 name = "f32_vsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004961 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004962 "test/f32-vsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004963 "test/vbinaryc-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004964 ] + MICROKERNEL_TEST_HDRS,
4965 deps = MICROKERNEL_TEST_DEPS,
4966)
4967
4968xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004969 name = "f32_vrsubc_test",
4970 srcs = [
4971 "test/f32-vrsubc.cc",
4972 "test/vbinaryc-microkernel-tester.h",
4973 ] + MICROKERNEL_TEST_HDRS,
4974 deps = MICROKERNEL_TEST_DEPS,
4975)
4976
4977xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004978 name = "f32_vrsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004979 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004980 "test/f32-vrsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004981 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan97579532019-10-18 16:40:39 -07004982 ] + MICROKERNEL_TEST_HDRS,
4983 deps = MICROKERNEL_TEST_DEPS,
4984)
4985
4986xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004987 name = "q8_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004988 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004989 "test/q8-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004990 "test/avgpool-microkernel-tester.h",
4991 "src/xnnpack/AlignedAllocator.h",
4992 ] + MICROKERNEL_TEST_HDRS,
4993 deps = MICROKERNEL_TEST_DEPS,
4994)
4995
4996xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07004997 name = "q8_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004998 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07004999 "test/q8-igemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005000 "test/gemm-microkernel-tester.h",
5001 "src/xnnpack/AlignedAllocator.h",
5002 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005003 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005004)
5005
5006xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07005007 name = "q8_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005008 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07005009 "test/q8-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005010 "test/dwconv-microkernel-tester.h",
5011 "src/xnnpack/AlignedAllocator.h",
5012 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005013 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005014)
5015
5016xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005017 name = "q8_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005018 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005019 "test/q8-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005020 "test/gavgpool-microkernel-tester.h",
5021 "src/xnnpack/AlignedAllocator.h",
5022 ] + MICROKERNEL_TEST_HDRS,
5023 deps = MICROKERNEL_TEST_DEPS,
5024)
5025
5026xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07005027 name = "q8_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005028 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07005029 "test/q8-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005030 "test/gemm-microkernel-tester.h",
5031 "src/xnnpack/AlignedAllocator.h",
5032 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005033 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005034)
5035
5036xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005037 name = "q8_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005038 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005039 "test/q8-vadd-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005040 "test/vadd-microkernel-tester.h",
5041 ] + MICROKERNEL_TEST_HDRS,
5042 deps = MICROKERNEL_TEST_DEPS,
5043)
5044
5045xnnpack_unit_test(
5046 name = "u8_clamp_test",
5047 srcs = [
5048 "test/u8-clamp.cc",
5049 "test/clamp-microkernel-tester.h",
5050 ] + MICROKERNEL_TEST_HDRS,
5051 deps = MICROKERNEL_TEST_DEPS,
5052)
5053
5054xnnpack_unit_test(
5055 name = "u8_lut32norm_test",
5056 srcs = [
5057 "test/u8-lut32norm.cc",
5058 "test/lut-norm-microkernel-tester.h",
5059 ] + MICROKERNEL_TEST_HDRS,
5060 deps = MICROKERNEL_TEST_DEPS,
5061)
5062
5063xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005064 name = "u8_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005065 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005066 "test/u8-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005067 "test/maxpool-microkernel-tester.h",
5068 ] + MICROKERNEL_TEST_HDRS,
5069 deps = MICROKERNEL_TEST_DEPS,
5070)
5071
5072xnnpack_unit_test(
5073 name = "u8_rmax_test",
5074 srcs = [
5075 "test/u8-rmax.cc",
5076 "test/rmax-microkernel-tester.h",
5077 ] + MICROKERNEL_TEST_HDRS,
5078 deps = MICROKERNEL_TEST_DEPS,
5079)
5080
5081xnnpack_unit_test(
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07005082 name = "x32_fill_test",
5083 srcs = [
5084 "test/x32-fill.cc",
5085 "test/fill-microkernel-tester.h",
5086 ] + MICROKERNEL_TEST_HDRS,
5087 deps = MICROKERNEL_TEST_DEPS,
5088)
5089
5090xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005091 name = "x32_packx_test",
5092 srcs = [
5093 "test/x32-packx.cc",
5094 "test/pack-microkernel-tester.h",
5095 "src/xnnpack/AlignedAllocator.h",
5096 ] + MICROKERNEL_TEST_HDRS,
5097 deps = MICROKERNEL_TEST_DEPS,
5098)
5099
5100xnnpack_unit_test(
5101 name = "x32_pad_test",
5102 srcs = [
5103 "test/x32-pad.cc",
5104 "test/pad-microkernel-tester.h",
5105 ] + MICROKERNEL_TEST_HDRS,
5106 deps = MICROKERNEL_TEST_DEPS,
5107)
5108
5109xnnpack_unit_test(
5110 name = "x32_unpool_test",
5111 srcs = [
5112 "test/x32-unpool.cc",
5113 "test/unpool-microkernel-tester.h",
5114 ] + MICROKERNEL_TEST_HDRS,
5115 deps = MICROKERNEL_TEST_DEPS,
5116)
5117
5118xnnpack_unit_test(
5119 name = "x32_zip_test",
5120 srcs = [
5121 "test/x32-zip.cc",
5122 "test/zip-microkernel-tester.h",
5123 ] + MICROKERNEL_TEST_HDRS,
5124 deps = MICROKERNEL_TEST_DEPS,
5125)
5126
5127xnnpack_unit_test(
5128 name = "x8_lut_test",
5129 srcs = [
5130 "test/x8-lut.cc",
5131 "test/lut-microkernel-tester.h",
5132 ] + MICROKERNEL_TEST_HDRS,
5133 deps = MICROKERNEL_TEST_DEPS,
5134)
5135
5136xnnpack_unit_test(
5137 name = "x8_zip_test",
5138 srcs = [
5139 "test/x8-zip.cc",
5140 "test/zip-microkernel-tester.h",
5141 ] + MICROKERNEL_TEST_HDRS,
5142 deps = MICROKERNEL_TEST_DEPS,
5143)
5144
Marat Dukhanfe7acb62020-03-09 19:30:05 -07005145xnnpack_unit_test(
5146 name = "requantization_test",
5147 srcs = [
5148 "src/xnnpack/requantization-stubs.h",
5149 "test/requantization.cc",
5150 "test/requantization-tester.h",
5151 ] + MICROKERNEL_TEST_HDRS,
5152 deps = MICROKERNEL_TEST_DEPS,
5153)
5154
Marat Dukhan20c3b922020-03-10 03:45:06 -07005155########################## Size tests for the library #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07005156
5157xnnpack_binary(
Marat Dukhan20c3b922020-03-10 03:45:06 -07005158 name = "operator_size_test",
5159 srcs = ["test/operator-size.c"],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07005160 deps = [":xnnpack_operators_nhwc_f32"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005161)
5162
Marat Dukhan20c3b922020-03-10 03:45:06 -07005163xnnpack_binary(
5164 name = "subgraph_size_test",
5165 srcs = ["test/subgraph-size.c"],
5166 deps = [":XNNPACK"],
5167)
5168
5169########################### Unit tests for operators ##########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07005170
5171xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005172 name = "abs_nc_test",
5173 srcs = [
5174 "test/abs-nc.cc",
5175 "test/abs-operator-tester.h",
5176 ],
5177 deps = OPERATOR_TEST_DEPS,
5178)
5179
5180xnnpack_unit_test(
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005181 name = "add_nd_test",
5182 srcs = [
5183 "test/add-nd.cc",
5184 "test/binary-elementwise-operator-tester.h",
5185 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005186 deps = OPERATOR_TEST_DEPS,
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005187)
5188
5189xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005190 name = "argmax_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005191 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005192 "test/argmax-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005193 "test/argmax-pooling-operator-tester.h",
5194 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005195 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005196)
5197
5198xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005199 name = "average_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005200 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005201 "test/average-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005202 "test/average-pooling-operator-tester.h",
5203 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005204 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005205)
5206
5207xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005208 name = "bankers_rounding_nc_test",
5209 srcs = [
5210 "test/bankers-rounding-nc.cc",
5211 "test/bankers-rounding-operator-tester.h",
5212 ],
5213 deps = OPERATOR_TEST_DEPS,
5214)
5215
5216xnnpack_unit_test(
5217 name = "ceiling_nc_test",
5218 srcs = [
5219 "test/ceiling-nc.cc",
5220 "test/ceiling-operator-tester.h",
5221 ],
5222 deps = OPERATOR_TEST_DEPS,
5223)
5224
5225xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005226 name = "channel_shuffle_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005227 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005228 "test/channel-shuffle-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005229 "test/channel-shuffle-operator-tester.h",
5230 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005231 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005232)
5233
5234xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005235 name = "clamp_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005236 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005237 "test/clamp-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005238 "test/clamp-operator-tester.h",
5239 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005240 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005241)
5242
5243xnnpack_unit_test(
Marat Dukhan065b11e2020-05-22 09:49:41 -07005244 name = "constant_pad_nd_test",
5245 srcs = [
5246 "test/constant-pad-nd.cc",
5247 "test/constant-pad-operator-tester.h",
5248 ],
5249 deps = OPERATOR_TEST_DEPS,
5250)
5251
5252xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005253 name = "convolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005254 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005255 "test/convolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005256 "test/convolution-operator-tester.h",
5257 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005258 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005259)
5260
5261xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005262 name = "convolution_nchw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005263 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005264 "test/convolution-nchw.cc",
5265 "test/convolution-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005266 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005267 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005268)
5269
5270xnnpack_unit_test(
Marat Dukhan4e21b272020-06-04 18:45:01 -07005271 name = "copy_nc_test",
5272 srcs = [
5273 "test/copy-nc.cc",
5274 "test/copy-operator-tester.h",
5275 ],
5276 deps = OPERATOR_TEST_DEPS,
5277)
5278
5279xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005280 name = "deconvolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005281 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005282 "test/deconvolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005283 "test/deconvolution-operator-tester.h",
5284 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005285 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005286)
5287
5288xnnpack_unit_test(
Marat Dukhan69180502019-12-06 15:00:31 -08005289 name = "divide_nd_test",
5290 srcs = [
5291 "test/binary-elementwise-operator-tester.h",
5292 "test/divide-nd.cc",
5293 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005294 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69180502019-12-06 15:00:31 -08005295)
5296
5297xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005298 name = "fully_connected_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005299 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005300 "test/fully-connected-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005301 "test/fully-connected-operator-tester.h",
5302 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005303 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005304)
5305
5306xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005307 name = "floor_nc_test",
5308 srcs = [
5309 "test/floor-nc.cc",
5310 "test/floor-operator-tester.h",
5311 ],
5312 deps = OPERATOR_TEST_DEPS,
5313)
5314
5315xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005316 name = "global_average_pooling_nwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005317 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005318 "test/global-average-pooling-nwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005319 "test/global-average-pooling-operator-tester.h",
Marat Dukhanef61d022020-06-19 13:54:49 -07005320 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005321 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005322)
5323
5324xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005325 name = "global_average_pooling_ncw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005326 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005327 "test/global-average-pooling-ncw.cc",
5328 "test/global-average-pooling-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005329 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005330 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005331)
5332
5333xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005334 name = "hardswish_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005335 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005336 "test/hardswish-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005337 "test/hardswish-operator-tester.h",
5338 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005339 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005340)
5341
5342xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005343 name = "leaky_relu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005344 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005345 "test/leaky-relu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005346 "test/leaky-relu-operator-tester.h",
5347 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005348 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005349)
5350
5351xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005352 name = "max_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005353 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005354 "test/max-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005355 "test/max-pooling-operator-tester.h",
5356 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005357 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005358)
5359
5360xnnpack_unit_test(
Marat Dukhan79e7f842019-12-05 14:35:50 -08005361 name = "maximum_nd_test",
5362 srcs = [
5363 "test/binary-elementwise-operator-tester.h",
5364 "test/maximum-nd.cc",
5365 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005366 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08005367)
5368
5369xnnpack_unit_test(
5370 name = "minimum_nd_test",
5371 srcs = [
5372 "test/binary-elementwise-operator-tester.h",
5373 "test/minimum-nd.cc",
5374 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005375 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08005376)
5377
5378xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005379 name = "multiply_nd_test",
Marat Dukhanca2733c2019-11-15 23:21:17 -08005380 srcs = [
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005381 "test/binary-elementwise-operator-tester.h",
Marat Dukhanefc47b82019-11-18 09:25:38 -08005382 "test/multiply-nd.cc",
Marat Dukhanca2733c2019-11-15 23:21:17 -08005383 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005384 deps = OPERATOR_TEST_DEPS,
Marat Dukhanca2733c2019-11-15 23:21:17 -08005385)
5386
5387xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005388 name = "negate_nc_test",
5389 srcs = [
5390 "test/negate-nc.cc",
5391 "test/negate-operator-tester.h",
5392 ],
5393 deps = OPERATOR_TEST_DEPS,
5394)
5395
5396xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005397 name = "prelu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005398 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005399 "test/prelu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005400 "test/prelu-operator-tester.h",
5401 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005402 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005403)
5404
5405xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005406 name = "resize_bilinear_nhwc_test",
Marat Dukhan69722492019-11-11 19:55:50 -08005407 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005408 "test/resize-bilinear-nhwc.cc",
Marat Dukhan69722492019-11-11 19:55:50 -08005409 "test/resize-bilinear-operator-tester.h",
5410 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005411 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69722492019-11-11 19:55:50 -08005412)
5413
5414xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005415 name = "sigmoid_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005416 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005417 "test/sigmoid-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005418 "test/sigmoid-operator-tester.h",
5419 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005420 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005421)
5422
5423xnnpack_unit_test(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08005424 name = "softmax_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005425 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08005426 "test/softmax-nc.cc",
5427 "test/softmax-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005428 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005429 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005430)
5431
5432xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005433 name = "square_nc_test",
5434 srcs = [
5435 "test/square-nc.cc",
5436 "test/square-operator-tester.h",
5437 ],
5438 deps = OPERATOR_TEST_DEPS,
5439)
5440
5441xnnpack_unit_test(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07005442 name = "square_root_nc_test",
5443 srcs = [
5444 "test/square-root-nc.cc",
5445 "test/square-root-operator-tester.h",
5446 ],
5447 deps = OPERATOR_TEST_DEPS,
5448)
5449
5450xnnpack_unit_test(
Marat Dukhanf7399262020-06-05 10:58:44 -07005451 name = "squared_difference_nd_test",
5452 srcs = [
5453 "test/binary-elementwise-operator-tester.h",
5454 "test/squared-difference-nd.cc",
5455 ],
5456 deps = OPERATOR_TEST_DEPS,
5457)
5458
5459xnnpack_unit_test(
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08005460 name = "subtract_nd_test",
5461 srcs = [
5462 "test/binary-elementwise-operator-tester.h",
5463 "test/subtract-nd.cc",
5464 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005465 deps = OPERATOR_TEST_DEPS,
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08005466)
5467
5468xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005469 name = "truncation_nc_test",
5470 srcs = [
5471 "test/truncation-nc.cc",
5472 "test/truncation-operator-tester.h",
5473 ],
5474 deps = OPERATOR_TEST_DEPS,
5475)
5476
5477xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005478 name = "unpooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005479 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005480 "test/unpooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005481 "test/unpooling-operator-tester.h",
5482 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005483 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005484)
5485
Chao Mei6ddfc602020-05-13 22:29:36 -07005486############################### Misc unit tests ###############################
5487
5488xnnpack_unit_test(
5489 name = "memory_planner_test",
5490 srcs = [
5491 "test/memory-planner-test.cc",
5492 ],
5493 deps = [
5494 ":XNNPACK",
5495 ":memory_planner",
5496 ],
5497)
5498
Marat Dukhan08c4a432019-10-03 09:29:21 -07005499############################# Build configurations #############################
5500
Marat Dukhanb8642352019-10-30 15:43:02 -07005501# Enables usage of assembly kernels.
Marat Dukhan08c4a432019-10-03 09:29:21 -07005502config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07005503 name = "xnn_enable_assembly_explicit_true",
5504 define_values = {"xnn_enable_assembly": "true"},
5505)
5506
5507# Disables usage of assembly kernels.
5508config_setting(
5509 name = "xnn_enable_assembly_explicit_false",
5510 define_values = {"xnn_enable_assembly": "false"},
5511)
5512
Marat Dukhan9de90e02020-06-18 16:04:12 -07005513# Enables usage of sparse inference.
5514config_setting(
5515 name = "xnn_enable_sparse_explicit_true",
5516 define_values = {"xnn_enable_sparse": "true"},
5517)
5518
5519# Disables usage of sparse inference.
5520config_setting(
5521 name = "xnn_enable_sparse_explicit_false",
5522 define_values = {"xnn_enable_sparse": "false"},
5523)
5524
Marat Dukhan05702cf2020-03-26 15:41:33 -07005525# Disables usage of HMP-aware optimizations.
5526config_setting(
5527 name = "xnn_enable_hmp_explicit_false",
5528 define_values = {"xnn_enable_hmp": "false"},
5529)
5530
Chao Mei6ddfc602020-05-13 22:29:36 -07005531# Enable usage of optimized memory allocation
5532config_setting(
5533 name = "xnn_enable_memopt_explicit_true",
5534 define_values = {"xnnpack_enable_memopt": "true"},
5535)
5536
5537# Disable usage of optimized memory allocation
5538config_setting(
5539 name = "xnn_enable_memopt_explicit_false",
5540 define_values = {"xnnpack_enable_memopt": "false"},
5541)
5542
Marat Dukhanb8642352019-10-30 15:43:02 -07005543# Builds with -c dbg
5544config_setting(
5545 name = "debug_build",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005546 values = {
Marat Dukhanb8642352019-10-30 15:43:02 -07005547 "compilation_mode": "dbg",
5548 },
5549)
5550
5551# Builds with -c opt
5552config_setting(
5553 name = "optimized_build",
5554 values = {
5555 "compilation_mode": "opt",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005556 },
5557)
5558
5559config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07005560 name = "linux_k8",
5561 values = {"cpu": "k8"},
5562)
5563
5564config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07005565 name = "linux_arm",
5566 values = {"cpu": "arm"},
Marat Dukhan4e45e662019-10-03 15:40:24 -07005567)
5568
5569config_setting(
Marat Dukhanf0bd4de2020-06-15 15:53:19 -07005570 name = "linux_armeabi",
5571 values = {"cpu": "armeabi"},
5572)
5573
5574config_setting(
Terry Heo68eef3f2020-04-13 22:53:52 -07005575 name = "linux_armhf",
5576 values = {"cpu": "armhf"},
5577)
5578
5579config_setting(
Marat Dukhana720e932020-06-10 13:01:11 -07005580 name = "linux_armv7a",
5581 values = {"cpu": "armv7a"},
5582)
5583
5584config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07005585 name = "linux_aarch64",
5586 values = {"cpu": "aarch64"},
5587)
5588
5589config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005590 name = "android",
5591 values = {"crosstool_top": "//external:android/crosstool"},
5592)
5593
5594config_setting(
5595 name = "android_armv7",
5596 values = {
5597 "crosstool_top": "//external:android/crosstool",
5598 "cpu": "armeabi-v7a",
5599 },
5600)
5601
5602config_setting(
5603 name = "android_arm64",
5604 values = {
5605 "crosstool_top": "//external:android/crosstool",
5606 "cpu": "arm64-v8a",
5607 },
5608)
5609
5610config_setting(
5611 name = "android_x86",
5612 values = {
5613 "crosstool_top": "//external:android/crosstool",
5614 "cpu": "x86",
5615 },
5616)
5617
5618config_setting(
5619 name = "android_x86_64",
5620 values = {
5621 "crosstool_top": "//external:android/crosstool",
5622 "cpu": "x86_64",
5623 },
5624)
5625
5626config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07005627 name = "windows_x86_64",
5628 values = {"cpu": "x64_windows"},
Marat Dukhan9fe932e2020-04-11 17:14:15 -07005629)
5630
5631config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07005632 name = "windows_x86_64_clang",
5633 values = {
5634 "compiler": "clang-cl",
5635 "cpu": "x64_windows",
5636 },
5637)
5638
5639config_setting(
5640 name = "windows_x86_64_mingw",
5641 values = {
5642 "compiler": "mingw-gcc",
5643 "cpu": "x64_windows",
5644 },
5645)
5646
5647config_setting(
5648 name = "windows_x86_64_msys",
5649 values = {
5650 "compiler": "msys-gcc",
5651 "cpu": "x64_windows",
5652 },
Marat Dukhan9fe932e2020-04-11 17:14:15 -07005653)
5654
5655config_setting(
Marat Dukhan885ca242019-10-07 09:17:32 -07005656 name = "macos_x86_64",
5657 values = {
5658 "apple_platform_type": "macos",
5659 "cpu": "darwin",
5660 },
5661)
5662
5663config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005664 name = "emscripten",
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005665 values = {"crosstool_top": "//toolchain:emscripten"},
Marat Dukhan08c4a432019-10-03 09:29:21 -07005666)
5667
5668config_setting(
5669 name = "emscripten_wasm",
5670 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005671 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005672 "cpu": "wasm",
5673 },
5674)
5675
5676config_setting(
5677 name = "emscripten_wasmsimd",
5678 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005679 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005680 "cpu": "wasm",
Marat Dukhan81c62602020-05-29 13:22:49 -07005681 "copt": "-msimd128",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005682 },
5683)
5684
5685config_setting(
5686 name = "emscripten_asmjs",
5687 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005688 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005689 "cpu": "asmjs",
5690 },
5691)
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005692
5693config_setting(
5694 name = "ios_armv7",
5695 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005696 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005697 "cpu": "ios_armv7",
5698 },
5699)
5700
5701config_setting(
5702 name = "ios_arm64",
5703 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005704 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005705 "cpu": "ios_arm64",
5706 },
5707)
5708
5709config_setting(
5710 name = "ios_arm64e",
5711 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005712 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005713 "cpu": "ios_arm64e",
5714 },
5715)
5716
5717config_setting(
5718 name = "ios_x86",
5719 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005720 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005721 "cpu": "ios_i386",
5722 },
5723)
5724
5725config_setting(
5726 name = "ios_x86_64",
5727 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005728 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005729 "cpu": "ios_x86_64",
5730 },
5731)
5732
5733config_setting(
5734 name = "watchos_armv7k",
5735 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005736 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005737 "cpu": "watchos_armv7k",
5738 },
5739)
5740
5741config_setting(
5742 name = "watchos_arm64_32",
5743 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005744 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005745 "cpu": "watchos_arm64_32",
5746 },
5747)
5748
5749config_setting(
5750 name = "watchos_x86",
5751 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005752 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005753 "cpu": "watchos_i386",
5754 },
5755)
5756
5757config_setting(
5758 name = "watchos_x86_64",
5759 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005760 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005761 "cpu": "watchos_x86_64",
5762 },
5763)
5764
5765config_setting(
5766 name = "tvos_arm64",
5767 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005768 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005769 "cpu": "tvos_arm64",
5770 },
5771)
5772
5773config_setting(
5774 name = "tvos_x86_64",
5775 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005776 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005777 "cpu": "tvos_x86_64",
5778 },
5779)