blob: 350179dcf01fbd53d0f2a70b22716a0f0e9871dd [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 Dukhancc8f34c2020-08-05 16:36:38 -0700851 "src/qs8-dwconv/gen/up8x9-minmax-wasmsimd-mul16.c",
852 "src/qs8-dwconv/gen/up16x9-minmax-wasmsimd-mul16.c",
853 "src/qs8-dwconv/gen/up24x9-minmax-wasmsimd-mul16.c",
Marat Dukhan27203da2020-08-05 15:19:03 -0700854 "src/qs8-gemm/gen/1x4c8-minmax-wasmsimd-ld64.c",
855 "src/qs8-gemm/gen/2x4c8-minmax-wasmsimd-ld64.c",
856 "src/qs8-gemm/gen/3x4c8-minmax-wasmsimd-ld64.c",
857 "src/qs8-gemm/gen/1x4c8-minmax-wasmsimd-ld128.c",
858 "src/qs8-gemm/gen/2x4c8-minmax-wasmsimd-ld128.c",
859 "src/qs8-gemm/gen/3x4c8-minmax-wasmsimd-ld128.c",
860 "src/qs8-gemm/gen/1x4c8-xw-minmax-wasmsimd.c",
861 "src/qs8-gemm/gen/2x4c8-xw-minmax-wasmsimd.c",
862 "src/qs8-gemm/gen/3x4c8-xw-minmax-wasmsimd.c",
863 "src/qs8-igemm/gen/1x4c8-minmax-wasmsimd-ld64.c",
864 "src/qs8-igemm/gen/2x4c8-minmax-wasmsimd-ld64.c",
865 "src/qs8-igemm/gen/3x4c8-minmax-wasmsimd-ld64.c",
866 "src/qs8-igemm/gen/1x4c8-minmax-wasmsimd-ld128.c",
867 "src/qs8-igemm/gen/2x4c8-minmax-wasmsimd-ld128.c",
868 "src/qs8-igemm/gen/3x4c8-minmax-wasmsimd-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -0700869 "src/qs8-requantization/fp32-wasmsimd.c",
Marat Dukhan138560c2020-08-03 18:57:34 -0700870 "src/qs8-requantization/q31-wasmsimd.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -0700871 "src/qu8-requantization/fp32-wasmsimd.c",
Marat Dukhan22de5e72020-08-03 21:53:18 -0700872 "src/qu8-requantization/q31-wasmsimd.c",
Marat Dukhan8ee37012020-07-16 13:17:13 -0700873 "src/x32-fill/wasmsimd.c",
Marat Dukhan66d99e92020-07-16 12:56:21 -0700874 "src/x32-packx/x4-wasmsimd.c",
Marat Dukhan9306ae02020-07-16 15:51:13 -0700875 "src/x32-pad/wasmsimd.c",
Marat Dukhan9d4bfa22020-07-16 19:07:04 -0700876 "src/x32-unpool/wasmsimd.c",
Marat Dukhane3b78762020-07-16 20:02:58 -0700877 "src/x32-zip/x2-wasmsimd.c",
878 "src/x32-zip/x3-wasmsimd.c",
879 "src/x32-zip/x4-wasmsimd.c",
880 "src/x32-zip/xm-wasmsimd.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700881 "src/math/roundne-wasmsimd-addsub.c",
882 "src/math/roundd-wasmsimd-addsub.c",
Marat Dukhan88da62c2020-07-15 17:56:09 -0700883 "src/math/roundd-wasmsimd-cvt.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700884 "src/math/roundu-wasmsimd-addsub.c",
Marat Dukhan88da62c2020-07-15 17:56:09 -0700885 "src/math/roundu-wasmsimd-cvt.c",
Marat Dukhand3f3d872020-06-24 13:08:25 -0700886 "src/math/roundz-wasmsimd-addsub.c",
Marat Dukhan88da62c2020-07-15 17:56:09 -0700887 "src/math/roundz-wasmsimd-cvt.c",
Marat Dukhan773da432020-07-17 18:55:36 -0700888 "src/math/sigmoid-wasmsimd-rr2-lut64-p2-div.c",
889 "src/math/sigmoid-wasmsimd-rr2-p5-div.c",
Marat Dukhan290055c2020-06-09 12:24:29 -0700890]
891
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800892PSIMD_FASTMATH_UKERNELS = [
Erich Elsen0a1970e2020-06-10 09:24:59 -0700893 "src/f32-conv-hwc2chw/3x3s2p1c3x4-psimd-2x2.c",
Erich Elsene6214af2020-06-10 22:17:22 -0700894 "src/f32-dwconv-chw/3x3p1-psimd.c",
Erich Elsenfd7a6e32020-06-11 12:04:44 -0700895 "src/f32-dwconv-chw/3x3s2p1-psimd.c",
Erich Elsen28928892020-06-12 08:08:19 -0700896 "src/f32-dwconv-chw/5x5p2-psimd.c",
Erich Elsen7465a892020-06-13 14:02:04 -0700897 "src/f32-dwconv-chw/5x5s2p2-psimd.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -0700898 "src/f32-spmm/gen/4x1-minmax-psimd.c",
899 "src/f32-spmm/gen/8x1-minmax-psimd.c",
900 "src/f32-spmm/gen/16x1-minmax-psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700901]
902
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800903PSIMD_ACCMATH_UKERNELS = [
Marat Dukhan2e23d2b2020-07-29 16:01:37 -0700904 "src/qs8-requantization/precise-psimd.c",
905 "src/qs8-requantization/fp32-psimd.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -0700906 "src/qu8-requantization/precise-psimd.c",
907 "src/qu8-requantization/fp32-psimd.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800908]
909
Marat Dukhan08c4a432019-10-03 09:29:21 -0700910# ISA-specific micro-kernels
911NEON_UKERNELS = [
Marat Dukhanef25c6d2020-07-24 00:59:40 -0700912 "src/f32-argmaxpool/4x-neon-c4.c",
913 "src/f32-argmaxpool/9p8x-neon-c4.c",
914 "src/f32-argmaxpool/9x-neon-c4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700915 "src/f32-avgpool/9p8x-minmax-neon-c4.c",
916 "src/f32-avgpool/9x-minmax-neon-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700917 "src/f32-clamp/gen/neon-x4.c",
918 "src/f32-clamp/gen/neon-x8.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700919 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c",
920 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700921 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c",
922 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700923 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c",
924 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700925 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c",
926 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700927 "src/f32-dwconv/gen/up4x4-minmax-neon.c",
928 "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c",
929 "src/f32-dwconv/gen/up8x4-minmax-neon.c",
930 "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700931 "src/f32-dwconv/gen/up4x9-minmax-neon.c",
932 "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c",
933 "src/f32-dwconv/gen/up8x9-minmax-neon.c",
934 "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700935 "src/f32-dwconv/gen/up4x25-minmax-neon.c",
936 "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c",
937 "src/f32-dwconv/gen/up8x25-minmax-neon.c",
938 "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700939 "src/f32-gavgpool-cw/neon-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700940 "src/f32-gavgpool/7p7x-minmax-neon-c4.c",
941 "src/f32-gavgpool/7x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700942 "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c",
943 "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c",
944 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c",
945 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c",
946 "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c",
947 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c",
948 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c",
949 "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c",
950 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c",
951 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c",
952 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c",
953 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c",
954 "src/f32-gemm/gen/1x8s4-minmax-neon.c",
955 "src/f32-gemm/gen/4x8s4-minmax-neon.c",
956 "src/f32-gemm/gen/6x8s4-minmax-neon.c",
957 "src/f32-gemm/gen/8x8s4-minmax-neon.c",
958 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c",
959 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c",
960 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c",
961 "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c",
962 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c",
963 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c",
964 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c",
965 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c",
966 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c",
967 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c",
968 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c",
969 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c",
970 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c",
971 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c",
972 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700973 "src/f32-hswish/gen/hswish-neon-x4.c",
974 "src/f32-hswish/gen/hswish-neon-x8.c",
975 "src/f32-hswish/gen/hswish-neon-x16.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700976 "src/f32-ibilinear/gen/neon-c4.c",
977 "src/f32-ibilinear/gen/neon-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700978 "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c",
979 "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c",
980 "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c",
981 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c",
982 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c",
983 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c",
984 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c",
985 "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c",
986 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c",
987 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c",
988 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c",
989 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c",
990 "src/f32-igemm/gen/1x8s4-minmax-neon.c",
991 "src/f32-igemm/gen/4x8s4-minmax-neon.c",
992 "src/f32-igemm/gen/6x8s4-minmax-neon.c",
993 "src/f32-igemm/gen/8x8s4-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700994 "src/f32-maxpool/9p8x-minmax-neon-c4.c",
995 "src/f32-pavgpool/9p8x-minmax-neon-c4.c",
996 "src/f32-pavgpool/9x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700997 "src/f32-ppmm/gen/4x8-minmax-neon.c",
998 "src/f32-ppmm/gen/8x8-minmax-neon.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700999 "src/f32-prelu/gen/neon-1x4.c",
1000 "src/f32-prelu/gen/neon-1x8.c",
1001 "src/f32-prelu/gen/neon-1x16.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001002 "src/f32-prelu/gen/neon-2x4.c",
1003 "src/f32-prelu/gen/neon-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -07001004 "src/f32-prelu/gen/neon-2x16.c",
1005 "src/f32-prelu/gen/neon-4x4.c",
1006 "src/f32-prelu/gen/neon-4x8.c",
1007 "src/f32-prelu/gen/neon-4x16.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001008 "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c",
1009 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c",
1010 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c",
1011 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c",
1012 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c",
1013 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c",
1014 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c",
1015 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c",
1016 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c",
1017 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c",
1018 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c",
1019 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c",
1020 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c",
1021 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c",
1022 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c",
1023 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c",
1024 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c",
1025 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c",
1026 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c",
1027 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c",
1028 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c",
1029 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c",
1030 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c",
1031 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001032 "src/f32-relu/gen/neon-x4.c",
1033 "src/f32-relu/gen/neon-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001034 "src/f32-rmax/neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001035 "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001036 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c",
1037 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c",
1038 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c",
1039 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c",
1040 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c",
1041 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c",
1042 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c",
1043 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c",
1044 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c",
1045 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c",
1046 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c",
1047 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c",
1048 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c",
1049 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c",
1050 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c",
1051 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c",
1052 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c",
1053 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001054 "src/f32-vbinary/gen/vadd-minmax-neon-x4.c",
1055 "src/f32-vbinary/gen/vadd-minmax-neon-x8.c",
1056 "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c",
1057 "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001058 "src/f32-vbinary/gen/vmax-neon-x4.c",
1059 "src/f32-vbinary/gen/vmax-neon-x8.c",
1060 "src/f32-vbinary/gen/vmaxc-neon-x4.c",
1061 "src/f32-vbinary/gen/vmaxc-neon-x8.c",
1062 "src/f32-vbinary/gen/vmin-neon-x4.c",
1063 "src/f32-vbinary/gen/vmin-neon-x8.c",
1064 "src/f32-vbinary/gen/vminc-neon-x4.c",
1065 "src/f32-vbinary/gen/vminc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001066 "src/f32-vbinary/gen/vmul-minmax-neon-x4.c",
1067 "src/f32-vbinary/gen/vmul-minmax-neon-x8.c",
1068 "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c",
1069 "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c",
1070 "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c",
1071 "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001072 "src/f32-vbinary/gen/vsqrdiff-neon-x4.c",
1073 "src/f32-vbinary/gen/vsqrdiff-neon-x8.c",
1074 "src/f32-vbinary/gen/vsqrdiffc-neon-x4.c",
1075 "src/f32-vbinary/gen/vsqrdiffc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001076 "src/f32-vbinary/gen/vsub-minmax-neon-x4.c",
1077 "src/f32-vbinary/gen/vsub-minmax-neon-x8.c",
1078 "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c",
1079 "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001080 "src/f32-vlrelu/gen/vlrelu-neon-x4.c",
1081 "src/f32-vlrelu/gen/vlrelu-neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001082 "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c",
1083 "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001084 "src/f32-vrnd/gen/vrndne-neon-x4.c",
1085 "src/f32-vrnd/gen/vrndne-neon-x8.c",
1086 "src/f32-vrnd/gen/vrndz-neon-x4.c",
1087 "src/f32-vrnd/gen/vrndz-neon-x8.c",
1088 "src/f32-vrnd/gen/vrndu-neon-x4.c",
1089 "src/f32-vrnd/gen/vrndu-neon-x8.c",
1090 "src/f32-vrnd/gen/vrndd-neon-x4.c",
1091 "src/f32-vrnd/gen/vrndd-neon-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001092 "src/f32-vunary/gen/vabs-neon-x4.c",
1093 "src/f32-vunary/gen/vabs-neon-x8.c",
1094 "src/f32-vunary/gen/vneg-neon-x4.c",
1095 "src/f32-vunary/gen/vneg-neon-x8.c",
1096 "src/f32-vunary/gen/vsqr-neon-x4.c",
1097 "src/f32-vunary/gen/vsqr-neon-x8.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001098 "src/qs8-gemm/gen/1x8-minmax-neon-mlal-lane.c",
1099 "src/qs8-gemm/gen/4x8-minmax-neon-mlal-lane.c",
1100 "src/qs8-gemm/gen/1x16-minmax-neon-mlal-lane.c",
1101 "src/qs8-gemm/gen/2x16-minmax-neon-mlal-lane.c",
1102 "src/qs8-igemm/gen/1x8-minmax-neon-mlal-lane.c",
1103 "src/qs8-igemm/gen/4x8-minmax-neon-mlal-lane.c",
1104 "src/qs8-igemm/gen/1x16-minmax-neon-mlal-lane.c",
1105 "src/qs8-igemm/gen/2x16-minmax-neon-mlal-lane.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001106 "src/qs8-requantization/precise-neon.c",
1107 "src/qs8-requantization/fp32-neon.c",
1108 "src/qs8-requantization/q31-neon.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001109 "src/qu8-avgpool/9p8x-minmax-neon-c8.c",
1110 "src/qu8-avgpool/9x-minmax-neon-c8.c",
1111 "src/qu8-dwconv/up8x9-minmax-neon.c",
1112 "src/qu8-gavgpool/7p7x-minmax-neon-c8.c",
1113 "src/qu8-gavgpool/7x-minmax-neon-c8.c",
1114 "src/qu8-gemm/4x8-minmax-neon.c",
1115 "src/qu8-gemm/8x8-minmax-neon.c",
1116 "src/qu8-igemm/4x8-minmax-neon.c",
1117 "src/qu8-igemm/8x8-minmax-neon.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001118 "src/qu8-requantization/precise-neon.c",
1119 "src/qu8-requantization/fp32-neon.c",
1120 "src/qu8-requantization/q31-neon.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001121 "src/qu8-vadd/minmax-neon.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001122 "src/u8-clamp/neon-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001123 "src/u8-maxpool/9p8x-minmax-neon-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001124 "src/u8-rmax/neon.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001125 "src/x32-fill/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001126 "src/x32-packx/x4-neon-st4.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001127 "src/x32-pad/neon.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001128 "src/x32-unpool/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001129 "src/x32-zip/x2-neon.c",
1130 "src/x32-zip/x3-neon.c",
1131 "src/x32-zip/x4-neon.c",
1132 "src/x32-zip/xm-neon.c",
1133 "src/x8-zip/x2-neon.c",
1134 "src/x8-zip/x3-neon.c",
1135 "src/x8-zip/x4-neon.c",
1136 "src/x8-zip/xm-neon.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001137 "src/math/roundne-neon-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001138 "src/math/roundd-neon-addsub.c",
1139 "src/math/roundd-neon-cvt.c",
1140 "src/math/roundu-neon-addsub.c",
1141 "src/math/roundu-neon-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001142 "src/math/roundz-neon-addsub.c",
1143 "src/math/roundz-neon-cvt.c",
Marat Dukhan68b3b452020-01-02 10:11:15 -08001144 "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001145 "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c",
1146 "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c",
1147 "src/math/sigmoid-neon-rr1-p5-nr2recps.c",
1148 "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c",
1149 "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c",
1150 "src/math/sigmoid-neon-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001151 "src/math/sqrt-neon-nr1rsqrts.c",
1152 "src/math/sqrt-neon-nr2rsqrts.c",
1153 "src/math/sqrt-neon-nr3rsqrts.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001154]
1155
1156NEONFMA_UKERNELS = [
Marat Dukhan660fd192020-03-10 04:55:30 -07001157 "src/f32-ibilinear/gen/neonfma-c4.c",
1158 "src/f32-ibilinear/gen/neonfma-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001159 "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1160 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1161 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1162 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1163 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1164 "src/f32-igemm/gen/1x8s4-minmax-neonfma.c",
1165 "src/f32-igemm/gen/4x8s4-minmax-neonfma.c",
1166 "src/f32-igemm/gen/6x8s4-minmax-neonfma.c",
1167 "src/f32-igemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001168 "src/f32-dwconv/gen/up4x4-minmax-neonfma.c",
1169 "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c",
1170 "src/f32-dwconv/gen/up8x4-minmax-neonfma.c",
1171 "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001172 "src/f32-dwconv/gen/up4x9-minmax-neonfma.c",
1173 "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c",
1174 "src/f32-dwconv/gen/up8x9-minmax-neonfma.c",
1175 "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001176 "src/f32-dwconv/gen/up4x25-minmax-neonfma.c",
1177 "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c",
1178 "src/f32-dwconv/gen/up8x25-minmax-neonfma.c",
1179 "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001180 "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1181 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1182 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1183 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1184 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1185 "src/f32-gemm/gen/1x8s4-minmax-neonfma.c",
1186 "src/f32-gemm/gen/4x8s4-minmax-neonfma.c",
1187 "src/f32-gemm/gen/6x8s4-minmax-neonfma.c",
1188 "src/f32-gemm/gen/8x8s4-minmax-neonfma.c",
1189 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c",
1190 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c",
1191 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c",
1192 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c",
1193 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c",
1194 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c",
1195 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c",
1196 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c",
1197 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001198 "src/f32-ppmm/gen/4x8-minmax-neonfma.c",
1199 "src/f32-ppmm/gen/8x8-minmax-neonfma.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001200 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c",
1201 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c",
1202 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c",
1203 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c",
1204 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c",
1205 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c",
1206 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c",
1207 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c",
1208 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c",
1209 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c",
1210 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c",
1211 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c",
1212 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c",
1213 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c",
1214 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c",
1215 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c",
1216 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c",
1217 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c",
1218 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c",
1219 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c",
1220 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c",
1221 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c",
1222 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c",
1223 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001224 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c",
1225 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c",
1226 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c",
1227 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c",
1228 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c",
1229 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c",
1230 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c",
1231 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c",
1232 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c",
1233 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c",
1234 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c",
1235 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c",
1236 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c",
1237 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c",
1238 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c",
1239 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c",
1240 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c",
1241 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c",
1242 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c",
1243 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c",
1244 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c",
1245 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c",
1246 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c",
1247 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c",
1248 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c",
1249 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c",
1250 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c",
1251 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c",
1252 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c",
1253 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c",
1254 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c",
1255 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c",
1256 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c",
1257 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c",
1258 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c",
1259 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c",
1260 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c",
1261 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c",
1262 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c",
1263 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c",
1264 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c",
1265 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c",
1266 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c",
1267 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c",
1268 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c",
1269 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c",
1270 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c",
1271 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c",
1272 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c",
1273 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c",
1274 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c",
1275 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c",
1276 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c",
1277 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001278 "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c",
1279 "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001280 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x4.c",
1281 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x8.c",
1282 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x12.c",
1283 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x16.c",
1284 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x20.c",
1285 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x24.c",
1286 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x28.c",
1287 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x32.c",
1288 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x36.c",
1289 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x40.c",
1290 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x4.c",
1291 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x8.c",
1292 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x12.c",
1293 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x16.c",
1294 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x20.c",
1295 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x24.c",
1296 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x28.c",
1297 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x32.c",
1298 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x36.c",
1299 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x40.c",
Marat Dukhan797a8fe2019-11-14 20:21:57 -08001300 "src/math/exp-neonfma-lut64-p2.c",
1301 "src/math/exp-neonfma-p5.c",
Marat Dukhan189ae802019-11-26 11:28:44 -08001302 "src/math/expminus-neonfma-lut2048-p1.c",
1303 "src/math/expminus-neonfma-lut64-p2.c",
Marat Dukhan346a9e52019-11-15 09:06:30 -08001304 "src/math/expminus-neonfma-p5.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001305 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c",
1306 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c",
1307 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c",
1308 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c",
1309 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c",
1310 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c",
1311 "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c",
1312 "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c",
1313 "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c",
1314 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c",
1315 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c",
1316 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c",
1317 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c",
1318 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c",
1319 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c",
1320 "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c",
1321 "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c",
1322 "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001323 "src/math/sqrt-neonfma-nr1fma.c",
1324 "src/math/sqrt-neonfma-nr2fma.c",
1325 "src/math/sqrt-neonfma-nr3fma.c",
1326 "src/math/sqrt-neonfma-nr2fma1adj.c",
1327 "src/math/sqrt-neonfma-nr1rsqrts1fma1adj.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001328]
1329
1330AARCH64_NEONFMA_UKERNELS = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001331 "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c",
1332 "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c",
1333 "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c",
1334 "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c",
1335 "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c",
1336 "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001337 "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1338 "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1339 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1340 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1341 "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c",
1342 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1343 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c",
1344 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c",
1345 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c",
1346 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c",
1347 "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c",
1348 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c",
1349 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c",
1350 "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1351 "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1352 "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c",
1353 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1354 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1355 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1356 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001357 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c",
1358 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001359 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c",
1360 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001361 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c",
1362 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001363 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c",
1364 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001365 "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c",
1366 "src/f32-dwconv-chw/3x3p1-neonfma.c",
1367 "src/f32-dwconv-chw/5x5p2-neonfma.c",
1368 "src/f32-dwconv-chw/3x3s2p1-neonfma.c",
1369 "src/f32-dwconv-chw/5x5s2p2-neonfma.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001370 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c",
1371 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c",
1372 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c",
1373 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c",
1374 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c",
1375 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c",
1376 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c",
1377 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c",
1378 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c",
1379 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c",
1380 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c",
1381 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c",
1382 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c",
1383 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c",
1384 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c",
1385 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c",
1386 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c",
1387 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001388 "src/f32-spmm/gen/12x1-minmax-neonfma.c",
1389 "src/f32-spmm/gen/12x2-minmax-neonfma.c",
1390 "src/f32-spmm/gen/12x4-minmax-neonfma.c",
1391 "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c",
1392 "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c",
1393 "src/f32-spmm/gen/16x1-minmax-neonfma.c",
1394 "src/f32-spmm/gen/16x2-minmax-neonfma.c",
1395 "src/f32-spmm/gen/16x4-minmax-neonfma.c",
1396 "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c",
1397 "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c",
1398 "src/f32-spmm/gen/4x1-minmax-neonfma.c",
1399 "src/f32-spmm/gen/4x2-minmax-neonfma.c",
1400 "src/f32-spmm/gen/4x4-minmax-neonfma.c",
1401 "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c",
1402 "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c",
1403 "src/f32-spmm/gen/8x1-minmax-neonfma.c",
1404 "src/f32-spmm/gen/8x2-minmax-neonfma.c",
1405 "src/f32-spmm/gen/8x4-minmax-neonfma.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001406 "src/f32-vsqrt/gen/neon-sqrt-x4.c",
1407 "src/f32-vsqrt/gen/neon-sqrt-x8.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001408 "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c",
1409 "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c",
1410 "src/math/sigmoid-neonfma-rr1-p5-div.c",
1411 "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c",
1412 "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c",
1413 "src/math/sigmoid-neonfma-rr2-p5-div.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001414]
1415
Marat Dukhan8853b822020-05-07 12:19:01 -07001416NEONV8_UKERNELS = [
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001417 "src/f32-vrnd/gen/vrndne-neonv8-x4.c",
1418 "src/f32-vrnd/gen/vrndne-neonv8-x8.c",
1419 "src/f32-vrnd/gen/vrndz-neonv8-x4.c",
1420 "src/f32-vrnd/gen/vrndz-neonv8-x8.c",
1421 "src/f32-vrnd/gen/vrndu-neonv8-x4.c",
1422 "src/f32-vrnd/gen/vrndu-neonv8-x8.c",
1423 "src/f32-vrnd/gen/vrndd-neonv8-x4.c",
1424 "src/f32-vrnd/gen/vrndd-neonv8-x8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001425 "src/math/roundne-neonv8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001426 "src/math/roundd-neonv8.c",
1427 "src/math/roundu-neonv8.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001428 "src/math/roundz-neonv8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001429]
1430
Marat Dukhan08c4a432019-10-03 09:29:21 -07001431AARCH64_NEONFP16ARITH_UKERNELS = [
Frank Barchardb1966592020-05-12 13:47:06 -07001432 "src/f16-clamp/gen/neonfp16arith-x16.c",
1433 "src/f16-clamp/gen/neonfp16arith-x8.c",
Frank Barchard5a599a62020-06-04 20:12:44 -07001434 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith-acc2.c",
1435 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith.c",
1436 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith-acc2.c",
1437 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith.c",
1438 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith-acc2.c",
1439 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith.c",
1440 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith-acc2.c",
1441 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith.c",
1442 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c",
1443 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c",
1444 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith-acc2.c",
1445 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith.c",
Frank Barchard0bb49a72020-06-04 11:35:11 -07001446 "src/f16-gavgpool/7p7x-minmax-neonfp16arith-c8.c",
1447 "src/f16-gavgpool/7x-minmax-neonfp16arith-c8.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001448 "src/f16-hswish/gen/hswish-neonfp16arith-x16.c",
1449 "src/f16-hswish/gen/hswish-neonfp16arith-x8.c",
Frank Barchardb1966592020-05-12 13:47:06 -07001450 "src/f16-prelu/gen/neonfp16arith-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -07001451 "src/f16-prelu/gen/neonfp16arith-2x16.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001452 "src/f16-relu/gen/neonfp16arith-x16.c",
1453 "src/f16-relu/gen/neonfp16arith-x8.c",
Frank Barchardd793f6c2020-05-08 13:37:43 -07001454 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c",
1455 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c",
1456 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c",
1457 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c",
1458 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c",
1459 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c",
1460 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c",
1461 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c",
1462 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c",
1463 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c",
1464 "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c",
1465 "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c",
1466 "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c",
1467 "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c",
1468 "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c",
1469 "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c",
1470 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c",
1471 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c",
1472 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c",
1473 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c",
1474 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c",
1475 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c",
1476 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c",
1477 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c",
1478 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c",
1479 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c",
1480 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c",
1481 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c",
Frank Barchard2a1049c2020-06-03 02:31:27 -07001482 "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c",
1483 "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c",
Frank Barchard83ea9392020-04-20 20:15:14 -07001484 "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1485 "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1486 "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1487 "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c",
1488 "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c",
1489 "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c",
1490 "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c",
1491 "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c",
Frank Barchardb0e4fae2020-05-04 15:27:51 -07001492 "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1493 "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1494 "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1495 "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c",
Frank Barchard3f9f99f2020-05-06 01:12:04 -07001496 "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1497 "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1498 "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1499 "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c",
1500 "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c",
1501 "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c",
1502 "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c",
1503 "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c",
1504 "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1505 "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1506 "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1507 "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001508 "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c",
1509 "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c",
1510 "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c",
1511 "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c",
1512 "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c",
1513 "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c",
1514 "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c",
1515 "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001516]
1517
1518SSE_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -07001519 "src/f32-avgpool/9p8x-minmax-sse-c4.c",
1520 "src/f32-avgpool/9x-minmax-sse-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001521 "src/f32-clamp/gen/sse-x4.c",
1522 "src/f32-clamp/gen/sse-x8.c",
Erich Elsenb1233402020-06-08 15:53:15 -07001523 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-1x1.c",
1524 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001525 "src/f32-dwconv-chw/3x3p1-sse.c",
1526 "src/f32-dwconv-chw/3x3s2p1-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001527 "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c",
1528 "src/f32-dwconv/gen/up4x25-minmax-sse.c",
1529 "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c",
1530 "src/f32-dwconv/gen/up4x4-minmax-sse.c",
1531 "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c",
1532 "src/f32-dwconv/gen/up4x9-minmax-sse.c",
1533 "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c",
1534 "src/f32-dwconv/gen/up8x25-minmax-sse.c",
1535 "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c",
1536 "src/f32-dwconv/gen/up8x4-minmax-sse.c",
1537 "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c",
1538 "src/f32-dwconv/gen/up8x9-minmax-sse.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001539 "src/f32-gavgpool-cw/sse-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001540 "src/f32-gavgpool/7p7x-minmax-sse-c4.c",
1541 "src/f32-gavgpool/7x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001542 "src/f32-gemm/gen/1x8-minmax-sse-dup.c",
1543 "src/f32-gemm/gen/1x8-minmax-sse-load1.c",
1544 "src/f32-gemm/gen/1x8s4-minmax-sse.c",
1545 "src/f32-gemm/gen/4x2c4-minmax-sse.c",
1546 "src/f32-gemm/gen/4x8-minmax-sse-dup.c",
1547 "src/f32-gemm/gen/4x8-minmax-sse-load1.c",
1548 "src/f32-gemm/gen/4x8s4-minmax-sse.c",
1549 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c",
1550 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c",
1551 "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c",
1552 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c",
1553 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c",
1554 "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001555 "src/f32-hswish/gen/hswish-sse-x4.c",
1556 "src/f32-hswish/gen/hswish-sse-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001557 "src/f32-ibilinear/gen/sse-c4.c",
1558 "src/f32-ibilinear/gen/sse-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001559 "src/f32-igemm/gen/1x8-minmax-sse-dup.c",
1560 "src/f32-igemm/gen/1x8-minmax-sse-load1.c",
1561 "src/f32-igemm/gen/1x8s4-minmax-sse.c",
1562 "src/f32-igemm/gen/4x2c4-minmax-sse.c",
1563 "src/f32-igemm/gen/4x8-minmax-sse-dup.c",
1564 "src/f32-igemm/gen/4x8-minmax-sse-load1.c",
1565 "src/f32-igemm/gen/4x8s4-minmax-sse.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001566 "src/f32-maxpool/9p8x-minmax-sse-c4.c",
1567 "src/f32-pavgpool/9p8x-minmax-sse-c4.c",
1568 "src/f32-pavgpool/9x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001569 "src/f32-ppmm/gen/4x8-minmax-sse.c",
Marat Dukhan39b5e942020-06-24 15:03:48 -07001570 "src/f32-prelu/gen/sse-2x4.c",
1571 "src/f32-prelu/gen/sse-2x8.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001572 "src/f32-relu/gen/sse-x4.c",
1573 "src/f32-relu/gen/sse-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001574 "src/f32-rmax/sse.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001575 "src/f32-spmm/gen/4x1-minmax-sse.c",
1576 "src/f32-spmm/gen/8x1-minmax-sse.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -07001577 "src/f32-spmm/gen/16x1-minmax-sse.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001578 "src/f32-vbinary/gen/vadd-minmax-sse-x4.c",
1579 "src/f32-vbinary/gen/vadd-minmax-sse-x8.c",
1580 "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c",
1581 "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c",
1582 "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c",
1583 "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c",
1584 "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c",
1585 "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001586 "src/f32-vbinary/gen/vmax-sse-x4.c",
1587 "src/f32-vbinary/gen/vmax-sse-x8.c",
1588 "src/f32-vbinary/gen/vmaxc-sse-x4.c",
1589 "src/f32-vbinary/gen/vmaxc-sse-x8.c",
1590 "src/f32-vbinary/gen/vmin-sse-x4.c",
1591 "src/f32-vbinary/gen/vmin-sse-x8.c",
1592 "src/f32-vbinary/gen/vminc-sse-x4.c",
1593 "src/f32-vbinary/gen/vminc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001594 "src/f32-vbinary/gen/vmul-minmax-sse-x4.c",
1595 "src/f32-vbinary/gen/vmul-minmax-sse-x8.c",
1596 "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c",
1597 "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c",
1598 "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c",
1599 "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c",
1600 "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c",
1601 "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001602 "src/f32-vbinary/gen/vsqrdiff-sse-x4.c",
1603 "src/f32-vbinary/gen/vsqrdiff-sse-x8.c",
1604 "src/f32-vbinary/gen/vsqrdiffc-sse-x4.c",
1605 "src/f32-vbinary/gen/vsqrdiffc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001606 "src/f32-vbinary/gen/vsub-minmax-sse-x4.c",
1607 "src/f32-vbinary/gen/vsub-minmax-sse-x8.c",
1608 "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c",
1609 "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001610 "src/f32-vlrelu/gen/vlrelu-sse-x4.c",
1611 "src/f32-vlrelu/gen/vlrelu-sse-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001612 "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c",
1613 "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001614 "src/f32-vsqrt/gen/sse-sqrt-x4.c",
1615 "src/f32-vsqrt/gen/sse-sqrt-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001616 "src/f32-vunary/gen/vabs-sse-x4.c",
1617 "src/f32-vunary/gen/vabs-sse-x8.c",
1618 "src/f32-vunary/gen/vneg-sse-x4.c",
1619 "src/f32-vunary/gen/vneg-sse-x8.c",
1620 "src/f32-vunary/gen/vsqr-sse-x4.c",
1621 "src/f32-vunary/gen/vsqr-sse-x8.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001622 "src/x32-fill/sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001623 "src/x32-packx/x4-sse.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001624 "src/x32-pad/sse.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001625 "src/math/roundne-sse-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001626 "src/math/roundd-sse-addsub.c",
1627 "src/math/roundu-sse-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001628 "src/math/roundz-sse-addsub.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001629 "src/math/sqrt-sse-hh1mac.c",
1630 "src/math/sqrt-sse-nr1mac.c",
1631 "src/math/sqrt-sse-nr2mac.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001632]
1633
1634SSE2_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -08001635 "src/f32-argmaxpool/9p8x-sse2-c4.c",
1636 "src/f32-argmaxpool/4x-sse2-c4.c",
1637 "src/f32-argmaxpool/9x-sse2-c4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001638 "src/f32-prelu/gen/sse2-2x4.c",
1639 "src/f32-prelu/gen/sse2-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001640 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c",
1641 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c",
1642 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c",
1643 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c",
1644 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c",
1645 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c",
1646 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c",
1647 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c",
1648 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c",
1649 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c",
1650 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c",
1651 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001652 "src/f32-sigmoid/gen/sse2-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001653 "src/f32-sigmoid/gen/sse2-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001654 "src/f32-sigmoid/gen/sse2-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001655 "src/f32-sigmoid/gen/sse2-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001656 "src/f32-sigmoid/gen/sse2-p5-div-x20.c",
1657 "src/f32-sigmoid/gen/sse2-p5-div-x24.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001658 "src/f32-vlrelu/gen/vlrelu-sse2-x4.c",
1659 "src/f32-vlrelu/gen/vlrelu-sse2-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001660 "src/f32-vrnd/gen/vrndne-sse2-x4.c",
1661 "src/f32-vrnd/gen/vrndne-sse2-x8.c",
1662 "src/f32-vrnd/gen/vrndz-sse2-x4.c",
1663 "src/f32-vrnd/gen/vrndz-sse2-x8.c",
1664 "src/f32-vrnd/gen/vrndu-sse2-x4.c",
1665 "src/f32-vrnd/gen/vrndu-sse2-x8.c",
1666 "src/f32-vrnd/gen/vrndd-sse2-x4.c",
1667 "src/f32-vrnd/gen/vrndd-sse2-x8.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07001668 "src/qs8-dwconv/gen/up8x9-minmax-sse2-mul16.c",
1669 "src/qs8-dwconv/gen/up16x9-minmax-sse2-mul16.c",
1670 "src/qs8-dwconv/gen/up24x9-minmax-sse2-mul16.c",
Marat Dukhan4ed53f42020-08-06 01:12:55 -07001671 "src/qs8-gavgpool/gen/7x-minmax-sse2-c8-acc2.c",
1672 "src/qs8-gavgpool/gen/7x-minmax-sse2-c16-acc2.c",
1673 "src/qs8-gavgpool/gen/7x-minmax-sse2-c24-acc2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001674 "src/qs8-gemm/gen/1x4c2-minmax-sse2-ld64.c",
1675 "src/qs8-gemm/gen/4x4c2-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001676 "src/qs8-gemm/gen/1x4c2-minmax-sse2-ld128.c",
1677 "src/qs8-gemm/gen/4x4c2-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001678 "src/qs8-gemm/gen/1x4c2-xw-minmax-sse2.c",
1679 "src/qs8-gemm/gen/4x4c2-xw-minmax-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001680 "src/qs8-gemm/gen/1x4c8-minmax-sse2-ld64.c",
1681 "src/qs8-gemm/gen/2x4c8-minmax-sse2-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001682 "src/qs8-gemm/gen/3x4c8-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001683 "src/qs8-gemm/gen/1x4c8-minmax-sse2-ld128.c",
1684 "src/qs8-gemm/gen/2x4c8-minmax-sse2-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001685 "src/qs8-gemm/gen/3x4c8-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001686 "src/qs8-gemm/gen/1x4c8-xw-minmax-sse2.c",
1687 "src/qs8-gemm/gen/2x4c8-xw-minmax-sse2.c",
1688 "src/qs8-gemm/gen/3x4c8-xw-minmax-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001689 "src/qs8-igemm/gen/1x4c2-minmax-sse2-ld64.c",
1690 "src/qs8-igemm/gen/4x4c2-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001691 "src/qs8-igemm/gen/1x4c2-minmax-sse2-ld128.c",
1692 "src/qs8-igemm/gen/4x4c2-minmax-sse2-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001693 "src/qs8-igemm/gen/1x4c8-minmax-sse2-ld64.c",
1694 "src/qs8-igemm/gen/2x4c8-minmax-sse2-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001695 "src/qs8-igemm/gen/3x4c8-minmax-sse2-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001696 "src/qs8-igemm/gen/1x4c8-minmax-sse2-ld128.c",
1697 "src/qs8-igemm/gen/2x4c8-minmax-sse2-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001698 "src/qs8-igemm/gen/3x4c8-minmax-sse2-ld128.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07001699 "src/qs8-requantization/precise-sse2.c",
1700 "src/qs8-requantization/fp32-sse2.c",
1701 "src/qs8-requantization/q31-sse2.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001702 "src/qu8-avgpool/9p8x-minmax-sse2-c8.c",
1703 "src/qu8-avgpool/9x-minmax-sse2-c8.c",
1704 "src/qu8-igemm/4x4c2-minmax-sse2.c",
1705 "src/qu8-dwconv/up8x9-minmax-sse2.c",
1706 "src/qu8-gavgpool/7p7x-minmax-sse2-c8.c",
1707 "src/qu8-gavgpool/7x-minmax-sse2-c8.c",
1708 "src/qu8-gemm/2x4c8-minmax-sse2.c",
1709 "src/qu8-gemm/4x4c2-minmax-sse2.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001710 "src/qu8-requantization/precise-sse2.c",
1711 "src/qu8-requantization/fp32-sse2.c",
1712 "src/qu8-requantization/q31-sse2.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001713 "src/qu8-vadd/minmax-sse2.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001714 "src/u8-clamp/sse2-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001715 "src/u8-maxpool/9p8x-minmax-sse2-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001716 "src/u8-rmax/sse2.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001717 "src/x32-unpool/sse2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001718 "src/x32-zip/x2-sse2.c",
1719 "src/x32-zip/x3-sse2.c",
1720 "src/x32-zip/x4-sse2.c",
1721 "src/x32-zip/xm-sse2.c",
1722 "src/x8-zip/x2-sse2.c",
1723 "src/x8-zip/x3-sse2.c",
1724 "src/x8-zip/x4-sse2.c",
1725 "src/x8-zip/xm-sse2.c",
Marat Dukhanffd68402019-11-15 15:19:11 -08001726 "src/math/exp-sse2-p5.c",
1727 "src/math/expminus-sse2-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001728 "src/math/roundne-sse2-cvt.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001729 "src/math/roundd-sse2-cvt.c",
1730 "src/math/roundu-sse2-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001731 "src/math/roundz-sse2-cvt.c",
Marat Dukhan80bafd22019-11-18 10:16:01 -08001732 "src/math/sigmoid-sse2-p5-div.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001733]
1734
1735SSSE3_UKERNELS = [
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07001736 "src/qs8-dwconv/gen/up8x9-minmax-ssse3-mul16.c",
1737 "src/qs8-dwconv/gen/up16x9-minmax-ssse3-mul16.c",
1738 "src/qs8-dwconv/gen/up24x9-minmax-ssse3-mul16.c",
Marat Dukhan4ed53f42020-08-06 01:12:55 -07001739 "src/qs8-gavgpool/gen/7x-minmax-ssse3-c8-acc2.c",
1740 "src/qs8-gavgpool/gen/7x-minmax-ssse3-c16-acc2.c",
1741 "src/qs8-gavgpool/gen/7x-minmax-ssse3-c24-acc2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001742 "src/qs8-gemm/gen/1x4c2-minmax-ssse3-ld64.c",
1743 "src/qs8-gemm/gen/4x4c2-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001744 "src/qs8-gemm/gen/1x4c2-minmax-ssse3-ld128.c",
1745 "src/qs8-gemm/gen/4x4c2-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001746 "src/qs8-gemm/gen/1x4c2-xw-minmax-ssse3.c",
1747 "src/qs8-gemm/gen/4x4c2-xw-minmax-ssse3.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001748 "src/qs8-gemm/gen/1x4c8-minmax-ssse3-ld64.c",
1749 "src/qs8-gemm/gen/2x4c8-minmax-ssse3-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001750 "src/qs8-gemm/gen/3x4c8-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001751 "src/qs8-gemm/gen/1x4c8-minmax-ssse3-ld128.c",
1752 "src/qs8-gemm/gen/2x4c8-minmax-ssse3-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001753 "src/qs8-gemm/gen/3x4c8-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001754 "src/qs8-gemm/gen/1x4c8-xw-minmax-ssse3.c",
1755 "src/qs8-gemm/gen/2x4c8-xw-minmax-ssse3.c",
1756 "src/qs8-gemm/gen/3x4c8-xw-minmax-ssse3.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001757 "src/qs8-igemm/gen/1x4c2-minmax-ssse3-ld64.c",
1758 "src/qs8-igemm/gen/4x4c2-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001759 "src/qs8-igemm/gen/1x4c2-minmax-ssse3-ld128.c",
1760 "src/qs8-igemm/gen/4x4c2-minmax-ssse3-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001761 "src/qs8-igemm/gen/1x4c8-minmax-ssse3-ld64.c",
1762 "src/qs8-igemm/gen/2x4c8-minmax-ssse3-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001763 "src/qs8-igemm/gen/3x4c8-minmax-ssse3-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001764 "src/qs8-igemm/gen/1x4c8-minmax-ssse3-ld128.c",
1765 "src/qs8-igemm/gen/2x4c8-minmax-ssse3-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001766 "src/qs8-igemm/gen/3x4c8-minmax-ssse3-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001767 "src/qs8-requantization/precise-ssse3.c",
1768 "src/qs8-requantization/q31-ssse3.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001769 "src/qu8-requantization/precise-ssse3.c",
1770 "src/qu8-requantization/q31-ssse3.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001771]
1772
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001773SSE41_UKERNELS = [
Marat Dukhan40a672f2019-11-25 03:08:22 -08001774 "src/f32-prelu/gen/sse41-2x4.c",
1775 "src/f32-prelu/gen/sse41-2x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001776 "src/f32-sigmoid/gen/sse41-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001777 "src/f32-sigmoid/gen/sse41-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001778 "src/f32-sigmoid/gen/sse41-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001779 "src/f32-sigmoid/gen/sse41-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001780 "src/f32-sigmoid/gen/sse41-p5-div-x20.c",
1781 "src/f32-sigmoid/gen/sse41-p5-div-x24.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001782 "src/f32-vlrelu/gen/vlrelu-sse41-x4.c",
1783 "src/f32-vlrelu/gen/vlrelu-sse41-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001784 "src/f32-vrnd/gen/vrndne-sse41-x4.c",
1785 "src/f32-vrnd/gen/vrndne-sse41-x8.c",
1786 "src/f32-vrnd/gen/vrndz-sse41-x4.c",
1787 "src/f32-vrnd/gen/vrndz-sse41-x8.c",
1788 "src/f32-vrnd/gen/vrndu-sse41-x4.c",
1789 "src/f32-vrnd/gen/vrndu-sse41-x8.c",
1790 "src/f32-vrnd/gen/vrndd-sse41-x4.c",
1791 "src/f32-vrnd/gen/vrndd-sse41-x8.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07001792 "src/qs8-dwconv/gen/up8x9-minmax-sse41-mul16.c",
1793 "src/qs8-dwconv/gen/up16x9-minmax-sse41-mul16.c",
1794 "src/qs8-dwconv/gen/up24x9-minmax-sse41-mul16.c",
Marat Dukhan4ed53f42020-08-06 01:12:55 -07001795 "src/qs8-gavgpool/gen/7x-minmax-sse41-c8-acc2.c",
1796 "src/qs8-gavgpool/gen/7x-minmax-sse41-c16-acc2.c",
1797 "src/qs8-gavgpool/gen/7x-minmax-sse41-c24-acc2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001798 "src/qs8-gemm/gen/1x4c2-minmax-sse41-ld64.c",
1799 "src/qs8-gemm/gen/4x4c2-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001800 "src/qs8-gemm/gen/1x4c2-minmax-sse41-ld128.c",
1801 "src/qs8-gemm/gen/4x4c2-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001802 "src/qs8-gemm/gen/1x4c2-xw-minmax-sse41.c",
1803 "src/qs8-gemm/gen/4x4c2-xw-minmax-sse41.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001804 "src/qs8-gemm/gen/1x4c8-minmax-sse41-ld64.c",
1805 "src/qs8-gemm/gen/2x4c8-minmax-sse41-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001806 "src/qs8-gemm/gen/3x4c8-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001807 "src/qs8-gemm/gen/1x4c8-minmax-sse41-ld128.c",
1808 "src/qs8-gemm/gen/2x4c8-minmax-sse41-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001809 "src/qs8-gemm/gen/3x4c8-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001810 "src/qs8-gemm/gen/1x4c8-xw-minmax-sse41.c",
1811 "src/qs8-gemm/gen/2x4c8-xw-minmax-sse41.c",
1812 "src/qs8-gemm/gen/3x4c8-xw-minmax-sse41.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07001813 "src/qs8-igemm/gen/1x4c2-minmax-sse41-ld64.c",
1814 "src/qs8-igemm/gen/4x4c2-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07001815 "src/qs8-igemm/gen/1x4c2-minmax-sse41-ld128.c",
1816 "src/qs8-igemm/gen/4x4c2-minmax-sse41-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001817 "src/qs8-igemm/gen/1x4c8-minmax-sse41-ld64.c",
1818 "src/qs8-igemm/gen/2x4c8-minmax-sse41-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001819 "src/qs8-igemm/gen/3x4c8-minmax-sse41-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07001820 "src/qs8-igemm/gen/1x4c8-minmax-sse41-ld128.c",
1821 "src/qs8-igemm/gen/2x4c8-minmax-sse41-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001822 "src/qs8-igemm/gen/3x4c8-minmax-sse41-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001823 "src/qs8-requantization/fp32-sse4.c",
1824 "src/qs8-requantization/precise-sse4.c",
1825 "src/qs8-requantization/q31-sse4.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001826 "src/qu8-requantization/precise-sse4.c",
1827 "src/qu8-requantization/q31-sse4.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001828 "src/math/roundne-sse41.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001829 "src/math/roundd-sse41.c",
1830 "src/math/roundu-sse41.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001831 "src/math/roundz-sse41.c",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001832]
1833
Marat Dukhan08c4a432019-10-03 09:29:21 -07001834AVX_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001835 "src/f32-clamp/gen/avx-x8.c",
1836 "src/f32-clamp/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001837 "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c",
1838 "src/f32-dwconv/gen/up16x4-minmax-avx.c",
1839 "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c",
1840 "src/f32-dwconv/gen/up8x4-minmax-avx.c",
1841 "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c",
1842 "src/f32-dwconv/gen/up16x9-minmax-avx.c",
1843 "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c",
1844 "src/f32-dwconv/gen/up8x9-minmax-avx.c",
1845 "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c",
1846 "src/f32-dwconv/gen/up16x25-minmax-avx.c",
1847 "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c",
1848 "src/f32-dwconv/gen/up8x25-minmax-avx.c",
1849 "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c",
1850 "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c",
1851 "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c",
1852 "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c",
1853 "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c",
1854 "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c",
1855 "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c",
1856 "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c",
1857 "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c",
1858 "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c",
1859 "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c",
1860 "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c",
1861 "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c",
1862 "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c",
1863 "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c",
1864 "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c",
1865 "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c",
1866 "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001867 "src/f32-hswish/gen/hswish-avx-x8.c",
1868 "src/f32-hswish/gen/hswish-avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001869 "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c",
1870 "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c",
1871 "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c",
1872 "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c",
1873 "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c",
1874 "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c",
1875 "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c",
1876 "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c",
1877 "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001878 "src/f32-prelu/gen/avx-2x8.c",
1879 "src/f32-prelu/gen/avx-2x16.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001880 "src/f32-relu/gen/avx-x16.c",
1881 "src/f32-relu/gen/avx-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001882 "src/f32-rmax/avx.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001883 "src/f32-vbinary/gen/vadd-minmax-avx-x8.c",
1884 "src/f32-vbinary/gen/vadd-minmax-avx-x16.c",
1885 "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c",
1886 "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c",
1887 "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c",
1888 "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c",
1889 "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c",
1890 "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001891 "src/f32-vbinary/gen/vmax-avx-x8.c",
1892 "src/f32-vbinary/gen/vmax-avx-x16.c",
1893 "src/f32-vbinary/gen/vmaxc-avx-x8.c",
1894 "src/f32-vbinary/gen/vmaxc-avx-x16.c",
1895 "src/f32-vbinary/gen/vmin-avx-x8.c",
1896 "src/f32-vbinary/gen/vmin-avx-x16.c",
1897 "src/f32-vbinary/gen/vminc-avx-x8.c",
1898 "src/f32-vbinary/gen/vminc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001899 "src/f32-vbinary/gen/vmul-minmax-avx-x8.c",
1900 "src/f32-vbinary/gen/vmul-minmax-avx-x16.c",
1901 "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c",
1902 "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c",
1903 "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c",
1904 "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c",
1905 "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c",
1906 "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001907 "src/f32-vbinary/gen/vsqrdiff-avx-x8.c",
1908 "src/f32-vbinary/gen/vsqrdiff-avx-x16.c",
1909 "src/f32-vbinary/gen/vsqrdiffc-avx-x8.c",
1910 "src/f32-vbinary/gen/vsqrdiffc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001911 "src/f32-vbinary/gen/vsub-minmax-avx-x8.c",
1912 "src/f32-vbinary/gen/vsub-minmax-avx-x16.c",
1913 "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c",
1914 "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001915 "src/f32-vlrelu/gen/vlrelu-avx-x8.c",
1916 "src/f32-vlrelu/gen/vlrelu-avx-x16.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001917 "src/f32-vscale/avx-unroll32.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001918 "src/f32-vrnd/gen/vrndne-avx-x8.c",
1919 "src/f32-vrnd/gen/vrndne-avx-x16.c",
1920 "src/f32-vrnd/gen/vrndz-avx-x8.c",
1921 "src/f32-vrnd/gen/vrndz-avx-x16.c",
1922 "src/f32-vrnd/gen/vrndu-avx-x8.c",
1923 "src/f32-vrnd/gen/vrndu-avx-x16.c",
1924 "src/f32-vrnd/gen/vrndd-avx-x8.c",
1925 "src/f32-vrnd/gen/vrndd-avx-x16.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001926 "src/f32-vsqrt/gen/avx-sqrt-x8.c",
1927 "src/f32-vsqrt/gen/avx-sqrt-x16.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001928 "src/f32-vunary/gen/vabs-avx-x8.c",
1929 "src/f32-vunary/gen/vabs-avx-x16.c",
1930 "src/f32-vunary/gen/vneg-avx-x8.c",
1931 "src/f32-vunary/gen/vneg-avx-x16.c",
1932 "src/f32-vunary/gen/vsqr-avx-x8.c",
1933 "src/f32-vunary/gen/vsqr-avx-x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001934]
1935
Marat Dukhan1566fee2020-08-02 21:55:41 -07001936XOP_UKERNELS = [
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07001937 "src/qs8-dwconv/gen/up8x9-minmax-xop-mul16.c",
1938 "src/qs8-dwconv/gen/up16x9-minmax-xop-mul16.c",
1939 "src/qs8-dwconv/gen/up24x9-minmax-xop-mul16.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001940 "src/qs8-gemm/gen/1x4c2-minmax-xop-ld64.c",
1941 "src/qs8-gemm/gen/4x4c2-minmax-xop-ld64.c",
1942 "src/qs8-gemm/gen/1x4c2-minmax-xop-ld128.c",
1943 "src/qs8-gemm/gen/4x4c2-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001944 "src/qs8-gemm/gen/1x4c2-xw-minmax-xop.c",
1945 "src/qs8-gemm/gen/4x4c2-xw-minmax-xop.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001946 "src/qs8-gemm/gen/1x4c8-minmax-xop-ld64.c",
1947 "src/qs8-gemm/gen/2x4c8-minmax-xop-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001948 "src/qs8-gemm/gen/3x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001949 "src/qs8-gemm/gen/1x4c8-minmax-xop-ld128.c",
1950 "src/qs8-gemm/gen/2x4c8-minmax-xop-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001951 "src/qs8-gemm/gen/3x4c8-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07001952 "src/qs8-gemm/gen/1x4c8-xw-minmax-xop.c",
1953 "src/qs8-gemm/gen/2x4c8-xw-minmax-xop.c",
1954 "src/qs8-gemm/gen/3x4c8-xw-minmax-xop.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001955 "src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c",
1956 "src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c",
1957 "src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c",
1958 "src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c",
1959 "src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c",
1960 "src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001961 "src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001962 "src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c",
1963 "src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07001964 "src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07001965]
1966
Marat Dukhanfda12b82019-11-21 12:27:59 -08001967FMA3_UKERNELS = [
Marat Dukhan1c587112020-04-08 20:04:28 -07001968 "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c",
1969 "src/f32-dwconv/gen/up16x4-minmax-fma3.c",
1970 "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c",
1971 "src/f32-dwconv/gen/up8x4-minmax-fma3.c",
1972 "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c",
1973 "src/f32-dwconv/gen/up16x9-minmax-fma3.c",
1974 "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c",
1975 "src/f32-dwconv/gen/up8x9-minmax-fma3.c",
1976 "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c",
1977 "src/f32-dwconv/gen/up16x25-minmax-fma3.c",
1978 "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c",
1979 "src/f32-dwconv/gen/up8x25-minmax-fma3.c",
1980 "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c",
1981 "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c",
1982 "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c",
1983 "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c",
1984 "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c",
1985 "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c",
1986 "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c",
1987 "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c",
1988 "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c",
1989 "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c",
1990 "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c",
1991 "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c",
1992 "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c",
1993 "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c",
1994 "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c",
1995 "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c",
1996 "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c",
1997 "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c",
1998 "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c",
1999 "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c",
2000 "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c",
2001 "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c",
2002 "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c",
2003 "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c",
2004 "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c",
2005 "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c",
2006 "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c",
2007 "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07002008 "src/f32-hswish/gen/hswish-fma3-x8.c",
2009 "src/f32-hswish/gen/hswish-fma3-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002010 "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c",
2011 "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c",
2012 "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c",
2013 "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c",
2014 "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c",
2015 "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c",
2016 "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c",
2017 "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c",
2018 "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c",
2019 "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c",
2020 "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c",
2021 "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c",
2022 "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c",
2023 "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002024 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x8.c",
2025 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x16.c",
2026 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x24.c",
2027 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x32.c",
2028 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x40.c",
2029 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x48.c",
2030 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x56.c",
2031 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x64.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002032 "src/math/sqrt-fma3-nr1fma.c",
2033 "src/math/sqrt-fma3-nr2fma.c",
2034 "src/math/sqrt-fma3-nr1fma1adj.c",
Marat Dukhanfda12b82019-11-21 12:27:59 -08002035]
2036
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002037AVX2_UKERNELS = [
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002038 "src/f32-raddexpminusmax/gen/avx2-p5-x64.c",
2039 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c",
2040 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c",
2041 "src/f32-raddexpminusmax/gen/avx2-p5-x72.c",
2042 "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c",
2043 "src/f32-raddexpminusmax/gen/avx2-p5-x80.c",
2044 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c",
2045 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c",
2046 "src/f32-raddexpminusmax/gen/avx2-p5-x96.c",
2047 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c",
2048 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c",
2049 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c",
2050 "src/f32-raddextexp/gen/avx2-p5-x64.c",
2051 "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c",
2052 "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c",
2053 "src/f32-raddextexp/gen/avx2-p5-x72.c",
2054 "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c",
2055 "src/f32-raddextexp/gen/avx2-p5-x80.c",
2056 "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c",
2057 "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c",
2058 "src/f32-raddextexp/gen/avx2-p5-x96.c",
2059 "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c",
2060 "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c",
2061 "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c",
2062 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c",
2063 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c",
2064 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c",
2065 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c",
2066 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c",
2067 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c",
2068 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c",
2069 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c",
2070 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c",
2071 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c",
2072 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c",
2073 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c",
Marat Dukhanfa0a4322020-01-06 16:14:29 -08002074 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c",
2075 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c",
2076 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c",
2077 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c",
2078 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c",
2079 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c",
2080 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c",
2081 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c",
2082 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c",
2083 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c",
2084 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c",
2085 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c",
2086 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c",
2087 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c",
2088 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c",
2089 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c",
2090 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c",
2091 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c",
2092 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c",
2093 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c",
2094 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c",
2095 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c",
2096 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c",
2097 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c",
2098 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c",
2099 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c",
2100 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c",
2101 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c",
2102 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c",
2103 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002104 "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c",
2105 "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c",
2106 "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c",
2107 "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c",
2108 "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c",
2109 "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c",
2110 "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c",
2111 "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c",
2112 "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c",
2113 "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c",
2114 "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c",
2115 "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c",
2116 "src/f32-vscaleextexp/gen/avx2-p5-x8.c",
2117 "src/f32-vscaleextexp/gen/avx2-p5-x16.c",
2118 "src/f32-vscaleextexp/gen/avx2-p5-x24.c",
2119 "src/f32-vscaleextexp/gen/avx2-p5-x32.c",
2120 "src/f32-vscaleextexp/gen/avx2-p5-x40.c",
2121 "src/f32-vscaleextexp/gen/avx2-p5-x48.c",
2122 "src/f32-vscaleextexp/gen/avx2-p5-x56.c",
2123 "src/f32-vscaleextexp/gen/avx2-p5-x64.c",
2124 "src/f32-vscaleextexp/gen/avx2-p5-x72.c",
2125 "src/f32-vscaleextexp/gen/avx2-p5-x80.c",
2126 "src/f32-vscaleextexp/gen/avx2-p5-x88.c",
2127 "src/f32-vscaleextexp/gen/avx2-p5-x96.c",
Marat Dukhand65a1522020-08-04 19:28:18 -07002128 "src/qs8-dwconv/gen/up8x9-minmax-avx2-mul32.c",
2129 "src/qs8-dwconv/gen/up16x9-minmax-avx2-mul32.c",
2130 "src/qs8-dwconv/gen/up24x9-minmax-avx2-mul32.c",
2131 "src/qs8-dwconv/gen/up32x9-minmax-avx2-mul32.c",
Marat Dukhan12809522020-08-02 22:23:51 -07002132 "src/qs8-gemm/gen/1x8c8-minmax-avx2.c",
2133 "src/qs8-gemm/gen/2x8c8-minmax-avx2.c",
2134 "src/qs8-gemm/gen/3x8c8-minmax-avx2.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002135 "src/qs8-gemm/gen/1x8c8-xw-minmax-avx2.c",
2136 "src/qs8-gemm/gen/2x8c8-xw-minmax-avx2.c",
2137 "src/qs8-gemm/gen/3x8c8-xw-minmax-avx2.c",
Marat Dukhan12809522020-08-02 22:23:51 -07002138 "src/qs8-igemm/gen/1x8c8-minmax-avx2.c",
2139 "src/qs8-igemm/gen/2x8c8-minmax-avx2.c",
2140 "src/qs8-igemm/gen/3x8c8-minmax-avx2.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002141 "src/math/exp-avx2-p5.c",
2142 "src/math/exp-avx2-perm-p3.c",
2143 "src/math/exp-avx2-perm-p4.c",
Marat Dukhan515c9772019-10-17 18:07:57 -07002144 "src/math/expminus-avx2-p5.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002145 "src/math/extexp-avx2-p5.c",
Marat Dukhan72416002020-01-05 21:53:19 -08002146 "src/math/sigmoid-avx2-rr2-p5-div.c",
2147 "src/math/sigmoid-avx2-rr1-p5-div.c",
2148 "src/math/sigmoid-avx2-rr2-p5-nr2fma.c",
2149 "src/math/sigmoid-avx2-rr1-p5-nr2fma.c",
2150 "src/math/sigmoid-avx2-rr2-p5-nr1fma.c",
2151 "src/math/sigmoid-avx2-rr1-p5-nr1fma.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002152]
2153
Marat Dukhan08c4a432019-10-03 09:29:21 -07002154AVX512F_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07002155 "src/f32-clamp/gen/avx512f-x16.c",
2156 "src/f32-clamp/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002157 "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c",
2158 "src/f32-dwconv/gen/up32x4-minmax-avx512f.c",
2159 "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c",
2160 "src/f32-dwconv/gen/up16x4-minmax-avx512f.c",
2161 "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c",
2162 "src/f32-dwconv/gen/up32x9-minmax-avx512f.c",
2163 "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c",
2164 "src/f32-dwconv/gen/up16x9-minmax-avx512f.c",
2165 "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c",
2166 "src/f32-dwconv/gen/up32x25-minmax-avx512f.c",
2167 "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c",
2168 "src/f32-dwconv/gen/up16x25-minmax-avx512f.c",
2169 "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c",
2170 "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c",
2171 "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c",
2172 "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c",
2173 "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c",
2174 "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c",
2175 "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c",
2176 "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c",
2177 "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c",
2178 "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c",
2179 "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c",
2180 "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07002181 "src/f32-hswish/gen/hswish-avx512f-x16.c",
2182 "src/f32-hswish/gen/hswish-avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002183 "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c",
2184 "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c",
2185 "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c",
2186 "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c",
2187 "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c",
2188 "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07002189 "src/f32-prelu/gen/avx512f-2x16.c",
2190 "src/f32-prelu/gen/avx512f-2x32.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002191 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c",
2192 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2193 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
2194 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c",
2195 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
2196 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c",
2197 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2198 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
2199 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c",
2200 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2201 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2202 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
2203 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c",
2204 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c",
2205 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c",
2206 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c",
2207 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c",
2208 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c",
2209 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c",
2210 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c",
2211 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c",
2212 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c",
2213 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c",
2214 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c",
2215 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c",
2216 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2217 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
2218 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c",
2219 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
2220 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c",
2221 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2222 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
2223 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c",
2224 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2225 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2226 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07002227 "src/f32-relu/gen/avx512f-x16.c",
2228 "src/f32-relu/gen/avx512f-x32.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002229 "src/f32-rmax/avx512f.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002230 "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c",
2231 "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c",
2232 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c",
2233 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c",
2234 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c",
2235 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c",
2236 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c",
2237 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08002238 "src/f32-vbinary/gen/vmax-avx512f-x16.c",
2239 "src/f32-vbinary/gen/vmax-avx512f-x32.c",
2240 "src/f32-vbinary/gen/vmaxc-avx512f-x16.c",
2241 "src/f32-vbinary/gen/vmaxc-avx512f-x32.c",
2242 "src/f32-vbinary/gen/vmin-avx512f-x16.c",
2243 "src/f32-vbinary/gen/vmin-avx512f-x32.c",
2244 "src/f32-vbinary/gen/vminc-avx512f-x16.c",
2245 "src/f32-vbinary/gen/vminc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002246 "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c",
2247 "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c",
2248 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c",
2249 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c",
2250 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c",
2251 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c",
2252 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c",
2253 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07002254 "src/f32-vbinary/gen/vsqrdiff-avx512f-x16.c",
2255 "src/f32-vbinary/gen/vsqrdiff-avx512f-x32.c",
2256 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x16.c",
2257 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002258 "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c",
2259 "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c",
2260 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c",
2261 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07002262 "src/f32-vlrelu/gen/vlrelu-avx512f-x16.c",
2263 "src/f32-vlrelu/gen/vlrelu-avx512f-x32.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002264 "src/f32-vscale/avx512f-unroll64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002265 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c",
2266 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c",
2267 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c",
2268 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c",
2269 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c",
2270 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c",
2271 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c",
2272 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c",
2273 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c",
2274 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c",
2275 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c",
2276 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c",
2277 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c",
2278 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c",
2279 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c",
2280 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c",
2281 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c",
2282 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c",
2283 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c",
2284 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c",
2285 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c",
2286 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c",
2287 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c",
2288 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07002289 "src/f32-vrnd/gen/vrndne-avx512f-x16.c",
2290 "src/f32-vrnd/gen/vrndne-avx512f-x32.c",
2291 "src/f32-vrnd/gen/vrndz-avx512f-x16.c",
2292 "src/f32-vrnd/gen/vrndz-avx512f-x32.c",
2293 "src/f32-vrnd/gen/vrndu-avx512f-x16.c",
2294 "src/f32-vrnd/gen/vrndu-avx512f-x32.c",
2295 "src/f32-vrnd/gen/vrndd-avx512f-x16.c",
2296 "src/f32-vrnd/gen/vrndd-avx512f-x32.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002297 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x16.c",
2298 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x32.c",
2299 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x48.c",
2300 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x64.c",
2301 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x80.c",
2302 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x96.c",
2303 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x112.c",
2304 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x128.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07002305 "src/f32-vunary/gen/vabs-avx512f-x16.c",
2306 "src/f32-vunary/gen/vabs-avx512f-x32.c",
2307 "src/f32-vunary/gen/vneg-avx512f-x16.c",
2308 "src/f32-vunary/gen/vneg-avx512f-x32.c",
2309 "src/f32-vunary/gen/vsqr-avx512f-x16.c",
2310 "src/f32-vunary/gen/vsqr-avx512f-x32.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002311 "src/math/exp-avx512f-p5-scalef.c",
2312 "src/math/exp-avx512f-p5.c",
2313 "src/math/exp-avx512f-perm-p3.c",
Marat Dukhanfeb49232019-10-28 11:03:31 -07002314 "src/math/exp-avx512f-perm2-p2.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002315 "src/math/extexp-avx512f-p5.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002316 "src/math/sqrt-avx512f-nr1fma.c",
2317 "src/math/sqrt-avx512f-nr2fma.c",
2318 "src/math/sqrt-avx512f-nr1fma1adj.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002319]
2320
2321AARCH32_ASM_UKERNELS = [
Marat Dukhan32f93812020-05-17 20:31:21 -07002322 "src/f32-gemm/4x4-aarch32-vfp-ld64.S",
Marat Dukhan3b98f6b2020-05-17 10:09:22 -07002323 "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002324 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2325 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002326 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a7.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002327 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
Frank Barchard569561d2020-06-17 13:11:12 -07002328 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-ld64.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002329 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002330 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2331 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002332 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a7.S",
2333 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
2334 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-ld64.S",
2335 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002336]
2337
2338AARCH64_ASM_UKERNELS = [
Frank Barchard36b76b62020-04-10 12:39:17 -07002339 "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07002340 "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S",
2341 "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard36b76b62020-04-10 12:39:17 -07002342 "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07002343 "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S",
2344 "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002345 "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S",
2346 "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S",
2347 "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002348 "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002349 "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S",
2350 "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S",
2351 "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002352 "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002353 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S",
2354 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07002355 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002356 "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2357 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2358 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2359 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2360 "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2361 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2362 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2363 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2364 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2365 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S",
2366 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S",
2367 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2368 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2369 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2370 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2371 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2372 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2373 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002374 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S",
2375 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07002376 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002377 "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S",
2378 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2379 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2380 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2381 "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S",
2382 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2383 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2384 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2385 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2386 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S",
2387 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S",
2388 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2389 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2390 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2391 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2392 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S",
2393 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2394 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002395 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S",
2396 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S",
2397 "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2398 "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2399 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2400 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2401 "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2402 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2403 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2404 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2405 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2406 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2407 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2408 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2409 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2410 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2411 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2412 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002413]
2414
Marat Dukhan1b354632020-03-23 12:50:22 -07002415INTERNAL_MICROKERNEL_HDRS = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002416 "src/xnnpack/argmaxpool.h",
2417 "src/xnnpack/avgpool.h",
2418 "src/xnnpack/clamp.h",
2419 "src/xnnpack/common.h",
2420 "src/xnnpack/conv.h",
2421 "src/xnnpack/dwconv.h",
2422 "src/xnnpack/gavgpool.h",
2423 "src/xnnpack/gemm.h",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07002424 "src/xnnpack/fill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002425 "src/xnnpack/hswish.h",
Marat Dukhan660fd192020-03-10 04:55:30 -07002426 "src/xnnpack/ibilinear.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002427 "src/xnnpack/igemm.h",
Marat Dukhancfb31342019-12-05 10:42:57 -08002428 "src/xnnpack/intrinsics-polyfill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002429 "src/xnnpack/lut.h",
2430 "src/xnnpack/math.h",
2431 "src/xnnpack/maxpool.h",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002432 "src/xnnpack/memory.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002433 "src/xnnpack/packx.h",
2434 "src/xnnpack/pad.h",
2435 "src/xnnpack/params.h",
2436 "src/xnnpack/pavgpool.h",
2437 "src/xnnpack/ppmm.h",
2438 "src/xnnpack/prelu.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002439 "src/xnnpack/raddexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002440 "src/xnnpack/raddextexp.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002441 "src/xnnpack/raddstoreexpminusmax.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002442 "src/xnnpack/rmax.h",
2443 "src/xnnpack/scalar-utils.h",
2444 "src/xnnpack/spmm.h",
2445 "src/xnnpack/unpool.h",
2446 "src/xnnpack/vadd.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002447 "src/xnnpack/vbinary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002448 "src/xnnpack/vmulcaddc.h",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002449 "src/xnnpack/vscale.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002450 "src/xnnpack/vscaleexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002451 "src/xnnpack/vscaleextexp.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08002452 "src/xnnpack/vunary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002453 "src/xnnpack/zip.h",
Marat Dukhan1b354632020-03-23 12:50:22 -07002454]
2455
2456INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002457 "include/xnnpack.h",
2458 "src/xnnpack/allocator.h",
2459 "src/xnnpack/compute.h",
2460 "src/xnnpack/im2col.h",
2461 "src/xnnpack/indirection.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002462 "src/xnnpack/math-stubs.h",
Chao Mei6ddfc602020-05-13 22:29:36 -07002463 "src/xnnpack/memory-planner.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002464 "src/xnnpack/operator.h",
2465 "src/xnnpack/pack.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002466 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002467 "src/xnnpack/requantization-stubs.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002468 "src/xnnpack/requantization.h",
Marat Dukhan1d75a542020-02-03 12:23:01 -08002469 "src/xnnpack/subgraph.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002470]
2471
Marat Dukhan1b354632020-03-23 12:50:22 -07002472ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002473 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002474]
2475
Marat Dukhan1b354632020-03-23 12:50:22 -07002476MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002477 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002478 "include/xnnpack.h",
2479]
2480
Marat Dukhan1b354632020-03-23 12:50:22 -07002481MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002482 "src/xnnpack/isa-checks.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07002483 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002484 "src/xnnpack/requantization.h",
2485 "include/xnnpack.h",
2486]
2487
2488OPERATOR_TEST_PARAMS_HDRS = [
2489 "src/xnnpack/params.h",
2490 "src/xnnpack/common.h",
2491]
2492
2493WEIGHTS_PACK_HDRS = [
2494 "src/xnnpack/pack.h",
2495 "src/xnnpack/operator.h",
2496 "src/xnnpack/compute.h",
2497]
2498
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002499LOGGING_COPTS = select({
2500 # No logging in optimized mode
2501 ":optimized_build": ["-DXNN_LOG_LEVEL=0"],
2502 # Full logging in debug mode
2503 ":debug_build": ["-DXNN_LOG_LEVEL=5"],
2504 # Error-only logging in default (fastbuild) mode
2505 "//conditions:default": ["-DXNN_LOG_LEVEL=2"],
2506})
2507
Marat Dukhan3b59de22020-06-03 20:15:19 -07002508LOGGING_SRCS = select({
2509 # No logging in optimized mode
2510 ":optimized_build": [],
2511 "//conditions:default": [
2512 "src/operator-strings.c",
2513 "src/subgraph-strings.c",
2514 ],
2515})
2516
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002517LOGGING_HDRS = [
2518 "src/xnnpack/log.h",
2519]
2520
Marat Dukhan08c4a432019-10-03 09:29:21 -07002521xnnpack_cc_library(
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002522 name = "tables",
2523 srcs = TABLE_SRCS,
2524 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002525 gcc_copts = xnnpack_gcc_std_copts(),
2526 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002527)
2528
2529xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002530 name = "scalar_ukernels",
2531 srcs = SCALAR_UKERNELS,
2532 hdrs = INTERNAL_HDRS,
2533 aarch32_copts = ["-marm"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002534 gcc_copts = xnnpack_gcc_std_copts(),
2535 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002536 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002537 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002538 "@FP16",
2539 "@FXdiv",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002540 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002541 ],
2542)
2543
2544xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002545 name = "scalar_ukernels_test_mode",
2546 srcs = SCALAR_UKERNELS,
2547 hdrs = INTERNAL_HDRS,
2548 aarch32_copts = ["-marm"],
2549 copts = [
2550 "-UNDEBUG",
2551 "-DXNN_TEST_MODE=1",
2552 ],
2553 gcc_copts = xnnpack_gcc_std_copts(),
2554 msvc_copts = xnnpack_msvc_std_copts(),
2555 deps = [
2556 ":tables",
2557 "@FP16",
2558 "@FXdiv",
2559 "@pthreadpool",
2560 ],
2561)
2562
2563xnnpack_cc_library(
Marat Dukhan436ebe62019-12-04 15:10:12 -08002564 name = "wasm_ukernels",
2565 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002566 gcc_copts = xnnpack_gcc_std_copts(),
2567 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan436ebe62019-12-04 15:10:12 -08002568 wasm_srcs = WASM_UKERNELS,
Marat Dukhan1c6e3892020-06-25 23:56:10 -07002569 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan436ebe62019-12-04 15:10:12 -08002570 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002571 ":tables",
Marat Dukhan436ebe62019-12-04 15:10:12 -08002572 "@FP16",
2573 "@FXdiv",
2574 "@pthreadpool",
2575 ],
2576)
2577
2578xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002579 name = "wasm_ukernels_test_mode",
2580 hdrs = INTERNAL_HDRS,
2581 copts = [
2582 "-UNDEBUG",
2583 "-DXNN_TEST_MODE=1",
2584 ],
2585 gcc_copts = xnnpack_gcc_std_copts(),
2586 msvc_copts = xnnpack_msvc_std_copts(),
2587 wasm_srcs = WASM_UKERNELS,
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07002588 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07002589 deps = [
2590 ":tables",
2591 "@FP16",
2592 "@FXdiv",
2593 "@pthreadpool",
2594 ],
2595)
2596
2597xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002598 name = "psimd_fastmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002599 hdrs = INTERNAL_HDRS,
2600 aarch32_copts = [
2601 "-marm",
2602 "-mfpu=neon",
2603 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002604 gcc_copts = xnnpack_gcc_std_copts(),
2605 gcc_x86_copts = ["-msse2"],
2606 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002607 optimized_copts = [
2608 "-O3",
2609 "-ffast-math",
2610 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002611 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002612 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002613 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002614 "@FP16",
2615 "@psimd",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002616 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002617 ],
2618)
2619
2620xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002621 name = "psimd_fastmath_ukernels_test_mode",
2622 hdrs = INTERNAL_HDRS,
2623 aarch32_copts = [
2624 "-marm",
2625 "-mfpu=neon",
2626 ],
2627 copts = [
2628 "-UNDEBUG",
2629 "-DXNN_TEST_MODE=1",
2630 ],
2631 gcc_copts = xnnpack_gcc_std_copts(),
2632 gcc_x86_copts = ["-msse2"],
2633 msvc_copts = xnnpack_msvc_std_copts(),
2634 optimized_copts = [
2635 "-O3",
2636 "-ffast-math",
2637 ],
2638 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
2639 deps = [
2640 ":tables",
2641 "@FP16",
2642 "@psimd",
2643 "@pthreadpool",
2644 ],
2645)
2646
2647xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002648 name = "psimd_accmath_ukernels",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002649 hdrs = INTERNAL_HDRS,
2650 aarch32_copts = [
2651 "-marm",
2652 "-mfpu=neon",
2653 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002654 gcc_copts = xnnpack_gcc_std_copts(),
2655 gcc_x86_copts = ["-msse2"],
2656 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002657 optimized_copts = [
2658 "-O3",
2659 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002660 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002661 deps = [
2662 ":tables",
2663 "@FP16",
2664 "@psimd",
2665 "@pthreadpool",
2666 ],
2667)
2668
2669xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002670 name = "psimd_accmath_ukernels_test_mode",
2671 hdrs = INTERNAL_HDRS,
2672 aarch32_copts = [
2673 "-marm",
2674 "-mfpu=neon",
2675 ],
2676 copts = [
2677 "-UNDEBUG",
2678 "-DXNN_TEST_MODE=1",
2679 ],
2680 gcc_copts = xnnpack_gcc_std_copts(),
2681 gcc_x86_copts = ["-msse2"],
2682 msvc_copts = xnnpack_msvc_std_copts(),
2683 optimized_copts = [
2684 "-O3",
2685 ],
2686 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
2687 deps = [
2688 ":tables",
2689 "@FP16",
2690 "@psimd",
2691 "@pthreadpool",
2692 ],
2693)
2694
2695xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002696 name = "neon_ukernels",
2697 hdrs = INTERNAL_HDRS,
2698 aarch32_copts = [
2699 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002700 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002701 "-mfpu=neon",
2702 ],
2703 aarch32_srcs = NEON_UKERNELS,
2704 aarch64_srcs = NEON_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002705 gcc_copts = xnnpack_gcc_std_copts(),
2706 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002707 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002708 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002709 "@FP16",
2710 "@pthreadpool",
2711 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002712)
2713
2714xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002715 name = "neon_ukernels_test_mode",
2716 hdrs = INTERNAL_HDRS,
2717 aarch32_copts = [
2718 "-marm",
2719 "-march=armv7-a",
2720 "-mfpu=neon",
2721 ],
2722 aarch32_srcs = NEON_UKERNELS,
2723 aarch64_srcs = NEON_UKERNELS,
2724 copts = [
2725 "-UNDEBUG",
2726 "-DXNN_TEST_MODE=1",
2727 ],
2728 gcc_copts = xnnpack_gcc_std_copts(),
2729 msvc_copts = xnnpack_msvc_std_copts(),
2730 deps = [
2731 ":tables",
2732 "@FP16",
2733 "@pthreadpool",
2734 ],
2735)
2736
2737xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002738 name = "neonfma_ukernels",
2739 hdrs = INTERNAL_HDRS,
2740 aarch32_copts = [
2741 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002742 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002743 "-mfpu=neon-vfpv4",
2744 ],
2745 aarch32_srcs = NEONFMA_UKERNELS,
2746 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002747 apple_aarch32_copts = [
2748 "-mcpu=swift",
2749 "-mtune=generic",
2750 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002751 gcc_copts = xnnpack_gcc_std_copts(),
2752 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002753 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002754 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002755 "@FP16",
2756 "@pthreadpool",
2757 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002758)
2759
2760xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002761 name = "neonfma_ukernels_test_mode",
2762 hdrs = INTERNAL_HDRS,
2763 aarch32_copts = [
2764 "-marm",
2765 "-march=armv7-a",
2766 "-mfpu=neon-vfpv4",
2767 ],
2768 aarch32_srcs = NEONFMA_UKERNELS,
2769 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002770 apple_aarch32_copts = [
2771 "-mcpu=swift",
2772 "-mtune=generic",
2773 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002774 copts = [
2775 "-UNDEBUG",
2776 "-DXNN_TEST_MODE=1",
2777 ],
2778 gcc_copts = xnnpack_gcc_std_copts(),
2779 msvc_copts = xnnpack_msvc_std_copts(),
2780 deps = [
2781 ":tables",
2782 "@FP16",
2783 "@pthreadpool",
2784 ],
2785)
2786
2787xnnpack_cc_library(
Marat Dukhan8853b822020-05-07 12:19:01 -07002788 name = "neonv8_ukernels",
2789 hdrs = INTERNAL_HDRS,
2790 aarch32_copts = [
2791 "-marm",
2792 "-march=armv8-a",
2793 "-mfpu=neon-fp-armv8",
2794 ],
2795 aarch32_srcs = NEONV8_UKERNELS,
2796 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002797 apple_aarch32_copts = [
2798 "-mcpu=cyclone",
2799 "-mtune=generic",
2800 ],
Marat Dukhan8853b822020-05-07 12:19:01 -07002801 gcc_copts = xnnpack_gcc_std_copts(),
2802 msvc_copts = xnnpack_msvc_std_copts(),
2803 deps = [
2804 ":tables",
2805 "@FP16",
2806 "@pthreadpool",
2807 ],
2808)
2809
2810xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002811 name = "neonv8_ukernels_test_mode",
2812 hdrs = INTERNAL_HDRS,
2813 aarch32_copts = [
2814 "-marm",
2815 "-march=armv8-a",
2816 "-mfpu=neon-fp-armv8",
2817 ],
2818 aarch32_srcs = NEONV8_UKERNELS,
2819 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07002820 apple_aarch32_copts = [
2821 "-mcpu=cyclone",
2822 "-mtune=generic",
2823 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002824 copts = [
2825 "-UNDEBUG",
2826 "-DXNN_TEST_MODE=1",
2827 ],
2828 gcc_copts = xnnpack_gcc_std_copts(),
2829 msvc_copts = xnnpack_msvc_std_copts(),
2830 deps = [
2831 ":tables",
2832 "@FP16",
2833 "@pthreadpool",
2834 ],
2835)
2836
2837xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002838 name = "neonfp16arith_ukernels",
2839 hdrs = INTERNAL_HDRS,
2840 aarch64_copts = ["-march=armv8.2-a+fp16"],
2841 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002842 gcc_copts = xnnpack_gcc_std_copts(),
2843 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002844 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002845 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002846 "@FP16",
2847 "@pthreadpool",
2848 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002849)
2850
2851xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002852 name = "neonfp16arith_ukernels_test_mode",
2853 hdrs = INTERNAL_HDRS,
2854 aarch64_copts = ["-march=armv8.2-a+fp16"],
2855 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
2856 copts = [
2857 "-UNDEBUG",
2858 "-DXNN_TEST_MODE=1",
2859 ],
2860 gcc_copts = xnnpack_gcc_std_copts(),
2861 msvc_copts = xnnpack_msvc_std_copts(),
2862 deps = [
2863 ":tables",
2864 "@FP16",
2865 "@pthreadpool",
2866 ],
2867)
2868
2869xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002870 name = "sse2_ukernels",
2871 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002872 gcc_copts = xnnpack_gcc_std_copts(),
2873 gcc_x86_copts = ["-msse2"],
2874 msvc_copts = xnnpack_msvc_std_copts(),
2875 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002876 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002877 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002878 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002879 "@FP16",
2880 "@pthreadpool",
2881 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002882)
2883
2884xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002885 name = "sse2_ukernels_test_mode",
2886 hdrs = INTERNAL_HDRS,
2887 copts = [
2888 "-UNDEBUG",
2889 "-DXNN_TEST_MODE=1",
2890 ],
2891 gcc_copts = xnnpack_gcc_std_copts(),
2892 gcc_x86_copts = ["-msse2"],
2893 msvc_copts = xnnpack_msvc_std_copts(),
2894 msvc_x86_32_copts = ["/arch:SSE2"],
2895 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
2896 deps = [
2897 ":tables",
2898 "@FP16",
2899 "@pthreadpool",
2900 ],
2901)
2902
2903xnnpack_cc_library(
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002904 name = "ssse3_ukernels",
2905 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002906 gcc_copts = xnnpack_gcc_std_copts(),
2907 gcc_x86_copts = ["-mssse3"],
2908 msvc_copts = xnnpack_msvc_std_copts(),
2909 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002910 x86_srcs = SSSE3_UKERNELS,
2911 deps = [
2912 ":tables",
2913 "@FP16",
2914 "@pthreadpool",
2915 ],
2916)
2917
2918xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002919 name = "ssse3_ukernels_test_mode",
2920 hdrs = INTERNAL_HDRS,
2921 copts = [
2922 "-UNDEBUG",
2923 "-DXNN_TEST_MODE=1",
2924 ],
2925 gcc_copts = xnnpack_gcc_std_copts(),
2926 gcc_x86_copts = ["-mssse3"],
2927 msvc_copts = xnnpack_msvc_std_copts(),
2928 msvc_x86_32_copts = ["/arch:SSE2"],
2929 x86_srcs = SSSE3_UKERNELS,
2930 deps = [
2931 ":tables",
2932 "@FP16",
2933 "@pthreadpool",
2934 ],
2935)
2936
2937xnnpack_cc_library(
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002938 name = "sse41_ukernels",
2939 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002940 gcc_copts = xnnpack_gcc_std_copts(),
2941 gcc_x86_copts = ["-msse4.1"],
2942 msvc_copts = xnnpack_msvc_std_copts(),
2943 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002944 x86_srcs = SSE41_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002945 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002946 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002947 "@FP16",
2948 "@pthreadpool",
2949 ],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002950)
2951
2952xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002953 name = "sse41_ukernels_test_mode",
2954 hdrs = INTERNAL_HDRS,
2955 copts = [
2956 "-UNDEBUG",
2957 "-DXNN_TEST_MODE=1",
2958 ],
2959 gcc_copts = xnnpack_gcc_std_copts(),
2960 gcc_x86_copts = ["-msse4.1"],
2961 msvc_copts = xnnpack_msvc_std_copts(),
2962 msvc_x86_32_copts = ["/arch:SSE2"],
2963 x86_srcs = SSE41_UKERNELS,
2964 deps = [
2965 ":tables",
2966 "@FP16",
2967 "@pthreadpool",
2968 ],
2969)
2970
2971xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002972 name = "avx_ukernels",
2973 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002974 gcc_copts = xnnpack_gcc_std_copts(),
2975 gcc_x86_copts = ["-mavx"],
2976 msvc_copts = xnnpack_msvc_std_copts(),
2977 msvc_x86_32_copts = ["/arch:AVX"],
2978 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002979 x86_srcs = AVX_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002980 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002981 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002982 "@FP16",
2983 "@pthreadpool",
2984 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002985)
2986
2987xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002988 name = "avx_ukernels_test_mode",
2989 hdrs = INTERNAL_HDRS,
2990 copts = [
2991 "-UNDEBUG",
2992 "-DXNN_TEST_MODE=1",
2993 ],
2994 gcc_copts = xnnpack_gcc_std_copts(),
2995 gcc_x86_copts = ["-mavx"],
2996 msvc_copts = xnnpack_msvc_std_copts(),
2997 msvc_x86_32_copts = ["/arch:AVX"],
2998 msvc_x86_64_copts = ["/arch:AVX"],
2999 x86_srcs = AVX_UKERNELS,
3000 deps = [
3001 ":tables",
3002 "@FP16",
3003 "@pthreadpool",
3004 ],
3005)
3006
3007xnnpack_cc_library(
Marat Dukhan1566fee2020-08-02 21:55:41 -07003008 name = "xop_ukernels",
3009 hdrs = INTERNAL_HDRS,
3010 gcc_copts = xnnpack_gcc_std_copts(),
3011 gcc_x86_copts = ["-mxop"],
3012 msvc_copts = xnnpack_msvc_std_copts(),
3013 msvc_x86_32_copts = ["/arch:AVX"],
3014 msvc_x86_64_copts = ["/arch:AVX"],
3015 x86_srcs = XOP_UKERNELS,
3016 deps = [
3017 ":tables",
3018 "@FP16",
3019 "@pthreadpool",
3020 ],
3021)
3022
3023xnnpack_cc_library(
3024 name = "xop_ukernels_test_mode",
3025 hdrs = INTERNAL_HDRS,
3026 copts = [
3027 "-UNDEBUG",
3028 "-DXNN_TEST_MODE=1",
3029 ],
3030 gcc_copts = xnnpack_gcc_std_copts(),
3031 gcc_x86_copts = ["-mxop"],
3032 msvc_copts = xnnpack_msvc_std_copts(),
3033 msvc_x86_32_copts = ["/arch:AVX"],
3034 msvc_x86_64_copts = ["/arch:AVX"],
3035 x86_srcs = XOP_UKERNELS,
3036 deps = [
3037 ":tables",
3038 "@FP16",
3039 "@pthreadpool",
3040 ],
3041)
3042
3043xnnpack_cc_library(
Marat Dukhanfda12b82019-11-21 12:27:59 -08003044 name = "fma3_ukernels",
3045 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003046 gcc_copts = xnnpack_gcc_std_copts(),
3047 gcc_x86_copts = ["-mfma"],
3048 msvc_copts = xnnpack_msvc_std_copts(),
3049 msvc_x86_32_copts = ["/arch:AVX"],
3050 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhanfda12b82019-11-21 12:27:59 -08003051 x86_srcs = FMA3_UKERNELS,
3052 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003053 ":tables",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003054 "@FP16",
3055 "@pthreadpool",
3056 ],
3057)
3058
3059xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003060 name = "fma3_ukernels_test_mode",
3061 hdrs = INTERNAL_HDRS,
3062 copts = [
3063 "-UNDEBUG",
3064 "-DXNN_TEST_MODE=1",
3065 ],
3066 gcc_copts = xnnpack_gcc_std_copts(),
3067 gcc_x86_copts = ["-mfma"],
3068 msvc_copts = xnnpack_msvc_std_copts(),
3069 msvc_x86_32_copts = ["/arch:AVX"],
3070 msvc_x86_64_copts = ["/arch:AVX"],
3071 x86_srcs = FMA3_UKERNELS,
3072 deps = [
3073 ":tables",
3074 "@FP16",
3075 "@pthreadpool",
3076 ],
3077)
3078
3079xnnpack_cc_library(
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003080 name = "avx2_ukernels",
3081 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003082 gcc_copts = xnnpack_gcc_std_copts(),
3083 gcc_x86_copts = [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003084 "-mfma",
3085 "-mavx2",
3086 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003087 msvc_copts = xnnpack_msvc_std_copts(),
3088 msvc_x86_32_copts = ["/arch:AVX2"],
3089 msvc_x86_64_copts = ["/arch:AVX2"],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003090 x86_srcs = AVX2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003091 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003092 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003093 "@FP16",
3094 "@pthreadpool",
3095 ],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003096)
3097
3098xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003099 name = "avx2_ukernels_test_mode",
3100 hdrs = INTERNAL_HDRS,
3101 copts = [
3102 "-UNDEBUG",
3103 "-DXNN_TEST_MODE=1",
3104 ],
3105 gcc_copts = xnnpack_gcc_std_copts(),
3106 gcc_x86_copts = [
3107 "-mfma",
3108 "-mavx2",
3109 ],
3110 msvc_copts = xnnpack_msvc_std_copts(),
3111 msvc_x86_32_copts = ["/arch:AVX2"],
3112 msvc_x86_64_copts = ["/arch:AVX2"],
3113 x86_srcs = AVX2_UKERNELS,
3114 deps = [
3115 ":tables",
3116 "@FP16",
3117 "@pthreadpool",
3118 ],
3119)
3120
3121xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003122 name = "avx512f_ukernels",
3123 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003124 gcc_copts = xnnpack_gcc_std_copts(),
3125 gcc_x86_copts = ["-mavx512f"],
3126 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3127 msvc_copts = xnnpack_msvc_std_copts(),
3128 msvc_x86_32_copts = ["/arch:AVX512"],
3129 msvc_x86_64_copts = ["/arch:AVX512"],
3130 msys_copts = ["-fno-asynchronous-unwind-tables"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003131 x86_srcs = AVX512F_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003132 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003133 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003134 "@FP16",
3135 "@pthreadpool",
3136 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003137)
3138
3139xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003140 name = "avx512f_ukernels_test_mode",
3141 hdrs = INTERNAL_HDRS,
3142 copts = [
3143 "-UNDEBUG",
3144 "-DXNN_TEST_MODE=1",
3145 ],
3146 gcc_copts = xnnpack_gcc_std_copts(),
3147 gcc_x86_copts = ["-mavx512f"],
3148 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3149 msvc_copts = xnnpack_msvc_std_copts(),
3150 msvc_x86_32_copts = ["/arch:AVX512"],
3151 msvc_x86_64_copts = ["/arch:AVX512"],
3152 msys_copts = ["-fno-asynchronous-unwind-tables"],
3153 x86_srcs = AVX512F_UKERNELS,
3154 deps = [
3155 ":tables",
3156 "@FP16",
3157 "@pthreadpool",
3158 ],
3159)
3160
3161xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003162 name = "asm_ukernels",
3163 hdrs = ["src/xnnpack/assembly.h"],
3164 aarch32_srcs = AARCH32_ASM_UKERNELS,
Frank Barchard683f5592020-04-10 00:48:26 -07003165 aarch64_copts = ["-march=armv8.2-a+fp16"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003166 aarch64_srcs = AARCH64_ASM_UKERNELS,
3167)
3168
Marat Dukhan3b59de22020-06-03 20:15:19 -07003169xnnpack_cc_library(
3170 name = "logging_utils",
3171 srcs = LOGGING_SRCS,
3172 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3173 copts = LOGGING_COPTS + [
3174 "-Isrc",
3175 "-Iinclude",
3176 ] + select({
3177 ":debug_build": [],
3178 "//conditions:default": xnnpack_min_size_copts(),
3179 }),
3180 gcc_copts = xnnpack_gcc_std_copts(),
3181 msvc_copts = xnnpack_msvc_std_copts(),
3182 visibility = xnnpack_visibility(),
3183 deps = [
3184 "@FP16",
3185 "@clog",
3186 "@pthreadpool",
3187 ],
3188)
3189
Marat Dukhan08c4a432019-10-03 09:29:21 -07003190xnnpack_aggregate_library(
3191 name = "ukernels",
3192 aarch32_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003193 ":neon_ukernels",
3194 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003195 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003196 ":asm_ukernels",
3197 ],
3198 aarch64_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003199 ":neon_ukernels",
3200 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003201 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003202 ":neonfp16arith_ukernels",
3203 ":asm_ukernels",
3204 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003205 generic_deps = [
3206 ":scalar_ukernels",
3207 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07003208 psimd_deps = [
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003209 ":psimd_fastmath_ukernels",
3210 ":psimd_accmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003211 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003212 wasm_deps = [
3213 ":wasm_ukernels",
3214 ],
3215 wasmsimd_deps = [
3216 ":wasm_ukernels",
3217 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003218 x86_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003219 ":sse2_ukernels",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003220 ":ssse3_ukernels",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003221 ":sse41_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003222 ":avx_ukernels",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003223 ":xop_ukernels",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003224 ":fma3_ukernels",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003225 ":avx2_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003226 ":avx512f_ukernels",
3227 ],
3228)
3229
Marat Dukhan33fcf782020-05-24 14:27:15 -07003230xnnpack_aggregate_library(
3231 name = "ukernels_test_mode",
3232 aarch32_deps = [
3233 ":neon_ukernels_test_mode",
3234 ":neonfma_ukernels_test_mode",
3235 ":neonv8_ukernels_test_mode",
3236 ":asm_ukernels",
3237 ],
3238 aarch64_deps = [
3239 ":neon_ukernels_test_mode",
3240 ":neonfma_ukernels_test_mode",
3241 ":neonv8_ukernels_test_mode",
3242 ":neonfp16arith_ukernels_test_mode",
3243 ":asm_ukernels",
3244 ],
3245 generic_deps = [
3246 ":scalar_ukernels_test_mode",
3247 ],
3248 psimd_deps = [
3249 ":psimd_fastmath_ukernels_test_mode",
3250 ":psimd_accmath_ukernels_test_mode",
3251 ],
3252 wasm_deps = [
3253 ":wasm_ukernels_test_mode",
3254 ],
3255 wasmsimd_deps = [
3256 ":wasm_ukernels_test_mode",
3257 ],
3258 x86_deps = [
3259 ":sse2_ukernels_test_mode",
3260 ":ssse3_ukernels_test_mode",
3261 ":sse41_ukernels_test_mode",
3262 ":avx_ukernels_test_mode",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003263 ":xop_ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003264 ":fma3_ukernels_test_mode",
3265 ":avx2_ukernels_test_mode",
3266 ":avx512f_ukernels_test_mode",
3267 ],
3268)
3269
Marat Dukhan86df3842020-06-17 14:03:31 -07003270# This target must be compatible with Android NDK r17 and compile with Clang 6.
3271# It is similar to :ukernels target, but excludes microkernels which require
3272# NEON FP16 arithmetics, NEON Dot Product, and newer intrinsics.
Marat Dukhanae046f52020-06-15 13:16:14 -07003273xnnpack_aggregate_library(
Marat Dukhan86df3842020-06-17 14:03:31 -07003274 name = "ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003275 aarch32_deps = [
3276 ":neon_ukernels",
3277 ":neonfma_ukernels",
3278 ":neonv8_ukernels",
3279 ":asm_ukernels",
3280 ],
3281 aarch64_deps = [
3282 ":neon_ukernels",
3283 ":neonfma_ukernels",
3284 ":neonv8_ukernels",
3285 ":asm_ukernels",
3286 ],
3287 generic_deps = [
3288 ":scalar_ukernels",
3289 ],
3290 psimd_deps = [
3291 ":psimd_fastmath_ukernels",
3292 ":psimd_accmath_ukernels",
3293 ],
3294 wasm_deps = [
3295 ":wasm_ukernels",
3296 ],
3297 wasmsimd_deps = [
3298 ":wasm_ukernels",
3299 ],
3300 x86_deps = [
3301 ":sse2_ukernels",
3302 ":ssse3_ukernels",
3303 ":sse41_ukernels",
3304 ":avx_ukernels",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003305 ":xop_ukernels",
Marat Dukhanae046f52020-06-15 13:16:14 -07003306 ":fma3_ukernels",
3307 ":avx2_ukernels",
3308 ":avx512f_ukernels",
3309 ],
3310)
3311
Marat Dukhan08c4a432019-10-03 09:29:21 -07003312xnnpack_cc_library(
3313 name = "im2col",
3314 srcs = ["src/im2col.c"],
3315 hdrs = [
3316 "src/xnnpack/common.h",
3317 "src/xnnpack/im2col.h",
3318 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003319 gcc_copts = xnnpack_gcc_std_copts(),
3320 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003321)
3322
3323xnnpack_cc_library(
3324 name = "indirection",
3325 srcs = ["src/indirection.c"],
3326 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003327 gcc_copts = xnnpack_gcc_std_copts(),
3328 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003329 deps = [
3330 "@FP16",
3331 "@FXdiv",
3332 "@pthreadpool",
3333 ],
3334)
3335
3336xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003337 name = "indirection_test_mode",
3338 srcs = ["src/indirection.c"],
3339 hdrs = INTERNAL_HDRS,
3340 copts = [
3341 "-UNDEBUG",
3342 "-DXNN_TEST_MODE=1",
3343 ],
3344 gcc_copts = xnnpack_gcc_std_copts(),
3345 msvc_copts = xnnpack_msvc_std_copts(),
3346 deps = [
3347 "@FP16",
3348 "@FXdiv",
3349 "@pthreadpool",
3350 ],
3351)
3352
3353xnnpack_cc_library(
Marat Dukhanab582382020-07-06 13:32:08 -07003354 name = "packing",
3355 srcs = ["src/packing.c"],
3356 hdrs = INTERNAL_HDRS,
3357 gcc_copts = xnnpack_gcc_std_copts(),
3358 msvc_copts = xnnpack_msvc_std_copts(),
3359 deps = [
3360 "@FP16",
3361 "@FXdiv",
3362 "@pthreadpool",
3363 ],
3364)
3365
3366xnnpack_cc_library(
3367 name = "packing_test_mode",
3368 srcs = ["src/packing.c"],
3369 hdrs = INTERNAL_HDRS,
3370 copts = [
3371 "-UNDEBUG",
3372 "-DXNN_TEST_MODE=1",
3373 ],
3374 gcc_copts = xnnpack_gcc_std_copts(),
3375 msvc_copts = xnnpack_msvc_std_copts(),
3376 deps = [
3377 "@FP16",
3378 "@FXdiv",
3379 "@pthreadpool",
3380 ],
3381)
3382
3383xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003384 name = "operator_run",
3385 srcs = ["src/operator-run.c"],
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07003386 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003387 copts = LOGGING_COPTS + select({
Marat Dukhan05702cf2020-03-26 15:41:33 -07003388 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3389 "//conditions:default": [],
3390 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003391 gcc_copts = xnnpack_gcc_std_copts(),
3392 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003393 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003394 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003395 "@FP16",
3396 "@FXdiv",
3397 "@clog",
3398 "@pthreadpool",
3399 ],
3400)
3401
Chao Mei6ddfc602020-05-13 22:29:36 -07003402xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003403 name = "operator_run_test_mode",
3404 srcs = ["src/operator-run.c"],
3405 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3406 copts = LOGGING_COPTS + [
3407 "-UNDEBUG",
3408 "-DXNN_TEST_MODE=1",
3409 ] + select({
3410 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3411 "//conditions:default": [],
3412 }),
3413 gcc_copts = xnnpack_gcc_std_copts(),
3414 msvc_copts = xnnpack_msvc_std_copts(),
3415 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003416 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003417 "@FP16",
3418 "@FXdiv",
3419 "@clog",
3420 "@pthreadpool",
3421 ],
3422)
3423
3424xnnpack_cc_library(
Chao Mei6ddfc602020-05-13 22:29:36 -07003425 name = "memory_planner",
3426 srcs = ["src/memory-planner.c"],
3427 hdrs = INTERNAL_HDRS,
3428 defines = select({
3429 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
3430 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
3431 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
3432 }),
3433 gcc_copts = xnnpack_gcc_std_copts(),
3434 msvc_copts = xnnpack_msvc_std_copts(),
3435 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003436 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07003437 "@pthreadpool",
3438 ],
3439)
3440
Marat Dukhan33fcf782020-05-24 14:27:15 -07003441xnnpack_cc_library(
3442 name = "memory_planner_test_mode",
3443 srcs = ["src/memory-planner.c"],
3444 hdrs = INTERNAL_HDRS,
3445 copts = [
3446 "-UNDEBUG",
3447 "-DXNN_TEST_MODE=1",
3448 ],
3449 defines = select({
3450 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
3451 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
3452 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
3453 }),
3454 gcc_copts = xnnpack_gcc_std_copts(),
3455 msvc_copts = xnnpack_msvc_std_copts(),
3456 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07003457 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003458 "@pthreadpool",
3459 ],
3460)
3461
Marat Dukhan08c4a432019-10-03 09:29:21 -07003462cc_library(
3463 name = "enable_assembly",
3464 defines = select({
3465 ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"],
3466 ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"],
Frank Barchard810171d2019-10-10 10:34:51 -07003467 "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003468 }),
3469)
3470
Marat Dukhan9de90e02020-06-18 16:04:12 -07003471cc_library(
3472 name = "enable_sparse",
3473 defines = select({
3474 ":xnn_enable_sparse_explicit_true": ["XNN_ENABLE_SPARSE=1"],
3475 ":xnn_enable_sparse_explicit_false": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan8b283aa2020-06-18 16:48:57 -07003476 "//conditions:default": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan9de90e02020-06-18 16:04:12 -07003477 }),
3478)
3479
Marat Dukhancf056b22019-10-07 10:26:29 -07003480xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003481 name = "operators",
3482 srcs = OPERATOR_SRCS + [
Marat Dukhan04f03be2019-11-19 12:36:47 -08003483 "src/memory.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003484 "src/operator-delete.c",
Marat Dukhancf056b22019-10-07 10:26:29 -07003485 ],
3486 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003487 copts = LOGGING_COPTS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003488 "-Isrc",
3489 "-Iinclude",
3490 ] + select({
3491 ":debug_build": [],
3492 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003493 }) + select({
3494 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3495 "//conditions:default": [],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003496 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003497 gcc_copts = xnnpack_gcc_std_copts(),
3498 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003499 deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003500 ":indirection",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003501 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07003502 ":packing",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003503 "@FP16",
3504 "@FXdiv",
3505 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003506 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003507 ],
3508)
3509
Marat Dukhan10a38082020-04-17 03:58:35 -07003510xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003511 name = "operators_test_mode",
3512 srcs = OPERATOR_SRCS + [
3513 "src/memory.c",
3514 "src/operator-delete.c",
3515 ],
3516 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3517 copts = LOGGING_COPTS + [
3518 "-Isrc",
3519 "-Iinclude",
3520 "-UNDEBUG",
3521 "-DXNN_TEST_MODE=1",
3522 ] + select({
3523 ":debug_build": [],
3524 "//conditions:default": xnnpack_min_size_copts(),
3525 }) + select({
3526 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3527 "//conditions:default": [],
3528 }),
3529 gcc_copts = xnnpack_gcc_std_copts(),
3530 msvc_copts = xnnpack_msvc_std_copts(),
3531 deps = [
3532 ":indirection_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003533 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07003534 ":packing_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003535 "@FP16",
3536 "@FXdiv",
3537 "@clog",
3538 "@pthreadpool",
3539 ],
3540)
3541
3542xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003543 name = "XNNPACK",
3544 srcs = [
3545 "src/init.c",
Marat Dukhanccfdbd12020-02-03 14:27:45 -08003546 "src/runtime.c",
3547 "src/subgraph.c",
3548 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07003549 ] + SUBGRAPH_SRCS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003550 hdrs = ["include/xnnpack.h"],
3551 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003552 "-Isrc",
3553 "-Iinclude",
3554 ] + select({
3555 ":debug_build": [],
3556 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003557 }) + select({
3558 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3559 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003560 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07003561 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003562 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003563 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003564 visibility = xnnpack_visibility(),
3565 deps = [
3566 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003567 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003568 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07003569 ":memory_planner",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003570 ":operator_run",
3571 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003572 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003573 "@clog",
Marat Dukhanab2946c2020-05-21 20:04:13 -07003574 "@FP16",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003575 "@pthreadpool",
Marat Dukhand343c222019-10-07 09:22:14 -07003576 ] + select({
3577 ":emscripten": [],
3578 "//conditions:default": ["@cpuinfo"],
3579 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003580)
3581
Marat Dukhan10a38082020-04-17 03:58:35 -07003582xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003583 name = "XNNPACK_test_mode",
3584 srcs = [
3585 "src/init.c",
3586 "src/runtime.c",
3587 "src/subgraph.c",
3588 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07003589 ] + SUBGRAPH_SRCS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07003590 hdrs = ["include/xnnpack.h"],
3591 copts = LOGGING_COPTS + [
3592 "-Isrc",
3593 "-Iinclude",
3594 "-UNDEBUG",
3595 "-DXNN_TEST_MODE=1",
3596 ] + select({
3597 ":debug_build": [],
3598 "//conditions:default": xnnpack_min_size_copts(),
3599 }) + select({
3600 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3601 "//conditions:default": [],
3602 }),
3603 gcc_copts = xnnpack_gcc_std_copts(),
3604 includes = ["include"],
3605 msvc_copts = xnnpack_msvc_std_copts(),
3606 visibility = xnnpack_visibility(),
3607 deps = [
3608 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003609 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003610 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003611 ":memory_planner_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003612 ":operator_run_test_mode",
3613 ":operators_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003614 ":ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003615 "@clog",
3616 "@FP16",
3617 "@pthreadpool",
3618 ] + select({
3619 ":emscripten": [],
3620 "//conditions:default": ["@cpuinfo"],
3621 }),
3622)
3623
3624xnnpack_cc_library(
Marat Dukhanae046f52020-06-15 13:16:14 -07003625 name = "xnnpack_f32",
3626 srcs = [
3627 "src/init.c",
3628 "src/runtime.c",
3629 "src/subgraph.c",
3630 "src/tensor.c",
3631 ] + SUBGRAPH_SRCS,
3632 hdrs = ["include/xnnpack.h"],
3633 copts = LOGGING_COPTS + [
3634 "-Isrc",
3635 "-Iinclude",
3636 ] + select({
3637 ":debug_build": [],
3638 "//conditions:default": xnnpack_min_size_copts(),
3639 }) + select({
3640 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3641 "//conditions:default": [],
3642 }),
3643 defines = [
Marat Dukhan16f1e1a2020-08-04 16:38:22 -07003644 "XNN_NO_QS8_OPERATORS",
Marat Dukhan08b7a972020-07-14 18:17:29 -07003645 "XNN_NO_QU8_OPERATORS",
Marat Dukhanae046f52020-06-15 13:16:14 -07003646 "XNN_NO_U8_OPERATORS",
3647 "XNN_NO_X8_OPERATORS",
3648 "XNN_NO_F16_OPERATORS",
3649 "XNN_NO_X16_OPERATORS",
3650 ],
3651 gcc_copts = xnnpack_gcc_std_copts(),
3652 includes = ["include"],
3653 msvc_copts = xnnpack_msvc_std_copts(),
3654 visibility = xnnpack_visibility(),
3655 deps = [
3656 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07003657 ":enable_sparse",
Marat Dukhanae046f52020-06-15 13:16:14 -07003658 ":logging_utils",
3659 ":memory_planner",
3660 ":operator_run",
3661 ":operators",
Marat Dukhan86df3842020-06-17 14:03:31 -07003662 ":ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003663 "@clog",
3664 "@FP16",
3665 "@pthreadpool",
3666 ] + select({
3667 ":emscripten": [],
3668 "//conditions:default": ["@cpuinfo"],
3669 }),
3670)
3671
3672xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003673 name = "xnnpack_operators_nhwc_f32",
3674 srcs = [
3675 "src/init.c",
3676 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003677 hdrs = ["include/xnnpack.h"],
3678 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003679 "-Isrc",
3680 "-Iinclude",
3681 ] + select({
3682 ":debug_build": [],
3683 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07003684 }) + select({
3685 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
3686 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003687 }),
3688 defines = [
Marat Dukhan16f1e1a2020-08-04 16:38:22 -07003689 "XNN_NO_QS8_OPERATORS",
Marat Dukhan08b7a972020-07-14 18:17:29 -07003690 "XNN_NO_QU8_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003691 "XNN_NO_U8_OPERATORS",
3692 "XNN_NO_X8_OPERATORS",
Marat Dukhanefc47b82019-11-18 09:25:38 -08003693 "XNN_NO_NCHW_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003694 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003695 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003696 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003697 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003698 visibility = xnnpack_visibility(),
3699 deps = [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003700 ":enable_assembly",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003701 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003702 ":operator_run",
3703 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07003704 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003705 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003706 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07003707 ] + select({
3708 ":emscripten": [],
3709 "//conditions:default": ["@cpuinfo"],
3710 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003711)
3712
Marat Dukhancf056b22019-10-07 10:26:29 -07003713xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003714 name = "bench_utils",
3715 srcs = ["bench/utils.cc"],
3716 hdrs = ["bench/utils.h"],
Marat Dukhanbad48fe2019-11-04 10:35:22 -08003717 deps = [
3718 "@com_google_benchmark//:benchmark",
3719 "@cpuinfo",
3720 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003721)
3722
Frank Barchard7e955972019-10-11 10:34:25 -07003723######################### Benchmarks for micro-kernels #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07003724
3725xnnpack_benchmark(
Marat Dukhan595e1702020-07-31 10:12:52 -07003726 name = "qs8_gemm_bench",
3727 srcs = [
3728 "bench/gemm.h",
3729 "bench/qs8-gemm.cc",
3730 "src/xnnpack/AlignedAllocator.h",
3731 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
3732 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"],
3733)
3734
3735xnnpack_benchmark(
Marat Dukhan56bdd4a2020-08-03 19:47:04 -07003736 name = "qs8_requantization_bench",
3737 srcs = [
3738 "bench/qs8-requantization.cc",
3739 "src/xnnpack/requantization-stubs.h",
3740 "src/xnnpack/AlignedAllocator.h",
3741 ] + MICROKERNEL_BENCHMARK_HDRS,
3742 deps = MICROKERNEL_BENCHMARK_DEPS,
3743)
3744
3745xnnpack_benchmark(
Marat Dukhan08b7a972020-07-14 18:17:29 -07003746 name = "qu8_gemm_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003747 srcs = [
3748 "bench/gemm.h",
Marat Dukhan08b7a972020-07-14 18:17:29 -07003749 "bench/qu8-gemm.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003750 "src/xnnpack/AlignedAllocator.h",
3751 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003752 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07003753 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003754)
3755
3756xnnpack_benchmark(
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07003757 name = "qu8_requantization_bench",
3758 srcs = [
3759 "bench/qu8-requantization.cc",
3760 "src/xnnpack/requantization-stubs.h",
3761 "src/xnnpack/AlignedAllocator.h",
3762 ] + MICROKERNEL_BENCHMARK_HDRS,
3763 deps = MICROKERNEL_BENCHMARK_DEPS,
3764)
3765
3766xnnpack_benchmark(
Frank Barchard40d20fe2020-05-05 00:37:45 -07003767 name = "f16_igemm_bench",
3768 srcs = [
3769 "bench/f16-igemm.cc",
3770 "bench/conv.h",
3771 "bench/google/conv.h",
3772 "src/xnnpack/AlignedAllocator.h",
3773 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003774 deps = MICROKERNEL_BENCHMARK_DEPS + [
3775 ":indirection",
3776 ":packing",
3777 ],
Frank Barchard40d20fe2020-05-05 00:37:45 -07003778)
3779
3780xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003781 name = "f16_gemm_bench",
3782 srcs = [
3783 "bench/f16-gemm.cc",
3784 "bench/gemm.h",
3785 "src/xnnpack/AlignedAllocator.h",
3786 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003787 deps = MICROKERNEL_BENCHMARK_DEPS + [
3788 ":packing",
3789 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003790)
3791
3792xnnpack_benchmark(
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003793 name = "f16_spmm_bench",
3794 srcs = [
3795 "bench/f16-spmm.cc",
3796 "bench/gemm.h",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003797 "src/xnnpack/AlignedAllocator.h",
3798 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003799 deps = MICROKERNEL_BENCHMARK_DEPS,
3800)
3801
3802xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003803 name = "f32_igemm_bench",
3804 srcs = [
3805 "bench/f32-igemm.cc",
3806 "bench/conv.h",
3807 "src/xnnpack/AlignedAllocator.h",
3808 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003809 deps = MICROKERNEL_BENCHMARK_DEPS + [
3810 ":indirection",
3811 ":packing",
3812 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003813)
3814
3815xnnpack_benchmark(
Frank Barchardc2010062020-07-19 10:04:12 -07003816 name = "f16_relu_bench",
3817 srcs = [
3818 "bench/f16-relu.cc",
3819 "src/xnnpack/AlignedAllocator.h",
3820 ] + MICROKERNEL_BENCHMARK_HDRS,
3821 deps = MICROKERNEL_BENCHMARK_DEPS,
3822)
3823
3824xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003825 name = "f32_conv_hwc_bench",
3826 srcs = [
3827 "bench/f32-conv-hwc.cc",
3828 "bench/dconv.h",
3829 "src/xnnpack/AlignedAllocator.h",
3830 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003831 deps = MICROKERNEL_BENCHMARK_DEPS + [
3832 ":packing",
3833 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003834)
3835
3836xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003837 name = "f32_conv_hwc2chw_bench",
Erich Elsen563df5f2019-10-23 08:02:21 -07003838 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003839 "bench/f32-conv-hwc2chw.cc",
Erich Elsen563df5f2019-10-23 08:02:21 -07003840 "bench/dconv.h",
3841 "src/xnnpack/AlignedAllocator.h",
3842 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003843 deps = MICROKERNEL_BENCHMARK_DEPS + [
3844 ":packing",
3845 ],
Erich Elsen563df5f2019-10-23 08:02:21 -07003846)
3847
3848xnnpack_benchmark(
Frank Barchard5a599a62020-06-04 20:12:44 -07003849 name = "f16_dwconv_bench",
3850 srcs = [
3851 "bench/f16-dwconv.cc",
3852 "bench/dwconv.h",
3853 "bench/google/dwconv.h",
3854 "src/xnnpack/AlignedAllocator.h",
3855 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003856 deps = MICROKERNEL_BENCHMARK_DEPS + [
3857 ":indirection",
3858 ":packing",
3859 ],
Frank Barchard5a599a62020-06-04 20:12:44 -07003860)
3861
3862xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003863 name = "f32_dwconv_bench",
3864 srcs = [
3865 "bench/f32-dwconv.cc",
3866 "bench/dwconv.h",
3867 "src/xnnpack/AlignedAllocator.h",
3868 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003869 deps = MICROKERNEL_BENCHMARK_DEPS + [
3870 ":indirection",
3871 ":packing",
3872 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003873)
3874
3875xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003876 name = "f32_dwconv_chw_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003877 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003878 "bench/f32-dwconv-chw.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003879 "bench/dwconv.h",
3880 "src/xnnpack/AlignedAllocator.h",
3881 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07003882 deps = MICROKERNEL_BENCHMARK_DEPS + [
3883 ":indirection",
3884 ":packing",
3885 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003886)
3887
3888xnnpack_benchmark(
3889 name = "f32_gemm_bench",
3890 srcs = [
3891 "bench/f32-gemm.cc",
3892 "bench/gemm.h",
3893 "src/xnnpack/AlignedAllocator.h",
3894 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003895 copts = xnnpack_optional_ruy_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07003896 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003897)
3898
3899xnnpack_benchmark(
Marat Dukhana11ca342020-06-25 23:45:07 -07003900 name = "f32_hswish_bench",
3901 srcs = [
3902 "bench/f32-hswish.cc",
3903 "src/xnnpack/AlignedAllocator.h",
3904 ] + MICROKERNEL_BENCHMARK_HDRS,
3905 deps = MICROKERNEL_BENCHMARK_DEPS,
3906)
3907
3908xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08003909 name = "f32_raddexpminusmax_bench",
3910 srcs = [
3911 "bench/f32-raddexpminusmax.cc",
3912 "src/xnnpack/AlignedAllocator.h",
3913 ] + MICROKERNEL_BENCHMARK_HDRS,
3914 deps = MICROKERNEL_BENCHMARK_DEPS,
3915)
3916
3917xnnpack_benchmark(
3918 name = "f32_raddextexp_bench",
3919 srcs = [
3920 "bench/f32-raddextexp.cc",
3921 "src/xnnpack/AlignedAllocator.h",
3922 ] + MICROKERNEL_BENCHMARK_HDRS,
3923 deps = MICROKERNEL_BENCHMARK_DEPS,
3924)
3925
3926xnnpack_benchmark(
3927 name = "f32_raddstoreexpminusmax_bench",
3928 srcs = [
3929 "bench/f32-raddstoreexpminusmax.cc",
3930 "src/xnnpack/AlignedAllocator.h",
3931 ] + MICROKERNEL_BENCHMARK_HDRS,
3932 deps = MICROKERNEL_BENCHMARK_DEPS,
3933)
3934
3935xnnpack_benchmark(
Frank Barchard3c4a9522020-07-18 16:11:22 -07003936 name = "f32_relu_bench",
3937 srcs = [
3938 "bench/f32-relu.cc",
3939 "src/xnnpack/AlignedAllocator.h",
3940 ] + MICROKERNEL_BENCHMARK_HDRS,
3941 deps = MICROKERNEL_BENCHMARK_DEPS,
3942)
3943
3944xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003945 name = "f32_rmax_bench",
3946 srcs = [
3947 "bench/f32-rmax.cc",
3948 "src/xnnpack/AlignedAllocator.h",
3949 ] + MICROKERNEL_BENCHMARK_HDRS,
3950 deps = MICROKERNEL_BENCHMARK_DEPS,
3951)
3952
3953xnnpack_benchmark(
Marat Dukhan14bec502019-11-18 11:35:31 -08003954 name = "f32_sigmoid_bench",
3955 srcs = [
3956 "bench/f32-sigmoid.cc",
3957 "src/xnnpack/AlignedAllocator.h",
3958 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan14bec502019-11-18 11:35:31 -08003959 deps = MICROKERNEL_BENCHMARK_DEPS,
3960)
3961
3962xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003963 name = "f32_spmm_bench",
3964 srcs = [
3965 "bench/f32-spmm.cc",
3966 "bench/gemm.h",
3967 "src/xnnpack/AlignedAllocator.h",
3968 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003969 deps = MICROKERNEL_BENCHMARK_DEPS,
3970)
3971
3972xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003973 name = "f32_softmax_bench",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003974 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003975 "bench/f32-softmax.cc",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003976 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003977 copts = xnnpack_optional_dnnl_copts(),
Marat Dukhan8d3c6932020-03-06 20:27:27 -08003978 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(),
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003979)
3980
3981xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08003982 name = "f32_vscaleexpminusmax_bench",
3983 srcs = [
3984 "bench/f32-vscaleexpminusmax.cc",
3985 "src/xnnpack/AlignedAllocator.h",
3986 ] + MICROKERNEL_BENCHMARK_HDRS,
3987 deps = MICROKERNEL_BENCHMARK_DEPS,
3988)
3989
3990xnnpack_benchmark(
3991 name = "f32_vscaleextexp_bench",
3992 srcs = [
3993 "bench/f32-vscaleextexp.cc",
3994 "src/xnnpack/AlignedAllocator.h",
3995 ] + MICROKERNEL_BENCHMARK_HDRS,
3996 deps = MICROKERNEL_BENCHMARK_DEPS,
3997)
3998
3999xnnpack_benchmark(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07004000 name = "f32_vsqrt_bench",
4001 srcs = [
4002 "bench/f32-vsqrt.cc",
4003 "src/xnnpack/AlignedAllocator.h",
4004 ] + MICROKERNEL_BENCHMARK_HDRS,
4005 deps = MICROKERNEL_BENCHMARK_DEPS,
4006)
4007
4008xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004009 name = "f32_im2col_gemm_bench",
4010 srcs = [
4011 "bench/f32-im2col-gemm.cc",
4012 "bench/conv.h",
4013 "src/xnnpack/AlignedAllocator.h",
4014 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004015 deps = MICROKERNEL_BENCHMARK_DEPS + [
4016 ":im2col",
4017 ":packing",
4018 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004019)
4020
Marat Dukhanfe7acb62020-03-09 19:30:05 -07004021xnnpack_benchmark(
Marat Dukhanffbf96a2020-05-14 02:59:08 -07004022 name = "rounding_bench",
4023 srcs = [
4024 "bench/rounding.cc",
4025 "src/xnnpack/math-stubs.h",
4026 "src/xnnpack/AlignedAllocator.h",
4027 ] + MICROKERNEL_BENCHMARK_HDRS,
4028 deps = MICROKERNEL_BENCHMARK_DEPS,
4029)
4030
Marat Dukhan08c4a432019-10-03 09:29:21 -07004031########################### Benchmarks for operators ###########################
4032
4033xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004034 name = "average_pooling_bench",
4035 srcs = ["bench/average-pooling.cc"],
Marat Dukhan7a16d8b2020-03-11 04:22:44 -07004036 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004037 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004038 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004039)
4040
4041xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004042 name = "bankers_rounding_bench",
4043 srcs = ["bench/bankers-rounding.cc"],
4044 copts = xnnpack_optional_tflite_copts(),
4045 tags = ["nowin32"],
4046 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4047)
4048
4049xnnpack_benchmark(
4050 name = "ceiling_bench",
4051 srcs = ["bench/ceiling.cc"],
4052 copts = xnnpack_optional_tflite_copts(),
4053 tags = ["nowin32"],
4054 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4055)
4056
4057xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004058 name = "channel_shuffle_bench",
4059 srcs = ["bench/channel-shuffle.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004060 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004061)
4062
4063xnnpack_benchmark(
4064 name = "convolution_bench",
4065 srcs = ["bench/convolution.cc"],
4066 copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004067 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004068 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004069)
4070
4071xnnpack_benchmark(
4072 name = "deconvolution_bench",
4073 srcs = ["bench/deconvolution.cc"],
4074 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004075 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004076 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004077)
4078
4079xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004080 name = "floor_bench",
4081 srcs = ["bench/floor.cc"],
4082 copts = xnnpack_optional_tflite_copts(),
4083 tags = ["nowin32"],
4084 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4085)
4086
4087xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004088 name = "global_average_pooling_bench",
4089 srcs = ["bench/global-average-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004090 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004091)
4092
4093xnnpack_benchmark(
Marat Dukhanad352602020-06-25 21:50:54 -07004094 name = "hardswish_bench",
4095 srcs = ["bench/hardswish.cc"],
4096 copts = xnnpack_optional_tflite_copts(),
4097 tags = ["nowin32"],
4098 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4099)
4100
4101xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004102 name = "max_pooling_bench",
4103 srcs = ["bench/max-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004104 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004105)
4106
4107xnnpack_benchmark(
4108 name = "sigmoid_bench",
4109 srcs = ["bench/sigmoid.cc"],
Marat Dukhanc3b9e862019-11-17 13:18:54 -08004110 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07004111 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004112 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004113)
4114
4115xnnpack_benchmark(
Marat Dukhan95b22432019-10-30 16:30:14 -07004116 name = "prelu_bench",
4117 srcs = ["bench/prelu.cc"],
4118 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004119 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004120 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan95b22432019-10-30 16:30:14 -07004121)
4122
4123xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004124 name = "softmax_bench",
4125 srcs = ["bench/softmax.cc"],
Marat Dukhan9c0db962020-01-28 12:30:14 -08004126 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07004127 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004128 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004129)
4130
Marat Dukhan87727142020-06-24 15:24:10 -07004131xnnpack_benchmark(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07004132 name = "square_root_bench",
4133 srcs = ["bench/square-root.cc"],
4134 copts = xnnpack_optional_tflite_copts(),
4135 tags = ["nowin32"],
4136 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4137)
4138
4139xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004140 name = "truncation_bench",
4141 srcs = ["bench/truncation.cc"],
4142 deps = OPERATOR_BENCHMARK_DEPS,
4143)
4144
Marat Dukhanc068bb62019-10-04 13:24:39 -07004145############################# End-to-end benchmarks ############################
4146
4147cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004148 name = "fp32_mobilenet_v1",
4149 srcs = ["models/fp32-mobilenet-v1.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07004150 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004151 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07004152 linkstatic = True,
4153 deps = [
4154 ":XNNPACK",
4155 "@pthreadpool",
4156 ],
4157)
4158
4159cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004160 name = "fp16_mobilenet_v1",
4161 srcs = ["models/fp16-mobilenet-v1.cc"],
4162 hdrs = ["models/models.h"],
4163 copts = xnnpack_std_cxxopts(),
4164 linkstatic = True,
4165 deps = [
4166 ":XNNPACK",
4167 "@FP16",
4168 "@pthreadpool",
4169 ],
4170)
4171
4172cc_library(
Marat Dukhan0743cdf2020-08-04 18:52:07 -07004173 name = "qs8_mobilenet_v1",
4174 srcs = ["models/qs8-mobilenet-v1.cc"],
4175 hdrs = ["models/models.h"],
4176 copts = xnnpack_std_cxxopts(),
4177 linkstatic = True,
4178 deps = [
4179 ":XNNPACK",
4180 "@pthreadpool",
4181 ],
4182)
4183
4184cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004185 name = "fp32_mobilenet_v2",
4186 srcs = ["models/fp32-mobilenet-v2.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07004187 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004188 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07004189 linkstatic = True,
4190 deps = [
4191 ":XNNPACK",
4192 "@pthreadpool",
4193 ],
4194)
4195
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004196cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004197 name = "fp16_mobilenet_v2",
4198 srcs = ["models/fp16-mobilenet-v2.cc"],
4199 hdrs = ["models/models.h"],
4200 copts = xnnpack_std_cxxopts(),
4201 linkstatic = True,
4202 deps = [
4203 ":XNNPACK",
4204 "@FP16",
4205 "@pthreadpool",
4206 ],
4207)
4208
4209cc_library(
4210 name = "fp32_mobilenet_v3_large",
4211 srcs = ["models/fp32-mobilenet-v3-large.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004212 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004213 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004214 linkstatic = True,
4215 deps = [
4216 ":XNNPACK",
4217 "@pthreadpool",
4218 ],
4219)
4220
4221cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004222 name = "fp32_mobilenet_v3_small",
4223 srcs = ["models/fp32-mobilenet-v3-small.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004224 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004225 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004226 linkstatic = True,
4227 deps = [
4228 ":XNNPACK",
4229 "@pthreadpool",
4230 ],
4231)
4232
Marat Dukhanc068bb62019-10-04 13:24:39 -07004233xnnpack_benchmark(
Marat Dukhanef4416e2019-10-31 13:44:40 -07004234 name = "f32_dwconv_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004235 srcs = [
4236 "bench/f32-dwconv-e2e.cc",
4237 "bench/end2end.h",
4238 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanef4416e2019-10-31 13:44:40 -07004239 deps = MICROKERNEL_BENCHMARK_DEPS + [
4240 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004241 ":fp32_mobilenet_v1",
4242 ":fp32_mobilenet_v2",
4243 ":fp32_mobilenet_v3_large",
4244 ":fp32_mobilenet_v3_small",
Marat Dukhanef4416e2019-10-31 13:44:40 -07004245 ],
4246)
4247
4248xnnpack_benchmark(
Marat Dukhan5f18d262019-10-31 10:24:14 -07004249 name = "f32_gemm_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004250 srcs = [
4251 "bench/f32-gemm-e2e.cc",
4252 "bench/end2end.h",
4253 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan5f18d262019-10-31 10:24:14 -07004254 deps = MICROKERNEL_BENCHMARK_DEPS + [
4255 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004256 ":fp32_mobilenet_v1",
4257 ":fp32_mobilenet_v2",
4258 ":fp32_mobilenet_v3_large",
4259 ":fp32_mobilenet_v3_small",
Marat Dukhan5f18d262019-10-31 10:24:14 -07004260 ],
4261)
4262
4263xnnpack_benchmark(
Marat Dukhanc068bb62019-10-04 13:24:39 -07004264 name = "end2end_bench",
4265 srcs = ["bench/end2end.cc"],
4266 deps = [
4267 ":XNNPACK",
Frank Barchardc712fa42019-10-31 14:00:21 -07004268 ":bench_utils",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004269 ":fp16_mobilenet_v1",
4270 ":fp16_mobilenet_v2",
4271 ":fp32_mobilenet_v1",
4272 ":fp32_mobilenet_v2",
4273 ":fp32_mobilenet_v3_large",
4274 ":fp32_mobilenet_v3_small",
Marat Dukhan0743cdf2020-08-04 18:52:07 -07004275 ":qs8_mobilenet_v1",
Marat Dukhanc068bb62019-10-04 13:24:39 -07004276 "@pthreadpool",
4277 ],
4278)
4279
Marat Dukhan6adff4e2019-10-14 18:32:07 -07004280#################### Accuracy evaluation for math functions ####################
4281
4282xnnpack_benchmark(
4283 name = "f32_exp_eval",
4284 srcs = [
4285 "eval/f32-exp.cc",
4286 "src/xnnpack/AlignedAllocator.h",
4287 ] + ACCURACY_EVAL_HDRS,
4288 deps = ACCURACY_EVAL_DEPS,
4289)
4290
Marat Dukhan515c9772019-10-17 18:07:57 -07004291xnnpack_benchmark(
4292 name = "f32_expminus_eval",
4293 srcs = [
4294 "eval/f32-expminus.cc",
4295 "src/xnnpack/AlignedAllocator.h",
4296 ] + ACCURACY_EVAL_HDRS,
4297 deps = ACCURACY_EVAL_DEPS,
4298)
4299
Marat Dukhan98ba4412019-10-23 02:14:28 -07004300xnnpack_benchmark(
4301 name = "f32_extexp_eval",
4302 srcs = [
4303 "eval/f32-extexp.cc",
4304 "src/xnnpack/AlignedAllocator.h",
4305 ] + ACCURACY_EVAL_HDRS,
4306 deps = ACCURACY_EVAL_DEPS,
4307)
4308
Marat Dukhan8853b822020-05-07 12:19:01 -07004309xnnpack_unit_test(
4310 name = "f32_roundne_eval",
4311 srcs = [
4312 "eval/f32-roundne.cc",
4313 "src/xnnpack/AlignedAllocator.h",
4314 "src/xnnpack/math-stubs.h",
4315 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhan22eed3d2020-05-11 20:13:37 -07004316 automatic = False,
Marat Dukhan8853b822020-05-07 12:19:01 -07004317 deps = MICROKERNEL_TEST_DEPS,
4318)
4319
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004320xnnpack_unit_test(
Marat Dukhanc9852ba2020-05-13 17:21:29 -07004321 name = "f32_roundd_eval",
4322 srcs = [
4323 "eval/f32-roundd.cc",
4324 "src/xnnpack/AlignedAllocator.h",
4325 "src/xnnpack/math-stubs.h",
4326 ] + MICROKERNEL_TEST_HDRS,
4327 automatic = False,
4328 deps = MICROKERNEL_TEST_DEPS,
4329)
4330
4331xnnpack_unit_test(
4332 name = "f32_roundu_eval",
4333 srcs = [
4334 "eval/f32-roundu.cc",
4335 "src/xnnpack/AlignedAllocator.h",
4336 "src/xnnpack/math-stubs.h",
4337 ] + MICROKERNEL_TEST_HDRS,
4338 automatic = False,
4339 deps = MICROKERNEL_TEST_DEPS,
4340)
4341
4342xnnpack_unit_test(
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004343 name = "f32_roundz_eval",
4344 srcs = [
4345 "eval/f32-roundz.cc",
4346 "src/xnnpack/AlignedAllocator.h",
4347 "src/xnnpack/math-stubs.h",
4348 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhanc9852ba2020-05-13 17:21:29 -07004349 automatic = False,
Marat Dukhan2dbb9442020-05-12 20:43:43 -07004350 deps = MICROKERNEL_TEST_DEPS,
4351)
4352
Marat Dukhan346a9e52019-11-15 09:06:30 -08004353xnnpack_benchmark(
4354 name = "f32_sigmoid_eval",
4355 srcs = [
4356 "eval/f32-sigmoid.cc",
4357 "src/xnnpack/AlignedAllocator.h",
4358 ] + ACCURACY_EVAL_HDRS,
4359 deps = ACCURACY_EVAL_DEPS,
4360)
4361
Marat Dukhan84000762020-06-29 18:38:43 -07004362xnnpack_benchmark(
4363 name = "f32_sqrt_eval",
4364 srcs = [
4365 "eval/f32-sqrt.cc",
4366 "src/xnnpack/AlignedAllocator.h",
4367 ] + ACCURACY_EVAL_HDRS,
4368 deps = ACCURACY_EVAL_DEPS + [
4369 ":bench_utils",
4370 ],
4371)
4372
Marat Dukhan08c4a432019-10-03 09:29:21 -07004373######################### Unit tests for micro-kernels #########################
4374
4375xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07004376 name = "f16_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004377 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07004378 "test/f16-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004379 "test/gemm-microkernel-tester.h",
4380 "src/xnnpack/AlignedAllocator.h",
4381 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004382 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004383)
4384
4385xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07004386 name = "f16_spmm_minmax_test",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004387 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07004388 "test/f16-spmm-minmax.cc",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004389 "test/spmm-microkernel-tester.h",
4390 "src/xnnpack/AlignedAllocator.h",
4391 ] + MICROKERNEL_TEST_HDRS,
4392 deps = MICROKERNEL_TEST_DEPS,
4393)
4394
4395xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004396 name = "f32_argmaxpool_test",
4397 srcs = [
4398 "test/f32-argmaxpool.cc",
4399 "test/argmaxpool-microkernel-tester.h",
4400 "src/xnnpack/AlignedAllocator.h",
4401 ] + MICROKERNEL_TEST_HDRS,
4402 deps = MICROKERNEL_TEST_DEPS,
4403)
4404
4405xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004406 name = "f32_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004407 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004408 "test/f32-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004409 "test/avgpool-microkernel-tester.h",
4410 "src/xnnpack/AlignedAllocator.h",
4411 ] + MICROKERNEL_TEST_HDRS,
4412 deps = MICROKERNEL_TEST_DEPS,
4413)
4414
4415xnnpack_unit_test(
Marat Dukhan660fd192020-03-10 04:55:30 -07004416 name = "f32_ibilinear_test",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08004417 srcs = [
Marat Dukhan660fd192020-03-10 04:55:30 -07004418 "test/f32-ibilinear.cc",
4419 "test/ibilinear-microkernel-tester.h",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08004420 "src/xnnpack/AlignedAllocator.h",
4421 ] + MICROKERNEL_TEST_HDRS,
4422 deps = MICROKERNEL_TEST_DEPS,
4423)
4424
4425xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004426 name = "f16_clamp_test",
4427 srcs = [
4428 "test/f16-clamp.cc",
4429 "test/clamp-microkernel-tester.h",
4430 ] + MICROKERNEL_TEST_HDRS,
4431 deps = MICROKERNEL_TEST_DEPS,
4432)
4433
4434xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004435 name = "f32_clamp_test",
4436 srcs = [
4437 "test/f32-clamp.cc",
4438 "test/clamp-microkernel-tester.h",
4439 ] + MICROKERNEL_TEST_HDRS,
4440 deps = MICROKERNEL_TEST_DEPS,
4441)
4442
4443xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004444 name = "f32_igemm_test",
4445 srcs = [
4446 "test/f32-igemm.cc",
4447 "test/gemm-microkernel-tester.h",
4448 "src/xnnpack/AlignedAllocator.h",
4449 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004450 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004451)
4452
4453xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07004454 name = "f32_igemm_relu_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004455 srcs = [
Marat Dukhan467f6362020-05-22 23:21:55 -07004456 "test/f32-igemm-relu.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004457 "test/gemm-microkernel-tester.h",
4458 "src/xnnpack/AlignedAllocator.h",
4459 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004460 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004461)
4462
4463xnnpack_unit_test(
Marat Dukhane207b7b2020-05-28 16:27:42 -07004464 name = "f32_igemm_minmax_test",
4465 srcs = [
4466 "test/f32-igemm-minmax.cc",
4467 "test/gemm-microkernel-tester.h",
4468 "src/xnnpack/AlignedAllocator.h",
4469 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004470 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhane207b7b2020-05-28 16:27:42 -07004471)
4472
4473xnnpack_unit_test(
Frank Barchardb0e4fae2020-05-04 15:27:51 -07004474 name = "f16_igemm_minmax_test",
4475 srcs = [
4476 "test/f16-igemm-minmax.cc",
4477 "test/gemm-microkernel-tester.h",
4478 "src/xnnpack/AlignedAllocator.h",
4479 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004480 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchardb0e4fae2020-05-04 15:27:51 -07004481)
4482
4483xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004484 name = "f32_conv_hwc_test",
4485 srcs = [
4486 "test/f32-conv-hwc.cc",
4487 "test/conv-hwc-microkernel-tester.h",
4488 "src/xnnpack/AlignedAllocator.h",
4489 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004490 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004491)
4492
4493xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004494 name = "f32_conv_hwc2chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004495 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004496 "test/f32-conv-hwc2chw.cc",
4497 "test/conv-hwc2chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004498 "src/xnnpack/AlignedAllocator.h",
4499 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004500 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004501)
4502
4503xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004504 name = "f32_dwconv_test",
4505 srcs = [
4506 "test/f32-dwconv.cc",
4507 "test/dwconv-microkernel-tester.h",
4508 "src/xnnpack/AlignedAllocator.h",
4509 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004510 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004511)
4512
4513xnnpack_unit_test(
Frank Barchard5a599a62020-06-04 20:12:44 -07004514 name = "f16_dwconv_minmax_test",
4515 srcs = [
4516 "test/f16-dwconv-minmax.cc",
4517 "test/dwconv-microkernel-tester.h",
4518 "src/xnnpack/AlignedAllocator.h",
4519 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004520 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard5a599a62020-06-04 20:12:44 -07004521)
4522
4523xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004524 name = "f32_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004525 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004526 "test/f32-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004527 "test/dwconv-microkernel-tester.h",
4528 "src/xnnpack/AlignedAllocator.h",
4529 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004530 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004531)
4532
4533xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004534 name = "f32_dwconv_chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004535 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004536 "test/f32-dwconv-chw.cc",
4537 "test/dwconv-chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004538 "src/xnnpack/AlignedAllocator.h",
4539 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004540 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004541)
4542
4543xnnpack_unit_test(
Frank Barchard0bb49a72020-06-04 11:35:11 -07004544 name = "f16_gavgpool_minmax_test",
4545 srcs = [
4546 "test/f16-gavgpool-minmax.cc",
4547 "test/gavgpool-microkernel-tester.h",
4548 "src/xnnpack/AlignedAllocator.h",
4549 ] + MICROKERNEL_TEST_HDRS,
4550 deps = MICROKERNEL_TEST_DEPS,
4551)
4552
4553xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004554 name = "f32_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004555 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004556 "test/f32-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004557 "test/gavgpool-microkernel-tester.h",
4558 "src/xnnpack/AlignedAllocator.h",
4559 ] + MICROKERNEL_TEST_HDRS,
4560 deps = MICROKERNEL_TEST_DEPS,
4561)
4562
4563xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004564 name = "f32_gavgpool_cw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004565 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004566 "test/f32-gavgpool-cw.cc",
4567 "test/gavgpool-cw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004568 "src/xnnpack/AlignedAllocator.h",
4569 ] + MICROKERNEL_TEST_HDRS,
4570 deps = MICROKERNEL_TEST_DEPS,
4571)
4572
4573xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07004574 name = "f32_gemm_test",
4575 srcs = [
4576 "test/f32-gemm.cc",
4577 "test/gemm-microkernel-tester.h",
4578 "src/xnnpack/AlignedAllocator.h",
4579 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004580 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07004581)
4582
4583xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07004584 name = "f32_gemm_relu_test",
4585 srcs = [
4586 "test/f32-gemm-relu.cc",
4587 "test/gemm-microkernel-tester.h",
4588 "src/xnnpack/AlignedAllocator.h",
4589 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004590 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan467f6362020-05-22 23:21:55 -07004591)
4592
4593xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004594 name = "f32_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004595 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004596 "test/f32-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004597 "test/gemm-microkernel-tester.h",
4598 "src/xnnpack/AlignedAllocator.h",
4599 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004600 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004601)
4602
4603xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004604 name = "f32_gemminc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004605 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004606 "test/f32-gemminc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004607 "test/gemm-microkernel-tester.h",
4608 "src/xnnpack/AlignedAllocator.h",
4609 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004610 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004611)
4612
4613xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004614 name = "f16_hswish_test",
4615 srcs = [
4616 "test/f16-hswish.cc",
4617 "test/hswish-microkernel-tester.h",
4618 ] + MICROKERNEL_TEST_HDRS,
4619 deps = MICROKERNEL_TEST_DEPS,
4620)
4621
4622xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004623 name = "f32_hswish_test",
4624 srcs = [
4625 "test/f32-hswish.cc",
4626 "test/hswish-microkernel-tester.h",
4627 ] + MICROKERNEL_TEST_HDRS,
4628 deps = MICROKERNEL_TEST_DEPS,
4629)
4630
4631xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004632 name = "f32_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004633 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004634 "test/f32-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004635 "test/maxpool-microkernel-tester.h",
4636 ] + MICROKERNEL_TEST_HDRS,
4637 deps = MICROKERNEL_TEST_DEPS,
4638)
4639
4640xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07004641 name = "f32_pavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004642 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07004643 "test/f32-pavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004644 "test/avgpool-microkernel-tester.h",
4645 "src/xnnpack/AlignedAllocator.h",
4646 ] + MICROKERNEL_TEST_HDRS,
4647 deps = MICROKERNEL_TEST_DEPS,
4648)
4649
4650xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07004651 name = "f32_ppmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004652 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07004653 "test/f32-ppmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004654 "test/gemm-microkernel-tester.h",
4655 "src/xnnpack/AlignedAllocator.h",
4656 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004657 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004658)
4659
4660xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07004661 name = "f16_prelu_test",
4662 srcs = [
4663 "test/f16-prelu.cc",
4664 "test/prelu-microkernel-tester.h",
4665 "src/xnnpack/AlignedAllocator.h",
4666 ] + MICROKERNEL_TEST_HDRS,
4667 deps = MICROKERNEL_TEST_DEPS,
4668)
4669
4670xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004671 name = "f32_prelu_test",
4672 srcs = [
4673 "test/f32-prelu.cc",
4674 "test/prelu-microkernel-tester.h",
4675 "src/xnnpack/AlignedAllocator.h",
4676 ] + MICROKERNEL_TEST_HDRS,
4677 deps = MICROKERNEL_TEST_DEPS,
4678)
4679
4680xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004681 name = "f32_raddexpminusmax_test",
4682 srcs = [
4683 "test/f32-raddexpminusmax.cc",
4684 "test/raddexpminusmax-microkernel-tester.h",
4685 ] + MICROKERNEL_TEST_HDRS,
4686 deps = MICROKERNEL_TEST_DEPS,
4687)
4688
4689xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07004690 name = "f32_raddextexp_test",
4691 srcs = [
4692 "test/f32-raddextexp.cc",
4693 "test/raddextexp-microkernel-tester.h",
4694 ] + MICROKERNEL_TEST_HDRS,
4695 deps = MICROKERNEL_TEST_DEPS,
4696)
4697
4698xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07004699 name = "f32_raddstoreexpminusmax_test",
4700 srcs = [
4701 "test/f32-raddstoreexpminusmax.cc",
4702 "test/raddstoreexpminusmax-microkernel-tester.h",
4703 ] + MICROKERNEL_TEST_HDRS,
4704 deps = MICROKERNEL_TEST_DEPS,
4705)
4706
4707xnnpack_unit_test(
Frank Barchardfb158e22020-07-15 16:10:10 -07004708 name = "f32_relu_test",
4709 srcs = [
4710 "test/f32-relu.cc",
4711 "test/vunary-microkernel-tester.h",
4712 ] + MICROKERNEL_TEST_HDRS,
4713 deps = MICROKERNEL_TEST_DEPS,
4714)
4715
4716xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004717 name = "f32_rmax_test",
4718 srcs = [
4719 "test/f32-rmax.cc",
4720 "test/rmax-microkernel-tester.h",
4721 ] + MICROKERNEL_TEST_HDRS,
4722 deps = MICROKERNEL_TEST_DEPS,
4723)
4724
4725xnnpack_unit_test(
Marat Dukhan346a9e52019-11-15 09:06:30 -08004726 name = "f32_sigmoid_test",
4727 srcs = [
4728 "test/f32-sigmoid.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004729 "test/vunary-microkernel-tester.h",
Marat Dukhan346a9e52019-11-15 09:06:30 -08004730 ] + MICROKERNEL_TEST_HDRS,
4731 deps = MICROKERNEL_TEST_DEPS,
4732)
4733
4734xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07004735 name = "f32_spmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004736 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07004737 "test/f32-spmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004738 "test/spmm-microkernel-tester.h",
4739 "src/xnnpack/AlignedAllocator.h",
4740 ] + MICROKERNEL_TEST_HDRS,
4741 deps = MICROKERNEL_TEST_DEPS,
4742)
4743
4744xnnpack_unit_test(
Frank Barchardd793f6c2020-05-08 13:37:43 -07004745 name = "f16_vadd_minmax_test",
4746 srcs = [
4747 "test/f16-vadd-minmax.cc",
4748 "test/vbinary-microkernel-tester.h",
4749 ] + MICROKERNEL_TEST_HDRS,
4750 deps = MICROKERNEL_TEST_DEPS,
4751)
4752
4753xnnpack_unit_test(
4754 name = "f16_vaddc_minmax_test",
4755 srcs = [
4756 "test/f16-vaddc-minmax.cc",
4757 "test/vbinaryc-microkernel-tester.h",
4758 ] + MICROKERNEL_TEST_HDRS,
4759 deps = MICROKERNEL_TEST_DEPS,
4760)
4761
4762xnnpack_unit_test(
4763 name = "f16_vdiv_minmax_test",
4764 srcs = [
4765 "test/f16-vdiv-minmax.cc",
4766 "test/vbinary-microkernel-tester.h",
4767 ] + MICROKERNEL_TEST_HDRS,
4768 deps = MICROKERNEL_TEST_DEPS,
4769)
4770
4771xnnpack_unit_test(
4772 name = "f16_vdivc_minmax_test",
4773 srcs = [
4774 "test/f16-vdivc-minmax.cc",
4775 "test/vbinaryc-microkernel-tester.h",
4776 ] + MICROKERNEL_TEST_HDRS,
4777 deps = MICROKERNEL_TEST_DEPS,
4778)
4779
4780xnnpack_unit_test(
4781 name = "f16_vrdivc_minmax_test",
4782 srcs = [
4783 "test/f16-vrdivc-minmax.cc",
4784 "test/vbinaryc-microkernel-tester.h",
4785 ] + MICROKERNEL_TEST_HDRS,
4786 deps = MICROKERNEL_TEST_DEPS,
4787)
4788
4789xnnpack_unit_test(
4790 name = "f16_vmax_test",
4791 srcs = [
4792 "test/f16-vmax.cc",
4793 "test/vbinary-microkernel-tester.h",
4794 ] + MICROKERNEL_TEST_HDRS,
4795 deps = MICROKERNEL_TEST_DEPS,
4796)
4797
4798xnnpack_unit_test(
4799 name = "f16_vmaxc_test",
4800 srcs = [
4801 "test/f16-vmaxc.cc",
4802 "test/vbinaryc-microkernel-tester.h",
4803 ] + MICROKERNEL_TEST_HDRS,
4804 deps = MICROKERNEL_TEST_DEPS,
4805)
4806
4807xnnpack_unit_test(
4808 name = "f16_vmin_test",
4809 srcs = [
4810 "test/f16-vmin.cc",
4811 "test/vbinary-microkernel-tester.h",
4812 ] + MICROKERNEL_TEST_HDRS,
4813 deps = MICROKERNEL_TEST_DEPS,
4814)
4815
4816xnnpack_unit_test(
4817 name = "f16_vminc_test",
4818 srcs = [
4819 "test/f16-vminc.cc",
4820 "test/vbinaryc-microkernel-tester.h",
4821 ] + MICROKERNEL_TEST_HDRS,
4822 deps = MICROKERNEL_TEST_DEPS,
4823)
4824
4825xnnpack_unit_test(
4826 name = "f16_vmul_minmax_test",
4827 srcs = [
4828 "test/f16-vmul-minmax.cc",
4829 "test/vbinary-microkernel-tester.h",
4830 ] + MICROKERNEL_TEST_HDRS,
4831 deps = MICROKERNEL_TEST_DEPS,
4832)
4833
4834xnnpack_unit_test(
4835 name = "f16_vmulc_minmax_test",
4836 srcs = [
4837 "test/f16-vmulc-minmax.cc",
4838 "test/vbinaryc-microkernel-tester.h",
4839 ] + MICROKERNEL_TEST_HDRS,
4840 deps = MICROKERNEL_TEST_DEPS,
4841)
4842
4843xnnpack_unit_test(
4844 name = "f16_vsub_minmax_test",
4845 srcs = [
4846 "test/f16-vsub-minmax.cc",
4847 "test/vbinary-microkernel-tester.h",
4848 ] + MICROKERNEL_TEST_HDRS,
4849 deps = MICROKERNEL_TEST_DEPS,
4850)
4851
4852xnnpack_unit_test(
4853 name = "f16_vsubc_minmax_test",
4854 srcs = [
4855 "test/f16-vsubc-minmax.cc",
4856 "test/vbinaryc-microkernel-tester.h",
4857 ] + MICROKERNEL_TEST_HDRS,
4858 deps = MICROKERNEL_TEST_DEPS,
4859)
4860
4861xnnpack_unit_test(
4862 name = "f16_vrsubc_minmax_test",
4863 srcs = [
4864 "test/f16-vrsubc-minmax.cc",
4865 "test/vbinaryc-microkernel-tester.h",
4866 ] + MICROKERNEL_TEST_HDRS,
4867 deps = MICROKERNEL_TEST_DEPS,
4868)
4869
4870xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07004871 name = "f32_vabs_test",
4872 srcs = [
4873 "test/f32-vabs.cc",
4874 "test/vunary-microkernel-tester.h",
4875 ] + MICROKERNEL_TEST_HDRS,
4876 deps = MICROKERNEL_TEST_DEPS,
4877)
4878
4879xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004880 name = "f32_vadd_test",
4881 srcs = [
4882 "test/f32-vadd.cc",
4883 "test/vbinary-microkernel-tester.h",
4884 ] + MICROKERNEL_TEST_HDRS,
4885 deps = MICROKERNEL_TEST_DEPS,
4886)
4887
4888xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004889 name = "f32_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004890 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004891 "test/f32-vadd-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004892 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004893 ] + MICROKERNEL_TEST_HDRS,
4894 deps = MICROKERNEL_TEST_DEPS,
4895)
4896
4897xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004898 name = "f32_vaddc_test",
4899 srcs = [
4900 "test/f32-vaddc.cc",
4901 "test/vbinaryc-microkernel-tester.h",
4902 ] + MICROKERNEL_TEST_HDRS,
4903 deps = MICROKERNEL_TEST_DEPS,
4904)
4905
4906xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004907 name = "f32_vaddc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08004908 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004909 "test/f32-vaddc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08004910 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004911 ] + MICROKERNEL_TEST_HDRS,
4912 deps = MICROKERNEL_TEST_DEPS,
4913)
4914
4915xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004916 name = "f32_vdiv_test",
4917 srcs = [
4918 "test/f32-vdiv.cc",
4919 "test/vbinary-microkernel-tester.h",
4920 ] + MICROKERNEL_TEST_HDRS,
4921 deps = MICROKERNEL_TEST_DEPS,
4922)
4923
4924xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004925 name = "f32_vdiv_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004926 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004927 "test/f32-vdiv-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004928 "test/vbinary-microkernel-tester.h",
4929 ] + MICROKERNEL_TEST_HDRS,
4930 deps = MICROKERNEL_TEST_DEPS,
4931)
4932
4933xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004934 name = "f32_vdivc_test",
4935 srcs = [
4936 "test/f32-vdivc.cc",
4937 "test/vbinaryc-microkernel-tester.h",
4938 ] + MICROKERNEL_TEST_HDRS,
4939 deps = MICROKERNEL_TEST_DEPS,
4940)
4941
4942xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004943 name = "f32_vdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004944 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004945 "test/f32-vdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004946 "test/vbinaryc-microkernel-tester.h",
4947 ] + MICROKERNEL_TEST_HDRS,
4948 deps = MICROKERNEL_TEST_DEPS,
4949)
4950
4951xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07004952 name = "f32_vrdivc_test",
4953 srcs = [
4954 "test/f32-vrdivc.cc",
4955 "test/vbinaryc-microkernel-tester.h",
4956 ] + MICROKERNEL_TEST_HDRS,
4957 deps = MICROKERNEL_TEST_DEPS,
4958)
4959
4960xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004961 name = "f32_vrdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004962 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07004963 "test/f32-vrdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08004964 "test/vbinaryc-microkernel-tester.h",
4965 ] + MICROKERNEL_TEST_HDRS,
4966 deps = MICROKERNEL_TEST_DEPS,
4967)
4968
4969xnnpack_unit_test(
Marat Dukhan403b7d42019-12-05 12:49:11 -08004970 name = "f32_vmax_test",
4971 srcs = [
4972 "test/f32-vmax.cc",
4973 "test/vbinary-microkernel-tester.h",
4974 ] + MICROKERNEL_TEST_HDRS,
4975 deps = MICROKERNEL_TEST_DEPS,
4976)
4977
4978xnnpack_unit_test(
4979 name = "f32_vmaxc_test",
4980 srcs = [
4981 "test/f32-vmaxc.cc",
4982 "test/vbinaryc-microkernel-tester.h",
4983 ] + MICROKERNEL_TEST_HDRS,
4984 deps = MICROKERNEL_TEST_DEPS,
4985)
4986
4987xnnpack_unit_test(
4988 name = "f32_vmin_test",
4989 srcs = [
4990 "test/f32-vmin.cc",
4991 "test/vbinary-microkernel-tester.h",
4992 ] + MICROKERNEL_TEST_HDRS,
4993 deps = MICROKERNEL_TEST_DEPS,
4994)
4995
4996xnnpack_unit_test(
4997 name = "f32_vminc_test",
4998 srcs = [
4999 "test/f32-vminc.cc",
5000 "test/vbinaryc-microkernel-tester.h",
5001 ] + MICROKERNEL_TEST_HDRS,
5002 deps = MICROKERNEL_TEST_DEPS,
5003)
5004
5005xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005006 name = "f32_vmul_test",
5007 srcs = [
5008 "test/f32-vmul.cc",
5009 "test/vbinary-microkernel-tester.h",
5010 ] + MICROKERNEL_TEST_HDRS,
5011 deps = MICROKERNEL_TEST_DEPS,
5012)
5013
5014xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005015 name = "f32_vmul_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005016 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005017 "test/f32-vmul-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005018 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005019 ] + MICROKERNEL_TEST_HDRS,
5020 deps = MICROKERNEL_TEST_DEPS,
5021)
5022
5023xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005024 name = "f32_vmulc_test",
5025 srcs = [
5026 "test/f32-vmulc.cc",
5027 "test/vbinaryc-microkernel-tester.h",
5028 ] + MICROKERNEL_TEST_HDRS,
5029 deps = MICROKERNEL_TEST_DEPS,
5030)
5031
5032xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005033 name = "f32_vmulc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005034 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005035 "test/f32-vmulc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005036 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005037 ] + MICROKERNEL_TEST_HDRS,
5038 deps = MICROKERNEL_TEST_DEPS,
5039)
5040
5041xnnpack_unit_test(
Frank Barchard2a1049c2020-06-03 02:31:27 -07005042 name = "f16_vmulcaddc_minmax_test",
5043 srcs = [
5044 "test/f16-vmulcaddc-minmax.cc",
5045 "test/vmulcaddc-microkernel-tester.h",
5046 "src/xnnpack/AlignedAllocator.h",
5047 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005048 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard2a1049c2020-06-03 02:31:27 -07005049)
5050
5051xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005052 name = "f32_vmulcaddc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005053 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005054 "test/f32-vmulcaddc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005055 "test/vmulcaddc-microkernel-tester.h",
5056 "src/xnnpack/AlignedAllocator.h",
5057 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005058 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005059)
5060
5061xnnpack_unit_test(
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07005062 name = "f32_vlrelu_test",
5063 srcs = [
5064 "test/f32-vlrelu.cc",
5065 "test/vunary-microkernel-tester.h",
5066 ] + MICROKERNEL_TEST_HDRS,
5067 deps = MICROKERNEL_TEST_DEPS,
5068)
5069
5070xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005071 name = "f32_vneg_test",
5072 srcs = [
5073 "test/f32-vneg.cc",
5074 "test/vunary-microkernel-tester.h",
5075 ] + MICROKERNEL_TEST_HDRS,
5076 deps = MICROKERNEL_TEST_DEPS,
5077)
5078
5079xnnpack_unit_test(
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07005080 name = "f32_vrndne_test",
5081 srcs = [
5082 "test/f32-vrndne.cc",
5083 "test/vunary-microkernel-tester.h",
5084 ] + MICROKERNEL_TEST_HDRS,
5085 deps = MICROKERNEL_TEST_DEPS,
5086)
5087
5088xnnpack_unit_test(
5089 name = "f32_vrndz_test",
5090 srcs = [
5091 "test/f32-vrndz.cc",
5092 "test/vunary-microkernel-tester.h",
5093 ] + MICROKERNEL_TEST_HDRS,
5094 deps = MICROKERNEL_TEST_DEPS,
5095)
5096
5097xnnpack_unit_test(
5098 name = "f32_vrndu_test",
5099 srcs = [
5100 "test/f32-vrndu.cc",
5101 "test/vunary-microkernel-tester.h",
5102 ] + MICROKERNEL_TEST_HDRS,
5103 deps = MICROKERNEL_TEST_DEPS,
5104)
5105
5106xnnpack_unit_test(
5107 name = "f32_vrndd_test",
5108 srcs = [
5109 "test/f32-vrndd.cc",
5110 "test/vunary-microkernel-tester.h",
5111 ] + MICROKERNEL_TEST_HDRS,
5112 deps = MICROKERNEL_TEST_DEPS,
5113)
5114
5115xnnpack_unit_test(
Marat Dukhan05ac8e32019-10-21 15:39:33 -07005116 name = "f32_vscale_test",
5117 srcs = [
5118 "test/f32-vscale.cc",
5119 "test/vscale-microkernel-tester.h",
5120 ] + MICROKERNEL_TEST_HDRS,
5121 deps = MICROKERNEL_TEST_DEPS,
5122)
5123
5124xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07005125 name = "f32_vscaleexpminusmax_test",
5126 srcs = [
5127 "test/f32-vscaleexpminusmax.cc",
5128 "test/vscaleexpminusmax-microkernel-tester.h",
5129 ] + MICROKERNEL_TEST_HDRS,
5130 deps = MICROKERNEL_TEST_DEPS,
5131)
5132
5133xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07005134 name = "f32_vscaleextexp_test",
5135 srcs = [
5136 "test/f32-vscaleextexp.cc",
5137 "test/vscaleextexp-microkernel-tester.h",
5138 ] + MICROKERNEL_TEST_HDRS,
5139 deps = MICROKERNEL_TEST_DEPS,
5140)
5141
5142xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005143 name = "f32_vsqr_test",
5144 srcs = [
5145 "test/f32-vsqr.cc",
5146 "test/vunary-microkernel-tester.h",
5147 ] + MICROKERNEL_TEST_HDRS,
5148 deps = MICROKERNEL_TEST_DEPS,
5149)
5150
5151xnnpack_unit_test(
Marat Dukhan13bafb02020-06-05 00:43:11 -07005152 name = "f32_vsqrdiff_test",
5153 srcs = [
5154 "test/f32-vsqrdiff.cc",
5155 "test/vbinary-microkernel-tester.h",
5156 ] + MICROKERNEL_TEST_HDRS,
5157 deps = MICROKERNEL_TEST_DEPS,
5158)
5159
5160xnnpack_unit_test(
5161 name = "f32_vsqrdiffc_test",
5162 srcs = [
5163 "test/f32-vsqrdiffc.cc",
5164 "test/vbinaryc-microkernel-tester.h",
5165 ] + MICROKERNEL_TEST_HDRS,
5166 deps = MICROKERNEL_TEST_DEPS,
5167)
5168
5169xnnpack_unit_test(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07005170 name = "f32_vsqrt_test",
5171 srcs = [
5172 "test/f32-vsqrt.cc",
5173 "test/vunary-microkernel-tester.h",
5174 ] + MICROKERNEL_TEST_HDRS,
5175 deps = MICROKERNEL_TEST_DEPS,
5176)
5177
5178xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005179 name = "f32_vsub_test",
5180 srcs = [
5181 "test/f32-vsub.cc",
5182 "test/vbinary-microkernel-tester.h",
5183 ] + MICROKERNEL_TEST_HDRS,
5184 deps = MICROKERNEL_TEST_DEPS,
5185)
5186
5187xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005188 name = "f32_vsub_minmax_test",
Marat Dukhan97579532019-10-18 16:40:39 -07005189 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005190 "test/f32-vsub-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005191 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005192 ] + MICROKERNEL_TEST_HDRS,
5193 deps = MICROKERNEL_TEST_DEPS,
5194)
5195
5196xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005197 name = "f32_vsubc_test",
5198 srcs = [
5199 "test/f32-vsubc.cc",
5200 "test/vbinaryc-microkernel-tester.h",
5201 ] + MICROKERNEL_TEST_HDRS,
5202 deps = MICROKERNEL_TEST_DEPS,
5203)
5204
5205xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005206 name = "f32_vsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005207 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005208 "test/f32-vsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005209 "test/vbinaryc-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005210 ] + MICROKERNEL_TEST_HDRS,
5211 deps = MICROKERNEL_TEST_DEPS,
5212)
5213
5214xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005215 name = "f32_vrsubc_test",
5216 srcs = [
5217 "test/f32-vrsubc.cc",
5218 "test/vbinaryc-microkernel-tester.h",
5219 ] + MICROKERNEL_TEST_HDRS,
5220 deps = MICROKERNEL_TEST_DEPS,
5221)
5222
5223xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005224 name = "f32_vrsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005225 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005226 "test/f32-vrsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005227 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan97579532019-10-18 16:40:39 -07005228 ] + MICROKERNEL_TEST_HDRS,
5229 deps = MICROKERNEL_TEST_DEPS,
5230)
5231
5232xnnpack_unit_test(
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07005233 name = "qs8_dwconv_minmax_test",
5234 srcs = [
5235 "test/qs8-dwconv-minmax.cc",
5236 "test/dwconv-microkernel-tester.h",
5237 "src/xnnpack/AlignedAllocator.h",
5238 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
5239 deps = MICROKERNEL_TEST_DEPS + [":packing"],
5240)
5241
5242xnnpack_unit_test(
Marat Dukhan4ed53f42020-08-06 01:12:55 -07005243 name = "qs8_gavgpool_minmax_test",
5244 srcs = [
5245 "test/qs8-gavgpool-minmax.cc",
5246 "test/gavgpool-microkernel-tester.h",
5247 "src/xnnpack/AlignedAllocator.h",
5248 ] + MICROKERNEL_TEST_HDRS,
5249 deps = MICROKERNEL_TEST_DEPS,
5250)
5251
5252xnnpack_unit_test(
Marat Dukhan595e1702020-07-31 10:12:52 -07005253 name = "qs8_gemm_minmax_test",
5254 srcs = [
5255 "test/qs8-gemm-minmax.cc",
5256 "test/gemm-microkernel-tester.h",
5257 "src/xnnpack/AlignedAllocator.h",
5258 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
5259 deps = MICROKERNEL_TEST_DEPS + [":packing"],
5260)
5261
5262xnnpack_unit_test(
Marat Dukhanf9480682020-07-31 14:50:24 -07005263 name = "qs8_igemm_minmax_test",
5264 srcs = [
5265 "test/qs8-igemm-minmax.cc",
5266 "test/gemm-microkernel-tester.h",
5267 "src/xnnpack/AlignedAllocator.h",
5268 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
5269 deps = MICROKERNEL_TEST_DEPS + [":packing"],
5270)
5271
5272xnnpack_unit_test(
5273 name = "qs8_requantization_test",
5274 srcs = [
5275 "src/xnnpack/requantization-stubs.h",
5276 "test/qs8-requantization.cc",
5277 "test/requantization-tester.h",
5278 ] + MICROKERNEL_TEST_HDRS,
5279 deps = MICROKERNEL_TEST_DEPS,
5280)
5281
5282xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005283 name = "qu8_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005284 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005285 "test/qu8-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005286 "test/avgpool-microkernel-tester.h",
5287 "src/xnnpack/AlignedAllocator.h",
5288 ] + MICROKERNEL_TEST_HDRS,
5289 deps = MICROKERNEL_TEST_DEPS,
5290)
5291
5292xnnpack_unit_test(
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07005293 name = "qu8_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005294 srcs = [
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07005295 "test/qu8-dwconv-minmax.cc",
5296 "test/dwconv-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005297 "src/xnnpack/AlignedAllocator.h",
5298 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005299 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005300)
5301
5302xnnpack_unit_test(
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07005303 name = "qu8_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005304 srcs = [
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07005305 "test/qu8-igemm-minmax.cc",
5306 "test/gemm-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005307 "src/xnnpack/AlignedAllocator.h",
5308 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005309 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005310)
5311
5312xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005313 name = "qu8_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005314 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005315 "test/qu8-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005316 "test/gavgpool-microkernel-tester.h",
5317 "src/xnnpack/AlignedAllocator.h",
5318 ] + MICROKERNEL_TEST_HDRS,
5319 deps = MICROKERNEL_TEST_DEPS,
5320)
5321
5322xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005323 name = "qu8_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005324 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005325 "test/qu8-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005326 "test/gemm-microkernel-tester.h",
5327 "src/xnnpack/AlignedAllocator.h",
5328 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005329 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005330)
5331
5332xnnpack_unit_test(
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07005333 name = "qu8_requantization_test",
5334 srcs = [
5335 "src/xnnpack/requantization-stubs.h",
5336 "test/qu8-requantization.cc",
5337 "test/requantization-tester.h",
5338 ] + MICROKERNEL_TEST_HDRS,
5339 deps = MICROKERNEL_TEST_DEPS,
5340)
5341
5342xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07005343 name = "qu8_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005344 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07005345 "test/qu8-vadd-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005346 "test/vadd-microkernel-tester.h",
5347 ] + MICROKERNEL_TEST_HDRS,
5348 deps = MICROKERNEL_TEST_DEPS,
5349)
5350
5351xnnpack_unit_test(
5352 name = "u8_clamp_test",
5353 srcs = [
5354 "test/u8-clamp.cc",
5355 "test/clamp-microkernel-tester.h",
5356 ] + MICROKERNEL_TEST_HDRS,
5357 deps = MICROKERNEL_TEST_DEPS,
5358)
5359
5360xnnpack_unit_test(
5361 name = "u8_lut32norm_test",
5362 srcs = [
5363 "test/u8-lut32norm.cc",
5364 "test/lut-norm-microkernel-tester.h",
5365 ] + MICROKERNEL_TEST_HDRS,
5366 deps = MICROKERNEL_TEST_DEPS,
5367)
5368
5369xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005370 name = "u8_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005371 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005372 "test/u8-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005373 "test/maxpool-microkernel-tester.h",
5374 ] + MICROKERNEL_TEST_HDRS,
5375 deps = MICROKERNEL_TEST_DEPS,
5376)
5377
5378xnnpack_unit_test(
5379 name = "u8_rmax_test",
5380 srcs = [
5381 "test/u8-rmax.cc",
5382 "test/rmax-microkernel-tester.h",
5383 ] + MICROKERNEL_TEST_HDRS,
5384 deps = MICROKERNEL_TEST_DEPS,
5385)
5386
5387xnnpack_unit_test(
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07005388 name = "x32_fill_test",
5389 srcs = [
5390 "test/x32-fill.cc",
5391 "test/fill-microkernel-tester.h",
5392 ] + MICROKERNEL_TEST_HDRS,
5393 deps = MICROKERNEL_TEST_DEPS,
5394)
5395
5396xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005397 name = "x32_packx_test",
5398 srcs = [
5399 "test/x32-packx.cc",
5400 "test/pack-microkernel-tester.h",
5401 "src/xnnpack/AlignedAllocator.h",
5402 ] + MICROKERNEL_TEST_HDRS,
5403 deps = MICROKERNEL_TEST_DEPS,
5404)
5405
5406xnnpack_unit_test(
5407 name = "x32_pad_test",
5408 srcs = [
5409 "test/x32-pad.cc",
5410 "test/pad-microkernel-tester.h",
5411 ] + MICROKERNEL_TEST_HDRS,
5412 deps = MICROKERNEL_TEST_DEPS,
5413)
5414
5415xnnpack_unit_test(
5416 name = "x32_unpool_test",
5417 srcs = [
5418 "test/x32-unpool.cc",
5419 "test/unpool-microkernel-tester.h",
5420 ] + MICROKERNEL_TEST_HDRS,
5421 deps = MICROKERNEL_TEST_DEPS,
5422)
5423
5424xnnpack_unit_test(
5425 name = "x32_zip_test",
5426 srcs = [
5427 "test/x32-zip.cc",
5428 "test/zip-microkernel-tester.h",
5429 ] + MICROKERNEL_TEST_HDRS,
5430 deps = MICROKERNEL_TEST_DEPS,
5431)
5432
5433xnnpack_unit_test(
5434 name = "x8_lut_test",
5435 srcs = [
5436 "test/x8-lut.cc",
5437 "test/lut-microkernel-tester.h",
5438 ] + MICROKERNEL_TEST_HDRS,
5439 deps = MICROKERNEL_TEST_DEPS,
5440)
5441
5442xnnpack_unit_test(
5443 name = "x8_zip_test",
5444 srcs = [
5445 "test/x8-zip.cc",
5446 "test/zip-microkernel-tester.h",
5447 ] + MICROKERNEL_TEST_HDRS,
5448 deps = MICROKERNEL_TEST_DEPS,
5449)
5450
Marat Dukhan20c3b922020-03-10 03:45:06 -07005451########################## Size tests for the library #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07005452
5453xnnpack_binary(
Marat Dukhan20c3b922020-03-10 03:45:06 -07005454 name = "operator_size_test",
5455 srcs = ["test/operator-size.c"],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07005456 deps = [":xnnpack_operators_nhwc_f32"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005457)
5458
Marat Dukhan20c3b922020-03-10 03:45:06 -07005459xnnpack_binary(
5460 name = "subgraph_size_test",
5461 srcs = ["test/subgraph-size.c"],
5462 deps = [":XNNPACK"],
5463)
5464
5465########################### Unit tests for operators ##########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07005466
5467xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005468 name = "abs_nc_test",
5469 srcs = [
5470 "test/abs-nc.cc",
5471 "test/abs-operator-tester.h",
5472 ],
5473 deps = OPERATOR_TEST_DEPS,
5474)
5475
5476xnnpack_unit_test(
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005477 name = "add_nd_test",
5478 srcs = [
5479 "test/add-nd.cc",
5480 "test/binary-elementwise-operator-tester.h",
5481 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005482 deps = OPERATOR_TEST_DEPS,
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005483)
5484
5485xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005486 name = "argmax_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005487 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005488 "test/argmax-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005489 "test/argmax-pooling-operator-tester.h",
5490 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005491 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005492)
5493
5494xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005495 name = "average_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005496 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005497 "test/average-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005498 "test/average-pooling-operator-tester.h",
5499 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005500 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005501)
5502
5503xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005504 name = "bankers_rounding_nc_test",
5505 srcs = [
5506 "test/bankers-rounding-nc.cc",
5507 "test/bankers-rounding-operator-tester.h",
5508 ],
5509 deps = OPERATOR_TEST_DEPS,
5510)
5511
5512xnnpack_unit_test(
5513 name = "ceiling_nc_test",
5514 srcs = [
5515 "test/ceiling-nc.cc",
5516 "test/ceiling-operator-tester.h",
5517 ],
5518 deps = OPERATOR_TEST_DEPS,
5519)
5520
5521xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005522 name = "channel_shuffle_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005523 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005524 "test/channel-shuffle-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005525 "test/channel-shuffle-operator-tester.h",
5526 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005527 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005528)
5529
5530xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005531 name = "clamp_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005532 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005533 "test/clamp-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005534 "test/clamp-operator-tester.h",
5535 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005536 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005537)
5538
5539xnnpack_unit_test(
Marat Dukhan065b11e2020-05-22 09:49:41 -07005540 name = "constant_pad_nd_test",
5541 srcs = [
5542 "test/constant-pad-nd.cc",
5543 "test/constant-pad-operator-tester.h",
5544 ],
5545 deps = OPERATOR_TEST_DEPS,
5546)
5547
5548xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005549 name = "convolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005550 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005551 "test/convolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005552 "test/convolution-operator-tester.h",
5553 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005554 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005555)
5556
5557xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005558 name = "convolution_nchw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005559 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005560 "test/convolution-nchw.cc",
5561 "test/convolution-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005562 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005563 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005564)
5565
5566xnnpack_unit_test(
Marat Dukhan4e21b272020-06-04 18:45:01 -07005567 name = "copy_nc_test",
5568 srcs = [
5569 "test/copy-nc.cc",
5570 "test/copy-operator-tester.h",
5571 ],
5572 deps = OPERATOR_TEST_DEPS,
5573)
5574
5575xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005576 name = "deconvolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005577 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005578 "test/deconvolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005579 "test/deconvolution-operator-tester.h",
5580 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005581 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005582)
5583
5584xnnpack_unit_test(
Marat Dukhan69180502019-12-06 15:00:31 -08005585 name = "divide_nd_test",
5586 srcs = [
5587 "test/binary-elementwise-operator-tester.h",
5588 "test/divide-nd.cc",
5589 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005590 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69180502019-12-06 15:00:31 -08005591)
5592
5593xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005594 name = "fully_connected_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005595 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005596 "test/fully-connected-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005597 "test/fully-connected-operator-tester.h",
5598 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005599 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005600)
5601
5602xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005603 name = "floor_nc_test",
5604 srcs = [
5605 "test/floor-nc.cc",
5606 "test/floor-operator-tester.h",
5607 ],
5608 deps = OPERATOR_TEST_DEPS,
5609)
5610
5611xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005612 name = "global_average_pooling_nwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005613 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005614 "test/global-average-pooling-nwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005615 "test/global-average-pooling-operator-tester.h",
Marat Dukhanef61d022020-06-19 13:54:49 -07005616 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005617 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005618)
5619
5620xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005621 name = "global_average_pooling_ncw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005622 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005623 "test/global-average-pooling-ncw.cc",
5624 "test/global-average-pooling-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005625 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005626 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005627)
5628
5629xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005630 name = "hardswish_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005631 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005632 "test/hardswish-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005633 "test/hardswish-operator-tester.h",
5634 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005635 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005636)
5637
5638xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005639 name = "leaky_relu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005640 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005641 "test/leaky-relu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005642 "test/leaky-relu-operator-tester.h",
5643 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005644 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005645)
5646
5647xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005648 name = "max_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005649 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005650 "test/max-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005651 "test/max-pooling-operator-tester.h",
5652 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005653 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005654)
5655
5656xnnpack_unit_test(
Marat Dukhan79e7f842019-12-05 14:35:50 -08005657 name = "maximum_nd_test",
5658 srcs = [
5659 "test/binary-elementwise-operator-tester.h",
5660 "test/maximum-nd.cc",
5661 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005662 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08005663)
5664
5665xnnpack_unit_test(
5666 name = "minimum_nd_test",
5667 srcs = [
5668 "test/binary-elementwise-operator-tester.h",
5669 "test/minimum-nd.cc",
5670 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005671 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08005672)
5673
5674xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005675 name = "multiply_nd_test",
Marat Dukhanca2733c2019-11-15 23:21:17 -08005676 srcs = [
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08005677 "test/binary-elementwise-operator-tester.h",
Marat Dukhanefc47b82019-11-18 09:25:38 -08005678 "test/multiply-nd.cc",
Marat Dukhanca2733c2019-11-15 23:21:17 -08005679 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005680 deps = OPERATOR_TEST_DEPS,
Marat Dukhanca2733c2019-11-15 23:21:17 -08005681)
5682
5683xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005684 name = "negate_nc_test",
5685 srcs = [
5686 "test/negate-nc.cc",
5687 "test/negate-operator-tester.h",
5688 ],
5689 deps = OPERATOR_TEST_DEPS,
5690)
5691
5692xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005693 name = "prelu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005694 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005695 "test/prelu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005696 "test/prelu-operator-tester.h",
5697 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005698 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005699)
5700
5701xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005702 name = "resize_bilinear_nhwc_test",
Marat Dukhan69722492019-11-11 19:55:50 -08005703 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005704 "test/resize-bilinear-nhwc.cc",
Marat Dukhan69722492019-11-11 19:55:50 -08005705 "test/resize-bilinear-operator-tester.h",
5706 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07005707 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69722492019-11-11 19:55:50 -08005708)
5709
5710xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005711 name = "sigmoid_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005712 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005713 "test/sigmoid-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005714 "test/sigmoid-operator-tester.h",
5715 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005716 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005717)
5718
5719xnnpack_unit_test(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08005720 name = "softmax_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005721 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08005722 "test/softmax-nc.cc",
5723 "test/softmax-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005724 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005725 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005726)
5727
5728xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005729 name = "square_nc_test",
5730 srcs = [
5731 "test/square-nc.cc",
5732 "test/square-operator-tester.h",
5733 ],
5734 deps = OPERATOR_TEST_DEPS,
5735)
5736
5737xnnpack_unit_test(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07005738 name = "square_root_nc_test",
5739 srcs = [
5740 "test/square-root-nc.cc",
5741 "test/square-root-operator-tester.h",
5742 ],
5743 deps = OPERATOR_TEST_DEPS,
5744)
5745
5746xnnpack_unit_test(
Marat Dukhanf7399262020-06-05 10:58:44 -07005747 name = "squared_difference_nd_test",
5748 srcs = [
5749 "test/binary-elementwise-operator-tester.h",
5750 "test/squared-difference-nd.cc",
5751 ],
5752 deps = OPERATOR_TEST_DEPS,
5753)
5754
5755xnnpack_unit_test(
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08005756 name = "subtract_nd_test",
5757 srcs = [
5758 "test/binary-elementwise-operator-tester.h",
5759 "test/subtract-nd.cc",
5760 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005761 deps = OPERATOR_TEST_DEPS,
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08005762)
5763
5764xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07005765 name = "truncation_nc_test",
5766 srcs = [
5767 "test/truncation-nc.cc",
5768 "test/truncation-operator-tester.h",
5769 ],
5770 deps = OPERATOR_TEST_DEPS,
5771)
5772
5773xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08005774 name = "unpooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005775 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08005776 "test/unpooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005777 "test/unpooling-operator-tester.h",
5778 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07005779 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07005780)
5781
Chao Mei6ddfc602020-05-13 22:29:36 -07005782############################### Misc unit tests ###############################
5783
5784xnnpack_unit_test(
5785 name = "memory_planner_test",
5786 srcs = [
5787 "test/memory-planner-test.cc",
5788 ],
5789 deps = [
5790 ":XNNPACK",
5791 ":memory_planner",
5792 ],
5793)
5794
Marat Dukhan08c4a432019-10-03 09:29:21 -07005795############################# Build configurations #############################
5796
Marat Dukhanb8642352019-10-30 15:43:02 -07005797# Enables usage of assembly kernels.
Marat Dukhan08c4a432019-10-03 09:29:21 -07005798config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07005799 name = "xnn_enable_assembly_explicit_true",
5800 define_values = {"xnn_enable_assembly": "true"},
5801)
5802
5803# Disables usage of assembly kernels.
5804config_setting(
5805 name = "xnn_enable_assembly_explicit_false",
5806 define_values = {"xnn_enable_assembly": "false"},
5807)
5808
Marat Dukhan9de90e02020-06-18 16:04:12 -07005809# Enables usage of sparse inference.
5810config_setting(
5811 name = "xnn_enable_sparse_explicit_true",
5812 define_values = {"xnn_enable_sparse": "true"},
5813)
5814
5815# Disables usage of sparse inference.
5816config_setting(
5817 name = "xnn_enable_sparse_explicit_false",
5818 define_values = {"xnn_enable_sparse": "false"},
5819)
5820
Marat Dukhan05702cf2020-03-26 15:41:33 -07005821# Disables usage of HMP-aware optimizations.
5822config_setting(
5823 name = "xnn_enable_hmp_explicit_false",
5824 define_values = {"xnn_enable_hmp": "false"},
5825)
5826
Chao Mei6ddfc602020-05-13 22:29:36 -07005827# Enable usage of optimized memory allocation
5828config_setting(
5829 name = "xnn_enable_memopt_explicit_true",
5830 define_values = {"xnnpack_enable_memopt": "true"},
5831)
5832
5833# Disable usage of optimized memory allocation
5834config_setting(
5835 name = "xnn_enable_memopt_explicit_false",
5836 define_values = {"xnnpack_enable_memopt": "false"},
5837)
5838
Marat Dukhanb8642352019-10-30 15:43:02 -07005839# Builds with -c dbg
5840config_setting(
5841 name = "debug_build",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005842 values = {
Marat Dukhanb8642352019-10-30 15:43:02 -07005843 "compilation_mode": "dbg",
5844 },
5845)
5846
5847# Builds with -c opt
5848config_setting(
5849 name = "optimized_build",
5850 values = {
5851 "compilation_mode": "opt",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005852 },
5853)
5854
5855config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07005856 name = "linux_k8",
5857 values = {"cpu": "k8"},
5858)
5859
5860config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07005861 name = "linux_arm",
5862 values = {"cpu": "arm"},
Marat Dukhan4e45e662019-10-03 15:40:24 -07005863)
5864
5865config_setting(
Marat Dukhanf0bd4de2020-06-15 15:53:19 -07005866 name = "linux_armeabi",
5867 values = {"cpu": "armeabi"},
5868)
5869
5870config_setting(
Terry Heo68eef3f2020-04-13 22:53:52 -07005871 name = "linux_armhf",
5872 values = {"cpu": "armhf"},
5873)
5874
5875config_setting(
Marat Dukhana720e932020-06-10 13:01:11 -07005876 name = "linux_armv7a",
5877 values = {"cpu": "armv7a"},
5878)
5879
5880config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07005881 name = "linux_aarch64",
5882 values = {"cpu": "aarch64"},
5883)
5884
5885config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005886 name = "android",
5887 values = {"crosstool_top": "//external:android/crosstool"},
5888)
5889
5890config_setting(
5891 name = "android_armv7",
5892 values = {
5893 "crosstool_top": "//external:android/crosstool",
5894 "cpu": "armeabi-v7a",
5895 },
5896)
5897
5898config_setting(
5899 name = "android_arm64",
5900 values = {
5901 "crosstool_top": "//external:android/crosstool",
5902 "cpu": "arm64-v8a",
5903 },
5904)
5905
5906config_setting(
5907 name = "android_x86",
5908 values = {
5909 "crosstool_top": "//external:android/crosstool",
5910 "cpu": "x86",
5911 },
5912)
5913
5914config_setting(
5915 name = "android_x86_64",
5916 values = {
5917 "crosstool_top": "//external:android/crosstool",
5918 "cpu": "x86_64",
5919 },
5920)
5921
5922config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07005923 name = "windows_x86_64",
5924 values = {"cpu": "x64_windows"},
Marat Dukhan9fe932e2020-04-11 17:14:15 -07005925)
5926
5927config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07005928 name = "windows_x86_64_clang",
5929 values = {
5930 "compiler": "clang-cl",
5931 "cpu": "x64_windows",
5932 },
5933)
5934
5935config_setting(
5936 name = "windows_x86_64_mingw",
5937 values = {
5938 "compiler": "mingw-gcc",
5939 "cpu": "x64_windows",
5940 },
5941)
5942
5943config_setting(
5944 name = "windows_x86_64_msys",
5945 values = {
5946 "compiler": "msys-gcc",
5947 "cpu": "x64_windows",
5948 },
Marat Dukhan9fe932e2020-04-11 17:14:15 -07005949)
5950
5951config_setting(
Marat Dukhan885ca242019-10-07 09:17:32 -07005952 name = "macos_x86_64",
5953 values = {
5954 "apple_platform_type": "macos",
5955 "cpu": "darwin",
5956 },
5957)
5958
5959config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005960 name = "emscripten",
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005961 values = {"crosstool_top": "//toolchain:emscripten"},
Marat Dukhan08c4a432019-10-03 09:29:21 -07005962)
5963
5964config_setting(
5965 name = "emscripten_wasm",
5966 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005967 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005968 "cpu": "wasm",
5969 },
5970)
5971
5972config_setting(
5973 name = "emscripten_wasmsimd",
5974 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07005975 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005976 "cpu": "wasm",
Marat Dukhan81c62602020-05-29 13:22:49 -07005977 "copt": "-msimd128",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005978 },
5979)
5980
5981config_setting(
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005982 name = "ios_armv7",
5983 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005984 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005985 "cpu": "ios_armv7",
5986 },
5987)
5988
5989config_setting(
5990 name = "ios_arm64",
5991 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08005992 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08005993 "cpu": "ios_arm64",
5994 },
5995)
5996
5997config_setting(
5998 name = "ios_arm64e",
5999 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006000 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006001 "cpu": "ios_arm64e",
6002 },
6003)
6004
6005config_setting(
6006 name = "ios_x86",
6007 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006008 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006009 "cpu": "ios_i386",
6010 },
6011)
6012
6013config_setting(
6014 name = "ios_x86_64",
6015 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006016 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006017 "cpu": "ios_x86_64",
6018 },
6019)
6020
6021config_setting(
6022 name = "watchos_armv7k",
6023 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006024 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006025 "cpu": "watchos_armv7k",
6026 },
6027)
6028
6029config_setting(
6030 name = "watchos_arm64_32",
6031 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006032 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006033 "cpu": "watchos_arm64_32",
6034 },
6035)
6036
6037config_setting(
6038 name = "watchos_x86",
6039 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006040 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006041 "cpu": "watchos_i386",
6042 },
6043)
6044
6045config_setting(
6046 name = "watchos_x86_64",
6047 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006048 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006049 "cpu": "watchos_x86_64",
6050 },
6051)
6052
6053config_setting(
6054 name = "tvos_arm64",
6055 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006056 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006057 "cpu": "tvos_arm64",
6058 },
6059)
6060
6061config_setting(
6062 name = "tvos_x86_64",
6063 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006064 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006065 "cpu": "tvos_x86_64",
6066 },
6067)