blob: 723e8f090197f3dbd21039587dcb368f03ced2a2 [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 Dukhand27202d2020-07-09 23:43:40 -0700101 "src/subgraph/static-reshape.c",
Marat Dukhanaff24e22020-07-23 01:43:58 -0700102 "src/subgraph/static-resize-bilinear-2d.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -0700103 "src/subgraph/square.c",
Marat Dukhan51a01c62020-07-09 03:26:57 -0700104 "src/subgraph/square-root.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -0700105 "src/subgraph/squared-difference.c",
106 "src/subgraph/subtract.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -0700107 "src/subgraph/unpooling-2d.c",
108]
109
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800110TABLE_SRCS = [
111 "src/tables/exp2-k-over-64.c",
112 "src/tables/exp2-k-over-2048.c",
113]
114
Marat Dukhan08c4a432019-10-03 09:29:21 -0700115SCALAR_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -0800116 "src/f32-argmaxpool/4x-scalar-c1.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800117 "src/f32-argmaxpool/9p8x-scalar-c1.c",
Marat Dukhan329da642019-11-19 21:44:39 -0800118 "src/f32-argmaxpool/9x-scalar-c1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700119 "src/f32-avgpool/9p8x-minmax-scalar-c1.c",
120 "src/f32-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700121 "src/f32-clamp/gen/scalar-x1.c",
122 "src/f32-clamp/gen/scalar-x2.c",
123 "src/f32-clamp/gen/scalar-x4.c",
Marat Dukhan441e2212019-12-04 18:30:49 -0800124 "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c",
Marat Dukhan6b7dfae2019-12-04 16:00:52 -0800125 "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700126 "src/f32-conv-hwc2chw/3x3s2p1c3x4-scalar-1x1.c",
127 "src/f32-dwconv-chw/3x3p1-scalar.c",
128 "src/f32-dwconv-chw/3x3s2p1-scalar.c",
129 "src/f32-dwconv-chw/5x5p2-scalar.c",
130 "src/f32-dwconv-chw/5x5s2p2-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700131 "src/f32-dwconv/gen/up1x4-scalar-acc2.c",
132 "src/f32-dwconv/gen/up1x4-scalar.c",
133 "src/f32-dwconv/gen/up1x9-scalar-acc2.c",
134 "src/f32-dwconv/gen/up1x9-scalar.c",
135 "src/f32-dwconv/gen/up1x25-scalar-acc2.c",
136 "src/f32-dwconv/gen/up1x25-scalar.c",
137 "src/f32-dwconv/gen/up2x4-scalar-acc2.c",
138 "src/f32-dwconv/gen/up2x4-scalar.c",
139 "src/f32-dwconv/gen/up2x9-scalar-acc2.c",
140 "src/f32-dwconv/gen/up2x9-scalar.c",
141 "src/f32-dwconv/gen/up2x25-scalar-acc2.c",
142 "src/f32-dwconv/gen/up2x25-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700143 "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c",
144 "src/f32-dwconv/gen/up1x4-minmax-scalar.c",
145 "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c",
146 "src/f32-dwconv/gen/up1x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700147 "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c",
148 "src/f32-dwconv/gen/up1x25-minmax-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700149 "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c",
150 "src/f32-dwconv/gen/up2x4-minmax-scalar.c",
151 "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c",
152 "src/f32-dwconv/gen/up2x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700153 "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c",
154 "src/f32-dwconv/gen/up2x25-minmax-scalar.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700155 "src/f32-gavgpool-cw/scalar-x1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700156 "src/f32-gavgpool/7p7x-minmax-scalar-c1.c",
157 "src/f32-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700158 "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c",
159 "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c",
160 "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700161 "src/f32-gemm/gen/1x4-scalar.c",
162 "src/f32-gemm/gen/2x4-scalar.c",
163 "src/f32-gemm/gen/4x2-scalar.c",
164 "src/f32-gemm/gen/4x4-scalar.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700165 "src/f32-gemm/gen/1x4-relu-scalar.c",
166 "src/f32-gemm/gen/2x4-relu-scalar.c",
167 "src/f32-gemm/gen/4x2-relu-scalar.c",
168 "src/f32-gemm/gen/4x4-relu-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700169 "src/f32-gemm/gen/1x4-minmax-scalar.c",
170 "src/f32-gemm/gen/2x4-minmax-scalar.c",
171 "src/f32-gemm/gen/4x2-minmax-scalar.c",
172 "src/f32-gemm/gen/4x4-minmax-scalar.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700173 "src/f32-hswish/gen/hswish-scalar-x1.c",
174 "src/f32-hswish/gen/hswish-scalar-x2.c",
175 "src/f32-hswish/gen/hswish-scalar-x4.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700176 "src/f32-ibilinear/gen/scalar-c1.c",
177 "src/f32-ibilinear/gen/scalar-c2.c",
178 "src/f32-ibilinear/gen/scalar-c4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700179 "src/f32-igemm/gen/1x4-scalar.c",
180 "src/f32-igemm/gen/2x4-scalar.c",
181 "src/f32-igemm/gen/4x2-scalar.c",
182 "src/f32-igemm/gen/4x4-scalar.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700183 "src/f32-igemm/gen/1x4-relu-scalar.c",
184 "src/f32-igemm/gen/2x4-relu-scalar.c",
185 "src/f32-igemm/gen/4x2-relu-scalar.c",
186 "src/f32-igemm/gen/4x4-relu-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700187 "src/f32-igemm/gen/1x4-minmax-scalar.c",
188 "src/f32-igemm/gen/2x4-minmax-scalar.c",
189 "src/f32-igemm/gen/4x2-minmax-scalar.c",
190 "src/f32-igemm/gen/4x4-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700191 "src/f32-maxpool/9p8x-minmax-scalar-c1.c",
192 "src/f32-pavgpool/9p8x-minmax-scalar-c1.c",
193 "src/f32-pavgpool/9x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700194 "src/f32-ppmm/gen/2x4-minmax-scalar.c",
195 "src/f32-ppmm/gen/3x3-minmax-scalar.c",
196 "src/f32-ppmm/gen/4x2-minmax-scalar.c",
197 "src/f32-ppmm/gen/4x4-minmax-scalar.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800198 "src/f32-prelu/gen/scalar-2x1.c",
199 "src/f32-prelu/gen/scalar-2x4.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800200 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c",
201 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c",
202 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c",
203 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c",
204 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c",
205 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c",
206 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c",
207 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c",
208 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c",
209 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c",
210 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c",
211 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c",
Frank Barchardfb158e22020-07-15 16:10:10 -0700212 "src/f32-relu/gen/scalar-x1.c",
213 "src/f32-relu/gen/scalar-x2.c",
214 "src/f32-relu/gen/scalar-x4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700215 "src/f32-rmax/scalar.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800216 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c",
217 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c",
218 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c",
219 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c",
220 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c",
221 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c",
222 "src/f32-sigmoid/gen/scalar-p5-div-x1.c",
223 "src/f32-sigmoid/gen/scalar-p5-div-x2.c",
224 "src/f32-sigmoid/gen/scalar-p5-div-x4.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700225 "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c",
226 "src/f32-spmm/gen/1x1-minmax-scalar.c",
227 "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c",
228 "src/f32-spmm/gen/2x1-minmax-scalar.c",
229 "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c",
230 "src/f32-spmm/gen/4x1-minmax-scalar.c",
231 "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c",
232 "src/f32-spmm/gen/8x1-minmax-scalar.c",
233 "src/f32-spmm/gen/8x2-minmax-scalar.c",
234 "src/f32-spmm/gen/8x4-minmax-scalar.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700235 "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c",
236 "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c",
237 "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700238 "src/f32-vbinary/gen/vadd-scalar-x1.c",
239 "src/f32-vbinary/gen/vadd-scalar-x2.c",
240 "src/f32-vbinary/gen/vadd-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700241 "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c",
242 "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c",
243 "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700244 "src/f32-vbinary/gen/vaddc-scalar-x1.c",
245 "src/f32-vbinary/gen/vaddc-scalar-x2.c",
246 "src/f32-vbinary/gen/vaddc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700247 "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c",
248 "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c",
249 "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700250 "src/f32-vbinary/gen/vdiv-scalar-x1.c",
251 "src/f32-vbinary/gen/vdiv-scalar-x2.c",
252 "src/f32-vbinary/gen/vdiv-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700253 "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c",
254 "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c",
255 "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700256 "src/f32-vbinary/gen/vdivc-scalar-x1.c",
257 "src/f32-vbinary/gen/vdivc-scalar-x2.c",
258 "src/f32-vbinary/gen/vdivc-scalar-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800259 "src/f32-vbinary/gen/vmax-scalar-x1.c",
260 "src/f32-vbinary/gen/vmax-scalar-x2.c",
261 "src/f32-vbinary/gen/vmax-scalar-x4.c",
262 "src/f32-vbinary/gen/vmaxc-scalar-x1.c",
263 "src/f32-vbinary/gen/vmaxc-scalar-x2.c",
264 "src/f32-vbinary/gen/vmaxc-scalar-x4.c",
265 "src/f32-vbinary/gen/vmin-scalar-x1.c",
266 "src/f32-vbinary/gen/vmin-scalar-x2.c",
267 "src/f32-vbinary/gen/vmin-scalar-x4.c",
268 "src/f32-vbinary/gen/vminc-scalar-x1.c",
269 "src/f32-vbinary/gen/vminc-scalar-x2.c",
270 "src/f32-vbinary/gen/vminc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700271 "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c",
272 "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c",
273 "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700274 "src/f32-vbinary/gen/vmul-scalar-x1.c",
275 "src/f32-vbinary/gen/vmul-scalar-x2.c",
276 "src/f32-vbinary/gen/vmul-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700277 "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c",
278 "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c",
279 "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700280 "src/f32-vbinary/gen/vmulc-scalar-x1.c",
281 "src/f32-vbinary/gen/vmulc-scalar-x2.c",
282 "src/f32-vbinary/gen/vmulc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700283 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c",
284 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c",
285 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700286 "src/f32-vbinary/gen/vrdivc-scalar-x1.c",
287 "src/f32-vbinary/gen/vrdivc-scalar-x2.c",
288 "src/f32-vbinary/gen/vrdivc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700289 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c",
290 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c",
291 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700292 "src/f32-vbinary/gen/vrsubc-scalar-x1.c",
293 "src/f32-vbinary/gen/vrsubc-scalar-x2.c",
294 "src/f32-vbinary/gen/vrsubc-scalar-x4.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -0700295 "src/f32-vbinary/gen/vsqrdiff-scalar-x1.c",
296 "src/f32-vbinary/gen/vsqrdiff-scalar-x2.c",
297 "src/f32-vbinary/gen/vsqrdiff-scalar-x4.c",
298 "src/f32-vbinary/gen/vsqrdiffc-scalar-x1.c",
299 "src/f32-vbinary/gen/vsqrdiffc-scalar-x2.c",
300 "src/f32-vbinary/gen/vsqrdiffc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700301 "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c",
302 "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c",
303 "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700304 "src/f32-vbinary/gen/vsub-scalar-x1.c",
305 "src/f32-vbinary/gen/vsub-scalar-x2.c",
306 "src/f32-vbinary/gen/vsub-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700307 "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c",
308 "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c",
309 "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700310 "src/f32-vbinary/gen/vsubc-scalar-x1.c",
311 "src/f32-vbinary/gen/vsubc-scalar-x2.c",
312 "src/f32-vbinary/gen/vsubc-scalar-x4.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -0700313 "src/f32-vlrelu/gen/vlrelu-scalar-x1.c",
314 "src/f32-vlrelu/gen/vlrelu-scalar-x2.c",
315 "src/f32-vlrelu/gen/vlrelu-scalar-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700316 "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c",
317 "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c",
318 "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -0700319 "src/f32-vrnd/gen/vrndne-scalar-libm-x1.c",
320 "src/f32-vrnd/gen/vrndne-scalar-libm-x2.c",
321 "src/f32-vrnd/gen/vrndne-scalar-libm-x4.c",
322 "src/f32-vrnd/gen/vrndz-scalar-libm-x1.c",
323 "src/f32-vrnd/gen/vrndz-scalar-libm-x2.c",
324 "src/f32-vrnd/gen/vrndz-scalar-libm-x4.c",
325 "src/f32-vrnd/gen/vrndu-scalar-libm-x1.c",
326 "src/f32-vrnd/gen/vrndu-scalar-libm-x2.c",
327 "src/f32-vrnd/gen/vrndu-scalar-libm-x4.c",
328 "src/f32-vrnd/gen/vrndd-scalar-libm-x1.c",
329 "src/f32-vrnd/gen/vrndd-scalar-libm-x2.c",
330 "src/f32-vrnd/gen/vrndd-scalar-libm-x4.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -0700331 "src/f32-vsqrt/gen/scalar-sqrt-x1.c",
332 "src/f32-vsqrt/gen/scalar-sqrt-x2.c",
333 "src/f32-vsqrt/gen/scalar-sqrt-x4.c",
Marat Dukhan5020b962020-06-08 13:30:10 -0700334 "src/f32-vunary/gen/vabs-scalar-x1.c",
335 "src/f32-vunary/gen/vabs-scalar-x2.c",
336 "src/f32-vunary/gen/vabs-scalar-x4.c",
337 "src/f32-vunary/gen/vneg-scalar-x1.c",
338 "src/f32-vunary/gen/vneg-scalar-x2.c",
339 "src/f32-vunary/gen/vneg-scalar-x4.c",
340 "src/f32-vunary/gen/vsqr-scalar-x1.c",
341 "src/f32-vunary/gen/vsqr-scalar-x2.c",
342 "src/f32-vunary/gen/vsqr-scalar-x4.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800343 "src/math/expminus-scalar-lut2048-p1.c",
344 "src/math/expminus-scalar-lut64-p2.c",
345 "src/math/expminus-scalar-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -0700346 "src/math/roundne-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700347 "src/math/roundne-scalar-nearbyint.c",
348 "src/math/roundne-scalar-rint.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700349 "src/math/roundd-scalar-addsub.c",
350 "src/math/roundd-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700351 "src/math/roundd-scalar-floor.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700352 "src/math/roundu-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700353 "src/math/roundu-scalar-ceil.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700354 "src/math/roundu-scalar-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700355 "src/math/roundz-scalar-addsub.c",
356 "src/math/roundz-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700357 "src/math/roundz-scalar-trunc.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800358 "src/math/sigmoid-scalar-lut2048-p1-div.c",
359 "src/math/sigmoid-scalar-lut64-p2-div.c",
360 "src/math/sigmoid-scalar-p5-div.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -0700361 "src/qs8-requantization/fp32-scalar-lrintf.c",
362 "src/qs8-requantization/fp32-scalar-magic.c",
363 "src/qs8-requantization/precise-scalar-signed64.c",
364 "src/qs8-requantization/precise-scalar-unsigned32.c",
365 "src/qs8-requantization/precise-scalar-unsigned64.c",
366 "src/qs8-requantization/q31-scalar.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -0700367 "src/qu8-avgpool/9p8x-minmax-scalar-c1.c",
368 "src/qu8-avgpool/9x-minmax-scalar-c1.c",
369 "src/qu8-dwconv/up1x9-minmax-scalar.c",
370 "src/qu8-gavgpool/7p7x-minmax-scalar-c1.c",
371 "src/qu8-gavgpool/7x-minmax-scalar-c1.c",
372 "src/qu8-gemm/2x2-minmax-scalar.c",
373 "src/qu8-igemm/2x2-minmax-scalar.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -0700374 "src/qu8-requantization/fp32-scalar-lrintf.c",
375 "src/qu8-requantization/fp32-scalar-magic.c",
376 "src/qu8-requantization/precise-scalar-signed64.c",
377 "src/qu8-requantization/precise-scalar-unsigned32.c",
378 "src/qu8-requantization/precise-scalar-unsigned64.c",
379 "src/qu8-requantization/q31-scalar.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -0700380 "src/qu8-vadd/minmax-scalar.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700381 "src/u8-clamp/scalar-x4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700382 "src/u8-lut32norm/scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700383 "src/u8-maxpool/9p8x-minmax-scalar-c1.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700384 "src/u8-rmax/scalar.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700385 "src/x32-fill/scalar-float.c",
386 "src/x32-fill/scalar-int.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700387 "src/x32-packx/x2-scalar.c",
388 "src/x32-packx/x3-scalar.c",
389 "src/x32-packx/x4-scalar.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700390 "src/x32-pad/scalar-int.c",
391 "src/x32-pad/scalar-float.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700392 "src/x32-unpool/scalar.c",
393 "src/x32-zip/x2-scalar.c",
394 "src/x32-zip/x3-scalar.c",
395 "src/x32-zip/x4-scalar.c",
396 "src/x32-zip/xm-scalar.c",
397 "src/x8-lut/scalar.c",
398 "src/x8-zip/x2-scalar.c",
399 "src/x8-zip/x3-scalar.c",
400 "src/x8-zip/x4-scalar.c",
401 "src/x8-zip/xm-scalar.c",
402]
403
Marat Dukhan436ebe62019-12-04 15:10:12 -0800404WASM_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700405 "src/f32-avgpool/9p8x-minmax-wasm-c1.c",
406 "src/f32-avgpool/9x-minmax-wasm-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700407 "src/f32-clamp/gen/wasm-x1.c",
408 "src/f32-clamp/gen/wasm-x2.c",
409 "src/f32-clamp/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700410 "src/f32-dwconv/gen/up1x4-wasm-acc2.c",
411 "src/f32-dwconv/gen/up1x4-wasm.c",
412 "src/f32-dwconv/gen/up1x9-wasm-acc2.c",
413 "src/f32-dwconv/gen/up1x9-wasm.c",
414 "src/f32-dwconv/gen/up1x25-wasm-acc2.c",
415 "src/f32-dwconv/gen/up1x25-wasm.c",
416 "src/f32-dwconv/gen/up2x4-wasm-acc2.c",
417 "src/f32-dwconv/gen/up2x4-wasm.c",
418 "src/f32-dwconv/gen/up2x9-wasm-acc2.c",
419 "src/f32-dwconv/gen/up2x9-wasm.c",
420 "src/f32-dwconv/gen/up2x25-wasm-acc2.c",
421 "src/f32-dwconv/gen/up2x25-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700422 "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c",
423 "src/f32-dwconv/gen/up1x4-minmax-wasm.c",
424 "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c",
425 "src/f32-dwconv/gen/up1x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700426 "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c",
427 "src/f32-dwconv/gen/up1x25-minmax-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700428 "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c",
429 "src/f32-dwconv/gen/up2x4-minmax-wasm.c",
430 "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c",
431 "src/f32-dwconv/gen/up2x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700432 "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c",
433 "src/f32-dwconv/gen/up2x25-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700434 "src/f32-gavgpool/7p7x-minmax-wasm-c1.c",
435 "src/f32-gavgpool/7x-minmax-wasm-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700436 "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c",
437 "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c",
438 "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700439 "src/f32-gemm/gen/1x4-wasm.c",
440 "src/f32-gemm/gen/2x4-wasm.c",
441 "src/f32-gemm/gen/4x2-wasm.c",
442 "src/f32-gemm/gen/4x4-wasm.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700443 "src/f32-gemm/gen/1x4-relu-wasm.c",
444 "src/f32-gemm/gen/2x4-relu-wasm.c",
445 "src/f32-gemm/gen/4x2-relu-wasm.c",
446 "src/f32-gemm/gen/4x4-relu-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700447 "src/f32-gemm/gen/1x4-minmax-wasm.c",
448 "src/f32-gemm/gen/2x4-minmax-wasm.c",
449 "src/f32-gemm/gen/4x2-minmax-wasm.c",
450 "src/f32-gemm/gen/4x4-minmax-wasm.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700451 "src/f32-hswish/gen/hswish-wasm-x1.c",
452 "src/f32-hswish/gen/hswish-wasm-x2.c",
453 "src/f32-hswish/gen/hswish-wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700454 "src/f32-igemm/gen/1x4-wasm.c",
455 "src/f32-igemm/gen/2x4-wasm.c",
456 "src/f32-igemm/gen/4x2-wasm.c",
457 "src/f32-igemm/gen/4x4-wasm.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700458 "src/f32-igemm/gen/1x4-relu-wasm.c",
459 "src/f32-igemm/gen/2x4-relu-wasm.c",
460 "src/f32-igemm/gen/4x2-relu-wasm.c",
461 "src/f32-igemm/gen/4x4-relu-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700462 "src/f32-igemm/gen/1x4-minmax-wasm.c",
463 "src/f32-igemm/gen/2x4-minmax-wasm.c",
464 "src/f32-igemm/gen/4x2-minmax-wasm.c",
465 "src/f32-igemm/gen/4x4-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700466 "src/f32-maxpool/9p8x-minmax-wasm-c1.c",
467 "src/f32-pavgpool/9p8x-minmax-wasm-c1.c",
468 "src/f32-pavgpool/9x-minmax-wasm-c1.c",
Marat Dukhan7c1f8082020-06-25 13:26:20 -0700469 "src/f32-prelu/gen/wasm-2x1.c",
470 "src/f32-prelu/gen/wasm-2x4.c",
Frank Barchardfb158e22020-07-15 16:10:10 -0700471 "src/f32-relu/gen/wasm-x1.c",
472 "src/f32-relu/gen/wasm-x2.c",
473 "src/f32-relu/gen/wasm-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700474 "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c",
475 "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c",
476 "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c",
477 "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c",
478 "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c",
479 "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c",
480 "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c",
481 "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c",
482 "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c",
483 "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c",
484 "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c",
485 "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800486 "src/f32-vbinary/gen/vmax-wasm-x1.c",
487 "src/f32-vbinary/gen/vmax-wasm-x2.c",
488 "src/f32-vbinary/gen/vmax-wasm-x4.c",
489 "src/f32-vbinary/gen/vmaxc-wasm-x1.c",
490 "src/f32-vbinary/gen/vmaxc-wasm-x2.c",
491 "src/f32-vbinary/gen/vmaxc-wasm-x4.c",
492 "src/f32-vbinary/gen/vmin-wasm-x1.c",
493 "src/f32-vbinary/gen/vmin-wasm-x2.c",
494 "src/f32-vbinary/gen/vmin-wasm-x4.c",
495 "src/f32-vbinary/gen/vminc-wasm-x1.c",
496 "src/f32-vbinary/gen/vminc-wasm-x2.c",
497 "src/f32-vbinary/gen/vminc-wasm-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700498 "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c",
499 "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c",
500 "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c",
501 "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c",
502 "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c",
503 "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c",
504 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c",
505 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c",
506 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c",
507 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c",
508 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c",
509 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c",
510 "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c",
511 "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c",
512 "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c",
513 "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c",
514 "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c",
515 "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -0700516 "src/f32-vlrelu/gen/vlrelu-wasm-x1.c",
517 "src/f32-vlrelu/gen/vlrelu-wasm-x2.c",
518 "src/f32-vlrelu/gen/vlrelu-wasm-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700519 "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c",
520 "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c",
521 "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c",
Marat Dukhan436ebe62019-12-04 15:10:12 -0800522]
523
Marat Dukhan290055c2020-06-09 12:24:29 -0700524WASMSIMD_UKERNELS = [
Marat Dukhan40f05522020-07-16 22:33:12 -0700525 "src/f32-argmaxpool/4x-wasmsimd-c4.c",
526 "src/f32-argmaxpool/9p8x-wasmsimd-c4.c",
527 "src/f32-argmaxpool/9x-wasmsimd-c4.c",
Marat Dukhan3b7432d2020-07-16 17:46:32 -0700528 "src/f32-avgpool/9p8x-minmax-wasmsimd-arm-c4.c",
529 "src/f32-avgpool/9p8x-minmax-wasmsimd-x86-c4.c",
530 "src/f32-avgpool/9x-minmax-wasmsimd-arm-c4.c",
531 "src/f32-avgpool/9x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan3fa52c82020-07-08 12:54:33 -0700532 "src/f32-clamp/gen/wasmsimd-arm-x4.c",
533 "src/f32-clamp/gen/wasmsimd-arm-x8.c",
534 "src/f32-clamp/gen/wasmsimd-x86-x4.c",
535 "src/f32-clamp/gen/wasmsimd-x86-x8.c",
Marat Dukhanb8e7b072020-06-16 12:34:23 -0700536 "src/f32-dwconv/gen/up4x25-wasmsimd.c",
537 "src/f32-dwconv/gen/up4x4-wasmsimd.c",
538 "src/f32-dwconv/gen/up4x9-wasmsimd.c",
539 "src/f32-dwconv/gen/up8x25-wasmsimd.c",
540 "src/f32-dwconv/gen/up8x4-wasmsimd.c",
541 "src/f32-dwconv/gen/up8x9-wasmsimd.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700542 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-arm.c",
543 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-arm.c",
544 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-arm.c",
545 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-arm.c",
546 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-arm.c",
547 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-arm.c",
548 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-arm.c",
549 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-arm.c",
550 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-arm.c",
551 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-arm.c",
552 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-arm.c",
553 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-arm.c",
554 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-x86.c",
555 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-x86.c",
556 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-x86.c",
557 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-x86.c",
558 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-x86.c",
559 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-x86.c",
560 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-x86.c",
561 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-x86.c",
562 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-x86.c",
563 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-x86.c",
564 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-x86.c",
565 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-x86.c",
Marat Dukhan802808c2020-06-16 11:01:17 -0700566 "src/f32-gemm/gen/1x8-wasmsimd-splat.c",
567 "src/f32-gemm/gen/4x8-wasmsimd-splat.c",
568 "src/f32-gemm/gen/5x8-wasmsimd-splat.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700569 "src/f32-gemm/gen/4x2c4-wasmsimd.c",
Marat Dukhan688f6d82020-07-14 17:02:11 -0700570 "src/f32-gemm/gen/1x8-relu-wasmsimd-splat.c",
571 "src/f32-gemm/gen/4x8-relu-wasmsimd-splat.c",
572 "src/f32-gemm/gen/5x8-relu-wasmsimd-splat.c",
573 "src/f32-gemm/gen/4x2c4-relu-wasmsimd.c",
Marat Dukhan1bbf96b2020-06-15 23:01:20 -0700574 "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c",
575 "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-arm.c",
576 "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-arm.c",
577 "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c",
578 "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-arm.c",
579 "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-arm.c",
580 "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c",
581 "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-arm.c",
582 "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-arm.c",
583 "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c",
584 "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-arm.c",
585 "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-arm.c",
586 "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c",
587 "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-arm.c",
588 "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-arm.c",
589 "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c",
590 "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-x86.c",
591 "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-x86.c",
592 "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c",
593 "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-x86.c",
594 "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-x86.c",
595 "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c",
596 "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-x86.c",
597 "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-x86.c",
598 "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c",
599 "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-x86.c",
600 "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-x86.c",
601 "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c",
602 "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-x86.c",
603 "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-x86.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700604 "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-arm.c",
605 "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-x86.c",
Marat Dukhan1bbf96b2020-06-15 23:01:20 -0700606 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-arm.c",
607 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-arm.c",
608 "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-arm.c",
609 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-arm.c",
610 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-arm.c",
611 "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-arm.c",
612 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-arm.c",
613 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-arm.c",
614 "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-arm.c",
615 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-arm.c",
616 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-arm.c",
617 "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-arm.c",
618 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-arm.c",
619 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-arm.c",
620 "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-arm.c",
621 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-x86.c",
622 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-x86.c",
623 "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-x86.c",
624 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-x86.c",
625 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-x86.c",
626 "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-x86.c",
627 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-x86.c",
628 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-x86.c",
629 "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-x86.c",
630 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-x86.c",
631 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-x86.c",
632 "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-x86.c",
633 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-x86.c",
634 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-x86.c",
635 "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-x86.c",
Marat Dukhan00d1d6e2020-07-09 01:37:27 -0700636 "src/f32-ibilinear/gen/wasmsimd-c4.c",
637 "src/f32-ibilinear/gen/wasmsimd-c8.c",
Marat Dukhan802808c2020-06-16 11:01:17 -0700638 "src/f32-igemm/gen/1x8-wasmsimd-splat.c",
639 "src/f32-igemm/gen/4x8-wasmsimd-splat.c",
640 "src/f32-igemm/gen/5x8-wasmsimd-splat.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700641 "src/f32-igemm/gen/4x2c4-wasmsimd.c",
Marat Dukhan688f6d82020-07-14 17:02:11 -0700642 "src/f32-igemm/gen/1x8-relu-wasmsimd-splat.c",
643 "src/f32-igemm/gen/4x8-relu-wasmsimd-splat.c",
644 "src/f32-igemm/gen/5x8-relu-wasmsimd-splat.c",
645 "src/f32-igemm/gen/4x2c4-relu-wasmsimd.c",
Marat Dukhan1bbf96b2020-06-15 23:01:20 -0700646 "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c",
647 "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-arm.c",
648 "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-arm.c",
649 "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c",
650 "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-arm.c",
651 "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-arm.c",
652 "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c",
653 "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-arm.c",
654 "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-arm.c",
655 "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c",
656 "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-arm.c",
657 "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-arm.c",
658 "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c",
659 "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-arm.c",
660 "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-arm.c",
661 "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c",
662 "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-x86.c",
663 "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-x86.c",
664 "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c",
665 "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-x86.c",
666 "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-x86.c",
667 "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c",
668 "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-x86.c",
669 "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-x86.c",
670 "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c",
671 "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-x86.c",
672 "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-x86.c",
673 "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c",
674 "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-x86.c",
675 "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-x86.c",
Marat Dukhane39e6462020-07-09 01:33:36 -0700676 "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-arm.c",
677 "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-x86.c",
Marat Dukhanc6016802020-07-16 18:51:28 -0700678 "src/f32-gavgpool/7p7x-minmax-wasmsimd-arm-c4.c",
679 "src/f32-gavgpool/7p7x-minmax-wasmsimd-x86-c4.c",
680 "src/f32-gavgpool/7x-minmax-wasmsimd-arm-c4.c",
681 "src/f32-gavgpool/7x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan18493512020-07-24 14:13:48 -0700682 "src/f32-gavgpool-cw/wasmsimd-arm-x4.c",
683 "src/f32-gavgpool-cw/wasmsimd-x86-x4.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700684 "src/f32-hswish/gen/hswish-wasmsimd-x4.c",
685 "src/f32-hswish/gen/hswish-wasmsimd-x8.c",
686 "src/f32-hswish/gen/hswish-wasmsimd-x16.c",
Marat Dukhanf6e24802020-07-08 22:20:40 -0700687 "src/f32-maxpool/9p8x-minmax-wasmsimd-arm-c4.c",
688 "src/f32-maxpool/9p8x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan1483c532020-07-16 18:08:19 -0700689 "src/f32-pavgpool/9p8x-minmax-wasmsimd-arm-c4.c",
690 "src/f32-pavgpool/9p8x-minmax-wasmsimd-x86-c4.c",
691 "src/f32-pavgpool/9x-minmax-wasmsimd-arm-c4.c",
692 "src/f32-pavgpool/9x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan0d0d8822020-07-23 23:37:56 -0700693 "src/f32-ppmm/gen/4x8-minmax-wasmsimd-splat-arm.c",
694 "src/f32-ppmm/gen/4x8-minmax-wasmsimd-splat-x86.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700695 "src/f32-prelu/gen/wasmsimd-bitselect-1x4.c",
696 "src/f32-prelu/gen/wasmsimd-bitselect-1x8.c",
697 "src/f32-prelu/gen/wasmsimd-bitselect-1x16.c",
Marat Dukhan195f8eb2020-06-25 12:50:57 -0700698 "src/f32-prelu/gen/wasmsimd-bitselect-2x4.c",
699 "src/f32-prelu/gen/wasmsimd-bitselect-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700700 "src/f32-prelu/gen/wasmsimd-bitselect-2x16.c",
701 "src/f32-prelu/gen/wasmsimd-bitselect-4x4.c",
702 "src/f32-prelu/gen/wasmsimd-bitselect-4x8.c",
703 "src/f32-prelu/gen/wasmsimd-bitselect-4x16.c",
704 "src/f32-prelu/gen/wasmsimd-minmax-1x4.c",
705 "src/f32-prelu/gen/wasmsimd-minmax-1x8.c",
706 "src/f32-prelu/gen/wasmsimd-minmax-1x16.c",
Marat Dukhan195f8eb2020-06-25 12:50:57 -0700707 "src/f32-prelu/gen/wasmsimd-minmax-2x4.c",
708 "src/f32-prelu/gen/wasmsimd-minmax-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700709 "src/f32-prelu/gen/wasmsimd-minmax-2x16.c",
710 "src/f32-prelu/gen/wasmsimd-minmax-4x4.c",
711 "src/f32-prelu/gen/wasmsimd-minmax-4x8.c",
712 "src/f32-prelu/gen/wasmsimd-minmax-4x16.c",
Marat Dukhan52238f02020-07-16 15:30:28 -0700713 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x4.c",
714 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x8.c",
715 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x8-acc2.c",
716 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x12.c",
717 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x12-acc2.c",
718 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x12-acc3.c",
719 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x16.c",
720 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x16-acc2.c",
721 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x16-acc4.c",
722 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x20.c",
723 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x20-acc2.c",
724 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x20-acc5.c",
Frank Barchardfb158e22020-07-15 16:10:10 -0700725 "src/f32-relu/gen/wasmsimd-x4.c",
726 "src/f32-relu/gen/wasmsimd-x8.c",
Marat Dukhan8c417962020-07-08 12:27:50 -0700727 "src/f32-rmax/wasmsimd-arm.c",
728 "src/f32-rmax/wasmsimd-x86.c",
Marat Dukhanb3635ed2020-07-16 12:36:28 -0700729 "src/f32-sigmoid/gen/wasmsimd-p5-div-x4.c",
730 "src/f32-sigmoid/gen/wasmsimd-p5-div-x8.c",
731 "src/f32-sigmoid/gen/wasmsimd-p5-div-x12.c",
732 "src/f32-sigmoid/gen/wasmsimd-p5-div-x16.c",
733 "src/f32-sigmoid/gen/wasmsimd-p5-div-x20.c",
734 "src/f32-sigmoid/gen/wasmsimd-p5-div-x24.c",
Marat Dukhand187a5b2020-07-20 01:07:17 -0700735 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x4.c",
736 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x8.c",
737 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x12.c",
738 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x16.c",
739 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x20.c",
740 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x24.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700741 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x4.c",
742 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x8.c",
743 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x4.c",
744 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700745 "src/f32-vbinary/gen/vadd-wasmsimd-x4.c",
746 "src/f32-vbinary/gen/vadd-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700747 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x4.c",
748 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x8.c",
749 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x4.c",
750 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700751 "src/f32-vbinary/gen/vaddc-wasmsimd-x4.c",
752 "src/f32-vbinary/gen/vaddc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700753 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x4.c",
754 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x8.c",
755 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x4.c",
756 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700757 "src/f32-vbinary/gen/vdiv-wasmsimd-x4.c",
758 "src/f32-vbinary/gen/vdiv-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700759 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x4.c",
760 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x8.c",
761 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x4.c",
762 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700763 "src/f32-vbinary/gen/vdivc-wasmsimd-x4.c",
764 "src/f32-vbinary/gen/vdivc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700765 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x4.c",
766 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x8.c",
767 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x4.c",
768 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700769 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x4.c",
770 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x8.c",
771 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x4.c",
772 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700773 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x4.c",
774 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x8.c",
775 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x4.c",
776 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700777 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x4.c",
778 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x8.c",
779 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x4.c",
780 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700781 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x4.c",
782 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x8.c",
783 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x4.c",
784 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700785 "src/f32-vbinary/gen/vmul-wasmsimd-x4.c",
786 "src/f32-vbinary/gen/vmul-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700787 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x4.c",
788 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x8.c",
789 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x4.c",
790 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700791 "src/f32-vbinary/gen/vmulc-wasmsimd-x4.c",
792 "src/f32-vbinary/gen/vmulc-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700793 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x4.c",
794 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x8.c",
795 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x4.c",
796 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700797 "src/f32-vbinary/gen/vrdivc-wasmsimd-x4.c",
798 "src/f32-vbinary/gen/vrdivc-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700799 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x4.c",
800 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x8.c",
801 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x4.c",
802 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700803 "src/f32-vbinary/gen/vrsubc-wasmsimd-x4.c",
804 "src/f32-vbinary/gen/vrsubc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700805 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x4.c",
806 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700807 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x4.c",
808 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x8.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700809 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x4.c",
810 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x8.c",
811 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x4.c",
812 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700813 "src/f32-vbinary/gen/vsub-wasmsimd-x4.c",
814 "src/f32-vbinary/gen/vsub-wasmsimd-x8.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700815 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x4.c",
816 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x8.c",
817 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x4.c",
818 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x8.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700819 "src/f32-vbinary/gen/vsubc-wasmsimd-x4.c",
820 "src/f32-vbinary/gen/vsubc-wasmsimd-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -0700821 "src/f32-vlrelu/gen/vlrelu-wasmsimd-bitselect-x4.c",
822 "src/f32-vlrelu/gen/vlrelu-wasmsimd-bitselect-x8.c",
823 "src/f32-vlrelu/gen/vlrelu-wasmsimd-minmax-x4.c",
824 "src/f32-vlrelu/gen/vlrelu-wasmsimd-minmax-x8.c",
Marat Dukhand816f622020-07-15 10:14:39 -0700825 "src/f32-vmulcaddc/gen/c4-minmax-wasmsimd-arm-2x.c",
826 "src/f32-vmulcaddc/gen/c8-minmax-wasmsimd-arm-2x.c",
827 "src/f32-vmulcaddc/gen/c4-minmax-wasmsimd-x86-2x.c",
828 "src/f32-vmulcaddc/gen/c8-minmax-wasmsimd-x86-2x.c",
Marat Dukhanb82b2cd2020-07-16 02:23:42 -0700829 "src/f32-vrnd/gen/vrndne-wasmsimd-addsub-x4.c",
830 "src/f32-vrnd/gen/vrndne-wasmsimd-addsub-x8.c",
831 "src/f32-vrnd/gen/vrndz-wasmsimd-addsub-x4.c",
832 "src/f32-vrnd/gen/vrndz-wasmsimd-addsub-x8.c",
833 "src/f32-vrnd/gen/vrndz-wasmsimd-cvt-x4.c",
834 "src/f32-vrnd/gen/vrndz-wasmsimd-cvt-x8.c",
835 "src/f32-vrnd/gen/vrndu-wasmsimd-addsub-x4.c",
836 "src/f32-vrnd/gen/vrndu-wasmsimd-addsub-x8.c",
837 "src/f32-vrnd/gen/vrndu-wasmsimd-cvt-x4.c",
838 "src/f32-vrnd/gen/vrndu-wasmsimd-cvt-x8.c",
839 "src/f32-vrnd/gen/vrndd-wasmsimd-addsub-x4.c",
840 "src/f32-vrnd/gen/vrndd-wasmsimd-addsub-x8.c",
841 "src/f32-vrnd/gen/vrndd-wasmsimd-cvt-x4.c",
842 "src/f32-vrnd/gen/vrndd-wasmsimd-cvt-x8.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -0700843 "src/f32-vsqrt/gen/wasmsimd-sqrt-x4.c",
844 "src/f32-vsqrt/gen/wasmsimd-sqrt-x8.c",
Marat Dukhan37c83512020-06-29 13:25:53 -0700845 "src/f32-vunary/gen/vabs-wasmsimd-x4.c",
846 "src/f32-vunary/gen/vabs-wasmsimd-x8.c",
847 "src/f32-vunary/gen/vneg-wasmsimd-x4.c",
848 "src/f32-vunary/gen/vneg-wasmsimd-x8.c",
849 "src/f32-vunary/gen/vsqr-wasmsimd-x4.c",
850 "src/f32-vunary/gen/vsqr-wasmsimd-x8.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -0700851 "src/qs8-requantization/fp32-wasmsimd.c",
Marat Dukhan138560c2020-08-03 18:57:34 -0700852 "src/qs8-requantization/q31-wasmsimd.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -0700853 "src/qu8-requantization/fp32-wasmsimd.c",
Marat Dukhan22de5e72020-08-03 21:53:18 -0700854 "src/qu8-requantization/q31-wasmsimd.c",
Marat Dukhan8ee37012020-07-16 13:17:13 -0700855 "src/x32-fill/wasmsimd.c",
Marat Dukhan66d99e92020-07-16 12:56:21 -0700856 "src/x32-packx/x4-wasmsimd.c",
Marat Dukhan9306ae02020-07-16 15:51:13 -0700857 "src/x32-pad/wasmsimd.c",
Marat Dukhan9d4bfa22020-07-16 19:07:04 -0700858 "src/x32-unpool/wasmsimd.c",
Marat Dukhane3b78762020-07-16 20:02:58 -0700859 "src/x32-zip/x2-wasmsimd.c",
860 "src/x32-zip/x3-wasmsimd.c",
861 "src/x32-zip/x4-wasmsimd.c",
862 "src/x32-zip/xm-wasmsimd.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700863 "src/math/roundne-wasmsimd-addsub.c",
864 "src/math/roundd-wasmsimd-addsub.c",
Marat Dukhan88da62c2020-07-15 17:56:09 -0700865 "src/math/roundd-wasmsimd-cvt.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700866 "src/math/roundu-wasmsimd-addsub.c",
Marat Dukhan88da62c2020-07-15 17:56:09 -0700867 "src/math/roundu-wasmsimd-cvt.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700868 "src/math/roundz-wasmsimd-addsub.c",
Marat Dukhan88da62c2020-07-15 17:56:09 -0700869 "src/math/roundz-wasmsimd-cvt.c",
Marat Dukhan773da432020-07-17 18:55:36 -0700870 "src/math/sigmoid-wasmsimd-rr2-lut64-p2-div.c",
871 "src/math/sigmoid-wasmsimd-rr2-p5-div.c",
Marat Dukhan290055c2020-06-09 12:24:29 -0700872]
873
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800874PSIMD_FASTMATH_UKERNELS = [
Erich Elsen0a1970e2020-06-10 09:24:59 -0700875 "src/f32-conv-hwc2chw/3x3s2p1c3x4-psimd-2x2.c",
Erich Elsene6214af2020-06-10 22:17:22 -0700876 "src/f32-dwconv-chw/3x3p1-psimd.c",
Erich Elsenfd7a6e32020-06-11 12:04:44 -0700877 "src/f32-dwconv-chw/3x3s2p1-psimd.c",
Erich Elsen28928892020-06-12 08:08:19 -0700878 "src/f32-dwconv-chw/5x5p2-psimd.c",
Erich Elsen7465a892020-06-13 14:02:04 -0700879 "src/f32-dwconv-chw/5x5s2p2-psimd.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -0700880 "src/f32-spmm/gen/4x1-minmax-psimd.c",
881 "src/f32-spmm/gen/8x1-minmax-psimd.c",
882 "src/f32-spmm/gen/16x1-minmax-psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700883]
884
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800885PSIMD_ACCMATH_UKERNELS = [
Marat Dukhan2e23d2b2020-07-29 16:01:37 -0700886 "src/qs8-requantization/precise-psimd.c",
887 "src/qs8-requantization/fp32-psimd.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -0700888 "src/qu8-requantization/precise-psimd.c",
889 "src/qu8-requantization/fp32-psimd.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800890]
891
Marat Dukhan08c4a432019-10-03 09:29:21 -0700892# ISA-specific micro-kernels
893NEON_UKERNELS = [
Marat Dukhanef25c6d2020-07-24 00:59:40 -0700894 "src/f32-argmaxpool/4x-neon-c4.c",
895 "src/f32-argmaxpool/9p8x-neon-c4.c",
896 "src/f32-argmaxpool/9x-neon-c4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700897 "src/f32-avgpool/9p8x-minmax-neon-c4.c",
898 "src/f32-avgpool/9x-minmax-neon-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700899 "src/f32-clamp/gen/neon-x4.c",
900 "src/f32-clamp/gen/neon-x8.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700901 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c",
902 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700903 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c",
904 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700905 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c",
906 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700907 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c",
908 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700909 "src/f32-dwconv/gen/up4x4-minmax-neon.c",
910 "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c",
911 "src/f32-dwconv/gen/up8x4-minmax-neon.c",
912 "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700913 "src/f32-dwconv/gen/up4x9-minmax-neon.c",
914 "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c",
915 "src/f32-dwconv/gen/up8x9-minmax-neon.c",
916 "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700917 "src/f32-dwconv/gen/up4x25-minmax-neon.c",
918 "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c",
919 "src/f32-dwconv/gen/up8x25-minmax-neon.c",
920 "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700921 "src/f32-gavgpool-cw/neon-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700922 "src/f32-gavgpool/7p7x-minmax-neon-c4.c",
923 "src/f32-gavgpool/7x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700924 "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c",
925 "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c",
926 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c",
927 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c",
928 "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c",
929 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c",
930 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c",
931 "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c",
932 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c",
933 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c",
934 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c",
935 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c",
936 "src/f32-gemm/gen/1x8s4-minmax-neon.c",
937 "src/f32-gemm/gen/4x8s4-minmax-neon.c",
938 "src/f32-gemm/gen/6x8s4-minmax-neon.c",
939 "src/f32-gemm/gen/8x8s4-minmax-neon.c",
940 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c",
941 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c",
942 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c",
943 "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c",
944 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c",
945 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c",
946 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c",
947 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c",
948 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c",
949 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c",
950 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c",
951 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c",
952 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c",
953 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c",
954 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700955 "src/f32-hswish/gen/hswish-neon-x4.c",
956 "src/f32-hswish/gen/hswish-neon-x8.c",
957 "src/f32-hswish/gen/hswish-neon-x16.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700958 "src/f32-ibilinear/gen/neon-c4.c",
959 "src/f32-ibilinear/gen/neon-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700960 "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c",
961 "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c",
962 "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c",
963 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c",
964 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c",
965 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c",
966 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c",
967 "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c",
968 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c",
969 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c",
970 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c",
971 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c",
972 "src/f32-igemm/gen/1x8s4-minmax-neon.c",
973 "src/f32-igemm/gen/4x8s4-minmax-neon.c",
974 "src/f32-igemm/gen/6x8s4-minmax-neon.c",
975 "src/f32-igemm/gen/8x8s4-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700976 "src/f32-maxpool/9p8x-minmax-neon-c4.c",
977 "src/f32-pavgpool/9p8x-minmax-neon-c4.c",
978 "src/f32-pavgpool/9x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700979 "src/f32-ppmm/gen/4x8-minmax-neon.c",
980 "src/f32-ppmm/gen/8x8-minmax-neon.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700981 "src/f32-prelu/gen/neon-1x4.c",
982 "src/f32-prelu/gen/neon-1x8.c",
983 "src/f32-prelu/gen/neon-1x16.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800984 "src/f32-prelu/gen/neon-2x4.c",
985 "src/f32-prelu/gen/neon-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700986 "src/f32-prelu/gen/neon-2x16.c",
987 "src/f32-prelu/gen/neon-4x4.c",
988 "src/f32-prelu/gen/neon-4x8.c",
989 "src/f32-prelu/gen/neon-4x16.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800990 "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c",
991 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c",
992 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c",
993 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c",
994 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c",
995 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c",
996 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c",
997 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c",
998 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c",
999 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c",
1000 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c",
1001 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c",
1002 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c",
1003 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c",
1004 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c",
1005 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c",
1006 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c",
1007 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c",
1008 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c",
1009 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c",
1010 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c",
1011 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c",
1012 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c",
1013 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001014 "src/f32-relu/gen/neon-x4.c",
1015 "src/f32-relu/gen/neon-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001016 "src/f32-rmax/neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001017 "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001018 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c",
1019 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c",
1020 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c",
1021 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c",
1022 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c",
1023 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c",
1024 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c",
1025 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c",
1026 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c",
1027 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c",
1028 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c",
1029 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c",
1030 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c",
1031 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c",
1032 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c",
1033 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c",
1034 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c",
1035 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001036 "src/f32-vbinary/gen/vadd-minmax-neon-x4.c",
1037 "src/f32-vbinary/gen/vadd-minmax-neon-x8.c",
1038 "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c",
1039 "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001040 "src/f32-vbinary/gen/vmax-neon-x4.c",
1041 "src/f32-vbinary/gen/vmax-neon-x8.c",
1042 "src/f32-vbinary/gen/vmaxc-neon-x4.c",
1043 "src/f32-vbinary/gen/vmaxc-neon-x8.c",
1044 "src/f32-vbinary/gen/vmin-neon-x4.c",
1045 "src/f32-vbinary/gen/vmin-neon-x8.c",
1046 "src/f32-vbinary/gen/vminc-neon-x4.c",
1047 "src/f32-vbinary/gen/vminc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001048 "src/f32-vbinary/gen/vmul-minmax-neon-x4.c",
1049 "src/f32-vbinary/gen/vmul-minmax-neon-x8.c",
1050 "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c",
1051 "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c",
1052 "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c",
1053 "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001054 "src/f32-vbinary/gen/vsqrdiff-neon-x4.c",
1055 "src/f32-vbinary/gen/vsqrdiff-neon-x8.c",
1056 "src/f32-vbinary/gen/vsqrdiffc-neon-x4.c",
1057 "src/f32-vbinary/gen/vsqrdiffc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001058 "src/f32-vbinary/gen/vsub-minmax-neon-x4.c",
1059 "src/f32-vbinary/gen/vsub-minmax-neon-x8.c",
1060 "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c",
1061 "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001062 "src/f32-vlrelu/gen/vlrelu-neon-x4.c",
1063 "src/f32-vlrelu/gen/vlrelu-neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001064 "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c",
1065 "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001066 "src/f32-vrnd/gen/vrndne-neon-x4.c",
1067 "src/f32-vrnd/gen/vrndne-neon-x8.c",
1068 "src/f32-vrnd/gen/vrndz-neon-x4.c",
1069 "src/f32-vrnd/gen/vrndz-neon-x8.c",
1070 "src/f32-vrnd/gen/vrndu-neon-x4.c",
1071 "src/f32-vrnd/gen/vrndu-neon-x8.c",
1072 "src/f32-vrnd/gen/vrndd-neon-x4.c",
1073 "src/f32-vrnd/gen/vrndd-neon-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001074 "src/f32-vunary/gen/vabs-neon-x4.c",
1075 "src/f32-vunary/gen/vabs-neon-x8.c",
1076 "src/f32-vunary/gen/vneg-neon-x4.c",
1077 "src/f32-vunary/gen/vneg-neon-x8.c",
1078 "src/f32-vunary/gen/vsqr-neon-x4.c",
1079 "src/f32-vunary/gen/vsqr-neon-x8.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001080 "src/qs8-gemm/gen/1x8-minmax-neon-mlal-lane.c",
1081 "src/qs8-gemm/gen/4x8-minmax-neon-mlal-lane.c",
1082 "src/qs8-gemm/gen/1x16-minmax-neon-mlal-lane.c",
1083 "src/qs8-gemm/gen/2x16-minmax-neon-mlal-lane.c",
1084 "src/qs8-igemm/gen/1x8-minmax-neon-mlal-lane.c",
1085 "src/qs8-igemm/gen/4x8-minmax-neon-mlal-lane.c",
1086 "src/qs8-igemm/gen/1x16-minmax-neon-mlal-lane.c",
1087 "src/qs8-igemm/gen/2x16-minmax-neon-mlal-lane.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001088 "src/qs8-requantization/precise-neon.c",
1089 "src/qs8-requantization/fp32-neon.c",
1090 "src/qs8-requantization/q31-neon.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001091 "src/qu8-avgpool/9p8x-minmax-neon-c8.c",
1092 "src/qu8-avgpool/9x-minmax-neon-c8.c",
1093 "src/qu8-dwconv/up8x9-minmax-neon.c",
1094 "src/qu8-gavgpool/7p7x-minmax-neon-c8.c",
1095 "src/qu8-gavgpool/7x-minmax-neon-c8.c",
1096 "src/qu8-gemm/4x8-minmax-neon.c",
1097 "src/qu8-gemm/8x8-minmax-neon.c",
1098 "src/qu8-igemm/4x8-minmax-neon.c",
1099 "src/qu8-igemm/8x8-minmax-neon.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001100 "src/qu8-requantization/precise-neon.c",
1101 "src/qu8-requantization/fp32-neon.c",
1102 "src/qu8-requantization/q31-neon.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001103 "src/qu8-vadd/minmax-neon.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001104 "src/u8-clamp/neon-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001105 "src/u8-maxpool/9p8x-minmax-neon-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001106 "src/u8-rmax/neon.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001107 "src/x32-fill/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001108 "src/x32-packx/x4-neon-st4.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001109 "src/x32-pad/neon.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001110 "src/x32-unpool/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001111 "src/x32-zip/x2-neon.c",
1112 "src/x32-zip/x3-neon.c",
1113 "src/x32-zip/x4-neon.c",
1114 "src/x32-zip/xm-neon.c",
1115 "src/x8-zip/x2-neon.c",
1116 "src/x8-zip/x3-neon.c",
1117 "src/x8-zip/x4-neon.c",
1118 "src/x8-zip/xm-neon.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001119 "src/math/roundne-neon-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001120 "src/math/roundd-neon-addsub.c",
1121 "src/math/roundd-neon-cvt.c",
1122 "src/math/roundu-neon-addsub.c",
1123 "src/math/roundu-neon-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001124 "src/math/roundz-neon-addsub.c",
1125 "src/math/roundz-neon-cvt.c",
Marat Dukhan68b3b452020-01-02 10:11:15 -08001126 "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001127 "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c",
1128 "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c",
1129 "src/math/sigmoid-neon-rr1-p5-nr2recps.c",
1130 "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c",
1131 "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c",
1132 "src/math/sigmoid-neon-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001133 "src/math/sqrt-neon-nr1rsqrts.c",
1134 "src/math/sqrt-neon-nr2rsqrts.c",
1135 "src/math/sqrt-neon-nr3rsqrts.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001136]
1137
1138NEONFMA_UKERNELS = [
Marat Dukhan660fd192020-03-10 04:55:30 -07001139 "src/f32-ibilinear/gen/neonfma-c4.c",
1140 "src/f32-ibilinear/gen/neonfma-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001141 "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1142 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1143 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1144 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1145 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1146 "src/f32-igemm/gen/1x8s4-minmax-neonfma.c",
1147 "src/f32-igemm/gen/4x8s4-minmax-neonfma.c",
1148 "src/f32-igemm/gen/6x8s4-minmax-neonfma.c",
1149 "src/f32-igemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001150 "src/f32-dwconv/gen/up4x4-minmax-neonfma.c",
1151 "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c",
1152 "src/f32-dwconv/gen/up8x4-minmax-neonfma.c",
1153 "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001154 "src/f32-dwconv/gen/up4x9-minmax-neonfma.c",
1155 "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c",
1156 "src/f32-dwconv/gen/up8x9-minmax-neonfma.c",
1157 "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001158 "src/f32-dwconv/gen/up4x25-minmax-neonfma.c",
1159 "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c",
1160 "src/f32-dwconv/gen/up8x25-minmax-neonfma.c",
1161 "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001162 "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1163 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1164 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1165 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1166 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1167 "src/f32-gemm/gen/1x8s4-minmax-neonfma.c",
1168 "src/f32-gemm/gen/4x8s4-minmax-neonfma.c",
1169 "src/f32-gemm/gen/6x8s4-minmax-neonfma.c",
1170 "src/f32-gemm/gen/8x8s4-minmax-neonfma.c",
1171 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c",
1172 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c",
1173 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c",
1174 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c",
1175 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c",
1176 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c",
1177 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c",
1178 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c",
1179 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001180 "src/f32-ppmm/gen/4x8-minmax-neonfma.c",
1181 "src/f32-ppmm/gen/8x8-minmax-neonfma.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001182 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c",
1183 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c",
1184 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c",
1185 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c",
1186 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c",
1187 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c",
1188 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c",
1189 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c",
1190 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c",
1191 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c",
1192 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c",
1193 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c",
1194 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c",
1195 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c",
1196 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c",
1197 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c",
1198 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c",
1199 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c",
1200 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c",
1201 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c",
1202 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c",
1203 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c",
1204 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c",
1205 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001206 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c",
1207 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c",
1208 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c",
1209 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c",
1210 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c",
1211 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c",
1212 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c",
1213 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c",
1214 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c",
1215 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c",
1216 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c",
1217 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c",
1218 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c",
1219 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c",
1220 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c",
1221 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c",
1222 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c",
1223 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c",
1224 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c",
1225 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c",
1226 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c",
1227 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c",
1228 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c",
1229 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c",
1230 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c",
1231 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c",
1232 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c",
1233 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c",
1234 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c",
1235 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c",
1236 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c",
1237 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c",
1238 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c",
1239 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c",
1240 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c",
1241 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c",
1242 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c",
1243 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c",
1244 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c",
1245 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c",
1246 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c",
1247 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c",
1248 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c",
1249 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c",
1250 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c",
1251 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c",
1252 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c",
1253 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c",
1254 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c",
1255 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c",
1256 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c",
1257 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c",
1258 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c",
1259 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001260 "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c",
1261 "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001262 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x4.c",
1263 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x8.c",
1264 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x12.c",
1265 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x16.c",
1266 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x20.c",
1267 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x24.c",
1268 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x28.c",
1269 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x32.c",
1270 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x36.c",
1271 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x40.c",
1272 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x4.c",
1273 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x8.c",
1274 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x12.c",
1275 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x16.c",
1276 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x20.c",
1277 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x24.c",
1278 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x28.c",
1279 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x32.c",
1280 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x36.c",
1281 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x40.c",
Marat Dukhan797a8fe2019-11-14 20:21:57 -08001282 "src/math/exp-neonfma-lut64-p2.c",
1283 "src/math/exp-neonfma-p5.c",
Marat Dukhan189ae802019-11-26 11:28:44 -08001284 "src/math/expminus-neonfma-lut2048-p1.c",
1285 "src/math/expminus-neonfma-lut64-p2.c",
Marat Dukhan346a9e52019-11-15 09:06:30 -08001286 "src/math/expminus-neonfma-p5.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001287 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c",
1288 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c",
1289 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c",
1290 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c",
1291 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c",
1292 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c",
1293 "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c",
1294 "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c",
1295 "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c",
1296 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c",
1297 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c",
1298 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c",
1299 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c",
1300 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c",
1301 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c",
1302 "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c",
1303 "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c",
1304 "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001305 "src/math/sqrt-neonfma-nr1fma.c",
1306 "src/math/sqrt-neonfma-nr2fma.c",
1307 "src/math/sqrt-neonfma-nr3fma.c",
1308 "src/math/sqrt-neonfma-nr2fma1adj.c",
1309 "src/math/sqrt-neonfma-nr1rsqrts1fma1adj.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001310]
1311
1312AARCH64_NEONFMA_UKERNELS = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001313 "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c",
1314 "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c",
1315 "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c",
1316 "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c",
1317 "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c",
1318 "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001319 "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1320 "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1321 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1322 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1323 "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c",
1324 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1325 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c",
1326 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c",
1327 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c",
1328 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c",
1329 "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c",
1330 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c",
1331 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c",
1332 "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1333 "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1334 "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c",
1335 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1336 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1337 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1338 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001339 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c",
1340 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001341 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c",
1342 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001343 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c",
1344 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001345 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c",
1346 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001347 "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c",
1348 "src/f32-dwconv-chw/3x3p1-neonfma.c",
1349 "src/f32-dwconv-chw/5x5p2-neonfma.c",
1350 "src/f32-dwconv-chw/3x3s2p1-neonfma.c",
1351 "src/f32-dwconv-chw/5x5s2p2-neonfma.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001352 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c",
1353 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c",
1354 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c",
1355 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c",
1356 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c",
1357 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c",
1358 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c",
1359 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c",
1360 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c",
1361 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c",
1362 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c",
1363 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c",
1364 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c",
1365 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c",
1366 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c",
1367 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c",
1368 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c",
1369 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001370 "src/f32-spmm/gen/12x1-minmax-neonfma.c",
1371 "src/f32-spmm/gen/12x2-minmax-neonfma.c",
1372 "src/f32-spmm/gen/12x4-minmax-neonfma.c",
1373 "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c",
1374 "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c",
1375 "src/f32-spmm/gen/16x1-minmax-neonfma.c",
1376 "src/f32-spmm/gen/16x2-minmax-neonfma.c",
1377 "src/f32-spmm/gen/16x4-minmax-neonfma.c",
1378 "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c",
1379 "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c",
1380 "src/f32-spmm/gen/4x1-minmax-neonfma.c",
1381 "src/f32-spmm/gen/4x2-minmax-neonfma.c",
1382 "src/f32-spmm/gen/4x4-minmax-neonfma.c",
1383 "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c",
1384 "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c",
1385 "src/f32-spmm/gen/8x1-minmax-neonfma.c",
1386 "src/f32-spmm/gen/8x2-minmax-neonfma.c",
1387 "src/f32-spmm/gen/8x4-minmax-neonfma.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001388 "src/f32-vsqrt/gen/neon-sqrt-x4.c",
1389 "src/f32-vsqrt/gen/neon-sqrt-x8.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001390 "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c",
1391 "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c",
1392 "src/math/sigmoid-neonfma-rr1-p5-div.c",
1393 "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c",
1394 "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c",
1395 "src/math/sigmoid-neonfma-rr2-p5-div.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001396]
1397
Marat Dukhan8853b822020-05-07 12:19:01 -07001398NEONV8_UKERNELS = [
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001399 "src/f32-vrnd/gen/vrndne-neonv8-x4.c",
1400 "src/f32-vrnd/gen/vrndne-neonv8-x8.c",
1401 "src/f32-vrnd/gen/vrndz-neonv8-x4.c",
1402 "src/f32-vrnd/gen/vrndz-neonv8-x8.c",
1403 "src/f32-vrnd/gen/vrndu-neonv8-x4.c",
1404 "src/f32-vrnd/gen/vrndu-neonv8-x8.c",
1405 "src/f32-vrnd/gen/vrndd-neonv8-x4.c",
1406 "src/f32-vrnd/gen/vrndd-neonv8-x8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001407 "src/math/roundne-neonv8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001408 "src/math/roundd-neonv8.c",
1409 "src/math/roundu-neonv8.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001410 "src/math/roundz-neonv8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001411]
1412
Marat Dukhan08c4a432019-10-03 09:29:21 -07001413AARCH64_NEONFP16ARITH_UKERNELS = [
Frank Barchardb1966592020-05-12 13:47:06 -07001414 "src/f16-clamp/gen/neonfp16arith-x16.c",
1415 "src/f16-clamp/gen/neonfp16arith-x8.c",
Frank Barchard5a599a62020-06-04 20:12:44 -07001416 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith-acc2.c",
1417 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith.c",
1418 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith-acc2.c",
1419 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith.c",
1420 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith-acc2.c",
1421 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith.c",
1422 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith-acc2.c",
1423 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith.c",
1424 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c",
1425 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c",
1426 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith-acc2.c",
1427 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith.c",
Frank Barchard0bb49a72020-06-04 11:35:11 -07001428 "src/f16-gavgpool/7p7x-minmax-neonfp16arith-c8.c",
1429 "src/f16-gavgpool/7x-minmax-neonfp16arith-c8.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001430 "src/f16-hswish/gen/hswish-neonfp16arith-x16.c",
1431 "src/f16-hswish/gen/hswish-neonfp16arith-x8.c",
Frank Barchardb1966592020-05-12 13:47:06 -07001432 "src/f16-prelu/gen/neonfp16arith-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -07001433 "src/f16-prelu/gen/neonfp16arith-2x16.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001434 "src/f16-relu/gen/neonfp16arith-x16.c",
1435 "src/f16-relu/gen/neonfp16arith-x8.c",
Frank Barchardd793f6c2020-05-08 13:37:43 -07001436 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c",
1437 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c",
1438 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c",
1439 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c",
1440 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c",
1441 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c",
1442 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c",
1443 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c",
1444 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c",
1445 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c",
1446 "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c",
1447 "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c",
1448 "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c",
1449 "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c",
1450 "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c",
1451 "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c",
1452 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c",
1453 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c",
1454 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c",
1455 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c",
1456 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c",
1457 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c",
1458 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c",
1459 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c",
1460 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c",
1461 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c",
1462 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c",
1463 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c",
Frank Barchard2a1049c2020-06-03 02:31:27 -07001464 "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c",
1465 "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c",
Frank Barchard83ea9392020-04-20 20:15:14 -07001466 "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1467 "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1468 "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1469 "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c",
1470 "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c",
1471 "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c",
1472 "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c",
1473 "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c",
Frank Barchardb0e4fae2020-05-04 15:27:51 -07001474 "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1475 "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1476 "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1477 "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c",
Frank Barchard3f9f99f2020-05-06 01:12:04 -07001478 "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1479 "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1480 "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1481 "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c",
1482 "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c",
1483 "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c",
1484 "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c",
1485 "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c",
1486 "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1487 "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1488 "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1489 "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001490 "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c",
1491 "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c",
1492 "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c",
1493 "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c",
1494 "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c",
1495 "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c",
1496 "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c",
1497 "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001498]
1499
1500SSE_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -07001501 "src/f32-avgpool/9p8x-minmax-sse-c4.c",
1502 "src/f32-avgpool/9x-minmax-sse-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001503 "src/f32-clamp/gen/sse-x4.c",
1504 "src/f32-clamp/gen/sse-x8.c",
Erich Elsenb1233402020-06-08 15:53:15 -07001505 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-1x1.c",
1506 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001507 "src/f32-dwconv-chw/3x3p1-sse.c",
1508 "src/f32-dwconv-chw/3x3s2p1-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001509 "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c",
1510 "src/f32-dwconv/gen/up4x25-minmax-sse.c",
1511 "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c",
1512 "src/f32-dwconv/gen/up4x4-minmax-sse.c",
1513 "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c",
1514 "src/f32-dwconv/gen/up4x9-minmax-sse.c",
1515 "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c",
1516 "src/f32-dwconv/gen/up8x25-minmax-sse.c",
1517 "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c",
1518 "src/f32-dwconv/gen/up8x4-minmax-sse.c",
1519 "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c",
1520 "src/f32-dwconv/gen/up8x9-minmax-sse.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001521 "src/f32-gavgpool-cw/sse-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001522 "src/f32-gavgpool/7p7x-minmax-sse-c4.c",
1523 "src/f32-gavgpool/7x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001524 "src/f32-gemm/gen/1x8-minmax-sse-dup.c",
1525 "src/f32-gemm/gen/1x8-minmax-sse-load1.c",
1526 "src/f32-gemm/gen/1x8s4-minmax-sse.c",
1527 "src/f32-gemm/gen/4x2c4-minmax-sse.c",
1528 "src/f32-gemm/gen/4x8-minmax-sse-dup.c",
1529 "src/f32-gemm/gen/4x8-minmax-sse-load1.c",
1530 "src/f32-gemm/gen/4x8s4-minmax-sse.c",
1531 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c",
1532 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c",
1533 "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c",
1534 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c",
1535 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c",
1536 "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001537 "src/f32-hswish/gen/hswish-sse-x4.c",
1538 "src/f32-hswish/gen/hswish-sse-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001539 "src/f32-ibilinear/gen/sse-c4.c",
1540 "src/f32-ibilinear/gen/sse-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001541 "src/f32-igemm/gen/1x8-minmax-sse-dup.c",
1542 "src/f32-igemm/gen/1x8-minmax-sse-load1.c",
1543 "src/f32-igemm/gen/1x8s4-minmax-sse.c",
1544 "src/f32-igemm/gen/4x2c4-minmax-sse.c",
1545 "src/f32-igemm/gen/4x8-minmax-sse-dup.c",
1546 "src/f32-igemm/gen/4x8-minmax-sse-load1.c",
1547 "src/f32-igemm/gen/4x8s4-minmax-sse.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001548 "src/f32-maxpool/9p8x-minmax-sse-c4.c",
1549 "src/f32-pavgpool/9p8x-minmax-sse-c4.c",
1550 "src/f32-pavgpool/9x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001551 "src/f32-ppmm/gen/4x8-minmax-sse.c",
Marat Dukhan39b5e942020-06-24 15:03:48 -07001552 "src/f32-prelu/gen/sse-2x4.c",
1553 "src/f32-prelu/gen/sse-2x8.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001554 "src/f32-relu/gen/sse-x4.c",
1555 "src/f32-relu/gen/sse-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001556 "src/f32-rmax/sse.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001557 "src/f32-spmm/gen/4x1-minmax-sse.c",
1558 "src/f32-spmm/gen/8x1-minmax-sse.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -07001559 "src/f32-spmm/gen/16x1-minmax-sse.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001560 "src/f32-vbinary/gen/vadd-minmax-sse-x4.c",
1561 "src/f32-vbinary/gen/vadd-minmax-sse-x8.c",
1562 "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c",
1563 "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c",
1564 "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c",
1565 "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c",
1566 "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c",
1567 "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001568 "src/f32-vbinary/gen/vmax-sse-x4.c",
1569 "src/f32-vbinary/gen/vmax-sse-x8.c",
1570 "src/f32-vbinary/gen/vmaxc-sse-x4.c",
1571 "src/f32-vbinary/gen/vmaxc-sse-x8.c",
1572 "src/f32-vbinary/gen/vmin-sse-x4.c",
1573 "src/f32-vbinary/gen/vmin-sse-x8.c",
1574 "src/f32-vbinary/gen/vminc-sse-x4.c",
1575 "src/f32-vbinary/gen/vminc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001576 "src/f32-vbinary/gen/vmul-minmax-sse-x4.c",
1577 "src/f32-vbinary/gen/vmul-minmax-sse-x8.c",
1578 "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c",
1579 "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c",
1580 "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c",
1581 "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c",
1582 "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c",
1583 "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001584 "src/f32-vbinary/gen/vsqrdiff-sse-x4.c",
1585 "src/f32-vbinary/gen/vsqrdiff-sse-x8.c",
1586 "src/f32-vbinary/gen/vsqrdiffc-sse-x4.c",
1587 "src/f32-vbinary/gen/vsqrdiffc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001588 "src/f32-vbinary/gen/vsub-minmax-sse-x4.c",
1589 "src/f32-vbinary/gen/vsub-minmax-sse-x8.c",
1590 "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c",
1591 "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001592 "src/f32-vlrelu/gen/vlrelu-sse-x4.c",
1593 "src/f32-vlrelu/gen/vlrelu-sse-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001594 "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c",
1595 "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001596 "src/f32-vsqrt/gen/sse-sqrt-x4.c",
1597 "src/f32-vsqrt/gen/sse-sqrt-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001598 "src/f32-vunary/gen/vabs-sse-x4.c",
1599 "src/f32-vunary/gen/vabs-sse-x8.c",
1600 "src/f32-vunary/gen/vneg-sse-x4.c",
1601 "src/f32-vunary/gen/vneg-sse-x8.c",
1602 "src/f32-vunary/gen/vsqr-sse-x4.c",
1603 "src/f32-vunary/gen/vsqr-sse-x8.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001604 "src/x32-fill/sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001605 "src/x32-packx/x4-sse.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001606 "src/x32-pad/sse.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001607 "src/math/roundne-sse-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001608 "src/math/roundd-sse-addsub.c",
1609 "src/math/roundu-sse-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001610 "src/math/roundz-sse-addsub.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001611 "src/math/sqrt-sse-hh1mac.c",
1612 "src/math/sqrt-sse-nr1mac.c",
1613 "src/math/sqrt-sse-nr2mac.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001614]
1615
1616SSE2_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -08001617 "src/f32-argmaxpool/9p8x-sse2-c4.c",
1618 "src/f32-argmaxpool/4x-sse2-c4.c",
1619 "src/f32-argmaxpool/9x-sse2-c4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001620 "src/f32-prelu/gen/sse2-2x4.c",
1621 "src/f32-prelu/gen/sse2-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001622 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c",
1623 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c",
1624 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c",
1625 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c",
1626 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c",
1627 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c",
1628 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c",
1629 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c",
1630 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c",
1631 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c",
1632 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c",
1633 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001634 "src/f32-sigmoid/gen/sse2-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001635 "src/f32-sigmoid/gen/sse2-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001636 "src/f32-sigmoid/gen/sse2-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001637 "src/f32-sigmoid/gen/sse2-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001638 "src/f32-sigmoid/gen/sse2-p5-div-x20.c",
1639 "src/f32-sigmoid/gen/sse2-p5-div-x24.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001640 "src/f32-vlrelu/gen/vlrelu-sse2-x4.c",
1641 "src/f32-vlrelu/gen/vlrelu-sse2-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001642 "src/f32-vrnd/gen/vrndne-sse2-x4.c",
1643 "src/f32-vrnd/gen/vrndne-sse2-x8.c",
1644 "src/f32-vrnd/gen/vrndz-sse2-x4.c",
1645 "src/f32-vrnd/gen/vrndz-sse2-x8.c",
1646 "src/f32-vrnd/gen/vrndu-sse2-x4.c",
1647 "src/f32-vrnd/gen/vrndu-sse2-x8.c",
1648 "src/f32-vrnd/gen/vrndd-sse2-x4.c",
1649 "src/f32-vrnd/gen/vrndd-sse2-x8.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001650 "src/qs8-requantization/precise-sse2.c",
1651 "src/qs8-requantization/fp32-sse2.c",
1652 "src/qs8-requantization/q31-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001653 "src/qs8-gemm/gen/1x4c2-minmax-sse2-ld64.c",
1654 "src/qs8-gemm/gen/4x4c2-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001655 "src/qs8-gemm/gen/1x4c2-minmax-sse2-ld128.c",
1656 "src/qs8-gemm/gen/4x4c2-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001657 "src/qs8-gemm/gen/1x4c2-xw-minmax-sse2.c",
1658 "src/qs8-gemm/gen/4x4c2-xw-minmax-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001659 "src/qs8-gemm/gen/1x4c8-minmax-sse2-ld64.c",
1660 "src/qs8-gemm/gen/2x4c8-minmax-sse2-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001661 "src/qs8-gemm/gen/3x4c8-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001662 "src/qs8-gemm/gen/1x4c8-minmax-sse2-ld128.c",
1663 "src/qs8-gemm/gen/2x4c8-minmax-sse2-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001664 "src/qs8-gemm/gen/3x4c8-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001665 "src/qs8-gemm/gen/1x4c8-xw-minmax-sse2.c",
1666 "src/qs8-gemm/gen/2x4c8-xw-minmax-sse2.c",
1667 "src/qs8-gemm/gen/3x4c8-xw-minmax-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001668 "src/qs8-igemm/gen/1x4c2-minmax-sse2-ld64.c",
1669 "src/qs8-igemm/gen/4x4c2-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001670 "src/qs8-igemm/gen/1x4c2-minmax-sse2-ld128.c",
1671 "src/qs8-igemm/gen/4x4c2-minmax-sse2-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001672 "src/qs8-igemm/gen/1x4c8-minmax-sse2-ld64.c",
1673 "src/qs8-igemm/gen/2x4c8-minmax-sse2-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001674 "src/qs8-igemm/gen/3x4c8-minmax-sse2-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001675 "src/qs8-igemm/gen/1x4c8-minmax-sse2-ld128.c",
1676 "src/qs8-igemm/gen/2x4c8-minmax-sse2-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001677 "src/qs8-igemm/gen/3x4c8-minmax-sse2-ld128.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001678 "src/qu8-avgpool/9p8x-minmax-sse2-c8.c",
1679 "src/qu8-avgpool/9x-minmax-sse2-c8.c",
1680 "src/qu8-igemm/4x4c2-minmax-sse2.c",
1681 "src/qu8-dwconv/up8x9-minmax-sse2.c",
1682 "src/qu8-gavgpool/7p7x-minmax-sse2-c8.c",
1683 "src/qu8-gavgpool/7x-minmax-sse2-c8.c",
1684 "src/qu8-gemm/2x4c8-minmax-sse2.c",
1685 "src/qu8-gemm/4x4c2-minmax-sse2.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001686 "src/qu8-requantization/precise-sse2.c",
1687 "src/qu8-requantization/fp32-sse2.c",
1688 "src/qu8-requantization/q31-sse2.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001689 "src/qu8-vadd/minmax-sse2.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001690 "src/u8-clamp/sse2-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001691 "src/u8-maxpool/9p8x-minmax-sse2-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001692 "src/u8-rmax/sse2.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001693 "src/x32-unpool/sse2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001694 "src/x32-zip/x2-sse2.c",
1695 "src/x32-zip/x3-sse2.c",
1696 "src/x32-zip/x4-sse2.c",
1697 "src/x32-zip/xm-sse2.c",
1698 "src/x8-zip/x2-sse2.c",
1699 "src/x8-zip/x3-sse2.c",
1700 "src/x8-zip/x4-sse2.c",
1701 "src/x8-zip/xm-sse2.c",
Marat Dukhanffd68402019-11-15 15:19:11 -08001702 "src/math/exp-sse2-p5.c",
1703 "src/math/expminus-sse2-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001704 "src/math/roundne-sse2-cvt.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001705 "src/math/roundd-sse2-cvt.c",
1706 "src/math/roundu-sse2-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001707 "src/math/roundz-sse2-cvt.c",
Marat Dukhan80bafd22019-11-18 10:16:01 -08001708 "src/math/sigmoid-sse2-p5-div.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001709]
1710
1711SSSE3_UKERNELS = [
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001712 "src/qs8-gemm/gen/1x4c2-minmax-ssse3-ld64.c",
1713 "src/qs8-gemm/gen/4x4c2-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001714 "src/qs8-gemm/gen/1x4c2-minmax-ssse3-ld128.c",
1715 "src/qs8-gemm/gen/4x4c2-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001716 "src/qs8-gemm/gen/1x4c2-xw-minmax-ssse3.c",
1717 "src/qs8-gemm/gen/4x4c2-xw-minmax-ssse3.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001718 "src/qs8-gemm/gen/1x4c8-minmax-ssse3-ld64.c",
1719 "src/qs8-gemm/gen/2x4c8-minmax-ssse3-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001720 "src/qs8-gemm/gen/3x4c8-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001721 "src/qs8-gemm/gen/1x4c8-minmax-ssse3-ld128.c",
1722 "src/qs8-gemm/gen/2x4c8-minmax-ssse3-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001723 "src/qs8-gemm/gen/3x4c8-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001724 "src/qs8-gemm/gen/1x4c8-xw-minmax-ssse3.c",
1725 "src/qs8-gemm/gen/2x4c8-xw-minmax-ssse3.c",
1726 "src/qs8-gemm/gen/3x4c8-xw-minmax-ssse3.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001727 "src/qs8-igemm/gen/1x4c2-minmax-ssse3-ld64.c",
1728 "src/qs8-igemm/gen/4x4c2-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001729 "src/qs8-igemm/gen/1x4c2-minmax-ssse3-ld128.c",
1730 "src/qs8-igemm/gen/4x4c2-minmax-ssse3-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001731 "src/qs8-igemm/gen/1x4c8-minmax-ssse3-ld64.c",
1732 "src/qs8-igemm/gen/2x4c8-minmax-ssse3-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001733 "src/qs8-igemm/gen/3x4c8-minmax-ssse3-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001734 "src/qs8-igemm/gen/1x4c8-minmax-ssse3-ld128.c",
1735 "src/qs8-igemm/gen/2x4c8-minmax-ssse3-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001736 "src/qs8-igemm/gen/3x4c8-minmax-ssse3-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001737 "src/qs8-requantization/precise-ssse3.c",
1738 "src/qs8-requantization/q31-ssse3.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001739 "src/qu8-requantization/precise-ssse3.c",
1740 "src/qu8-requantization/q31-ssse3.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001741]
1742
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001743SSE41_UKERNELS = [
Marat Dukhan40a672f2019-11-25 03:08:22 -08001744 "src/f32-prelu/gen/sse41-2x4.c",
1745 "src/f32-prelu/gen/sse41-2x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001746 "src/f32-sigmoid/gen/sse41-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001747 "src/f32-sigmoid/gen/sse41-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001748 "src/f32-sigmoid/gen/sse41-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001749 "src/f32-sigmoid/gen/sse41-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001750 "src/f32-sigmoid/gen/sse41-p5-div-x20.c",
1751 "src/f32-sigmoid/gen/sse41-p5-div-x24.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001752 "src/f32-vlrelu/gen/vlrelu-sse41-x4.c",
1753 "src/f32-vlrelu/gen/vlrelu-sse41-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001754 "src/f32-vrnd/gen/vrndne-sse41-x4.c",
1755 "src/f32-vrnd/gen/vrndne-sse41-x8.c",
1756 "src/f32-vrnd/gen/vrndz-sse41-x4.c",
1757 "src/f32-vrnd/gen/vrndz-sse41-x8.c",
1758 "src/f32-vrnd/gen/vrndu-sse41-x4.c",
1759 "src/f32-vrnd/gen/vrndu-sse41-x8.c",
1760 "src/f32-vrnd/gen/vrndd-sse41-x4.c",
1761 "src/f32-vrnd/gen/vrndd-sse41-x8.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001762 "src/qs8-gemm/gen/1x4c2-minmax-sse41-ld64.c",
1763 "src/qs8-gemm/gen/4x4c2-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001764 "src/qs8-gemm/gen/1x4c2-minmax-sse41-ld128.c",
1765 "src/qs8-gemm/gen/4x4c2-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001766 "src/qs8-gemm/gen/1x4c2-xw-minmax-sse41.c",
1767 "src/qs8-gemm/gen/4x4c2-xw-minmax-sse41.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001768 "src/qs8-gemm/gen/1x4c8-minmax-sse41-ld64.c",
1769 "src/qs8-gemm/gen/2x4c8-minmax-sse41-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001770 "src/qs8-gemm/gen/3x4c8-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001771 "src/qs8-gemm/gen/1x4c8-minmax-sse41-ld128.c",
1772 "src/qs8-gemm/gen/2x4c8-minmax-sse41-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001773 "src/qs8-gemm/gen/3x4c8-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001774 "src/qs8-gemm/gen/1x4c8-xw-minmax-sse41.c",
1775 "src/qs8-gemm/gen/2x4c8-xw-minmax-sse41.c",
1776 "src/qs8-gemm/gen/3x4c8-xw-minmax-sse41.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001777 "src/qs8-igemm/gen/1x4c2-minmax-sse41-ld64.c",
1778 "src/qs8-igemm/gen/4x4c2-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001779 "src/qs8-igemm/gen/1x4c2-minmax-sse41-ld128.c",
1780 "src/qs8-igemm/gen/4x4c2-minmax-sse41-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001781 "src/qs8-igemm/gen/1x4c8-minmax-sse41-ld64.c",
1782 "src/qs8-igemm/gen/2x4c8-minmax-sse41-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001783 "src/qs8-igemm/gen/3x4c8-minmax-sse41-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001784 "src/qs8-igemm/gen/1x4c8-minmax-sse41-ld128.c",
1785 "src/qs8-igemm/gen/2x4c8-minmax-sse41-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001786 "src/qs8-igemm/gen/3x4c8-minmax-sse41-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001787 "src/qs8-requantization/fp32-sse4.c",
1788 "src/qs8-requantization/precise-sse4.c",
1789 "src/qs8-requantization/q31-sse4.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001790 "src/qu8-requantization/precise-sse4.c",
1791 "src/qu8-requantization/q31-sse4.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001792 "src/math/roundne-sse41.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001793 "src/math/roundd-sse41.c",
1794 "src/math/roundu-sse41.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001795 "src/math/roundz-sse41.c",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001796]
1797
Marat Dukhan08c4a432019-10-03 09:29:21 -07001798AVX_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001799 "src/f32-clamp/gen/avx-x8.c",
1800 "src/f32-clamp/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001801 "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c",
1802 "src/f32-dwconv/gen/up16x4-minmax-avx.c",
1803 "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c",
1804 "src/f32-dwconv/gen/up8x4-minmax-avx.c",
1805 "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c",
1806 "src/f32-dwconv/gen/up16x9-minmax-avx.c",
1807 "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c",
1808 "src/f32-dwconv/gen/up8x9-minmax-avx.c",
1809 "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c",
1810 "src/f32-dwconv/gen/up16x25-minmax-avx.c",
1811 "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c",
1812 "src/f32-dwconv/gen/up8x25-minmax-avx.c",
1813 "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c",
1814 "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c",
1815 "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c",
1816 "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c",
1817 "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c",
1818 "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c",
1819 "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c",
1820 "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c",
1821 "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c",
1822 "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c",
1823 "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c",
1824 "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c",
1825 "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c",
1826 "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c",
1827 "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c",
1828 "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c",
1829 "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c",
1830 "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001831 "src/f32-hswish/gen/hswish-avx-x8.c",
1832 "src/f32-hswish/gen/hswish-avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001833 "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c",
1834 "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c",
1835 "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c",
1836 "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c",
1837 "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c",
1838 "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c",
1839 "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c",
1840 "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c",
1841 "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001842 "src/f32-prelu/gen/avx-2x8.c",
1843 "src/f32-prelu/gen/avx-2x16.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001844 "src/f32-relu/gen/avx-x16.c",
1845 "src/f32-relu/gen/avx-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001846 "src/f32-rmax/avx.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001847 "src/f32-vbinary/gen/vadd-minmax-avx-x8.c",
1848 "src/f32-vbinary/gen/vadd-minmax-avx-x16.c",
1849 "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c",
1850 "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c",
1851 "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c",
1852 "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c",
1853 "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c",
1854 "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001855 "src/f32-vbinary/gen/vmax-avx-x8.c",
1856 "src/f32-vbinary/gen/vmax-avx-x16.c",
1857 "src/f32-vbinary/gen/vmaxc-avx-x8.c",
1858 "src/f32-vbinary/gen/vmaxc-avx-x16.c",
1859 "src/f32-vbinary/gen/vmin-avx-x8.c",
1860 "src/f32-vbinary/gen/vmin-avx-x16.c",
1861 "src/f32-vbinary/gen/vminc-avx-x8.c",
1862 "src/f32-vbinary/gen/vminc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001863 "src/f32-vbinary/gen/vmul-minmax-avx-x8.c",
1864 "src/f32-vbinary/gen/vmul-minmax-avx-x16.c",
1865 "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c",
1866 "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c",
1867 "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c",
1868 "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c",
1869 "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c",
1870 "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001871 "src/f32-vbinary/gen/vsqrdiff-avx-x8.c",
1872 "src/f32-vbinary/gen/vsqrdiff-avx-x16.c",
1873 "src/f32-vbinary/gen/vsqrdiffc-avx-x8.c",
1874 "src/f32-vbinary/gen/vsqrdiffc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001875 "src/f32-vbinary/gen/vsub-minmax-avx-x8.c",
1876 "src/f32-vbinary/gen/vsub-minmax-avx-x16.c",
1877 "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c",
1878 "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001879 "src/f32-vlrelu/gen/vlrelu-avx-x8.c",
1880 "src/f32-vlrelu/gen/vlrelu-avx-x16.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001881 "src/f32-vscale/avx-unroll32.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001882 "src/f32-vrnd/gen/vrndne-avx-x8.c",
1883 "src/f32-vrnd/gen/vrndne-avx-x16.c",
1884 "src/f32-vrnd/gen/vrndz-avx-x8.c",
1885 "src/f32-vrnd/gen/vrndz-avx-x16.c",
1886 "src/f32-vrnd/gen/vrndu-avx-x8.c",
1887 "src/f32-vrnd/gen/vrndu-avx-x16.c",
1888 "src/f32-vrnd/gen/vrndd-avx-x8.c",
1889 "src/f32-vrnd/gen/vrndd-avx-x16.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001890 "src/f32-vsqrt/gen/avx-sqrt-x8.c",
1891 "src/f32-vsqrt/gen/avx-sqrt-x16.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001892 "src/f32-vunary/gen/vabs-avx-x8.c",
1893 "src/f32-vunary/gen/vabs-avx-x16.c",
1894 "src/f32-vunary/gen/vneg-avx-x8.c",
1895 "src/f32-vunary/gen/vneg-avx-x16.c",
1896 "src/f32-vunary/gen/vsqr-avx-x8.c",
1897 "src/f32-vunary/gen/vsqr-avx-x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001898]
1899
Marat Dukhan1566fee2020-08-02 21:55:41 -07001900XOP_UKERNELS = [
1901 "src/qs8-gemm/gen/1x4c2-minmax-xop-ld64.c",
1902 "src/qs8-gemm/gen/4x4c2-minmax-xop-ld64.c",
1903 "src/qs8-gemm/gen/1x4c2-minmax-xop-ld128.c",
1904 "src/qs8-gemm/gen/4x4c2-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001905 "src/qs8-gemm/gen/1x4c2-xw-minmax-xop.c",
1906 "src/qs8-gemm/gen/4x4c2-xw-minmax-xop.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001907 "src/qs8-gemm/gen/1x4c8-minmax-xop-ld64.c",
1908 "src/qs8-gemm/gen/2x4c8-minmax-xop-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001909 "src/qs8-gemm/gen/3x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001910 "src/qs8-gemm/gen/1x4c8-minmax-xop-ld128.c",
1911 "src/qs8-gemm/gen/2x4c8-minmax-xop-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001912 "src/qs8-gemm/gen/3x4c8-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001913 "src/qs8-gemm/gen/1x4c8-xw-minmax-xop.c",
1914 "src/qs8-gemm/gen/2x4c8-xw-minmax-xop.c",
1915 "src/qs8-gemm/gen/3x4c8-xw-minmax-xop.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001916 "src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c",
1917 "src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c",
1918 "src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c",
1919 "src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c",
1920 "src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c",
1921 "src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001922 "src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001923 "src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c",
1924 "src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001925 "src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001926]
1927
Marat Dukhanfda12b82019-11-21 12:27:59 -08001928FMA3_UKERNELS = [
Marat Dukhan1c587112020-04-08 20:04:28 -07001929 "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c",
1930 "src/f32-dwconv/gen/up16x4-minmax-fma3.c",
1931 "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c",
1932 "src/f32-dwconv/gen/up8x4-minmax-fma3.c",
1933 "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c",
1934 "src/f32-dwconv/gen/up16x9-minmax-fma3.c",
1935 "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c",
1936 "src/f32-dwconv/gen/up8x9-minmax-fma3.c",
1937 "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c",
1938 "src/f32-dwconv/gen/up16x25-minmax-fma3.c",
1939 "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c",
1940 "src/f32-dwconv/gen/up8x25-minmax-fma3.c",
1941 "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c",
1942 "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c",
1943 "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c",
1944 "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c",
1945 "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c",
1946 "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c",
1947 "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c",
1948 "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c",
1949 "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c",
1950 "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c",
1951 "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c",
1952 "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c",
1953 "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c",
1954 "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c",
1955 "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c",
1956 "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c",
1957 "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c",
1958 "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c",
1959 "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c",
1960 "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c",
1961 "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c",
1962 "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c",
1963 "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c",
1964 "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c",
1965 "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c",
1966 "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c",
1967 "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c",
1968 "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001969 "src/f32-hswish/gen/hswish-fma3-x8.c",
1970 "src/f32-hswish/gen/hswish-fma3-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001971 "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c",
1972 "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c",
1973 "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c",
1974 "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c",
1975 "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c",
1976 "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c",
1977 "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c",
1978 "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c",
1979 "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c",
1980 "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c",
1981 "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c",
1982 "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c",
1983 "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c",
1984 "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001985 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x8.c",
1986 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x16.c",
1987 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x24.c",
1988 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x32.c",
1989 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x40.c",
1990 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x48.c",
1991 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x56.c",
1992 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x64.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001993 "src/math/sqrt-fma3-nr1fma.c",
1994 "src/math/sqrt-fma3-nr2fma.c",
1995 "src/math/sqrt-fma3-nr1fma1adj.c",
Marat Dukhanfda12b82019-11-21 12:27:59 -08001996]
1997
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001998AVX2_UKERNELS = [
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001999 "src/f32-raddexpminusmax/gen/avx2-p5-x64.c",
2000 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c",
2001 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c",
2002 "src/f32-raddexpminusmax/gen/avx2-p5-x72.c",
2003 "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c",
2004 "src/f32-raddexpminusmax/gen/avx2-p5-x80.c",
2005 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c",
2006 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c",
2007 "src/f32-raddexpminusmax/gen/avx2-p5-x96.c",
2008 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c",
2009 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c",
2010 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c",
2011 "src/f32-raddextexp/gen/avx2-p5-x64.c",
2012 "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c",
2013 "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c",
2014 "src/f32-raddextexp/gen/avx2-p5-x72.c",
2015 "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c",
2016 "src/f32-raddextexp/gen/avx2-p5-x80.c",
2017 "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c",
2018 "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c",
2019 "src/f32-raddextexp/gen/avx2-p5-x96.c",
2020 "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c",
2021 "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c",
2022 "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c",
2023 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c",
2024 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c",
2025 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c",
2026 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c",
2027 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c",
2028 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c",
2029 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c",
2030 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c",
2031 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c",
2032 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c",
2033 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c",
2034 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c",
Marat Dukhanfa0a4322020-01-06 16:14:29 -08002035 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c",
2036 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c",
2037 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c",
2038 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c",
2039 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c",
2040 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c",
2041 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c",
2042 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c",
2043 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c",
2044 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c",
2045 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c",
2046 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c",
2047 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c",
2048 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c",
2049 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c",
2050 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c",
2051 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c",
2052 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c",
2053 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c",
2054 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c",
2055 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c",
2056 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c",
2057 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c",
2058 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c",
2059 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c",
2060 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c",
2061 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c",
2062 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c",
2063 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c",
2064 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002065 "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c",
2066 "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c",
2067 "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c",
2068 "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c",
2069 "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c",
2070 "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c",
2071 "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c",
2072 "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c",
2073 "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c",
2074 "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c",
2075 "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c",
2076 "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c",
2077 "src/f32-vscaleextexp/gen/avx2-p5-x8.c",
2078 "src/f32-vscaleextexp/gen/avx2-p5-x16.c",
2079 "src/f32-vscaleextexp/gen/avx2-p5-x24.c",
2080 "src/f32-vscaleextexp/gen/avx2-p5-x32.c",
2081 "src/f32-vscaleextexp/gen/avx2-p5-x40.c",
2082 "src/f32-vscaleextexp/gen/avx2-p5-x48.c",
2083 "src/f32-vscaleextexp/gen/avx2-p5-x56.c",
2084 "src/f32-vscaleextexp/gen/avx2-p5-x64.c",
2085 "src/f32-vscaleextexp/gen/avx2-p5-x72.c",
2086 "src/f32-vscaleextexp/gen/avx2-p5-x80.c",
2087 "src/f32-vscaleextexp/gen/avx2-p5-x88.c",
2088 "src/f32-vscaleextexp/gen/avx2-p5-x96.c",
Marat Dukhan12809522020-08-02 22:23:51 -07002089 "src/qs8-gemm/gen/1x8c8-minmax-avx2.c",
2090 "src/qs8-gemm/gen/2x8c8-minmax-avx2.c",
2091 "src/qs8-gemm/gen/3x8c8-minmax-avx2.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002092 "src/qs8-gemm/gen/1x8c8-xw-minmax-avx2.c",
2093 "src/qs8-gemm/gen/2x8c8-xw-minmax-avx2.c",
2094 "src/qs8-gemm/gen/3x8c8-xw-minmax-avx2.c",
Marat Dukhan12809522020-08-02 22:23:51 -07002095 "src/qs8-igemm/gen/1x8c8-minmax-avx2.c",
2096 "src/qs8-igemm/gen/2x8c8-minmax-avx2.c",
2097 "src/qs8-igemm/gen/3x8c8-minmax-avx2.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002098 "src/math/exp-avx2-p5.c",
2099 "src/math/exp-avx2-perm-p3.c",
2100 "src/math/exp-avx2-perm-p4.c",
Marat Dukhan515c9772019-10-17 18:07:57 -07002101 "src/math/expminus-avx2-p5.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002102 "src/math/extexp-avx2-p5.c",
Marat Dukhan72416002020-01-05 21:53:19 -08002103 "src/math/sigmoid-avx2-rr2-p5-div.c",
2104 "src/math/sigmoid-avx2-rr1-p5-div.c",
2105 "src/math/sigmoid-avx2-rr2-p5-nr2fma.c",
2106 "src/math/sigmoid-avx2-rr1-p5-nr2fma.c",
2107 "src/math/sigmoid-avx2-rr2-p5-nr1fma.c",
2108 "src/math/sigmoid-avx2-rr1-p5-nr1fma.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002109]
2110
Marat Dukhan08c4a432019-10-03 09:29:21 -07002111AVX512F_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07002112 "src/f32-clamp/gen/avx512f-x16.c",
2113 "src/f32-clamp/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002114 "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c",
2115 "src/f32-dwconv/gen/up32x4-minmax-avx512f.c",
2116 "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c",
2117 "src/f32-dwconv/gen/up16x4-minmax-avx512f.c",
2118 "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c",
2119 "src/f32-dwconv/gen/up32x9-minmax-avx512f.c",
2120 "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c",
2121 "src/f32-dwconv/gen/up16x9-minmax-avx512f.c",
2122 "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c",
2123 "src/f32-dwconv/gen/up32x25-minmax-avx512f.c",
2124 "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c",
2125 "src/f32-dwconv/gen/up16x25-minmax-avx512f.c",
2126 "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c",
2127 "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c",
2128 "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c",
2129 "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c",
2130 "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c",
2131 "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c",
2132 "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c",
2133 "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c",
2134 "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c",
2135 "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c",
2136 "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c",
2137 "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07002138 "src/f32-hswish/gen/hswish-avx512f-x16.c",
2139 "src/f32-hswish/gen/hswish-avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002140 "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c",
2141 "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c",
2142 "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c",
2143 "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c",
2144 "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c",
2145 "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07002146 "src/f32-prelu/gen/avx512f-2x16.c",
2147 "src/f32-prelu/gen/avx512f-2x32.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002148 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c",
2149 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2150 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
2151 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c",
2152 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
2153 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c",
2154 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2155 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
2156 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c",
2157 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2158 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2159 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
2160 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c",
2161 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c",
2162 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c",
2163 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c",
2164 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c",
2165 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c",
2166 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c",
2167 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c",
2168 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c",
2169 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c",
2170 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c",
2171 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c",
2172 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c",
2173 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2174 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
2175 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c",
2176 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
2177 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c",
2178 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2179 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
2180 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c",
2181 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2182 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2183 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07002184 "src/f32-relu/gen/avx512f-x16.c",
2185 "src/f32-relu/gen/avx512f-x32.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002186 "src/f32-rmax/avx512f.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002187 "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c",
2188 "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c",
2189 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c",
2190 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c",
2191 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c",
2192 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c",
2193 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c",
2194 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08002195 "src/f32-vbinary/gen/vmax-avx512f-x16.c",
2196 "src/f32-vbinary/gen/vmax-avx512f-x32.c",
2197 "src/f32-vbinary/gen/vmaxc-avx512f-x16.c",
2198 "src/f32-vbinary/gen/vmaxc-avx512f-x32.c",
2199 "src/f32-vbinary/gen/vmin-avx512f-x16.c",
2200 "src/f32-vbinary/gen/vmin-avx512f-x32.c",
2201 "src/f32-vbinary/gen/vminc-avx512f-x16.c",
2202 "src/f32-vbinary/gen/vminc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002203 "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c",
2204 "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c",
2205 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c",
2206 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c",
2207 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c",
2208 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c",
2209 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c",
2210 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07002211 "src/f32-vbinary/gen/vsqrdiff-avx512f-x16.c",
2212 "src/f32-vbinary/gen/vsqrdiff-avx512f-x32.c",
2213 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x16.c",
2214 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002215 "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c",
2216 "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c",
2217 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c",
2218 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07002219 "src/f32-vlrelu/gen/vlrelu-avx512f-x16.c",
2220 "src/f32-vlrelu/gen/vlrelu-avx512f-x32.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002221 "src/f32-vscale/avx512f-unroll64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002222 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c",
2223 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c",
2224 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c",
2225 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c",
2226 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c",
2227 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c",
2228 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c",
2229 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c",
2230 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c",
2231 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c",
2232 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c",
2233 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c",
2234 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c",
2235 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c",
2236 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c",
2237 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c",
2238 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c",
2239 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c",
2240 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c",
2241 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c",
2242 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c",
2243 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c",
2244 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c",
2245 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07002246 "src/f32-vrnd/gen/vrndne-avx512f-x16.c",
2247 "src/f32-vrnd/gen/vrndne-avx512f-x32.c",
2248 "src/f32-vrnd/gen/vrndz-avx512f-x16.c",
2249 "src/f32-vrnd/gen/vrndz-avx512f-x32.c",
2250 "src/f32-vrnd/gen/vrndu-avx512f-x16.c",
2251 "src/f32-vrnd/gen/vrndu-avx512f-x32.c",
2252 "src/f32-vrnd/gen/vrndd-avx512f-x16.c",
2253 "src/f32-vrnd/gen/vrndd-avx512f-x32.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002254 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x16.c",
2255 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x32.c",
2256 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x48.c",
2257 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x64.c",
2258 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x80.c",
2259 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x96.c",
2260 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x112.c",
2261 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x128.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07002262 "src/f32-vunary/gen/vabs-avx512f-x16.c",
2263 "src/f32-vunary/gen/vabs-avx512f-x32.c",
2264 "src/f32-vunary/gen/vneg-avx512f-x16.c",
2265 "src/f32-vunary/gen/vneg-avx512f-x32.c",
2266 "src/f32-vunary/gen/vsqr-avx512f-x16.c",
2267 "src/f32-vunary/gen/vsqr-avx512f-x32.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002268 "src/math/exp-avx512f-p5-scalef.c",
2269 "src/math/exp-avx512f-p5.c",
2270 "src/math/exp-avx512f-perm-p3.c",
Marat Dukhanfeb49232019-10-28 11:03:31 -07002271 "src/math/exp-avx512f-perm2-p2.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002272 "src/math/extexp-avx512f-p5.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002273 "src/math/sqrt-avx512f-nr1fma.c",
2274 "src/math/sqrt-avx512f-nr2fma.c",
2275 "src/math/sqrt-avx512f-nr1fma1adj.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002276]
2277
2278AARCH32_ASM_UKERNELS = [
Marat Dukhan32f93812020-05-17 20:31:21 -07002279 "src/f32-gemm/4x4-aarch32-vfp-ld64.S",
Marat Dukhan3b98f6b2020-05-17 10:09:22 -07002280 "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002281 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2282 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002283 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a7.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002284 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
Frank Barchard569561d2020-06-17 13:11:12 -07002285 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-ld64.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002286 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002287 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2288 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002289 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a7.S",
2290 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
2291 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-ld64.S",
2292 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002293]
2294
2295AARCH64_ASM_UKERNELS = [
Frank Barchard36b76b62020-04-10 12:39:17 -07002296 "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07002297 "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S",
2298 "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard36b76b62020-04-10 12:39:17 -07002299 "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07002300 "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S",
2301 "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002302 "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S",
2303 "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S",
2304 "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002305 "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002306 "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S",
2307 "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S",
2308 "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002309 "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002310 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S",
2311 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07002312 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002313 "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2314 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2315 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2316 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2317 "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2318 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2319 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2320 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2321 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2322 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S",
2323 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S",
2324 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2325 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2326 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2327 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2328 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2329 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2330 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002331 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S",
2332 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07002333 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002334 "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S",
2335 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2336 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2337 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2338 "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S",
2339 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2340 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2341 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2342 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2343 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S",
2344 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S",
2345 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2346 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2347 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2348 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2349 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S",
2350 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2351 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002352 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S",
2353 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S",
2354 "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2355 "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2356 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2357 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2358 "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2359 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2360 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2361 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2362 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2363 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2364 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2365 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2366 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2367 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2368 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2369 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002370]
2371
Marat Dukhan1b354632020-03-23 12:50:22 -07002372INTERNAL_MICROKERNEL_HDRS = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002373 "src/xnnpack/argmaxpool.h",
2374 "src/xnnpack/avgpool.h",
2375 "src/xnnpack/clamp.h",
2376 "src/xnnpack/common.h",
2377 "src/xnnpack/conv.h",
2378 "src/xnnpack/dwconv.h",
2379 "src/xnnpack/gavgpool.h",
2380 "src/xnnpack/gemm.h",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07002381 "src/xnnpack/fill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002382 "src/xnnpack/hswish.h",
Marat Dukhan660fd192020-03-10 04:55:30 -07002383 "src/xnnpack/ibilinear.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002384 "src/xnnpack/igemm.h",
Marat Dukhancfb31342019-12-05 10:42:57 -08002385 "src/xnnpack/intrinsics-polyfill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002386 "src/xnnpack/lut.h",
2387 "src/xnnpack/math.h",
2388 "src/xnnpack/maxpool.h",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002389 "src/xnnpack/memory.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002390 "src/xnnpack/packx.h",
2391 "src/xnnpack/pad.h",
2392 "src/xnnpack/params.h",
2393 "src/xnnpack/pavgpool.h",
2394 "src/xnnpack/ppmm.h",
2395 "src/xnnpack/prelu.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002396 "src/xnnpack/raddexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002397 "src/xnnpack/raddextexp.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002398 "src/xnnpack/raddstoreexpminusmax.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002399 "src/xnnpack/rmax.h",
2400 "src/xnnpack/scalar-utils.h",
2401 "src/xnnpack/spmm.h",
2402 "src/xnnpack/unpool.h",
2403 "src/xnnpack/vadd.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002404 "src/xnnpack/vbinary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002405 "src/xnnpack/vmulcaddc.h",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002406 "src/xnnpack/vscale.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002407 "src/xnnpack/vscaleexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002408 "src/xnnpack/vscaleextexp.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002409 "src/xnnpack/vunary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002410 "src/xnnpack/zip.h",
Marat Dukhan1b354632020-03-23 12:50:22 -07002411]
2412
2413INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002414 "include/xnnpack.h",
2415 "src/xnnpack/allocator.h",
2416 "src/xnnpack/compute.h",
2417 "src/xnnpack/im2col.h",
2418 "src/xnnpack/indirection.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002419 "src/xnnpack/math-stubs.h",
Chao Mei6ddfc602020-05-13 22:29:36 -07002420 "src/xnnpack/memory-planner.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002421 "src/xnnpack/operator.h",
2422 "src/xnnpack/pack.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002423 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002424 "src/xnnpack/requantization-stubs.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002425 "src/xnnpack/requantization.h",
Marat Dukhan1d75a542020-02-03 12:23:01 -08002426 "src/xnnpack/subgraph.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002427]
2428
Marat Dukhan1b354632020-03-23 12:50:22 -07002429ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002430 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002431]
2432
Marat Dukhan1b354632020-03-23 12:50:22 -07002433MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002434 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002435 "include/xnnpack.h",
2436]
2437
Marat Dukhan1b354632020-03-23 12:50:22 -07002438MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002439 "src/xnnpack/isa-checks.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002440 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002441 "src/xnnpack/requantization.h",
2442 "include/xnnpack.h",
2443]
2444
2445OPERATOR_TEST_PARAMS_HDRS = [
2446 "src/xnnpack/params.h",
2447 "src/xnnpack/common.h",
2448]
2449
2450WEIGHTS_PACK_HDRS = [
2451 "src/xnnpack/pack.h",
2452 "src/xnnpack/operator.h",
2453 "src/xnnpack/compute.h",
2454]
2455
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002456LOGGING_COPTS = select({
2457 # No logging in optimized mode
2458 ":optimized_build": ["-DXNN_LOG_LEVEL=0"],
2459 # Full logging in debug mode
2460 ":debug_build": ["-DXNN_LOG_LEVEL=5"],
2461 # Error-only logging in default (fastbuild) mode
2462 "//conditions:default": ["-DXNN_LOG_LEVEL=2"],
2463})
2464
Marat Dukhan3b59de22020-06-03 20:15:19 -07002465LOGGING_SRCS = select({
2466 # No logging in optimized mode
2467 ":optimized_build": [],
2468 "//conditions:default": [
2469 "src/operator-strings.c",
2470 "src/subgraph-strings.c",
2471 ],
2472})
2473
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002474LOGGING_HDRS = [
2475 "src/xnnpack/log.h",
2476]
2477
Marat Dukhan08c4a432019-10-03 09:29:21 -07002478xnnpack_cc_library(
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002479 name = "tables",
2480 srcs = TABLE_SRCS,
2481 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002482 gcc_copts = xnnpack_gcc_std_copts(),
2483 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002484)
2485
2486xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002487 name = "scalar_ukernels",
2488 srcs = SCALAR_UKERNELS,
2489 hdrs = INTERNAL_HDRS,
2490 aarch32_copts = ["-marm"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002491 gcc_copts = xnnpack_gcc_std_copts(),
2492 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002493 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002494 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002495 "@FP16",
2496 "@FXdiv",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002497 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002498 ],
2499)
2500
2501xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002502 name = "scalar_ukernels_test_mode",
2503 srcs = SCALAR_UKERNELS,
2504 hdrs = INTERNAL_HDRS,
2505 aarch32_copts = ["-marm"],
2506 copts = [
2507 "-UNDEBUG",
2508 "-DXNN_TEST_MODE=1",
2509 ],
2510 gcc_copts = xnnpack_gcc_std_copts(),
2511 msvc_copts = xnnpack_msvc_std_copts(),
2512 deps = [
2513 ":tables",
2514 "@FP16",
2515 "@FXdiv",
2516 "@pthreadpool",
2517 ],
2518)
2519
2520xnnpack_cc_library(
Marat Dukhan436ebe62019-12-04 15:10:12 -08002521 name = "wasm_ukernels",
2522 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002523 gcc_copts = xnnpack_gcc_std_copts(),
2524 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan436ebe62019-12-04 15:10:12 -08002525 wasm_srcs = WASM_UKERNELS,
Marat Dukhan1c6e3892020-06-25 23:56:10 -07002526 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan436ebe62019-12-04 15:10:12 -08002527 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002528 ":tables",
Marat Dukhan436ebe62019-12-04 15:10:12 -08002529 "@FP16",
2530 "@FXdiv",
2531 "@pthreadpool",
2532 ],
2533)
2534
2535xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002536 name = "wasm_ukernels_test_mode",
2537 hdrs = INTERNAL_HDRS,
2538 copts = [
2539 "-UNDEBUG",
2540 "-DXNN_TEST_MODE=1",
2541 ],
2542 gcc_copts = xnnpack_gcc_std_copts(),
2543 msvc_copts = xnnpack_msvc_std_copts(),
2544 wasm_srcs = WASM_UKERNELS,
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07002545 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07002546 deps = [
2547 ":tables",
2548 "@FP16",
2549 "@FXdiv",
2550 "@pthreadpool",
2551 ],
2552)
2553
2554xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002555 name = "psimd_fastmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002556 hdrs = INTERNAL_HDRS,
2557 aarch32_copts = [
2558 "-marm",
2559 "-mfpu=neon",
2560 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002561 gcc_copts = xnnpack_gcc_std_copts(),
2562 gcc_x86_copts = ["-msse2"],
2563 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002564 optimized_copts = [
2565 "-O3",
2566 "-ffast-math",
2567 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002568 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002569 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002570 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002571 "@FP16",
2572 "@psimd",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002573 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002574 ],
2575)
2576
2577xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002578 name = "psimd_fastmath_ukernels_test_mode",
2579 hdrs = INTERNAL_HDRS,
2580 aarch32_copts = [
2581 "-marm",
2582 "-mfpu=neon",
2583 ],
2584 copts = [
2585 "-UNDEBUG",
2586 "-DXNN_TEST_MODE=1",
2587 ],
2588 gcc_copts = xnnpack_gcc_std_copts(),
2589 gcc_x86_copts = ["-msse2"],
2590 msvc_copts = xnnpack_msvc_std_copts(),
2591 optimized_copts = [
2592 "-O3",
2593 "-ffast-math",
2594 ],
2595 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
2596 deps = [
2597 ":tables",
2598 "@FP16",
2599 "@psimd",
2600 "@pthreadpool",
2601 ],
2602)
2603
2604xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002605 name = "psimd_accmath_ukernels",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002606 hdrs = INTERNAL_HDRS,
2607 aarch32_copts = [
2608 "-marm",
2609 "-mfpu=neon",
2610 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002611 gcc_copts = xnnpack_gcc_std_copts(),
2612 gcc_x86_copts = ["-msse2"],
2613 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002614 optimized_copts = [
2615 "-O3",
2616 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002617 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002618 deps = [
2619 ":tables",
2620 "@FP16",
2621 "@psimd",
2622 "@pthreadpool",
2623 ],
2624)
2625
2626xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002627 name = "psimd_accmath_ukernels_test_mode",
2628 hdrs = INTERNAL_HDRS,
2629 aarch32_copts = [
2630 "-marm",
2631 "-mfpu=neon",
2632 ],
2633 copts = [
2634 "-UNDEBUG",
2635 "-DXNN_TEST_MODE=1",
2636 ],
2637 gcc_copts = xnnpack_gcc_std_copts(),
2638 gcc_x86_copts = ["-msse2"],
2639 msvc_copts = xnnpack_msvc_std_copts(),
2640 optimized_copts = [
2641 "-O3",
2642 ],
2643 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
2644 deps = [
2645 ":tables",
2646 "@FP16",
2647 "@psimd",
2648 "@pthreadpool",
2649 ],
2650)
2651
2652xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002653 name = "neon_ukernels",
2654 hdrs = INTERNAL_HDRS,
2655 aarch32_copts = [
2656 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002657 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002658 "-mfpu=neon",
2659 ],
2660 aarch32_srcs = NEON_UKERNELS,
2661 aarch64_srcs = NEON_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002662 gcc_copts = xnnpack_gcc_std_copts(),
2663 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002664 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002665 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002666 "@FP16",
2667 "@pthreadpool",
2668 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002669)
2670
2671xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002672 name = "neon_ukernels_test_mode",
2673 hdrs = INTERNAL_HDRS,
2674 aarch32_copts = [
2675 "-marm",
2676 "-march=armv7-a",
2677 "-mfpu=neon",
2678 ],
2679 aarch32_srcs = NEON_UKERNELS,
2680 aarch64_srcs = NEON_UKERNELS,
2681 copts = [
2682 "-UNDEBUG",
2683 "-DXNN_TEST_MODE=1",
2684 ],
2685 gcc_copts = xnnpack_gcc_std_copts(),
2686 msvc_copts = xnnpack_msvc_std_copts(),
2687 deps = [
2688 ":tables",
2689 "@FP16",
2690 "@pthreadpool",
2691 ],
2692)
2693
2694xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002695 name = "neonfma_ukernels",
2696 hdrs = INTERNAL_HDRS,
2697 aarch32_copts = [
2698 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002699 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002700 "-mfpu=neon-vfpv4",
2701 ],
2702 aarch32_srcs = NEONFMA_UKERNELS,
2703 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002704 apple_aarch32_copts = [
2705 "-mcpu=swift",
2706 "-mtune=generic",
2707 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002708 gcc_copts = xnnpack_gcc_std_copts(),
2709 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002710 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002711 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002712 "@FP16",
2713 "@pthreadpool",
2714 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002715)
2716
2717xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002718 name = "neonfma_ukernels_test_mode",
2719 hdrs = INTERNAL_HDRS,
2720 aarch32_copts = [
2721 "-marm",
2722 "-march=armv7-a",
2723 "-mfpu=neon-vfpv4",
2724 ],
2725 aarch32_srcs = NEONFMA_UKERNELS,
2726 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002727 apple_aarch32_copts = [
2728 "-mcpu=swift",
2729 "-mtune=generic",
2730 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002731 copts = [
2732 "-UNDEBUG",
2733 "-DXNN_TEST_MODE=1",
2734 ],
2735 gcc_copts = xnnpack_gcc_std_copts(),
2736 msvc_copts = xnnpack_msvc_std_copts(),
2737 deps = [
2738 ":tables",
2739 "@FP16",
2740 "@pthreadpool",
2741 ],
2742)
2743
2744xnnpack_cc_library(
Marat Dukhan8853b822020-05-07 12:19:01 -07002745 name = "neonv8_ukernels",
2746 hdrs = INTERNAL_HDRS,
2747 aarch32_copts = [
2748 "-marm",
2749 "-march=armv8-a",
2750 "-mfpu=neon-fp-armv8",
2751 ],
2752 aarch32_srcs = NEONV8_UKERNELS,
2753 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002754 apple_aarch32_copts = [
2755 "-mcpu=cyclone",
2756 "-mtune=generic",
2757 ],
Marat Dukhan8853b822020-05-07 12:19:01 -07002758 gcc_copts = xnnpack_gcc_std_copts(),
2759 msvc_copts = xnnpack_msvc_std_copts(),
2760 deps = [
2761 ":tables",
2762 "@FP16",
2763 "@pthreadpool",
2764 ],
2765)
2766
2767xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002768 name = "neonv8_ukernels_test_mode",
2769 hdrs = INTERNAL_HDRS,
2770 aarch32_copts = [
2771 "-marm",
2772 "-march=armv8-a",
2773 "-mfpu=neon-fp-armv8",
2774 ],
2775 aarch32_srcs = NEONV8_UKERNELS,
2776 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002777 apple_aarch32_copts = [
2778 "-mcpu=cyclone",
2779 "-mtune=generic",
2780 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002781 copts = [
2782 "-UNDEBUG",
2783 "-DXNN_TEST_MODE=1",
2784 ],
2785 gcc_copts = xnnpack_gcc_std_copts(),
2786 msvc_copts = xnnpack_msvc_std_copts(),
2787 deps = [
2788 ":tables",
2789 "@FP16",
2790 "@pthreadpool",
2791 ],
2792)
2793
2794xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002795 name = "neonfp16arith_ukernels",
2796 hdrs = INTERNAL_HDRS,
2797 aarch64_copts = ["-march=armv8.2-a+fp16"],
2798 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002799 gcc_copts = xnnpack_gcc_std_copts(),
2800 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002801 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002802 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002803 "@FP16",
2804 "@pthreadpool",
2805 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002806)
2807
2808xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002809 name = "neonfp16arith_ukernels_test_mode",
2810 hdrs = INTERNAL_HDRS,
2811 aarch64_copts = ["-march=armv8.2-a+fp16"],
2812 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
2813 copts = [
2814 "-UNDEBUG",
2815 "-DXNN_TEST_MODE=1",
2816 ],
2817 gcc_copts = xnnpack_gcc_std_copts(),
2818 msvc_copts = xnnpack_msvc_std_copts(),
2819 deps = [
2820 ":tables",
2821 "@FP16",
2822 "@pthreadpool",
2823 ],
2824)
2825
2826xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002827 name = "sse2_ukernels",
2828 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002829 gcc_copts = xnnpack_gcc_std_copts(),
2830 gcc_x86_copts = ["-msse2"],
2831 msvc_copts = xnnpack_msvc_std_copts(),
2832 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002833 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002834 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002835 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002836 "@FP16",
2837 "@pthreadpool",
2838 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002839)
2840
2841xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002842 name = "sse2_ukernels_test_mode",
2843 hdrs = INTERNAL_HDRS,
2844 copts = [
2845 "-UNDEBUG",
2846 "-DXNN_TEST_MODE=1",
2847 ],
2848 gcc_copts = xnnpack_gcc_std_copts(),
2849 gcc_x86_copts = ["-msse2"],
2850 msvc_copts = xnnpack_msvc_std_copts(),
2851 msvc_x86_32_copts = ["/arch:SSE2"],
2852 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
2853 deps = [
2854 ":tables",
2855 "@FP16",
2856 "@pthreadpool",
2857 ],
2858)
2859
2860xnnpack_cc_library(
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002861 name = "ssse3_ukernels",
2862 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002863 gcc_copts = xnnpack_gcc_std_copts(),
2864 gcc_x86_copts = ["-mssse3"],
2865 msvc_copts = xnnpack_msvc_std_copts(),
2866 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002867 x86_srcs = SSSE3_UKERNELS,
2868 deps = [
2869 ":tables",
2870 "@FP16",
2871 "@pthreadpool",
2872 ],
2873)
2874
2875xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002876 name = "ssse3_ukernels_test_mode",
2877 hdrs = INTERNAL_HDRS,
2878 copts = [
2879 "-UNDEBUG",
2880 "-DXNN_TEST_MODE=1",
2881 ],
2882 gcc_copts = xnnpack_gcc_std_copts(),
2883 gcc_x86_copts = ["-mssse3"],
2884 msvc_copts = xnnpack_msvc_std_copts(),
2885 msvc_x86_32_copts = ["/arch:SSE2"],
2886 x86_srcs = SSSE3_UKERNELS,
2887 deps = [
2888 ":tables",
2889 "@FP16",
2890 "@pthreadpool",
2891 ],
2892)
2893
2894xnnpack_cc_library(
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002895 name = "sse41_ukernels",
2896 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002897 gcc_copts = xnnpack_gcc_std_copts(),
2898 gcc_x86_copts = ["-msse4.1"],
2899 msvc_copts = xnnpack_msvc_std_copts(),
2900 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002901 x86_srcs = SSE41_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002902 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002903 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002904 "@FP16",
2905 "@pthreadpool",
2906 ],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002907)
2908
2909xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002910 name = "sse41_ukernels_test_mode",
2911 hdrs = INTERNAL_HDRS,
2912 copts = [
2913 "-UNDEBUG",
2914 "-DXNN_TEST_MODE=1",
2915 ],
2916 gcc_copts = xnnpack_gcc_std_copts(),
2917 gcc_x86_copts = ["-msse4.1"],
2918 msvc_copts = xnnpack_msvc_std_copts(),
2919 msvc_x86_32_copts = ["/arch:SSE2"],
2920 x86_srcs = SSE41_UKERNELS,
2921 deps = [
2922 ":tables",
2923 "@FP16",
2924 "@pthreadpool",
2925 ],
2926)
2927
2928xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002929 name = "avx_ukernels",
2930 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002931 gcc_copts = xnnpack_gcc_std_copts(),
2932 gcc_x86_copts = ["-mavx"],
2933 msvc_copts = xnnpack_msvc_std_copts(),
2934 msvc_x86_32_copts = ["/arch:AVX"],
2935 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002936 x86_srcs = AVX_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002937 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002938 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002939 "@FP16",
2940 "@pthreadpool",
2941 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002942)
2943
2944xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002945 name = "avx_ukernels_test_mode",
2946 hdrs = INTERNAL_HDRS,
2947 copts = [
2948 "-UNDEBUG",
2949 "-DXNN_TEST_MODE=1",
2950 ],
2951 gcc_copts = xnnpack_gcc_std_copts(),
2952 gcc_x86_copts = ["-mavx"],
2953 msvc_copts = xnnpack_msvc_std_copts(),
2954 msvc_x86_32_copts = ["/arch:AVX"],
2955 msvc_x86_64_copts = ["/arch:AVX"],
2956 x86_srcs = AVX_UKERNELS,
2957 deps = [
2958 ":tables",
2959 "@FP16",
2960 "@pthreadpool",
2961 ],
2962)
2963
2964xnnpack_cc_library(
Marat Dukhan1566fee2020-08-02 21:55:41 -07002965 name = "xop_ukernels",
2966 hdrs = INTERNAL_HDRS,
2967 gcc_copts = xnnpack_gcc_std_copts(),
2968 gcc_x86_copts = ["-mxop"],
2969 msvc_copts = xnnpack_msvc_std_copts(),
2970 msvc_x86_32_copts = ["/arch:AVX"],
2971 msvc_x86_64_copts = ["/arch:AVX"],
2972 x86_srcs = XOP_UKERNELS,
2973 deps = [
2974 ":tables",
2975 "@FP16",
2976 "@pthreadpool",
2977 ],
2978)
2979
2980xnnpack_cc_library(
2981 name = "xop_ukernels_test_mode",
2982 hdrs = INTERNAL_HDRS,
2983 copts = [
2984 "-UNDEBUG",
2985 "-DXNN_TEST_MODE=1",
2986 ],
2987 gcc_copts = xnnpack_gcc_std_copts(),
2988 gcc_x86_copts = ["-mxop"],
2989 msvc_copts = xnnpack_msvc_std_copts(),
2990 msvc_x86_32_copts = ["/arch:AVX"],
2991 msvc_x86_64_copts = ["/arch:AVX"],
2992 x86_srcs = XOP_UKERNELS,
2993 deps = [
2994 ":tables",
2995 "@FP16",
2996 "@pthreadpool",
2997 ],
2998)
2999
3000xnnpack_cc_library(
Marat Dukhanfda12b82019-11-21 12:27:59 -08003001 name = "fma3_ukernels",
3002 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003003 gcc_copts = xnnpack_gcc_std_copts(),
3004 gcc_x86_copts = ["-mfma"],
3005 msvc_copts = xnnpack_msvc_std_copts(),
3006 msvc_x86_32_copts = ["/arch:AVX"],
3007 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhanfda12b82019-11-21 12:27:59 -08003008 x86_srcs = FMA3_UKERNELS,
3009 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003010 ":tables",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003011 "@FP16",
3012 "@pthreadpool",
3013 ],
3014)
3015
3016xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003017 name = "fma3_ukernels_test_mode",
3018 hdrs = INTERNAL_HDRS,
3019 copts = [
3020 "-UNDEBUG",
3021 "-DXNN_TEST_MODE=1",
3022 ],
3023 gcc_copts = xnnpack_gcc_std_copts(),
3024 gcc_x86_copts = ["-mfma"],
3025 msvc_copts = xnnpack_msvc_std_copts(),
3026 msvc_x86_32_copts = ["/arch:AVX"],
3027 msvc_x86_64_copts = ["/arch:AVX"],
3028 x86_srcs = FMA3_UKERNELS,
3029 deps = [
3030 ":tables",
3031 "@FP16",
3032 "@pthreadpool",
3033 ],
3034)
3035
3036xnnpack_cc_library(
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003037 name = "avx2_ukernels",
3038 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003039 gcc_copts = xnnpack_gcc_std_copts(),
3040 gcc_x86_copts = [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003041 "-mfma",
3042 "-mavx2",
3043 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003044 msvc_copts = xnnpack_msvc_std_copts(),
3045 msvc_x86_32_copts = ["/arch:AVX2"],
3046 msvc_x86_64_copts = ["/arch:AVX2"],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003047 x86_srcs = AVX2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003048 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003049 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003050 "@FP16",
3051 "@pthreadpool",
3052 ],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003053)
3054
3055xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003056 name = "avx2_ukernels_test_mode",
3057 hdrs = INTERNAL_HDRS,
3058 copts = [
3059 "-UNDEBUG",
3060 "-DXNN_TEST_MODE=1",
3061 ],
3062 gcc_copts = xnnpack_gcc_std_copts(),
3063 gcc_x86_copts = [
3064 "-mfma",
3065 "-mavx2",
3066 ],
3067 msvc_copts = xnnpack_msvc_std_copts(),
3068 msvc_x86_32_copts = ["/arch:AVX2"],
3069 msvc_x86_64_copts = ["/arch:AVX2"],
3070 x86_srcs = AVX2_UKERNELS,
3071 deps = [
3072 ":tables",
3073 "@FP16",
3074 "@pthreadpool",
3075 ],
3076)
3077
3078xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003079 name = "avx512f_ukernels",
3080 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003081 gcc_copts = xnnpack_gcc_std_copts(),
3082 gcc_x86_copts = ["-mavx512f"],
3083 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3084 msvc_copts = xnnpack_msvc_std_copts(),
3085 msvc_x86_32_copts = ["/arch:AVX512"],
3086 msvc_x86_64_copts = ["/arch:AVX512"],
3087 msys_copts = ["-fno-asynchronous-unwind-tables"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003088 x86_srcs = AVX512F_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003089 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003090 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003091 "@FP16",
3092 "@pthreadpool",
3093 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003094)
3095
3096xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003097 name = "avx512f_ukernels_test_mode",
3098 hdrs = INTERNAL_HDRS,
3099 copts = [
3100 "-UNDEBUG",
3101 "-DXNN_TEST_MODE=1",
3102 ],
3103 gcc_copts = xnnpack_gcc_std_copts(),
3104 gcc_x86_copts = ["-mavx512f"],
3105 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3106 msvc_copts = xnnpack_msvc_std_copts(),
3107 msvc_x86_32_copts = ["/arch:AVX512"],
3108 msvc_x86_64_copts = ["/arch:AVX512"],
3109 msys_copts = ["-fno-asynchronous-unwind-tables"],
3110 x86_srcs = AVX512F_UKERNELS,
3111 deps = [
3112 ":tables",
3113 "@FP16",
3114 "@pthreadpool",
3115 ],
3116)
3117
3118xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003119 name = "asm_ukernels",
3120 hdrs = ["src/xnnpack/assembly.h"],
3121 aarch32_srcs = AARCH32_ASM_UKERNELS,
Frank Barchard683f5592020-04-10 00:48:26 -07003122 aarch64_copts = ["-march=armv8.2-a+fp16"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003123 aarch64_srcs = AARCH64_ASM_UKERNELS,
3124)
3125
Marat Dukhan3b59de22020-06-03 20:15:19 -07003126xnnpack_cc_library(
3127 name = "logging_utils",
3128 srcs = LOGGING_SRCS,
3129 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3130 copts = LOGGING_COPTS + [
3131 "-Isrc",
3132 "-Iinclude",
3133 ] + select({
3134 ":debug_build": [],
3135 "//conditions:default": xnnpack_min_size_copts(),
3136 }),
3137 gcc_copts = xnnpack_gcc_std_copts(),
3138 msvc_copts = xnnpack_msvc_std_copts(),
3139 visibility = xnnpack_visibility(),
3140 deps = [
3141 "@FP16",
3142 "@clog",
3143 "@pthreadpool",
3144 ],
3145)
3146
Marat Dukhan08c4a432019-10-03 09:29:21 -07003147xnnpack_aggregate_library(
3148 name = "ukernels",
3149 aarch32_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003150 ":neon_ukernels",
3151 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003152 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003153 ":asm_ukernels",
3154 ],
3155 aarch64_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003156 ":neon_ukernels",
3157 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003158 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003159 ":neonfp16arith_ukernels",
3160 ":asm_ukernels",
3161 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003162 generic_deps = [
3163 ":scalar_ukernels",
3164 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07003165 psimd_deps = [
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003166 ":psimd_fastmath_ukernels",
3167 ":psimd_accmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003168 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003169 wasm_deps = [
3170 ":wasm_ukernels",
3171 ],
3172 wasmsimd_deps = [
3173 ":wasm_ukernels",
3174 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003175 x86_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003176 ":sse2_ukernels",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003177 ":ssse3_ukernels",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003178 ":sse41_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003179 ":avx_ukernels",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003180 ":xop_ukernels",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003181 ":fma3_ukernels",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003182 ":avx2_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003183 ":avx512f_ukernels",
3184 ],
3185)
3186
Marat Dukhan33fcf782020-05-24 14:27:15 -07003187xnnpack_aggregate_library(
3188 name = "ukernels_test_mode",
3189 aarch32_deps = [
3190 ":neon_ukernels_test_mode",
3191 ":neonfma_ukernels_test_mode",
3192 ":neonv8_ukernels_test_mode",
3193 ":asm_ukernels",
3194 ],
3195 aarch64_deps = [
3196 ":neon_ukernels_test_mode",
3197 ":neonfma_ukernels_test_mode",
3198 ":neonv8_ukernels_test_mode",
3199 ":neonfp16arith_ukernels_test_mode",
3200 ":asm_ukernels",
3201 ],
3202 generic_deps = [
3203 ":scalar_ukernels_test_mode",
3204 ],
3205 psimd_deps = [
3206 ":psimd_fastmath_ukernels_test_mode",
3207 ":psimd_accmath_ukernels_test_mode",
3208 ],
3209 wasm_deps = [
3210 ":wasm_ukernels_test_mode",
3211 ],
3212 wasmsimd_deps = [
3213 ":wasm_ukernels_test_mode",
3214 ],
3215 x86_deps = [
3216 ":sse2_ukernels_test_mode",
3217 ":ssse3_ukernels_test_mode",
3218 ":sse41_ukernels_test_mode",
3219 ":avx_ukernels_test_mode",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003220 ":xop_ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003221 ":fma3_ukernels_test_mode",
3222 ":avx2_ukernels_test_mode",
3223 ":avx512f_ukernels_test_mode",
3224 ],
3225)
3226
Marat Dukhan86df3842020-06-17 14:03:31 -07003227# This target must be compatible with Android NDK r17 and compile with Clang 6.
3228# It is similar to :ukernels target, but excludes microkernels which require
3229# NEON FP16 arithmetics, NEON Dot Product, and newer intrinsics.
Marat Dukhanae046f52020-06-15 13:16:14 -07003230xnnpack_aggregate_library(
Marat Dukhan86df3842020-06-17 14:03:31 -07003231 name = "ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003232 aarch32_deps = [
3233 ":neon_ukernels",
3234 ":neonfma_ukernels",
3235 ":neonv8_ukernels",
3236 ":asm_ukernels",
3237 ],
3238 aarch64_deps = [
3239 ":neon_ukernels",
3240 ":neonfma_ukernels",
3241 ":neonv8_ukernels",
3242 ":asm_ukernels",
3243 ],
3244 generic_deps = [
3245 ":scalar_ukernels",
3246 ],
3247 psimd_deps = [
3248 ":psimd_fastmath_ukernels",
3249 ":psimd_accmath_ukernels",
3250 ],
3251 wasm_deps = [
3252 ":wasm_ukernels",
3253 ],
3254 wasmsimd_deps = [
3255 ":wasm_ukernels",
3256 ],
3257 x86_deps = [
3258 ":sse2_ukernels",
3259 ":ssse3_ukernels",
3260 ":sse41_ukernels",
3261 ":avx_ukernels",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003262 ":xop_ukernels",
Marat Dukhanae046f52020-06-15 13:16:14 -07003263 ":fma3_ukernels",
3264 ":avx2_ukernels",
3265 ":avx512f_ukernels",
3266 ],
3267)
3268
Marat Dukhan08c4a432019-10-03 09:29:21 -07003269xnnpack_cc_library(
3270 name = "im2col",
3271 srcs = ["src/im2col.c"],
3272 hdrs = [
3273 "src/xnnpack/common.h",
3274 "src/xnnpack/im2col.h",
3275 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003276 gcc_copts = xnnpack_gcc_std_copts(),
3277 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003278)
3279
3280xnnpack_cc_library(
3281 name = "indirection",
3282 srcs = ["src/indirection.c"],
3283 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003284 gcc_copts = xnnpack_gcc_std_copts(),
3285 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003286 deps = [
3287 "@FP16",
3288 "@FXdiv",
3289 "@pthreadpool",
3290 ],
3291)
3292
3293xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003294 name = "indirection_test_mode",
3295 srcs = ["src/indirection.c"],
3296 hdrs = INTERNAL_HDRS,
3297 copts = [
3298 "-UNDEBUG",
3299 "-DXNN_TEST_MODE=1",
3300 ],
3301 gcc_copts = xnnpack_gcc_std_copts(),
3302 msvc_copts = xnnpack_msvc_std_copts(),
3303 deps = [
3304 "@FP16",
3305 "@FXdiv",
3306 "@pthreadpool",
3307 ],
3308)
3309
3310xnnpack_cc_library(
Marat Dukhanab582382020-07-06 13:32:08 -07003311 name = "packing",
3312 srcs = ["src/packing.c"],
3313 hdrs = INTERNAL_HDRS,
3314 gcc_copts = xnnpack_gcc_std_copts(),
3315 msvc_copts = xnnpack_msvc_std_copts(),
3316 deps = [
3317 "@FP16",
3318 "@FXdiv",
3319 "@pthreadpool",
3320 ],
3321)
3322
3323xnnpack_cc_library(
3324 name = "packing_test_mode",
3325 srcs = ["src/packing.c"],
3326 hdrs = INTERNAL_HDRS,
3327 copts = [
3328 "-UNDEBUG",
3329 "-DXNN_TEST_MODE=1",
3330 ],
3331 gcc_copts = xnnpack_gcc_std_copts(),
3332 msvc_copts = xnnpack_msvc_std_copts(),
3333 deps = [
3334 "@FP16",
3335 "@FXdiv",
3336 "@pthreadpool",
3337 ],
3338)
3339
3340xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003341 name = "operator_run",
3342 srcs = ["src/operator-run.c"],
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07003343 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003344 copts = LOGGING_COPTS + select({
Marat Dukhan05702cf2020-03-26 15:41:33 -07003345 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3346 "//conditions:default": [],
3347 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003348 gcc_copts = xnnpack_gcc_std_copts(),
3349 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003350 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003351 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003352 "@FP16",
3353 "@FXdiv",
3354 "@clog",
3355 "@pthreadpool",
3356 ],
3357)
3358
Chao Mei6ddfc602020-05-13 22:29:36 -07003359xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003360 name = "operator_run_test_mode",
3361 srcs = ["src/operator-run.c"],
3362 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3363 copts = LOGGING_COPTS + [
3364 "-UNDEBUG",
3365 "-DXNN_TEST_MODE=1",
3366 ] + select({
3367 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3368 "//conditions:default": [],
3369 }),
3370 gcc_copts = xnnpack_gcc_std_copts(),
3371 msvc_copts = xnnpack_msvc_std_copts(),
3372 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003373 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003374 "@FP16",
3375 "@FXdiv",
3376 "@clog",
3377 "@pthreadpool",
3378 ],
3379)
3380
3381xnnpack_cc_library(
Chao Mei6ddfc602020-05-13 22:29:36 -07003382 name = "memory_planner",
3383 srcs = ["src/memory-planner.c"],
3384 hdrs = INTERNAL_HDRS,
3385 defines = select({
3386 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
3387 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
3388 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
3389 }),
3390 gcc_copts = xnnpack_gcc_std_copts(),
3391 msvc_copts = xnnpack_msvc_std_copts(),
3392 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003393 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07003394 "@pthreadpool",
3395 ],
3396)
3397
Marat Dukhan33fcf782020-05-24 14:27:15 -07003398xnnpack_cc_library(
3399 name = "memory_planner_test_mode",
3400 srcs = ["src/memory-planner.c"],
3401 hdrs = INTERNAL_HDRS,
3402 copts = [
3403 "-UNDEBUG",
3404 "-DXNN_TEST_MODE=1",
3405 ],
3406 defines = select({
3407 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
3408 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
3409 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
3410 }),
3411 gcc_copts = xnnpack_gcc_std_copts(),
3412 msvc_copts = xnnpack_msvc_std_copts(),
3413 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003414 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003415 "@pthreadpool",
3416 ],
3417)
3418
Marat Dukhan08c4a432019-10-03 09:29:21 -07003419cc_library(
3420 name = "enable_assembly",
3421 defines = select({
3422 ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"],
3423 ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"],
Frank Barchard810171d2019-10-10 10:34:51 -07003424 "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003425 }),
3426)
3427
Marat Dukhan9de90e02020-06-18 16:04:12 -07003428cc_library(
3429 name = "enable_sparse",
3430 defines = select({
3431 ":xnn_enable_sparse_explicit_true": ["XNN_ENABLE_SPARSE=1"],
3432 ":xnn_enable_sparse_explicit_false": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan8b283aa2020-06-18 16:48:57 -07003433 "//conditions:default": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan9de90e02020-06-18 16:04:12 -07003434 }),
3435)
3436
Marat Dukhancf056b22019-10-07 10:26:29 -07003437xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003438 name = "operators",
3439 srcs = OPERATOR_SRCS + [
Marat Dukhan04f03be2019-11-19 12:36:47 -08003440 "src/memory.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003441 "src/operator-delete.c",
Marat Dukhancf056b22019-10-07 10:26:29 -07003442 ],
3443 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003444 copts = LOGGING_COPTS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003445 "-Isrc",
3446 "-Iinclude",
3447 ] + select({
3448 ":debug_build": [],
3449 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003450 }) + select({
3451 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3452 "//conditions:default": [],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003453 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003454 gcc_copts = xnnpack_gcc_std_copts(),
3455 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003456 deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003457 ":indirection",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003458 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07003459 ":packing",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003460 "@FP16",
3461 "@FXdiv",
3462 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003463 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003464 ],
3465)
3466
Marat Dukhan10a38082020-04-17 03:58:35 -07003467xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003468 name = "operators_test_mode",
3469 srcs = OPERATOR_SRCS + [
3470 "src/memory.c",
3471 "src/operator-delete.c",
3472 ],
3473 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3474 copts = LOGGING_COPTS + [
3475 "-Isrc",
3476 "-Iinclude",
3477 "-UNDEBUG",
3478 "-DXNN_TEST_MODE=1",
3479 ] + select({
3480 ":debug_build": [],
3481 "//conditions:default": xnnpack_min_size_copts(),
3482 }) + select({
3483 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3484 "//conditions:default": [],
3485 }),
3486 gcc_copts = xnnpack_gcc_std_copts(),
3487 msvc_copts = xnnpack_msvc_std_copts(),
3488 deps = [
3489 ":indirection_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003490 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07003491 ":packing_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003492 "@FP16",
3493 "@FXdiv",
3494 "@clog",
3495 "@pthreadpool",
3496 ],
3497)
3498
3499xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003500 name = "XNNPACK",
3501 srcs = [
3502 "src/init.c",
Marat Dukhanccfdbd12020-02-03 14:27:45 -08003503 "src/runtime.c",
3504 "src/subgraph.c",
3505 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07003506 ] + SUBGRAPH_SRCS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003507 hdrs = ["include/xnnpack.h"],
3508 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003509 "-Isrc",
3510 "-Iinclude",
3511 ] + select({
3512 ":debug_build": [],
3513 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003514 }) + select({
3515 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3516 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003517 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003518 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003519 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003520 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003521 visibility = xnnpack_visibility(),
3522 deps = [
3523 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003524 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003525 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07003526 ":memory_planner",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003527 ":operator_run",
3528 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003529 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003530 "@clog",
Marat Dukhanab2946c2020-05-21 20:04:13 -07003531 "@FP16",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003532 "@pthreadpool",
Marat Dukhand343c222019-10-07 09:22:14 -07003533 ] + select({
3534 ":emscripten": [],
3535 "//conditions:default": ["@cpuinfo"],
3536 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003537)
3538
Marat Dukhan10a38082020-04-17 03:58:35 -07003539xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003540 name = "XNNPACK_test_mode",
3541 srcs = [
3542 "src/init.c",
3543 "src/runtime.c",
3544 "src/subgraph.c",
3545 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07003546 ] + SUBGRAPH_SRCS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07003547 hdrs = ["include/xnnpack.h"],
3548 copts = LOGGING_COPTS + [
3549 "-Isrc",
3550 "-Iinclude",
3551 "-UNDEBUG",
3552 "-DXNN_TEST_MODE=1",
3553 ] + select({
3554 ":debug_build": [],
3555 "//conditions:default": xnnpack_min_size_copts(),
3556 }) + select({
3557 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3558 "//conditions:default": [],
3559 }),
3560 gcc_copts = xnnpack_gcc_std_copts(),
3561 includes = ["include"],
3562 msvc_copts = xnnpack_msvc_std_copts(),
3563 visibility = xnnpack_visibility(),
3564 deps = [
3565 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003566 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003567 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003568 ":memory_planner_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003569 ":operator_run_test_mode",
3570 ":operators_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003571 ":ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003572 "@clog",
3573 "@FP16",
3574 "@pthreadpool",
3575 ] + select({
3576 ":emscripten": [],
3577 "//conditions:default": ["@cpuinfo"],
3578 }),
3579)
3580
3581xnnpack_cc_library(
Marat Dukhanae046f52020-06-15 13:16:14 -07003582 name = "xnnpack_f32",
3583 srcs = [
3584 "src/init.c",
3585 "src/runtime.c",
3586 "src/subgraph.c",
3587 "src/tensor.c",
3588 ] + SUBGRAPH_SRCS,
3589 hdrs = ["include/xnnpack.h"],
3590 copts = LOGGING_COPTS + [
3591 "-Isrc",
3592 "-Iinclude",
3593 ] + select({
3594 ":debug_build": [],
3595 "//conditions:default": xnnpack_min_size_copts(),
3596 }) + select({
3597 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3598 "//conditions:default": [],
3599 }),
3600 defines = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07003601 "XNN_NO_QU8_OPERATORS",
Marat Dukhanae046f52020-06-15 13:16:14 -07003602 "XNN_NO_U8_OPERATORS",
3603 "XNN_NO_X8_OPERATORS",
3604 "XNN_NO_F16_OPERATORS",
3605 "XNN_NO_X16_OPERATORS",
3606 ],
3607 gcc_copts = xnnpack_gcc_std_copts(),
3608 includes = ["include"],
3609 msvc_copts = xnnpack_msvc_std_copts(),
3610 visibility = xnnpack_visibility(),
3611 deps = [
3612 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003613 ":enable_sparse",
Marat Dukhanae046f52020-06-15 13:16:14 -07003614 ":logging_utils",
3615 ":memory_planner",
3616 ":operator_run",
3617 ":operators",
Marat Dukhan86df3842020-06-17 14:03:31 -07003618 ":ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003619 "@clog",
3620 "@FP16",
3621 "@pthreadpool",
3622 ] + select({
3623 ":emscripten": [],
3624 "//conditions:default": ["@cpuinfo"],
3625 }),
3626)
3627
3628xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003629 name = "xnnpack_operators_nhwc_f32",
3630 srcs = [
3631 "src/init.c",
3632 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003633 hdrs = ["include/xnnpack.h"],
3634 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003635 "-Isrc",
3636 "-Iinclude",
3637 ] + select({
3638 ":debug_build": [],
3639 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003640 }) + select({
3641 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3642 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003643 }),
3644 defines = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07003645 "XNN_NO_QU8_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003646 "XNN_NO_U8_OPERATORS",
3647 "XNN_NO_X8_OPERATORS",
Marat Dukhanefc47b82019-11-18 09:25:38 -08003648 "XNN_NO_NCHW_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003649 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003650 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003651 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003652 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003653 visibility = xnnpack_visibility(),
3654 deps = [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003655 ":enable_assembly",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003656 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003657 ":operator_run",
3658 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003659 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003660 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003661 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003662 ] + select({
3663 ":emscripten": [],
3664 "//conditions:default": ["@cpuinfo"],
3665 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003666)
3667
Marat Dukhancf056b22019-10-07 10:26:29 -07003668xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003669 name = "bench_utils",
3670 srcs = ["bench/utils.cc"],
3671 hdrs = ["bench/utils.h"],
Marat Dukhanbad48fe2019-11-04 10:35:22 -08003672 deps = [
3673 "@com_google_benchmark//:benchmark",
3674 "@cpuinfo",
3675 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003676)
3677
Frank Barchard7e955972019-10-11 10:34:25 -07003678######################### Benchmarks for micro-kernels #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07003679
3680xnnpack_benchmark(
Marat Dukhan595e1702020-07-31 10:12:52 -07003681 name = "qs8_gemm_bench",
3682 srcs = [
3683 "bench/gemm.h",
3684 "bench/qs8-gemm.cc",
3685 "src/xnnpack/AlignedAllocator.h",
3686 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
3687 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"],
3688)
3689
3690xnnpack_benchmark(
Marat Dukhan56bdd4a2020-08-03 19:47:04 -07003691 name = "qs8_requantization_bench",
3692 srcs = [
3693 "bench/qs8-requantization.cc",
3694 "src/xnnpack/requantization-stubs.h",
3695 "src/xnnpack/AlignedAllocator.h",
3696 ] + MICROKERNEL_BENCHMARK_HDRS,
3697 deps = MICROKERNEL_BENCHMARK_DEPS,
3698)
3699
3700xnnpack_benchmark(
Marat Dukhan08b7a972020-07-14 18:17:29 -07003701 name = "qu8_gemm_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003702 srcs = [
3703 "bench/gemm.h",
Marat Dukhan08b7a972020-07-14 18:17:29 -07003704 "bench/qu8-gemm.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003705 "src/xnnpack/AlignedAllocator.h",
3706 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003707 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07003708 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003709)
3710
3711xnnpack_benchmark(
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07003712 name = "qu8_requantization_bench",
3713 srcs = [
3714 "bench/qu8-requantization.cc",
3715 "src/xnnpack/requantization-stubs.h",
3716 "src/xnnpack/AlignedAllocator.h",
3717 ] + MICROKERNEL_BENCHMARK_HDRS,
3718 deps = MICROKERNEL_BENCHMARK_DEPS,
3719)
3720
3721xnnpack_benchmark(
Frank Barchard40d20fe2020-05-05 00:37:45 -07003722 name = "f16_igemm_bench",
3723 srcs = [
3724 "bench/f16-igemm.cc",
3725 "bench/conv.h",
3726 "bench/google/conv.h",
3727 "src/xnnpack/AlignedAllocator.h",
3728 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003729 deps = MICROKERNEL_BENCHMARK_DEPS + [
3730 ":indirection",
3731 ":packing",
3732 ],
Frank Barchard40d20fe2020-05-05 00:37:45 -07003733)
3734
3735xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003736 name = "f16_gemm_bench",
3737 srcs = [
3738 "bench/f16-gemm.cc",
3739 "bench/gemm.h",
3740 "src/xnnpack/AlignedAllocator.h",
3741 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003742 deps = MICROKERNEL_BENCHMARK_DEPS + [
3743 ":packing",
3744 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003745)
3746
3747xnnpack_benchmark(
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003748 name = "f16_spmm_bench",
3749 srcs = [
3750 "bench/f16-spmm.cc",
3751 "bench/gemm.h",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003752 "src/xnnpack/AlignedAllocator.h",
3753 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003754 deps = MICROKERNEL_BENCHMARK_DEPS,
3755)
3756
3757xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003758 name = "f32_igemm_bench",
3759 srcs = [
3760 "bench/f32-igemm.cc",
3761 "bench/conv.h",
3762 "src/xnnpack/AlignedAllocator.h",
3763 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003764 deps = MICROKERNEL_BENCHMARK_DEPS + [
3765 ":indirection",
3766 ":packing",
3767 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003768)
3769
3770xnnpack_benchmark(
Frank Barchardc2010062020-07-19 10:04:12 -07003771 name = "f16_relu_bench",
3772 srcs = [
3773 "bench/f16-relu.cc",
3774 "src/xnnpack/AlignedAllocator.h",
3775 ] + MICROKERNEL_BENCHMARK_HDRS,
3776 deps = MICROKERNEL_BENCHMARK_DEPS,
3777)
3778
3779xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003780 name = "f32_conv_hwc_bench",
3781 srcs = [
3782 "bench/f32-conv-hwc.cc",
3783 "bench/dconv.h",
3784 "src/xnnpack/AlignedAllocator.h",
3785 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003786 deps = MICROKERNEL_BENCHMARK_DEPS + [
3787 ":packing",
3788 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003789)
3790
3791xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003792 name = "f32_conv_hwc2chw_bench",
Erich Elsen563df5f2019-10-23 08:02:21 -07003793 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003794 "bench/f32-conv-hwc2chw.cc",
Erich Elsen563df5f2019-10-23 08:02:21 -07003795 "bench/dconv.h",
3796 "src/xnnpack/AlignedAllocator.h",
3797 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003798 deps = MICROKERNEL_BENCHMARK_DEPS + [
3799 ":packing",
3800 ],
Erich Elsen563df5f2019-10-23 08:02:21 -07003801)
3802
3803xnnpack_benchmark(
Frank Barchard5a599a62020-06-04 20:12:44 -07003804 name = "f16_dwconv_bench",
3805 srcs = [
3806 "bench/f16-dwconv.cc",
3807 "bench/dwconv.h",
3808 "bench/google/dwconv.h",
3809 "src/xnnpack/AlignedAllocator.h",
3810 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003811 deps = MICROKERNEL_BENCHMARK_DEPS + [
3812 ":indirection",
3813 ":packing",
3814 ],
Frank Barchard5a599a62020-06-04 20:12:44 -07003815)
3816
3817xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003818 name = "f32_dwconv_bench",
3819 srcs = [
3820 "bench/f32-dwconv.cc",
3821 "bench/dwconv.h",
3822 "src/xnnpack/AlignedAllocator.h",
3823 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003824 deps = MICROKERNEL_BENCHMARK_DEPS + [
3825 ":indirection",
3826 ":packing",
3827 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003828)
3829
3830xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003831 name = "f32_dwconv_chw_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003832 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003833 "bench/f32-dwconv-chw.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003834 "bench/dwconv.h",
3835 "src/xnnpack/AlignedAllocator.h",
3836 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003837 deps = MICROKERNEL_BENCHMARK_DEPS + [
3838 ":indirection",
3839 ":packing",
3840 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003841)
3842
3843xnnpack_benchmark(
3844 name = "f32_gemm_bench",
3845 srcs = [
3846 "bench/f32-gemm.cc",
3847 "bench/gemm.h",
3848 "src/xnnpack/AlignedAllocator.h",
3849 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003850 copts = xnnpack_optional_ruy_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07003851 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003852)
3853
3854xnnpack_benchmark(
Marat Dukhana11ca342020-06-25 23:45:07 -07003855 name = "f32_hswish_bench",
3856 srcs = [
3857 "bench/f32-hswish.cc",
3858 "src/xnnpack/AlignedAllocator.h",
3859 ] + MICROKERNEL_BENCHMARK_HDRS,
3860 deps = MICROKERNEL_BENCHMARK_DEPS,
3861)
3862
3863xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08003864 name = "f32_raddexpminusmax_bench",
3865 srcs = [
3866 "bench/f32-raddexpminusmax.cc",
3867 "src/xnnpack/AlignedAllocator.h",
3868 ] + MICROKERNEL_BENCHMARK_HDRS,
3869 deps = MICROKERNEL_BENCHMARK_DEPS,
3870)
3871
3872xnnpack_benchmark(
3873 name = "f32_raddextexp_bench",
3874 srcs = [
3875 "bench/f32-raddextexp.cc",
3876 "src/xnnpack/AlignedAllocator.h",
3877 ] + MICROKERNEL_BENCHMARK_HDRS,
3878 deps = MICROKERNEL_BENCHMARK_DEPS,
3879)
3880
3881xnnpack_benchmark(
3882 name = "f32_raddstoreexpminusmax_bench",
3883 srcs = [
3884 "bench/f32-raddstoreexpminusmax.cc",
3885 "src/xnnpack/AlignedAllocator.h",
3886 ] + MICROKERNEL_BENCHMARK_HDRS,
3887 deps = MICROKERNEL_BENCHMARK_DEPS,
3888)
3889
3890xnnpack_benchmark(
Frank Barchard3c4a9522020-07-18 16:11:22 -07003891 name = "f32_relu_bench",
3892 srcs = [
3893 "bench/f32-relu.cc",
3894 "src/xnnpack/AlignedAllocator.h",
3895 ] + MICROKERNEL_BENCHMARK_HDRS,
3896 deps = MICROKERNEL_BENCHMARK_DEPS,
3897)
3898
3899xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003900 name = "f32_rmax_bench",
3901 srcs = [
3902 "bench/f32-rmax.cc",
3903 "src/xnnpack/AlignedAllocator.h",
3904 ] + MICROKERNEL_BENCHMARK_HDRS,
3905 deps = MICROKERNEL_BENCHMARK_DEPS,
3906)
3907
3908xnnpack_benchmark(
Marat Dukhan14bec502019-11-18 11:35:31 -08003909 name = "f32_sigmoid_bench",
3910 srcs = [
3911 "bench/f32-sigmoid.cc",
3912 "src/xnnpack/AlignedAllocator.h",
3913 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan14bec502019-11-18 11:35:31 -08003914 deps = MICROKERNEL_BENCHMARK_DEPS,
3915)
3916
3917xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003918 name = "f32_spmm_bench",
3919 srcs = [
3920 "bench/f32-spmm.cc",
3921 "bench/gemm.h",
3922 "src/xnnpack/AlignedAllocator.h",
3923 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003924 deps = MICROKERNEL_BENCHMARK_DEPS,
3925)
3926
3927xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003928 name = "f32_softmax_bench",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003929 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003930 "bench/f32-softmax.cc",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003931 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003932 copts = xnnpack_optional_dnnl_copts(),
Marat Dukhan8d3c6932020-03-06 20:27:27 -08003933 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(),
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003934)
3935
3936xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08003937 name = "f32_vscaleexpminusmax_bench",
3938 srcs = [
3939 "bench/f32-vscaleexpminusmax.cc",
3940 "src/xnnpack/AlignedAllocator.h",
3941 ] + MICROKERNEL_BENCHMARK_HDRS,
3942 deps = MICROKERNEL_BENCHMARK_DEPS,
3943)
3944
3945xnnpack_benchmark(
3946 name = "f32_vscaleextexp_bench",
3947 srcs = [
3948 "bench/f32-vscaleextexp.cc",
3949 "src/xnnpack/AlignedAllocator.h",
3950 ] + MICROKERNEL_BENCHMARK_HDRS,
3951 deps = MICROKERNEL_BENCHMARK_DEPS,
3952)
3953
3954xnnpack_benchmark(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07003955 name = "f32_vsqrt_bench",
3956 srcs = [
3957 "bench/f32-vsqrt.cc",
3958 "src/xnnpack/AlignedAllocator.h",
3959 ] + MICROKERNEL_BENCHMARK_HDRS,
3960 deps = MICROKERNEL_BENCHMARK_DEPS,
3961)
3962
3963xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003964 name = "f32_im2col_gemm_bench",
3965 srcs = [
3966 "bench/f32-im2col-gemm.cc",
3967 "bench/conv.h",
3968 "src/xnnpack/AlignedAllocator.h",
3969 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003970 deps = MICROKERNEL_BENCHMARK_DEPS + [
3971 ":im2col",
3972 ":packing",
3973 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003974)
3975
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003976xnnpack_benchmark(
Marat Dukhanffbf96a2020-05-14 02:59:08 -07003977 name = "rounding_bench",
3978 srcs = [
3979 "bench/rounding.cc",
3980 "src/xnnpack/math-stubs.h",
3981 "src/xnnpack/AlignedAllocator.h",
3982 ] + MICROKERNEL_BENCHMARK_HDRS,
3983 deps = MICROKERNEL_BENCHMARK_DEPS,
3984)
3985
Marat Dukhan08c4a432019-10-03 09:29:21 -07003986########################### Benchmarks for operators ###########################
3987
3988xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003989 name = "average_pooling_bench",
3990 srcs = ["bench/average-pooling.cc"],
Marat Dukhan7a16d8b2020-03-11 04:22:44 -07003991 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003992 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003993 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003994)
3995
3996xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07003997 name = "bankers_rounding_bench",
3998 srcs = ["bench/bankers-rounding.cc"],
3999 copts = xnnpack_optional_tflite_copts(),
4000 tags = ["nowin32"],
4001 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4002)
4003
4004xnnpack_benchmark(
4005 name = "ceiling_bench",
4006 srcs = ["bench/ceiling.cc"],
4007 copts = xnnpack_optional_tflite_copts(),
4008 tags = ["nowin32"],
4009 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4010)
4011
4012xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004013 name = "channel_shuffle_bench",
4014 srcs = ["bench/channel-shuffle.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004015 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004016)
4017
4018xnnpack_benchmark(
4019 name = "convolution_bench",
4020 srcs = ["bench/convolution.cc"],
4021 copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004022 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004023 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004024)
4025
4026xnnpack_benchmark(
4027 name = "deconvolution_bench",
4028 srcs = ["bench/deconvolution.cc"],
4029 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004030 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004031 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004032)
4033
4034xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004035 name = "floor_bench",
4036 srcs = ["bench/floor.cc"],
4037 copts = xnnpack_optional_tflite_copts(),
4038 tags = ["nowin32"],
4039 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4040)
4041
4042xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004043 name = "global_average_pooling_bench",
4044 srcs = ["bench/global-average-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004045 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004046)
4047
4048xnnpack_benchmark(
Marat Dukhanad352602020-06-25 21:50:54 -07004049 name = "hardswish_bench",
4050 srcs = ["bench/hardswish.cc"],
4051 copts = xnnpack_optional_tflite_copts(),
4052 tags = ["nowin32"],
4053 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4054)
4055
4056xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004057 name = "max_pooling_bench",
4058 srcs = ["bench/max-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004059 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004060)
4061
4062xnnpack_benchmark(
4063 name = "sigmoid_bench",
4064 srcs = ["bench/sigmoid.cc"],
Marat Dukhanc3b9e862019-11-17 13:18:54 -08004065 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07004066 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004067 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004068)
4069
4070xnnpack_benchmark(
Marat Dukhan95b22432019-10-30 16:30:14 -07004071 name = "prelu_bench",
4072 srcs = ["bench/prelu.cc"],
4073 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004074 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004075 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan95b22432019-10-30 16:30:14 -07004076)
4077
4078xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004079 name = "softmax_bench",
4080 srcs = ["bench/softmax.cc"],
Marat Dukhan9c0db962020-01-28 12:30:14 -08004081 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07004082 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004083 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004084)
4085
Marat Dukhan87727142020-06-24 15:24:10 -07004086xnnpack_benchmark(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07004087 name = "square_root_bench",
4088 srcs = ["bench/square-root.cc"],
4089 copts = xnnpack_optional_tflite_copts(),
4090 tags = ["nowin32"],
4091 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4092)
4093
4094xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004095 name = "truncation_bench",
4096 srcs = ["bench/truncation.cc"],
4097 deps = OPERATOR_BENCHMARK_DEPS,
4098)
4099
Marat Dukhanc068bb62019-10-04 13:24:39 -07004100############################# End-to-end benchmarks ############################
4101
4102cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004103 name = "fp32_mobilenet_v1",
4104 srcs = ["models/fp32-mobilenet-v1.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07004105 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004106 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07004107 linkstatic = True,
4108 deps = [
4109 ":XNNPACK",
4110 "@pthreadpool",
4111 ],
4112)
4113
4114cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004115 name = "fp16_mobilenet_v1",
4116 srcs = ["models/fp16-mobilenet-v1.cc"],
4117 hdrs = ["models/models.h"],
4118 copts = xnnpack_std_cxxopts(),
4119 linkstatic = True,
4120 deps = [
4121 ":XNNPACK",
4122 "@FP16",
4123 "@pthreadpool",
4124 ],
4125)
4126
4127cc_library(
4128 name = "fp32_mobilenet_v2",
4129 srcs = ["models/fp32-mobilenet-v2.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07004130 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004131 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07004132 linkstatic = True,
4133 deps = [
4134 ":XNNPACK",
4135 "@pthreadpool",
4136 ],
4137)
4138
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004139cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004140 name = "fp16_mobilenet_v2",
4141 srcs = ["models/fp16-mobilenet-v2.cc"],
4142 hdrs = ["models/models.h"],
4143 copts = xnnpack_std_cxxopts(),
4144 linkstatic = True,
4145 deps = [
4146 ":XNNPACK",
4147 "@FP16",
4148 "@pthreadpool",
4149 ],
4150)
4151
4152cc_library(
4153 name = "fp32_mobilenet_v3_large",
4154 srcs = ["models/fp32-mobilenet-v3-large.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004155 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004156 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004157 linkstatic = True,
4158 deps = [
4159 ":XNNPACK",
4160 "@pthreadpool",
4161 ],
4162)
4163
4164cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004165 name = "fp32_mobilenet_v3_small",
4166 srcs = ["models/fp32-mobilenet-v3-small.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004167 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004168 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004169 linkstatic = True,
4170 deps = [
4171 ":XNNPACK",
4172 "@pthreadpool",
4173 ],
4174)
4175
Marat Dukhanc068bb62019-10-04 13:24:39 -07004176xnnpack_benchmark(
Marat Dukhanef4416e2019-10-31 13:44:40 -07004177 name = "f32_dwconv_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004178 srcs = [
4179 "bench/f32-dwconv-e2e.cc",
4180 "bench/end2end.h",
4181 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanef4416e2019-10-31 13:44:40 -07004182 deps = MICROKERNEL_BENCHMARK_DEPS + [
4183 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004184 ":fp32_mobilenet_v1",
4185 ":fp32_mobilenet_v2",
4186 ":fp32_mobilenet_v3_large",
4187 ":fp32_mobilenet_v3_small",
Marat Dukhanef4416e2019-10-31 13:44:40 -07004188 ],
4189)
4190
4191xnnpack_benchmark(
Marat Dukhan5f18d262019-10-31 10:24:14 -07004192 name = "f32_gemm_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004193 srcs = [
4194 "bench/f32-gemm-e2e.cc",
4195 "bench/end2end.h",
4196 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan5f18d262019-10-31 10:24:14 -07004197 deps = MICROKERNEL_BENCHMARK_DEPS + [
4198 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004199 ":fp32_mobilenet_v1",
4200 ":fp32_mobilenet_v2",
4201 ":fp32_mobilenet_v3_large",
4202 ":fp32_mobilenet_v3_small",
Marat Dukhan5f18d262019-10-31 10:24:14 -07004203 ],
4204)
4205
4206xnnpack_benchmark(
Marat Dukhanc068bb62019-10-04 13:24:39 -07004207 name = "end2end_bench",
4208 srcs = ["bench/end2end.cc"],
4209 deps = [
4210 ":XNNPACK",
Frank Barchardc712fa42019-10-31 14:00:21 -07004211 ":bench_utils",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004212 ":fp16_mobilenet_v1",
4213 ":fp16_mobilenet_v2",
4214 ":fp32_mobilenet_v1",
4215 ":fp32_mobilenet_v2",
4216 ":fp32_mobilenet_v3_large",
4217 ":fp32_mobilenet_v3_small",
Marat Dukhanc068bb62019-10-04 13:24:39 -07004218 "@pthreadpool",
4219 ],
4220)
4221
Marat Dukhan6adff4e2019-10-14 18:32:07 -07004222#################### Accuracy evaluation for math functions ####################
4223
4224xnnpack_benchmark(
4225 name = "f32_exp_eval",
4226 srcs = [
4227 "eval/f32-exp.cc",
4228 "src/xnnpack/AlignedAllocator.h",
4229 ] + ACCURACY_EVAL_HDRS,
4230 deps = ACCURACY_EVAL_DEPS,
4231)
4232
Marat Dukhan515c9772019-10-17 18:07:57 -07004233xnnpack_benchmark(
4234 name = "f32_expminus_eval",
4235 srcs = [
4236 "eval/f32-expminus.cc",
4237 "src/xnnpack/AlignedAllocator.h",
4238 ] + ACCURACY_EVAL_HDRS,
4239 deps = ACCURACY_EVAL_DEPS,
4240)
4241
Marat Dukhan98ba4412019-10-23 02:14:28 -07004242xnnpack_benchmark(
4243 name = "f32_extexp_eval",
4244 srcs = [
4245 "eval/f32-extexp.cc",
4246 "src/xnnpack/AlignedAllocator.h",
4247 ] + ACCURACY_EVAL_HDRS,
4248 deps = ACCURACY_EVAL_DEPS,
4249)
4250
Marat Dukhan8853b822020-05-07 12:19:01 -07004251xnnpack_unit_test(
4252 name = "f32_roundne_eval",
4253 srcs = [
4254 "eval/f32-roundne.cc",
4255 "src/xnnpack/AlignedAllocator.h",
4256 "src/xnnpack/math-stubs.h",
4257 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhan22eed3d2020-05-11 20:13:37 -07004258 automatic = False,
Marat Dukhan8853b822020-05-07 12:19:01 -07004259 deps = MICROKERNEL_TEST_DEPS,
4260)
4261
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004262xnnpack_unit_test(
Marat Dukhanc9852ba2020-05-13 17:21:29 -07004263 name = "f32_roundd_eval",
4264 srcs = [
4265 "eval/f32-roundd.cc",
4266 "src/xnnpack/AlignedAllocator.h",
4267 "src/xnnpack/math-stubs.h",
4268 ] + MICROKERNEL_TEST_HDRS,
4269 automatic = False,
4270 deps = MICROKERNEL_TEST_DEPS,
4271)
4272
4273xnnpack_unit_test(
4274 name = "f32_roundu_eval",
4275 srcs = [
4276 "eval/f32-roundu.cc",
4277 "src/xnnpack/AlignedAllocator.h",
4278 "src/xnnpack/math-stubs.h",
4279 ] + MICROKERNEL_TEST_HDRS,
4280 automatic = False,
4281 deps = MICROKERNEL_TEST_DEPS,
4282)
4283
4284xnnpack_unit_test(
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004285 name = "f32_roundz_eval",
4286 srcs = [
4287 "eval/f32-roundz.cc",
4288 "src/xnnpack/AlignedAllocator.h",
4289 "src/xnnpack/math-stubs.h",
4290 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhanc9852ba2020-05-13 17:21:29 -07004291 automatic = False,
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004292 deps = MICROKERNEL_TEST_DEPS,
4293)
4294
Marat Dukhan346a9e52019-11-15 09:06:30 -08004295xnnpack_benchmark(
4296 name = "f32_sigmoid_eval",
4297 srcs = [
4298 "eval/f32-sigmoid.cc",
4299 "src/xnnpack/AlignedAllocator.h",
4300 ] + ACCURACY_EVAL_HDRS,
4301 deps = ACCURACY_EVAL_DEPS,
4302)
4303
Marat Dukhan84000762020-06-29 18:38:43 -07004304xnnpack_benchmark(
4305 name = "f32_sqrt_eval",
4306 srcs = [
4307 "eval/f32-sqrt.cc",
4308 "src/xnnpack/AlignedAllocator.h",
4309 ] + ACCURACY_EVAL_HDRS,
4310 deps = ACCURACY_EVAL_DEPS + [
4311 ":bench_utils",
4312 ],
4313)
4314
Marat Dukhan08c4a432019-10-03 09:29:21 -07004315######################### Unit tests for micro-kernels #########################
4316
4317xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07004318 name = "f16_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004319 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07004320 "test/f16-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004321 "test/gemm-microkernel-tester.h",
4322 "src/xnnpack/AlignedAllocator.h",
4323 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004324 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004325)
4326
4327xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07004328 name = "f16_spmm_minmax_test",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004329 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07004330 "test/f16-spmm-minmax.cc",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004331 "test/spmm-microkernel-tester.h",
4332 "src/xnnpack/AlignedAllocator.h",
4333 ] + MICROKERNEL_TEST_HDRS,
4334 deps = MICROKERNEL_TEST_DEPS,
4335)
4336
4337xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004338 name = "f32_argmaxpool_test",
4339 srcs = [
4340 "test/f32-argmaxpool.cc",
4341 "test/argmaxpool-microkernel-tester.h",
4342 "src/xnnpack/AlignedAllocator.h",
4343 ] + MICROKERNEL_TEST_HDRS,
4344 deps = MICROKERNEL_TEST_DEPS,
4345)
4346
4347xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004348 name = "f32_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004349 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004350 "test/f32-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004351 "test/avgpool-microkernel-tester.h",
4352 "src/xnnpack/AlignedAllocator.h",
4353 ] + MICROKERNEL_TEST_HDRS,
4354 deps = MICROKERNEL_TEST_DEPS,
4355)
4356
4357xnnpack_unit_test(
Marat Dukhan660fd192020-03-10 04:55:30 -07004358 name = "f32_ibilinear_test",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08004359 srcs = [
Marat Dukhan660fd192020-03-10 04:55:30 -07004360 "test/f32-ibilinear.cc",
4361 "test/ibilinear-microkernel-tester.h",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08004362 "src/xnnpack/AlignedAllocator.h",
4363 ] + MICROKERNEL_TEST_HDRS,
4364 deps = MICROKERNEL_TEST_DEPS,
4365)
4366
4367xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004368 name = "f16_clamp_test",
4369 srcs = [
4370 "test/f16-clamp.cc",
4371 "test/clamp-microkernel-tester.h",
4372 ] + MICROKERNEL_TEST_HDRS,
4373 deps = MICROKERNEL_TEST_DEPS,
4374)
4375
4376xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004377 name = "f32_clamp_test",
4378 srcs = [
4379 "test/f32-clamp.cc",
4380 "test/clamp-microkernel-tester.h",
4381 ] + MICROKERNEL_TEST_HDRS,
4382 deps = MICROKERNEL_TEST_DEPS,
4383)
4384
4385xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004386 name = "f32_igemm_test",
4387 srcs = [
4388 "test/f32-igemm.cc",
4389 "test/gemm-microkernel-tester.h",
4390 "src/xnnpack/AlignedAllocator.h",
4391 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004392 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004393)
4394
4395xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07004396 name = "f32_igemm_relu_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004397 srcs = [
Marat Dukhan467f6362020-05-22 23:21:55 -07004398 "test/f32-igemm-relu.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004399 "test/gemm-microkernel-tester.h",
4400 "src/xnnpack/AlignedAllocator.h",
4401 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004402 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004403)
4404
4405xnnpack_unit_test(
Marat Dukhane207b7b2020-05-28 16:27:42 -07004406 name = "f32_igemm_minmax_test",
4407 srcs = [
4408 "test/f32-igemm-minmax.cc",
4409 "test/gemm-microkernel-tester.h",
4410 "src/xnnpack/AlignedAllocator.h",
4411 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004412 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhane207b7b2020-05-28 16:27:42 -07004413)
4414
4415xnnpack_unit_test(
Frank Barchardb0e4fae2020-05-04 15:27:51 -07004416 name = "f16_igemm_minmax_test",
4417 srcs = [
4418 "test/f16-igemm-minmax.cc",
4419 "test/gemm-microkernel-tester.h",
4420 "src/xnnpack/AlignedAllocator.h",
4421 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004422 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchardb0e4fae2020-05-04 15:27:51 -07004423)
4424
4425xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004426 name = "f32_conv_hwc_test",
4427 srcs = [
4428 "test/f32-conv-hwc.cc",
4429 "test/conv-hwc-microkernel-tester.h",
4430 "src/xnnpack/AlignedAllocator.h",
4431 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004432 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004433)
4434
4435xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004436 name = "f32_conv_hwc2chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004437 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004438 "test/f32-conv-hwc2chw.cc",
4439 "test/conv-hwc2chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004440 "src/xnnpack/AlignedAllocator.h",
4441 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004442 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004443)
4444
4445xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004446 name = "f32_dwconv_test",
4447 srcs = [
4448 "test/f32-dwconv.cc",
4449 "test/dwconv-microkernel-tester.h",
4450 "src/xnnpack/AlignedAllocator.h",
4451 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004452 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004453)
4454
4455xnnpack_unit_test(
Frank Barchard5a599a62020-06-04 20:12:44 -07004456 name = "f16_dwconv_minmax_test",
4457 srcs = [
4458 "test/f16-dwconv-minmax.cc",
4459 "test/dwconv-microkernel-tester.h",
4460 "src/xnnpack/AlignedAllocator.h",
4461 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004462 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard5a599a62020-06-04 20:12:44 -07004463)
4464
4465xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004466 name = "f32_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004467 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004468 "test/f32-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004469 "test/dwconv-microkernel-tester.h",
4470 "src/xnnpack/AlignedAllocator.h",
4471 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004472 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004473)
4474
4475xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004476 name = "f32_dwconv_chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004477 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004478 "test/f32-dwconv-chw.cc",
4479 "test/dwconv-chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004480 "src/xnnpack/AlignedAllocator.h",
4481 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004482 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004483)
4484
4485xnnpack_unit_test(
Frank Barchard0bb49a72020-06-04 11:35:11 -07004486 name = "f16_gavgpool_minmax_test",
4487 srcs = [
4488 "test/f16-gavgpool-minmax.cc",
4489 "test/gavgpool-microkernel-tester.h",
4490 "src/xnnpack/AlignedAllocator.h",
4491 ] + MICROKERNEL_TEST_HDRS,
4492 deps = MICROKERNEL_TEST_DEPS,
4493)
4494
4495xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004496 name = "f32_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004497 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004498 "test/f32-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004499 "test/gavgpool-microkernel-tester.h",
4500 "src/xnnpack/AlignedAllocator.h",
4501 ] + MICROKERNEL_TEST_HDRS,
4502 deps = MICROKERNEL_TEST_DEPS,
4503)
4504
4505xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004506 name = "f32_gavgpool_cw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004507 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004508 "test/f32-gavgpool-cw.cc",
4509 "test/gavgpool-cw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004510 "src/xnnpack/AlignedAllocator.h",
4511 ] + MICROKERNEL_TEST_HDRS,
4512 deps = MICROKERNEL_TEST_DEPS,
4513)
4514
4515xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004516 name = "f32_gemm_test",
4517 srcs = [
4518 "test/f32-gemm.cc",
4519 "test/gemm-microkernel-tester.h",
4520 "src/xnnpack/AlignedAllocator.h",
4521 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004522 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004523)
4524
4525xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07004526 name = "f32_gemm_relu_test",
4527 srcs = [
4528 "test/f32-gemm-relu.cc",
4529 "test/gemm-microkernel-tester.h",
4530 "src/xnnpack/AlignedAllocator.h",
4531 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004532 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan467f6362020-05-22 23:21:55 -07004533)
4534
4535xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004536 name = "f32_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004537 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004538 "test/f32-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004539 "test/gemm-microkernel-tester.h",
4540 "src/xnnpack/AlignedAllocator.h",
4541 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004542 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004543)
4544
4545xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004546 name = "f32_gemminc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004547 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004548 "test/f32-gemminc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004549 "test/gemm-microkernel-tester.h",
4550 "src/xnnpack/AlignedAllocator.h",
4551 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004552 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004553)
4554
4555xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004556 name = "f16_hswish_test",
4557 srcs = [
4558 "test/f16-hswish.cc",
4559 "test/hswish-microkernel-tester.h",
4560 ] + MICROKERNEL_TEST_HDRS,
4561 deps = MICROKERNEL_TEST_DEPS,
4562)
4563
4564xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004565 name = "f32_hswish_test",
4566 srcs = [
4567 "test/f32-hswish.cc",
4568 "test/hswish-microkernel-tester.h",
4569 ] + MICROKERNEL_TEST_HDRS,
4570 deps = MICROKERNEL_TEST_DEPS,
4571)
4572
4573xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004574 name = "f32_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004575 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004576 "test/f32-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004577 "test/maxpool-microkernel-tester.h",
4578 ] + MICROKERNEL_TEST_HDRS,
4579 deps = MICROKERNEL_TEST_DEPS,
4580)
4581
4582xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004583 name = "f32_pavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004584 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004585 "test/f32-pavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004586 "test/avgpool-microkernel-tester.h",
4587 "src/xnnpack/AlignedAllocator.h",
4588 ] + MICROKERNEL_TEST_HDRS,
4589 deps = MICROKERNEL_TEST_DEPS,
4590)
4591
4592xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004593 name = "f32_ppmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004594 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004595 "test/f32-ppmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004596 "test/gemm-microkernel-tester.h",
4597 "src/xnnpack/AlignedAllocator.h",
4598 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004599 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004600)
4601
4602xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004603 name = "f16_prelu_test",
4604 srcs = [
4605 "test/f16-prelu.cc",
4606 "test/prelu-microkernel-tester.h",
4607 "src/xnnpack/AlignedAllocator.h",
4608 ] + MICROKERNEL_TEST_HDRS,
4609 deps = MICROKERNEL_TEST_DEPS,
4610)
4611
4612xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004613 name = "f32_prelu_test",
4614 srcs = [
4615 "test/f32-prelu.cc",
4616 "test/prelu-microkernel-tester.h",
4617 "src/xnnpack/AlignedAllocator.h",
4618 ] + MICROKERNEL_TEST_HDRS,
4619 deps = MICROKERNEL_TEST_DEPS,
4620)
4621
4622xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004623 name = "f32_raddexpminusmax_test",
4624 srcs = [
4625 "test/f32-raddexpminusmax.cc",
4626 "test/raddexpminusmax-microkernel-tester.h",
4627 ] + MICROKERNEL_TEST_HDRS,
4628 deps = MICROKERNEL_TEST_DEPS,
4629)
4630
4631xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07004632 name = "f32_raddextexp_test",
4633 srcs = [
4634 "test/f32-raddextexp.cc",
4635 "test/raddextexp-microkernel-tester.h",
4636 ] + MICROKERNEL_TEST_HDRS,
4637 deps = MICROKERNEL_TEST_DEPS,
4638)
4639
4640xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004641 name = "f32_raddstoreexpminusmax_test",
4642 srcs = [
4643 "test/f32-raddstoreexpminusmax.cc",
4644 "test/raddstoreexpminusmax-microkernel-tester.h",
4645 ] + MICROKERNEL_TEST_HDRS,
4646 deps = MICROKERNEL_TEST_DEPS,
4647)
4648
4649xnnpack_unit_test(
Frank Barchardfb158e22020-07-15 16:10:10 -07004650 name = "f32_relu_test",
4651 srcs = [
4652 "test/f32-relu.cc",
4653 "test/vunary-microkernel-tester.h",
4654 ] + MICROKERNEL_TEST_HDRS,
4655 deps = MICROKERNEL_TEST_DEPS,
4656)
4657
4658xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004659 name = "f32_rmax_test",
4660 srcs = [
4661 "test/f32-rmax.cc",
4662 "test/rmax-microkernel-tester.h",
4663 ] + MICROKERNEL_TEST_HDRS,
4664 deps = MICROKERNEL_TEST_DEPS,
4665)
4666
4667xnnpack_unit_test(
Marat Dukhan346a9e52019-11-15 09:06:30 -08004668 name = "f32_sigmoid_test",
4669 srcs = [
4670 "test/f32-sigmoid.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004671 "test/vunary-microkernel-tester.h",
Marat Dukhan346a9e52019-11-15 09:06:30 -08004672 ] + MICROKERNEL_TEST_HDRS,
4673 deps = MICROKERNEL_TEST_DEPS,
4674)
4675
4676xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07004677 name = "f32_spmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004678 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07004679 "test/f32-spmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004680 "test/spmm-microkernel-tester.h",
4681 "src/xnnpack/AlignedAllocator.h",
4682 ] + MICROKERNEL_TEST_HDRS,
4683 deps = MICROKERNEL_TEST_DEPS,
4684)
4685
4686xnnpack_unit_test(
Frank Barchardd793f6c2020-05-08 13:37:43 -07004687 name = "f16_vadd_minmax_test",
4688 srcs = [
4689 "test/f16-vadd-minmax.cc",
4690 "test/vbinary-microkernel-tester.h",
4691 ] + MICROKERNEL_TEST_HDRS,
4692 deps = MICROKERNEL_TEST_DEPS,
4693)
4694
4695xnnpack_unit_test(
4696 name = "f16_vaddc_minmax_test",
4697 srcs = [
4698 "test/f16-vaddc-minmax.cc",
4699 "test/vbinaryc-microkernel-tester.h",
4700 ] + MICROKERNEL_TEST_HDRS,
4701 deps = MICROKERNEL_TEST_DEPS,
4702)
4703
4704xnnpack_unit_test(
4705 name = "f16_vdiv_minmax_test",
4706 srcs = [
4707 "test/f16-vdiv-minmax.cc",
4708 "test/vbinary-microkernel-tester.h",
4709 ] + MICROKERNEL_TEST_HDRS,
4710 deps = MICROKERNEL_TEST_DEPS,
4711)
4712
4713xnnpack_unit_test(
4714 name = "f16_vdivc_minmax_test",
4715 srcs = [
4716 "test/f16-vdivc-minmax.cc",
4717 "test/vbinaryc-microkernel-tester.h",
4718 ] + MICROKERNEL_TEST_HDRS,
4719 deps = MICROKERNEL_TEST_DEPS,
4720)
4721
4722xnnpack_unit_test(
4723 name = "f16_vrdivc_minmax_test",
4724 srcs = [
4725 "test/f16-vrdivc-minmax.cc",
4726 "test/vbinaryc-microkernel-tester.h",
4727 ] + MICROKERNEL_TEST_HDRS,
4728 deps = MICROKERNEL_TEST_DEPS,
4729)
4730
4731xnnpack_unit_test(
4732 name = "f16_vmax_test",
4733 srcs = [
4734 "test/f16-vmax.cc",
4735 "test/vbinary-microkernel-tester.h",
4736 ] + MICROKERNEL_TEST_HDRS,
4737 deps = MICROKERNEL_TEST_DEPS,
4738)
4739
4740xnnpack_unit_test(
4741 name = "f16_vmaxc_test",
4742 srcs = [
4743 "test/f16-vmaxc.cc",
4744 "test/vbinaryc-microkernel-tester.h",
4745 ] + MICROKERNEL_TEST_HDRS,
4746 deps = MICROKERNEL_TEST_DEPS,
4747)
4748
4749xnnpack_unit_test(
4750 name = "f16_vmin_test",
4751 srcs = [
4752 "test/f16-vmin.cc",
4753 "test/vbinary-microkernel-tester.h",
4754 ] + MICROKERNEL_TEST_HDRS,
4755 deps = MICROKERNEL_TEST_DEPS,
4756)
4757
4758xnnpack_unit_test(
4759 name = "f16_vminc_test",
4760 srcs = [
4761 "test/f16-vminc.cc",
4762 "test/vbinaryc-microkernel-tester.h",
4763 ] + MICROKERNEL_TEST_HDRS,
4764 deps = MICROKERNEL_TEST_DEPS,
4765)
4766
4767xnnpack_unit_test(
4768 name = "f16_vmul_minmax_test",
4769 srcs = [
4770 "test/f16-vmul-minmax.cc",
4771 "test/vbinary-microkernel-tester.h",
4772 ] + MICROKERNEL_TEST_HDRS,
4773 deps = MICROKERNEL_TEST_DEPS,
4774)
4775
4776xnnpack_unit_test(
4777 name = "f16_vmulc_minmax_test",
4778 srcs = [
4779 "test/f16-vmulc-minmax.cc",
4780 "test/vbinaryc-microkernel-tester.h",
4781 ] + MICROKERNEL_TEST_HDRS,
4782 deps = MICROKERNEL_TEST_DEPS,
4783)
4784
4785xnnpack_unit_test(
4786 name = "f16_vsub_minmax_test",
4787 srcs = [
4788 "test/f16-vsub-minmax.cc",
4789 "test/vbinary-microkernel-tester.h",
4790 ] + MICROKERNEL_TEST_HDRS,
4791 deps = MICROKERNEL_TEST_DEPS,
4792)
4793
4794xnnpack_unit_test(
4795 name = "f16_vsubc_minmax_test",
4796 srcs = [
4797 "test/f16-vsubc-minmax.cc",
4798 "test/vbinaryc-microkernel-tester.h",
4799 ] + MICROKERNEL_TEST_HDRS,
4800 deps = MICROKERNEL_TEST_DEPS,
4801)
4802
4803xnnpack_unit_test(
4804 name = "f16_vrsubc_minmax_test",
4805 srcs = [
4806 "test/f16-vrsubc-minmax.cc",
4807 "test/vbinaryc-microkernel-tester.h",
4808 ] + MICROKERNEL_TEST_HDRS,
4809 deps = MICROKERNEL_TEST_DEPS,
4810)
4811
4812xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07004813 name = "f32_vabs_test",
4814 srcs = [
4815 "test/f32-vabs.cc",
4816 "test/vunary-microkernel-tester.h",
4817 ] + MICROKERNEL_TEST_HDRS,
4818 deps = MICROKERNEL_TEST_DEPS,
4819)
4820
4821xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004822 name = "f32_vadd_test",
4823 srcs = [
4824 "test/f32-vadd.cc",
4825 "test/vbinary-microkernel-tester.h",
4826 ] + MICROKERNEL_TEST_HDRS,
4827 deps = MICROKERNEL_TEST_DEPS,
4828)
4829
4830xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004831 name = "f32_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004832 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004833 "test/f32-vadd-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004834 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004835 ] + MICROKERNEL_TEST_HDRS,
4836 deps = MICROKERNEL_TEST_DEPS,
4837)
4838
4839xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004840 name = "f32_vaddc_test",
4841 srcs = [
4842 "test/f32-vaddc.cc",
4843 "test/vbinaryc-microkernel-tester.h",
4844 ] + MICROKERNEL_TEST_HDRS,
4845 deps = MICROKERNEL_TEST_DEPS,
4846)
4847
4848xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004849 name = "f32_vaddc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004850 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004851 "test/f32-vaddc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004852 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004853 ] + MICROKERNEL_TEST_HDRS,
4854 deps = MICROKERNEL_TEST_DEPS,
4855)
4856
4857xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004858 name = "f32_vdiv_test",
4859 srcs = [
4860 "test/f32-vdiv.cc",
4861 "test/vbinary-microkernel-tester.h",
4862 ] + MICROKERNEL_TEST_HDRS,
4863 deps = MICROKERNEL_TEST_DEPS,
4864)
4865
4866xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004867 name = "f32_vdiv_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004868 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004869 "test/f32-vdiv-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004870 "test/vbinary-microkernel-tester.h",
4871 ] + MICROKERNEL_TEST_HDRS,
4872 deps = MICROKERNEL_TEST_DEPS,
4873)
4874
4875xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004876 name = "f32_vdivc_test",
4877 srcs = [
4878 "test/f32-vdivc.cc",
4879 "test/vbinaryc-microkernel-tester.h",
4880 ] + MICROKERNEL_TEST_HDRS,
4881 deps = MICROKERNEL_TEST_DEPS,
4882)
4883
4884xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004885 name = "f32_vdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004886 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004887 "test/f32-vdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004888 "test/vbinaryc-microkernel-tester.h",
4889 ] + MICROKERNEL_TEST_HDRS,
4890 deps = MICROKERNEL_TEST_DEPS,
4891)
4892
4893xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004894 name = "f32_vrdivc_test",
4895 srcs = [
4896 "test/f32-vrdivc.cc",
4897 "test/vbinaryc-microkernel-tester.h",
4898 ] + MICROKERNEL_TEST_HDRS,
4899 deps = MICROKERNEL_TEST_DEPS,
4900)
4901
4902xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004903 name = "f32_vrdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004904 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004905 "test/f32-vrdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004906 "test/vbinaryc-microkernel-tester.h",
4907 ] + MICROKERNEL_TEST_HDRS,
4908 deps = MICROKERNEL_TEST_DEPS,
4909)
4910
4911xnnpack_unit_test(
Marat Dukhan403b7d42019-12-05 12:49:11 -08004912 name = "f32_vmax_test",
4913 srcs = [
4914 "test/f32-vmax.cc",
4915 "test/vbinary-microkernel-tester.h",
4916 ] + MICROKERNEL_TEST_HDRS,
4917 deps = MICROKERNEL_TEST_DEPS,
4918)
4919
4920xnnpack_unit_test(
4921 name = "f32_vmaxc_test",
4922 srcs = [
4923 "test/f32-vmaxc.cc",
4924 "test/vbinaryc-microkernel-tester.h",
4925 ] + MICROKERNEL_TEST_HDRS,
4926 deps = MICROKERNEL_TEST_DEPS,
4927)
4928
4929xnnpack_unit_test(
4930 name = "f32_vmin_test",
4931 srcs = [
4932 "test/f32-vmin.cc",
4933 "test/vbinary-microkernel-tester.h",
4934 ] + MICROKERNEL_TEST_HDRS,
4935 deps = MICROKERNEL_TEST_DEPS,
4936)
4937
4938xnnpack_unit_test(
4939 name = "f32_vminc_test",
4940 srcs = [
4941 "test/f32-vminc.cc",
4942 "test/vbinaryc-microkernel-tester.h",
4943 ] + MICROKERNEL_TEST_HDRS,
4944 deps = MICROKERNEL_TEST_DEPS,
4945)
4946
4947xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004948 name = "f32_vmul_test",
4949 srcs = [
4950 "test/f32-vmul.cc",
4951 "test/vbinary-microkernel-tester.h",
4952 ] + MICROKERNEL_TEST_HDRS,
4953 deps = MICROKERNEL_TEST_DEPS,
4954)
4955
4956xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004957 name = "f32_vmul_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004958 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004959 "test/f32-vmul-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004960 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004961 ] + MICROKERNEL_TEST_HDRS,
4962 deps = MICROKERNEL_TEST_DEPS,
4963)
4964
4965xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004966 name = "f32_vmulc_test",
4967 srcs = [
4968 "test/f32-vmulc.cc",
4969 "test/vbinaryc-microkernel-tester.h",
4970 ] + MICROKERNEL_TEST_HDRS,
4971 deps = MICROKERNEL_TEST_DEPS,
4972)
4973
4974xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004975 name = "f32_vmulc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004976 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004977 "test/f32-vmulc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004978 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004979 ] + MICROKERNEL_TEST_HDRS,
4980 deps = MICROKERNEL_TEST_DEPS,
4981)
4982
4983xnnpack_unit_test(
Frank Barchard2a1049c2020-06-03 02:31:27 -07004984 name = "f16_vmulcaddc_minmax_test",
4985 srcs = [
4986 "test/f16-vmulcaddc-minmax.cc",
4987 "test/vmulcaddc-microkernel-tester.h",
4988 "src/xnnpack/AlignedAllocator.h",
4989 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004990 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard2a1049c2020-06-03 02:31:27 -07004991)
4992
4993xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004994 name = "f32_vmulcaddc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004995 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004996 "test/f32-vmulcaddc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004997 "test/vmulcaddc-microkernel-tester.h",
4998 "src/xnnpack/AlignedAllocator.h",
4999 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005000 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005001)
5002
5003xnnpack_unit_test(
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07005004 name = "f32_vlrelu_test",
5005 srcs = [
5006 "test/f32-vlrelu.cc",
5007 "test/vunary-microkernel-tester.h",
5008 ] + MICROKERNEL_TEST_HDRS,
5009 deps = MICROKERNEL_TEST_DEPS,
5010)
5011
5012xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005013 name = "f32_vneg_test",
5014 srcs = [
5015 "test/f32-vneg.cc",
5016 "test/vunary-microkernel-tester.h",
5017 ] + MICROKERNEL_TEST_HDRS,
5018 deps = MICROKERNEL_TEST_DEPS,
5019)
5020
5021xnnpack_unit_test(
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07005022 name = "f32_vrndne_test",
5023 srcs = [
5024 "test/f32-vrndne.cc",
5025 "test/vunary-microkernel-tester.h",
5026 ] + MICROKERNEL_TEST_HDRS,
5027 deps = MICROKERNEL_TEST_DEPS,
5028)
5029
5030xnnpack_unit_test(
5031 name = "f32_vrndz_test",
5032 srcs = [
5033 "test/f32-vrndz.cc",
5034 "test/vunary-microkernel-tester.h",
5035 ] + MICROKERNEL_TEST_HDRS,
5036 deps = MICROKERNEL_TEST_DEPS,
5037)
5038
5039xnnpack_unit_test(
5040 name = "f32_vrndu_test",
5041 srcs = [
5042 "test/f32-vrndu.cc",
5043 "test/vunary-microkernel-tester.h",
5044 ] + MICROKERNEL_TEST_HDRS,
5045 deps = MICROKERNEL_TEST_DEPS,
5046)
5047
5048xnnpack_unit_test(
5049 name = "f32_vrndd_test",
5050 srcs = [
5051 "test/f32-vrndd.cc",
5052 "test/vunary-microkernel-tester.h",
5053 ] + MICROKERNEL_TEST_HDRS,
5054 deps = MICROKERNEL_TEST_DEPS,
5055)
5056
5057xnnpack_unit_test(
Marat Dukhan05ac8e32019-10-21 15:39:33 -07005058 name = "f32_vscale_test",
5059 srcs = [
5060 "test/f32-vscale.cc",
5061 "test/vscale-microkernel-tester.h",
5062 ] + MICROKERNEL_TEST_HDRS,
5063 deps = MICROKERNEL_TEST_DEPS,
5064)
5065
5066xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07005067 name = "f32_vscaleexpminusmax_test",
5068 srcs = [
5069 "test/f32-vscaleexpminusmax.cc",
5070 "test/vscaleexpminusmax-microkernel-tester.h",
5071 ] + MICROKERNEL_TEST_HDRS,
5072 deps = MICROKERNEL_TEST_DEPS,
5073)
5074
5075xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07005076 name = "f32_vscaleextexp_test",
5077 srcs = [
5078 "test/f32-vscaleextexp.cc",
5079 "test/vscaleextexp-microkernel-tester.h",
5080 ] + MICROKERNEL_TEST_HDRS,
5081 deps = MICROKERNEL_TEST_DEPS,
5082)
5083
5084xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005085 name = "f32_vsqr_test",
5086 srcs = [
5087 "test/f32-vsqr.cc",
5088 "test/vunary-microkernel-tester.h",
5089 ] + MICROKERNEL_TEST_HDRS,
5090 deps = MICROKERNEL_TEST_DEPS,
5091)
5092
5093xnnpack_unit_test(
Marat Dukhan13bafb02020-06-05 00:43:11 -07005094 name = "f32_vsqrdiff_test",
5095 srcs = [
5096 "test/f32-vsqrdiff.cc",
5097 "test/vbinary-microkernel-tester.h",
5098 ] + MICROKERNEL_TEST_HDRS,
5099 deps = MICROKERNEL_TEST_DEPS,
5100)
5101
5102xnnpack_unit_test(
5103 name = "f32_vsqrdiffc_test",
5104 srcs = [
5105 "test/f32-vsqrdiffc.cc",
5106 "test/vbinaryc-microkernel-tester.h",
5107 ] + MICROKERNEL_TEST_HDRS,
5108 deps = MICROKERNEL_TEST_DEPS,
5109)
5110
5111xnnpack_unit_test(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07005112 name = "f32_vsqrt_test",
5113 srcs = [
5114 "test/f32-vsqrt.cc",
5115 "test/vunary-microkernel-tester.h",
5116 ] + MICROKERNEL_TEST_HDRS,
5117 deps = MICROKERNEL_TEST_DEPS,
5118)
5119
5120xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005121 name = "f32_vsub_test",
5122 srcs = [
5123 "test/f32-vsub.cc",
5124 "test/vbinary-microkernel-tester.h",
5125 ] + MICROKERNEL_TEST_HDRS,
5126 deps = MICROKERNEL_TEST_DEPS,
5127)
5128
5129xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005130 name = "f32_vsub_minmax_test",
Marat Dukhan97579532019-10-18 16:40:39 -07005131 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005132 "test/f32-vsub-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005133 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005134 ] + MICROKERNEL_TEST_HDRS,
5135 deps = MICROKERNEL_TEST_DEPS,
5136)
5137
5138xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005139 name = "f32_vsubc_test",
5140 srcs = [
5141 "test/f32-vsubc.cc",
5142 "test/vbinaryc-microkernel-tester.h",
5143 ] + MICROKERNEL_TEST_HDRS,
5144 deps = MICROKERNEL_TEST_DEPS,
5145)
5146
5147xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005148 name = "f32_vsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005149 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005150 "test/f32-vsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005151 "test/vbinaryc-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005152 ] + MICROKERNEL_TEST_HDRS,
5153 deps = MICROKERNEL_TEST_DEPS,
5154)
5155
5156xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005157 name = "f32_vrsubc_test",
5158 srcs = [
5159 "test/f32-vrsubc.cc",
5160 "test/vbinaryc-microkernel-tester.h",
5161 ] + MICROKERNEL_TEST_HDRS,
5162 deps = MICROKERNEL_TEST_DEPS,
5163)
5164
5165xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005166 name = "f32_vrsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005167 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005168 "test/f32-vrsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005169 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan97579532019-10-18 16:40:39 -07005170 ] + MICROKERNEL_TEST_HDRS,
5171 deps = MICROKERNEL_TEST_DEPS,
5172)
5173
5174xnnpack_unit_test(
Marat Dukhan595e1702020-07-31 10:12:52 -07005175 name = "qs8_gemm_minmax_test",
5176 srcs = [
5177 "test/qs8-gemm-minmax.cc",
5178 "test/gemm-microkernel-tester.h",
5179 "src/xnnpack/AlignedAllocator.h",
5180 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
5181 deps = MICROKERNEL_TEST_DEPS + [":packing"],
5182)
5183
5184xnnpack_unit_test(
Marat Dukhanf9480682020-07-31 14:50:24 -07005185 name = "qs8_igemm_minmax_test",
5186 srcs = [
5187 "test/qs8-igemm-minmax.cc",
5188 "test/gemm-microkernel-tester.h",
5189 "src/xnnpack/AlignedAllocator.h",
5190 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
5191 deps = MICROKERNEL_TEST_DEPS + [":packing"],
5192)
5193
5194xnnpack_unit_test(
5195 name = "qs8_requantization_test",
5196 srcs = [
5197 "src/xnnpack/requantization-stubs.h",
5198 "test/qs8-requantization.cc",
5199 "test/requantization-tester.h",
5200 ] + MICROKERNEL_TEST_HDRS,
5201 deps = MICROKERNEL_TEST_DEPS,
5202)
5203
5204xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005205 name = "qu8_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005206 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005207 "test/qu8-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005208 "test/avgpool-microkernel-tester.h",
5209 "src/xnnpack/AlignedAllocator.h",
5210 ] + MICROKERNEL_TEST_HDRS,
5211 deps = MICROKERNEL_TEST_DEPS,
5212)
5213
5214xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005215 name = "qu8_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005216 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005217 "test/qu8-igemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005218 "test/gemm-microkernel-tester.h",
5219 "src/xnnpack/AlignedAllocator.h",
5220 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005221 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005222)
5223
5224xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005225 name = "qu8_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005226 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005227 "test/qu8-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005228 "test/dwconv-microkernel-tester.h",
5229 "src/xnnpack/AlignedAllocator.h",
5230 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005231 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005232)
5233
5234xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005235 name = "qu8_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005236 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005237 "test/qu8-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005238 "test/gavgpool-microkernel-tester.h",
5239 "src/xnnpack/AlignedAllocator.h",
5240 ] + MICROKERNEL_TEST_HDRS,
5241 deps = MICROKERNEL_TEST_DEPS,
5242)
5243
5244xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005245 name = "qu8_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005246 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005247 "test/qu8-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005248 "test/gemm-microkernel-tester.h",
5249 "src/xnnpack/AlignedAllocator.h",
5250 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005251 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005252)
5253
5254xnnpack_unit_test(
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07005255 name = "qu8_requantization_test",
5256 srcs = [
5257 "src/xnnpack/requantization-stubs.h",
5258 "test/qu8-requantization.cc",
5259 "test/requantization-tester.h",
5260 ] + MICROKERNEL_TEST_HDRS,
5261 deps = MICROKERNEL_TEST_DEPS,
5262)
5263
5264xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005265 name = "qu8_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005266 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005267 "test/qu8-vadd-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005268 "test/vadd-microkernel-tester.h",
5269 ] + MICROKERNEL_TEST_HDRS,
5270 deps = MICROKERNEL_TEST_DEPS,
5271)
5272
5273xnnpack_unit_test(
5274 name = "u8_clamp_test",
5275 srcs = [
5276 "test/u8-clamp.cc",
5277 "test/clamp-microkernel-tester.h",
5278 ] + MICROKERNEL_TEST_HDRS,
5279 deps = MICROKERNEL_TEST_DEPS,
5280)
5281
5282xnnpack_unit_test(
5283 name = "u8_lut32norm_test",
5284 srcs = [
5285 "test/u8-lut32norm.cc",
5286 "test/lut-norm-microkernel-tester.h",
5287 ] + MICROKERNEL_TEST_HDRS,
5288 deps = MICROKERNEL_TEST_DEPS,
5289)
5290
5291xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005292 name = "u8_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005293 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005294 "test/u8-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005295 "test/maxpool-microkernel-tester.h",
5296 ] + MICROKERNEL_TEST_HDRS,
5297 deps = MICROKERNEL_TEST_DEPS,
5298)
5299
5300xnnpack_unit_test(
5301 name = "u8_rmax_test",
5302 srcs = [
5303 "test/u8-rmax.cc",
5304 "test/rmax-microkernel-tester.h",
5305 ] + MICROKERNEL_TEST_HDRS,
5306 deps = MICROKERNEL_TEST_DEPS,
5307)
5308
5309xnnpack_unit_test(
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07005310 name = "x32_fill_test",
5311 srcs = [
5312 "test/x32-fill.cc",
5313 "test/fill-microkernel-tester.h",
5314 ] + MICROKERNEL_TEST_HDRS,
5315 deps = MICROKERNEL_TEST_DEPS,
5316)
5317
5318xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005319 name = "x32_packx_test",
5320 srcs = [
5321 "test/x32-packx.cc",
5322 "test/pack-microkernel-tester.h",
5323 "src/xnnpack/AlignedAllocator.h",
5324 ] + MICROKERNEL_TEST_HDRS,
5325 deps = MICROKERNEL_TEST_DEPS,
5326)
5327
5328xnnpack_unit_test(
5329 name = "x32_pad_test",
5330 srcs = [
5331 "test/x32-pad.cc",
5332 "test/pad-microkernel-tester.h",
5333 ] + MICROKERNEL_TEST_HDRS,
5334 deps = MICROKERNEL_TEST_DEPS,
5335)
5336
5337xnnpack_unit_test(
5338 name = "x32_unpool_test",
5339 srcs = [
5340 "test/x32-unpool.cc",
5341 "test/unpool-microkernel-tester.h",
5342 ] + MICROKERNEL_TEST_HDRS,
5343 deps = MICROKERNEL_TEST_DEPS,
5344)
5345
5346xnnpack_unit_test(
5347 name = "x32_zip_test",
5348 srcs = [
5349 "test/x32-zip.cc",
5350 "test/zip-microkernel-tester.h",
5351 ] + MICROKERNEL_TEST_HDRS,
5352 deps = MICROKERNEL_TEST_DEPS,
5353)
5354
5355xnnpack_unit_test(
5356 name = "x8_lut_test",
5357 srcs = [
5358 "test/x8-lut.cc",
5359 "test/lut-microkernel-tester.h",
5360 ] + MICROKERNEL_TEST_HDRS,
5361 deps = MICROKERNEL_TEST_DEPS,
5362)
5363
5364xnnpack_unit_test(
5365 name = "x8_zip_test",
5366 srcs = [
5367 "test/x8-zip.cc",
5368 "test/zip-microkernel-tester.h",
5369 ] + MICROKERNEL_TEST_HDRS,
5370 deps = MICROKERNEL_TEST_DEPS,
5371)
5372
Marat Dukhan20c3b922020-03-10 03:45:06 -07005373########################## Size tests for the library #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07005374
5375xnnpack_binary(
Marat Dukhan20c3b922020-03-10 03:45:06 -07005376 name = "operator_size_test",
5377 srcs = ["test/operator-size.c"],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07005378 deps = [":xnnpack_operators_nhwc_f32"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005379)
5380
Marat Dukhan20c3b922020-03-10 03:45:06 -07005381xnnpack_binary(
5382 name = "subgraph_size_test",
5383 srcs = ["test/subgraph-size.c"],
5384 deps = [":XNNPACK"],
5385)
5386
5387########################### Unit tests for operators ##########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07005388
5389xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005390 name = "abs_nc_test",
5391 srcs = [
5392 "test/abs-nc.cc",
5393 "test/abs-operator-tester.h",
5394 ],
5395 deps = OPERATOR_TEST_DEPS,
5396)
5397
5398xnnpack_unit_test(
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005399 name = "add_nd_test",
5400 srcs = [
5401 "test/add-nd.cc",
5402 "test/binary-elementwise-operator-tester.h",
5403 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005404 deps = OPERATOR_TEST_DEPS,
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005405)
5406
5407xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005408 name = "argmax_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005409 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005410 "test/argmax-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005411 "test/argmax-pooling-operator-tester.h",
5412 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005413 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005414)
5415
5416xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005417 name = "average_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005418 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005419 "test/average-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005420 "test/average-pooling-operator-tester.h",
5421 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005422 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005423)
5424
5425xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005426 name = "bankers_rounding_nc_test",
5427 srcs = [
5428 "test/bankers-rounding-nc.cc",
5429 "test/bankers-rounding-operator-tester.h",
5430 ],
5431 deps = OPERATOR_TEST_DEPS,
5432)
5433
5434xnnpack_unit_test(
5435 name = "ceiling_nc_test",
5436 srcs = [
5437 "test/ceiling-nc.cc",
5438 "test/ceiling-operator-tester.h",
5439 ],
5440 deps = OPERATOR_TEST_DEPS,
5441)
5442
5443xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005444 name = "channel_shuffle_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005445 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005446 "test/channel-shuffle-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005447 "test/channel-shuffle-operator-tester.h",
5448 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005449 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005450)
5451
5452xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005453 name = "clamp_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005454 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005455 "test/clamp-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005456 "test/clamp-operator-tester.h",
5457 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005458 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005459)
5460
5461xnnpack_unit_test(
Marat Dukhan065b11e2020-05-22 09:49:41 -07005462 name = "constant_pad_nd_test",
5463 srcs = [
5464 "test/constant-pad-nd.cc",
5465 "test/constant-pad-operator-tester.h",
5466 ],
5467 deps = OPERATOR_TEST_DEPS,
5468)
5469
5470xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005471 name = "convolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005472 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005473 "test/convolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005474 "test/convolution-operator-tester.h",
5475 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005476 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005477)
5478
5479xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005480 name = "convolution_nchw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005481 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005482 "test/convolution-nchw.cc",
5483 "test/convolution-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005484 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005485 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005486)
5487
5488xnnpack_unit_test(
Marat Dukhan4e21b272020-06-04 18:45:01 -07005489 name = "copy_nc_test",
5490 srcs = [
5491 "test/copy-nc.cc",
5492 "test/copy-operator-tester.h",
5493 ],
5494 deps = OPERATOR_TEST_DEPS,
5495)
5496
5497xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005498 name = "deconvolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005499 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005500 "test/deconvolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005501 "test/deconvolution-operator-tester.h",
5502 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005503 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005504)
5505
5506xnnpack_unit_test(
Marat Dukhan69180502019-12-06 15:00:31 -08005507 name = "divide_nd_test",
5508 srcs = [
5509 "test/binary-elementwise-operator-tester.h",
5510 "test/divide-nd.cc",
5511 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005512 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69180502019-12-06 15:00:31 -08005513)
5514
5515xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005516 name = "fully_connected_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005517 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005518 "test/fully-connected-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005519 "test/fully-connected-operator-tester.h",
5520 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005521 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005522)
5523
5524xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005525 name = "floor_nc_test",
5526 srcs = [
5527 "test/floor-nc.cc",
5528 "test/floor-operator-tester.h",
5529 ],
5530 deps = OPERATOR_TEST_DEPS,
5531)
5532
5533xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005534 name = "global_average_pooling_nwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005535 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005536 "test/global-average-pooling-nwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005537 "test/global-average-pooling-operator-tester.h",
Marat Dukhanef61d022020-06-19 13:54:49 -07005538 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005539 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005540)
5541
5542xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005543 name = "global_average_pooling_ncw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005544 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005545 "test/global-average-pooling-ncw.cc",
5546 "test/global-average-pooling-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005547 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005548 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005549)
5550
5551xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005552 name = "hardswish_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005553 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005554 "test/hardswish-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005555 "test/hardswish-operator-tester.h",
5556 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005557 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005558)
5559
5560xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005561 name = "leaky_relu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005562 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005563 "test/leaky-relu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005564 "test/leaky-relu-operator-tester.h",
5565 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005566 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005567)
5568
5569xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005570 name = "max_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005571 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005572 "test/max-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005573 "test/max-pooling-operator-tester.h",
5574 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005575 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005576)
5577
5578xnnpack_unit_test(
Marat Dukhan79e7f842019-12-05 14:35:50 -08005579 name = "maximum_nd_test",
5580 srcs = [
5581 "test/binary-elementwise-operator-tester.h",
5582 "test/maximum-nd.cc",
5583 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005584 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08005585)
5586
5587xnnpack_unit_test(
5588 name = "minimum_nd_test",
5589 srcs = [
5590 "test/binary-elementwise-operator-tester.h",
5591 "test/minimum-nd.cc",
5592 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005593 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08005594)
5595
5596xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005597 name = "multiply_nd_test",
Marat Dukhanca2733c2019-11-15 23:21:17 -08005598 srcs = [
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005599 "test/binary-elementwise-operator-tester.h",
Marat Dukhanefc47b82019-11-18 09:25:38 -08005600 "test/multiply-nd.cc",
Marat Dukhanca2733c2019-11-15 23:21:17 -08005601 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005602 deps = OPERATOR_TEST_DEPS,
Marat Dukhanca2733c2019-11-15 23:21:17 -08005603)
5604
5605xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005606 name = "negate_nc_test",
5607 srcs = [
5608 "test/negate-nc.cc",
5609 "test/negate-operator-tester.h",
5610 ],
5611 deps = OPERATOR_TEST_DEPS,
5612)
5613
5614xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005615 name = "prelu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005616 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005617 "test/prelu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005618 "test/prelu-operator-tester.h",
5619 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005620 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005621)
5622
5623xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005624 name = "resize_bilinear_nhwc_test",
Marat Dukhan69722492019-11-11 19:55:50 -08005625 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005626 "test/resize-bilinear-nhwc.cc",
Marat Dukhan69722492019-11-11 19:55:50 -08005627 "test/resize-bilinear-operator-tester.h",
5628 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005629 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69722492019-11-11 19:55:50 -08005630)
5631
5632xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005633 name = "sigmoid_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005634 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005635 "test/sigmoid-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005636 "test/sigmoid-operator-tester.h",
5637 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005638 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005639)
5640
5641xnnpack_unit_test(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08005642 name = "softmax_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005643 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08005644 "test/softmax-nc.cc",
5645 "test/softmax-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005646 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005647 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005648)
5649
5650xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005651 name = "square_nc_test",
5652 srcs = [
5653 "test/square-nc.cc",
5654 "test/square-operator-tester.h",
5655 ],
5656 deps = OPERATOR_TEST_DEPS,
5657)
5658
5659xnnpack_unit_test(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07005660 name = "square_root_nc_test",
5661 srcs = [
5662 "test/square-root-nc.cc",
5663 "test/square-root-operator-tester.h",
5664 ],
5665 deps = OPERATOR_TEST_DEPS,
5666)
5667
5668xnnpack_unit_test(
Marat Dukhanf7399262020-06-05 10:58:44 -07005669 name = "squared_difference_nd_test",
5670 srcs = [
5671 "test/binary-elementwise-operator-tester.h",
5672 "test/squared-difference-nd.cc",
5673 ],
5674 deps = OPERATOR_TEST_DEPS,
5675)
5676
5677xnnpack_unit_test(
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08005678 name = "subtract_nd_test",
5679 srcs = [
5680 "test/binary-elementwise-operator-tester.h",
5681 "test/subtract-nd.cc",
5682 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005683 deps = OPERATOR_TEST_DEPS,
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08005684)
5685
5686xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005687 name = "truncation_nc_test",
5688 srcs = [
5689 "test/truncation-nc.cc",
5690 "test/truncation-operator-tester.h",
5691 ],
5692 deps = OPERATOR_TEST_DEPS,
5693)
5694
5695xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005696 name = "unpooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005697 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005698 "test/unpooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005699 "test/unpooling-operator-tester.h",
5700 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005701 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005702)
5703
Chao Mei6ddfc602020-05-13 22:29:36 -07005704############################### Misc unit tests ###############################
5705
5706xnnpack_unit_test(
5707 name = "memory_planner_test",
5708 srcs = [
5709 "test/memory-planner-test.cc",
5710 ],
5711 deps = [
5712 ":XNNPACK",
5713 ":memory_planner",
5714 ],
5715)
5716
Marat Dukhan08c4a432019-10-03 09:29:21 -07005717############################# Build configurations #############################
5718
Marat Dukhanb8642352019-10-30 15:43:02 -07005719# Enables usage of assembly kernels.
Marat Dukhan08c4a432019-10-03 09:29:21 -07005720config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07005721 name = "xnn_enable_assembly_explicit_true",
5722 define_values = {"xnn_enable_assembly": "true"},
5723)
5724
5725# Disables usage of assembly kernels.
5726config_setting(
5727 name = "xnn_enable_assembly_explicit_false",
5728 define_values = {"xnn_enable_assembly": "false"},
5729)
5730
Marat Dukhan9de90e02020-06-18 16:04:12 -07005731# Enables usage of sparse inference.
5732config_setting(
5733 name = "xnn_enable_sparse_explicit_true",
5734 define_values = {"xnn_enable_sparse": "true"},
5735)
5736
5737# Disables usage of sparse inference.
5738config_setting(
5739 name = "xnn_enable_sparse_explicit_false",
5740 define_values = {"xnn_enable_sparse": "false"},
5741)
5742
Marat Dukhan05702cf2020-03-26 15:41:33 -07005743# Disables usage of HMP-aware optimizations.
5744config_setting(
5745 name = "xnn_enable_hmp_explicit_false",
5746 define_values = {"xnn_enable_hmp": "false"},
5747)
5748
Chao Mei6ddfc602020-05-13 22:29:36 -07005749# Enable usage of optimized memory allocation
5750config_setting(
5751 name = "xnn_enable_memopt_explicit_true",
5752 define_values = {"xnnpack_enable_memopt": "true"},
5753)
5754
5755# Disable usage of optimized memory allocation
5756config_setting(
5757 name = "xnn_enable_memopt_explicit_false",
5758 define_values = {"xnnpack_enable_memopt": "false"},
5759)
5760
Marat Dukhanb8642352019-10-30 15:43:02 -07005761# Builds with -c dbg
5762config_setting(
5763 name = "debug_build",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005764 values = {
Marat Dukhanb8642352019-10-30 15:43:02 -07005765 "compilation_mode": "dbg",
5766 },
5767)
5768
5769# Builds with -c opt
5770config_setting(
5771 name = "optimized_build",
5772 values = {
5773 "compilation_mode": "opt",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005774 },
5775)
5776
5777config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07005778 name = "linux_k8",
5779 values = {"cpu": "k8"},
5780)
5781
5782config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07005783 name = "linux_arm",
5784 values = {"cpu": "arm"},
Marat Dukhan4e45e662019-10-03 15:40:24 -07005785)
5786
5787config_setting(
Marat Dukhanf0bd4de2020-06-15 15:53:19 -07005788 name = "linux_armeabi",
5789 values = {"cpu": "armeabi"},
5790)
5791
5792config_setting(
Terry Heo68eef3f2020-04-13 22:53:52 -07005793 name = "linux_armhf",
5794 values = {"cpu": "armhf"},
5795)
5796
5797config_setting(
Marat Dukhana720e932020-06-10 13:01:11 -07005798 name = "linux_armv7a",
5799 values = {"cpu": "armv7a"},
5800)
5801
5802config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07005803 name = "linux_aarch64",
5804 values = {"cpu": "aarch64"},
5805)
5806
5807config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005808 name = "android",
5809 values = {"crosstool_top": "//external:android/crosstool"},
5810)
5811
5812config_setting(
5813 name = "android_armv7",
5814 values = {
5815 "crosstool_top": "//external:android/crosstool",
5816 "cpu": "armeabi-v7a",
5817 },
5818)
5819
5820config_setting(
5821 name = "android_arm64",
5822 values = {
5823 "crosstool_top": "//external:android/crosstool",
5824 "cpu": "arm64-v8a",
5825 },
5826)
5827
5828config_setting(
5829 name = "android_x86",
5830 values = {
5831 "crosstool_top": "//external:android/crosstool",
5832 "cpu": "x86",
5833 },
5834)
5835
5836config_setting(
5837 name = "android_x86_64",
5838 values = {
5839 "crosstool_top": "//external:android/crosstool",
5840 "cpu": "x86_64",
5841 },
5842)
5843
5844config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07005845 name = "windows_x86_64",
5846 values = {"cpu": "x64_windows"},
Marat Dukhan9fe932e2020-04-11 17:14:15 -07005847)
5848
5849config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07005850 name = "windows_x86_64_clang",
5851 values = {
5852 "compiler": "clang-cl",
5853 "cpu": "x64_windows",
5854 },
5855)
5856
5857config_setting(
5858 name = "windows_x86_64_mingw",
5859 values = {
5860 "compiler": "mingw-gcc",
5861 "cpu": "x64_windows",
5862 },
5863)
5864
5865config_setting(
5866 name = "windows_x86_64_msys",
5867 values = {
5868 "compiler": "msys-gcc",
5869 "cpu": "x64_windows",
5870 },
Marat Dukhan9fe932e2020-04-11 17:14:15 -07005871)
5872
5873config_setting(
Marat Dukhan885ca242019-10-07 09:17:32 -07005874 name = "macos_x86_64",
5875 values = {
5876 "apple_platform_type": "macos",
5877 "cpu": "darwin",
5878 },
5879)
5880
5881config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005882 name = "emscripten",
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005883 values = {"crosstool_top": "//toolchain:emscripten"},
Marat Dukhan08c4a432019-10-03 09:29:21 -07005884)
5885
5886config_setting(
5887 name = "emscripten_wasm",
5888 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005889 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005890 "cpu": "wasm",
5891 },
5892)
5893
5894config_setting(
5895 name = "emscripten_wasmsimd",
5896 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005897 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005898 "cpu": "wasm",
Marat Dukhan81c62602020-05-29 13:22:49 -07005899 "copt": "-msimd128",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005900 },
5901)
5902
5903config_setting(
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005904 name = "ios_armv7",
5905 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005906 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005907 "cpu": "ios_armv7",
5908 },
5909)
5910
5911config_setting(
5912 name = "ios_arm64",
5913 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005914 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005915 "cpu": "ios_arm64",
5916 },
5917)
5918
5919config_setting(
5920 name = "ios_arm64e",
5921 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005922 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005923 "cpu": "ios_arm64e",
5924 },
5925)
5926
5927config_setting(
5928 name = "ios_x86",
5929 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005930 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005931 "cpu": "ios_i386",
5932 },
5933)
5934
5935config_setting(
5936 name = "ios_x86_64",
5937 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005938 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005939 "cpu": "ios_x86_64",
5940 },
5941)
5942
5943config_setting(
5944 name = "watchos_armv7k",
5945 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005946 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005947 "cpu": "watchos_armv7k",
5948 },
5949)
5950
5951config_setting(
5952 name = "watchos_arm64_32",
5953 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005954 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005955 "cpu": "watchos_arm64_32",
5956 },
5957)
5958
5959config_setting(
5960 name = "watchos_x86",
5961 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005962 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005963 "cpu": "watchos_i386",
5964 },
5965)
5966
5967config_setting(
5968 name = "watchos_x86_64",
5969 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005970 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005971 "cpu": "watchos_x86_64",
5972 },
5973)
5974
5975config_setting(
5976 name = "tvos_arm64",
5977 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005978 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005979 "cpu": "tvos_arm64",
5980 },
5981)
5982
5983config_setting(
5984 name = "tvos_x86_64",
5985 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005986 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005987 "cpu": "tvos_x86_64",
5988 },
5989)