blob: 1522de834edc10d21f1fa37c60bea1195c895a01 [file] [log] [blame]
Marat Dukhan08c4a432019-10-03 09:29:21 -07001# Copyright 2019 Google LLC
2#
3# This source code is licensed under the BSD-style license found in the
4# LICENSE file in the root directory of this source tree.
5#
6# Description:
7# XNNPACK - optimized floating-point neural network operators library
8
Marat Dukhan10a38082020-04-17 03:58:35 -07009load(":build_defs.bzl", "xnnpack_aggregate_library", "xnnpack_benchmark", "xnnpack_binary", "xnnpack_cc_library", "xnnpack_gcc_std_copts", "xnnpack_min_size_copts", "xnnpack_msvc_std_copts", "xnnpack_optional_armcl_copts", "xnnpack_optional_armcl_deps", "xnnpack_optional_dnnl_copts", "xnnpack_optional_dnnl_deps", "xnnpack_optional_gemmlowp_copts", "xnnpack_optional_gemmlowp_deps", "xnnpack_optional_ruy_copts", "xnnpack_optional_ruy_deps", "xnnpack_optional_tflite_copts", "xnnpack_optional_tflite_deps", "xnnpack_std_cxxopts", "xnnpack_unit_test", "xnnpack_visibility")
Marat Dukhan69c3f2c2019-11-06 12:30:01 -080010
Marat Dukhan08c4a432019-10-03 09:29:21 -070011licenses(["notice"])
12
13exports_files(["LICENSE"])
14
Marat Dukhan1b354632020-03-23 12:50:22 -070015OPERATOR_BENCHMARK_DEPS = [
16 ":XNNPACK",
17 ":bench_utils",
18 "@cpuinfo",
19 "@pthreadpool",
20]
21
Marat Dukhan08c4a432019-10-03 09:29:21 -070022MICROKERNEL_BENCHMARK_DEPS = [
23 ":ukernels",
24 ":bench_utils",
Frank Barchard7e955972019-10-11 10:34:25 -070025 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070026 "@cpuinfo",
27 "@FP16",
28 "@pthreadpool",
29]
30
Marat Dukhan6adff4e2019-10-14 18:32:07 -070031ACCURACY_EVAL_DEPS = [
32 ":XNNPACK",
33 ":ukernels",
34 "@FP16",
35 "@pthreadpool",
36]
37
Marat Dukhan08c4a432019-10-03 09:29:21 -070038MICROKERNEL_TEST_DEPS = [
Marat Dukhan33fcf782020-05-24 14:27:15 -070039 ":ukernels_test_mode",
Frank Barchard7e955972019-10-11 10:34:25 -070040 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070041 "@cpuinfo",
42 "@FP16",
43 "@pthreadpool",
44]
45
Marat Dukhan1b354632020-03-23 12:50:22 -070046OPERATOR_TEST_DEPS = [
Marat Dukhan33fcf782020-05-24 14:27:15 -070047 ":XNNPACK_test_mode",
Marat Dukhan1b354632020-03-23 12:50:22 -070048 "@pthreadpool",
49 "@FP16",
50]
51
Marat Dukhan08c4a432019-10-03 09:29:21 -070052OPERATOR_SRCS = [
Marat Dukhane8265432020-04-28 18:42:59 -070053 "src/operators/add-nc.c",
54 "src/operators/argmax-pooling-nhwc.c",
55 "src/operators/average-pooling-nhwc.c",
56 "src/operators/binary-elementwise-nd.c",
57 "src/operators/channel-pad-nc.c",
58 "src/operators/channel-shuffle-nc.c",
59 "src/operators/clamp-nc.c",
Marat Dukhan065b11e2020-05-22 09:49:41 -070060 "src/operators/constant-pad-nd.c",
Marat Dukhane8265432020-04-28 18:42:59 -070061 "src/operators/convolution-nchw.c",
62 "src/operators/convolution-nhwc.c",
63 "src/operators/deconvolution-nhwc.c",
64 "src/operators/fully-connected-nc.c",
65 "src/operators/global-average-pooling-ncw.c",
66 "src/operators/global-average-pooling-nwc.c",
67 "src/operators/hardswish-nc.c",
68 "src/operators/leaky-relu-nc.c",
69 "src/operators/max-pooling-nhwc.c",
70 "src/operators/prelu-nc.c",
71 "src/operators/resize-bilinear-nhwc.c",
72 "src/operators/sigmoid-nc.c",
73 "src/operators/softmax-nc.c",
74 "src/operators/unpooling-nhwc.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -070075]
76
Marat Dukhan3a77ea72019-12-23 12:10:24 -080077TABLE_SRCS = [
78 "src/tables/exp2-k-over-64.c",
79 "src/tables/exp2-k-over-2048.c",
80]
81
Marat Dukhan08c4a432019-10-03 09:29:21 -070082SCALAR_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -080083 "src/f32-argmaxpool/4x-scalar-c1.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -080084 "src/f32-argmaxpool/9p8x-scalar-c1.c",
Marat Dukhan329da642019-11-19 21:44:39 -080085 "src/f32-argmaxpool/9x-scalar-c1.c",
Marat Dukhan99936602020-04-11 16:47:01 -070086 "src/f32-avgpool/9p8x-minmax-scalar-c1.c",
87 "src/f32-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -070088 "src/f32-clamp/gen/scalar-x1.c",
89 "src/f32-clamp/gen/scalar-x2.c",
90 "src/f32-clamp/gen/scalar-x4.c",
Marat Dukhan441e2212019-12-04 18:30:49 -080091 "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c",
Marat Dukhan6b7dfae2019-12-04 16:00:52 -080092 "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -070093 "src/f32-conv-hwc2chw/3x3s2p1c3x4-scalar-1x1.c",
94 "src/f32-dwconv-chw/3x3p1-scalar.c",
95 "src/f32-dwconv-chw/3x3s2p1-scalar.c",
96 "src/f32-dwconv-chw/5x5p2-scalar.c",
97 "src/f32-dwconv-chw/5x5s2p2-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -070098 "src/f32-dwconv/gen/up1x4-scalar-acc2.c",
99 "src/f32-dwconv/gen/up1x4-scalar.c",
100 "src/f32-dwconv/gen/up1x9-scalar-acc2.c",
101 "src/f32-dwconv/gen/up1x9-scalar.c",
102 "src/f32-dwconv/gen/up1x25-scalar-acc2.c",
103 "src/f32-dwconv/gen/up1x25-scalar.c",
104 "src/f32-dwconv/gen/up2x4-scalar-acc2.c",
105 "src/f32-dwconv/gen/up2x4-scalar.c",
106 "src/f32-dwconv/gen/up2x9-scalar-acc2.c",
107 "src/f32-dwconv/gen/up2x9-scalar.c",
108 "src/f32-dwconv/gen/up2x25-scalar-acc2.c",
109 "src/f32-dwconv/gen/up2x25-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700110 "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c",
111 "src/f32-dwconv/gen/up1x4-minmax-scalar.c",
112 "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c",
113 "src/f32-dwconv/gen/up1x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700114 "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c",
115 "src/f32-dwconv/gen/up1x25-minmax-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700116 "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c",
117 "src/f32-dwconv/gen/up2x4-minmax-scalar.c",
118 "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c",
119 "src/f32-dwconv/gen/up2x9-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700120 "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c",
121 "src/f32-dwconv/gen/up2x25-minmax-scalar.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700122 "src/f32-gavgpool-cw/scalar-x1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700123 "src/f32-gavgpool/7p7x-minmax-scalar-c1.c",
124 "src/f32-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700125 "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c",
126 "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c",
127 "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700128 "src/f32-gemm/gen/1x4-scalar.c",
129 "src/f32-gemm/gen/2x4-scalar.c",
130 "src/f32-gemm/gen/4x2-scalar.c",
131 "src/f32-gemm/gen/4x4-scalar.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700132 "src/f32-gemm/gen/1x4-relu-scalar.c",
133 "src/f32-gemm/gen/2x4-relu-scalar.c",
134 "src/f32-gemm/gen/4x2-relu-scalar.c",
135 "src/f32-gemm/gen/4x4-relu-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700136 "src/f32-gemm/gen/1x4-minmax-scalar.c",
137 "src/f32-gemm/gen/2x4-minmax-scalar.c",
138 "src/f32-gemm/gen/4x2-minmax-scalar.c",
139 "src/f32-gemm/gen/4x4-minmax-scalar.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800140 "src/f32-hswish/gen/scalar-x1.c",
141 "src/f32-hswish/gen/scalar-x2.c",
142 "src/f32-hswish/gen/scalar-x4.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700143 "src/f32-ibilinear/gen/scalar-c1.c",
144 "src/f32-ibilinear/gen/scalar-c2.c",
145 "src/f32-ibilinear/gen/scalar-c4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700146 "src/f32-igemm/gen/1x4-scalar.c",
147 "src/f32-igemm/gen/2x4-scalar.c",
148 "src/f32-igemm/gen/4x2-scalar.c",
149 "src/f32-igemm/gen/4x4-scalar.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700150 "src/f32-igemm/gen/1x4-relu-scalar.c",
151 "src/f32-igemm/gen/2x4-relu-scalar.c",
152 "src/f32-igemm/gen/4x2-relu-scalar.c",
153 "src/f32-igemm/gen/4x4-relu-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700154 "src/f32-igemm/gen/1x4-minmax-scalar.c",
155 "src/f32-igemm/gen/2x4-minmax-scalar.c",
156 "src/f32-igemm/gen/4x2-minmax-scalar.c",
157 "src/f32-igemm/gen/4x4-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700158 "src/f32-maxpool/9p8x-minmax-scalar-c1.c",
159 "src/f32-pavgpool/9p8x-minmax-scalar-c1.c",
160 "src/f32-pavgpool/9x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700161 "src/f32-ppmm/gen/2x4-minmax-scalar.c",
162 "src/f32-ppmm/gen/3x3-minmax-scalar.c",
163 "src/f32-ppmm/gen/4x2-minmax-scalar.c",
164 "src/f32-ppmm/gen/4x4-minmax-scalar.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800165 "src/f32-prelu/gen/scalar-2x1.c",
166 "src/f32-prelu/gen/scalar-2x4.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800167 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c",
168 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c",
169 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c",
170 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c",
171 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c",
172 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c",
173 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c",
174 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c",
175 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c",
176 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c",
177 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c",
178 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700179 "src/f32-rmax/scalar.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800180 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c",
181 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c",
182 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c",
183 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c",
184 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c",
185 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c",
186 "src/f32-sigmoid/gen/scalar-p5-div-x1.c",
187 "src/f32-sigmoid/gen/scalar-p5-div-x2.c",
188 "src/f32-sigmoid/gen/scalar-p5-div-x4.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700189 "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c",
190 "src/f32-spmm/gen/1x1-minmax-scalar.c",
191 "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c",
192 "src/f32-spmm/gen/2x1-minmax-scalar.c",
193 "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c",
194 "src/f32-spmm/gen/4x1-minmax-scalar.c",
195 "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c",
196 "src/f32-spmm/gen/8x1-minmax-scalar.c",
197 "src/f32-spmm/gen/8x2-minmax-scalar.c",
198 "src/f32-spmm/gen/8x4-minmax-scalar.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700199 "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c",
200 "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c",
201 "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c",
202 "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c",
203 "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c",
204 "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c",
205 "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c",
206 "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c",
207 "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c",
208 "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c",
209 "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c",
210 "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800211 "src/f32-vbinary/gen/vmax-scalar-x1.c",
212 "src/f32-vbinary/gen/vmax-scalar-x2.c",
213 "src/f32-vbinary/gen/vmax-scalar-x4.c",
214 "src/f32-vbinary/gen/vmaxc-scalar-x1.c",
215 "src/f32-vbinary/gen/vmaxc-scalar-x2.c",
216 "src/f32-vbinary/gen/vmaxc-scalar-x4.c",
217 "src/f32-vbinary/gen/vmin-scalar-x1.c",
218 "src/f32-vbinary/gen/vmin-scalar-x2.c",
219 "src/f32-vbinary/gen/vmin-scalar-x4.c",
220 "src/f32-vbinary/gen/vminc-scalar-x1.c",
221 "src/f32-vbinary/gen/vminc-scalar-x2.c",
222 "src/f32-vbinary/gen/vminc-scalar-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700223 "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c",
224 "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c",
225 "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c",
226 "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c",
227 "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c",
228 "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c",
229 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c",
230 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c",
231 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c",
232 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c",
233 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c",
234 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c",
235 "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c",
236 "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c",
237 "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c",
238 "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c",
239 "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c",
240 "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700241 "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c",
242 "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c",
243 "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800244 "src/math/expminus-scalar-lut2048-p1.c",
245 "src/math/expminus-scalar-lut64-p2.c",
246 "src/math/expminus-scalar-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -0700247 "src/math/roundne-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700248 "src/math/roundne-scalar-nearbyint.c",
249 "src/math/roundne-scalar-rint.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700250 "src/math/roundd-scalar-addsub.c",
251 "src/math/roundd-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700252 "src/math/roundd-scalar-floor.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700253 "src/math/roundu-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700254 "src/math/roundu-scalar-ceil.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700255 "src/math/roundu-scalar-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700256 "src/math/roundz-scalar-addsub.c",
257 "src/math/roundz-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700258 "src/math/roundz-scalar-trunc.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800259 "src/math/sigmoid-scalar-lut2048-p1-div.c",
260 "src/math/sigmoid-scalar-lut64-p2-div.c",
261 "src/math/sigmoid-scalar-p5-div.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700262 "src/q8-avgpool/9p8x-minmax-scalar-c1.c",
263 "src/q8-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700264 "src/q8-dwconv/up1x9-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700265 "src/q8-gavgpool/7p7x-minmax-scalar-c1.c",
266 "src/q8-gavgpool/7x-minmax-scalar-c1.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700267 "src/q8-gemm/2x2-minmax-scalar.c",
268 "src/q8-igemm/2x2-minmax-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700269 "src/q8-vadd/minmax-scalar.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700270 "src/u8-clamp/scalar-x4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700271 "src/u8-lut32norm/scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700272 "src/u8-maxpool/9p8x-minmax-scalar-c1.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700273 "src/u8-rmax/scalar.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700274 "src/x32-fill/scalar-float.c",
275 "src/x32-fill/scalar-int.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700276 "src/x32-packx/x2-scalar.c",
277 "src/x32-packx/x3-scalar.c",
278 "src/x32-packx/x4-scalar.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700279 "src/x32-pad/scalar-int.c",
280 "src/x32-pad/scalar-float.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700281 "src/x32-unpool/scalar.c",
282 "src/x32-zip/x2-scalar.c",
283 "src/x32-zip/x3-scalar.c",
284 "src/x32-zip/x4-scalar.c",
285 "src/x32-zip/xm-scalar.c",
286 "src/x8-lut/scalar.c",
287 "src/x8-zip/x2-scalar.c",
288 "src/x8-zip/x3-scalar.c",
289 "src/x8-zip/x4-scalar.c",
290 "src/x8-zip/xm-scalar.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700291 "src/requantization/precise-scalar.c",
292 "src/requantization/fp32-scalar.c",
293 "src/requantization/q31-scalar.c",
294 "src/requantization/gemmlowp-scalar.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700295]
296
Marat Dukhan436ebe62019-12-04 15:10:12 -0800297WASM_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700298 "src/f32-avgpool/9p8x-minmax-wasm-c1.c",
299 "src/f32-avgpool/9x-minmax-wasm-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700300 "src/f32-clamp/gen/wasm-x1.c",
301 "src/f32-clamp/gen/wasm-x2.c",
302 "src/f32-clamp/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700303 "src/f32-dwconv/gen/up1x4-wasm-acc2.c",
304 "src/f32-dwconv/gen/up1x4-wasm.c",
305 "src/f32-dwconv/gen/up1x9-wasm-acc2.c",
306 "src/f32-dwconv/gen/up1x9-wasm.c",
307 "src/f32-dwconv/gen/up1x25-wasm-acc2.c",
308 "src/f32-dwconv/gen/up1x25-wasm.c",
309 "src/f32-dwconv/gen/up2x4-wasm-acc2.c",
310 "src/f32-dwconv/gen/up2x4-wasm.c",
311 "src/f32-dwconv/gen/up2x9-wasm-acc2.c",
312 "src/f32-dwconv/gen/up2x9-wasm.c",
313 "src/f32-dwconv/gen/up2x25-wasm-acc2.c",
314 "src/f32-dwconv/gen/up2x25-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700315 "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c",
316 "src/f32-dwconv/gen/up1x4-minmax-wasm.c",
317 "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c",
318 "src/f32-dwconv/gen/up1x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700319 "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c",
320 "src/f32-dwconv/gen/up1x25-minmax-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700321 "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c",
322 "src/f32-dwconv/gen/up2x4-minmax-wasm.c",
323 "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c",
324 "src/f32-dwconv/gen/up2x9-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700325 "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c",
326 "src/f32-dwconv/gen/up2x25-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700327 "src/f32-gavgpool/7p7x-minmax-wasm-c1.c",
328 "src/f32-gavgpool/7x-minmax-wasm-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700329 "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c",
330 "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c",
331 "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700332 "src/f32-gemm/gen/1x4-wasm.c",
333 "src/f32-gemm/gen/2x4-wasm.c",
334 "src/f32-gemm/gen/4x2-wasm.c",
335 "src/f32-gemm/gen/4x4-wasm.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700336 "src/f32-gemm/gen/1x4-relu-wasm.c",
337 "src/f32-gemm/gen/2x4-relu-wasm.c",
338 "src/f32-gemm/gen/4x2-relu-wasm.c",
339 "src/f32-gemm/gen/4x4-relu-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700340 "src/f32-gemm/gen/1x4-minmax-wasm.c",
341 "src/f32-gemm/gen/2x4-minmax-wasm.c",
342 "src/f32-gemm/gen/4x2-minmax-wasm.c",
343 "src/f32-gemm/gen/4x4-minmax-wasm.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800344 "src/f32-hswish/gen/wasm-x1.c",
345 "src/f32-hswish/gen/wasm-x2.c",
346 "src/f32-hswish/gen/wasm-x4.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700347 "src/f32-igemm/gen/1x4-wasm.c",
348 "src/f32-igemm/gen/2x4-wasm.c",
349 "src/f32-igemm/gen/4x2-wasm.c",
350 "src/f32-igemm/gen/4x4-wasm.c",
Marat Dukhan467f6362020-05-22 23:21:55 -0700351 "src/f32-igemm/gen/1x4-relu-wasm.c",
352 "src/f32-igemm/gen/2x4-relu-wasm.c",
353 "src/f32-igemm/gen/4x2-relu-wasm.c",
354 "src/f32-igemm/gen/4x4-relu-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700355 "src/f32-igemm/gen/1x4-minmax-wasm.c",
356 "src/f32-igemm/gen/2x4-minmax-wasm.c",
357 "src/f32-igemm/gen/4x2-minmax-wasm.c",
358 "src/f32-igemm/gen/4x4-minmax-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700359 "src/f32-maxpool/9p8x-minmax-wasm-c1.c",
360 "src/f32-pavgpool/9p8x-minmax-wasm-c1.c",
361 "src/f32-pavgpool/9x-minmax-wasm-c1.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700362 "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c",
363 "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c",
364 "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c",
365 "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c",
366 "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c",
367 "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c",
368 "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c",
369 "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c",
370 "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c",
371 "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c",
372 "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c",
373 "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800374 "src/f32-vbinary/gen/vmax-wasm-x1.c",
375 "src/f32-vbinary/gen/vmax-wasm-x2.c",
376 "src/f32-vbinary/gen/vmax-wasm-x4.c",
377 "src/f32-vbinary/gen/vmaxc-wasm-x1.c",
378 "src/f32-vbinary/gen/vmaxc-wasm-x2.c",
379 "src/f32-vbinary/gen/vmaxc-wasm-x4.c",
380 "src/f32-vbinary/gen/vmin-wasm-x1.c",
381 "src/f32-vbinary/gen/vmin-wasm-x2.c",
382 "src/f32-vbinary/gen/vmin-wasm-x4.c",
383 "src/f32-vbinary/gen/vminc-wasm-x1.c",
384 "src/f32-vbinary/gen/vminc-wasm-x2.c",
385 "src/f32-vbinary/gen/vminc-wasm-x4.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700386 "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c",
387 "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c",
388 "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c",
389 "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c",
390 "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c",
391 "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c",
392 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c",
393 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c",
394 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c",
395 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c",
396 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c",
397 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c",
398 "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c",
399 "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c",
400 "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c",
401 "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c",
402 "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c",
403 "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700404 "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c",
405 "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c",
406 "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c",
Marat Dukhan436ebe62019-12-04 15:10:12 -0800407]
408
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800409PSIMD_FASTMATH_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -0800410 "src/f32-argmaxpool/4x-psimd-c4.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800411 "src/f32-argmaxpool/9p8x-psimd-c4.c",
Marat Dukhan329da642019-11-19 21:44:39 -0800412 "src/f32-argmaxpool/9x-psimd-c4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700413 "src/f32-avgpool/9p8x-minmax-psimd-c4.c",
414 "src/f32-avgpool/9x-minmax-psimd-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700415 "src/f32-clamp/gen/psimd-x4.c",
416 "src/f32-clamp/gen/psimd-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700417 "src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c",
418 "src/f32-dwconv/gen/up4x25-minmax-psimd.c",
419 "src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c",
420 "src/f32-dwconv/gen/up4x4-minmax-psimd.c",
421 "src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c",
422 "src/f32-dwconv/gen/up4x9-minmax-psimd.c",
423 "src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c",
424 "src/f32-dwconv/gen/up8x25-minmax-psimd.c",
425 "src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c",
426 "src/f32-dwconv/gen/up8x4-minmax-psimd.c",
427 "src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c",
428 "src/f32-dwconv/gen/up8x9-minmax-psimd.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700429 "src/f32-gavgpool/7p7x-minmax-psimd-c4.c",
430 "src/f32-gavgpool/7x-minmax-psimd-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700431 "src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c",
432 "src/f32-gemm/gen/1x8-minmax-psimd-splat.c",
433 "src/f32-gemm/gen/1x8s4-minmax-psimd.c",
434 "src/f32-gemm/gen/4x2c4-minmax-psimd.c",
435 "src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c",
436 "src/f32-gemm/gen/4x8-minmax-psimd-splat.c",
437 "src/f32-gemm/gen/4x8s4-minmax-psimd.c",
438 "src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c",
439 "src/f32-gemm/gen/6x8-minmax-psimd-splat.c",
440 "src/f32-gemm/gen/6x8s4-minmax-psimd.c",
441 "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c",
442 "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c",
443 "src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c",
444 "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c",
445 "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c",
446 "src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c",
447 "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c",
448 "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c",
449 "src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800450 "src/f32-hswish/gen/psimd-x4.c",
451 "src/f32-hswish/gen/psimd-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700452 "src/f32-ibilinear/gen/psimd-c4.c",
453 "src/f32-ibilinear/gen/psimd-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700454 "src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c",
455 "src/f32-igemm/gen/1x8-minmax-psimd-splat.c",
456 "src/f32-igemm/gen/1x8s4-minmax-psimd.c",
457 "src/f32-igemm/gen/4x2c4-minmax-psimd.c",
458 "src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c",
459 "src/f32-igemm/gen/4x8-minmax-psimd-splat.c",
460 "src/f32-igemm/gen/4x8s4-minmax-psimd.c",
461 "src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c",
462 "src/f32-igemm/gen/6x8-minmax-psimd-splat.c",
463 "src/f32-igemm/gen/6x8s4-minmax-psimd.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700464 "src/f32-maxpool/9p8x-minmax-psimd-c4.c",
465 "src/f32-pavgpool/9p8x-minmax-psimd-c4.c",
466 "src/f32-pavgpool/9x-minmax-psimd-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700467 "src/f32-ppmm/gen/4x8-minmax-psimd.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800468 "src/f32-prelu/gen/psimd-2x4.c",
469 "src/f32-prelu/gen/psimd-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -0800470 "src/f32-rmax/psimd.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700471 "src/f32-vbinary/gen/vadd-minmax-psimd-x4.c",
472 "src/f32-vbinary/gen/vadd-minmax-psimd-x8.c",
473 "src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c",
474 "src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c",
475 "src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c",
476 "src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c",
477 "src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c",
478 "src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800479 "src/f32-vbinary/gen/vmax-psimd-x4.c",
480 "src/f32-vbinary/gen/vmax-psimd-x8.c",
481 "src/f32-vbinary/gen/vmaxc-psimd-x4.c",
482 "src/f32-vbinary/gen/vmaxc-psimd-x8.c",
483 "src/f32-vbinary/gen/vmin-psimd-x4.c",
484 "src/f32-vbinary/gen/vmin-psimd-x8.c",
485 "src/f32-vbinary/gen/vminc-psimd-x4.c",
486 "src/f32-vbinary/gen/vminc-psimd-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700487 "src/f32-vbinary/gen/vmul-minmax-psimd-x4.c",
488 "src/f32-vbinary/gen/vmul-minmax-psimd-x8.c",
489 "src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c",
490 "src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c",
491 "src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c",
492 "src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c",
493 "src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c",
494 "src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c",
495 "src/f32-vbinary/gen/vsub-minmax-psimd-x4.c",
496 "src/f32-vbinary/gen/vsub-minmax-psimd-x8.c",
497 "src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c",
498 "src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700499 "src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c",
500 "src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700501 "src/x32-fill/psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700502 "src/x32-packx/x4-psimd.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700503 "src/x32-pad/psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700504 "src/x32-unpool/psimd.c",
505 "src/x32-zip/x2-psimd.c",
506 "src/x32-zip/x3-psimd.c",
507 "src/x32-zip/x4-psimd.c",
508 "src/x32-zip/xm-psimd.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700509 "src/requantization/precise-psimd.c",
510 "src/requantization/fp32-psimd.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700511]
512
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800513PSIMD_ACCMATH_UKERNELS = [
Marat Dukhanb39689d2020-01-24 13:32:20 -0800514 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c",
515 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c",
516 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c",
517 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c",
518 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c",
519 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c",
520 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c",
521 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c",
522 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c",
523 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c",
524 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c",
525 "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800526 "src/f32-sigmoid/gen/psimd-p5-div-x4.c",
527 "src/f32-sigmoid/gen/psimd-p5-div-x8.c",
528 "src/f32-sigmoid/gen/psimd-p5-div-x12.c",
529 "src/f32-sigmoid/gen/psimd-p5-div-x16.c",
530 "src/f32-sigmoid/gen/psimd-p5-div-x20.c",
531 "src/f32-sigmoid/gen/psimd-p5-div-x24.c",
Marat Dukhan075088a2020-05-12 19:42:12 -0700532 "src/math/roundne-psimd-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700533 "src/math/roundd-psimd-addsub.c",
534 "src/math/roundu-psimd-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700535 "src/math/roundz-psimd-addsub.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800536 "src/math/sigmoid-psimd-p5-div.c",
537]
538
Marat Dukhan08c4a432019-10-03 09:29:21 -0700539# ISA-specific micro-kernels
540NEON_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700541 "src/f32-avgpool/9p8x-minmax-neon-c4.c",
542 "src/f32-avgpool/9x-minmax-neon-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700543 "src/f32-clamp/gen/neon-x4.c",
544 "src/f32-clamp/gen/neon-x8.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700545 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c",
546 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700547 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c",
548 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700549 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c",
550 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700551 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c",
552 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700553 "src/f32-dwconv/gen/up4x4-minmax-neon.c",
554 "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c",
555 "src/f32-dwconv/gen/up8x4-minmax-neon.c",
556 "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700557 "src/f32-dwconv/gen/up4x9-minmax-neon.c",
558 "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c",
559 "src/f32-dwconv/gen/up8x9-minmax-neon.c",
560 "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700561 "src/f32-dwconv/gen/up4x25-minmax-neon.c",
562 "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c",
563 "src/f32-dwconv/gen/up8x25-minmax-neon.c",
564 "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700565 "src/f32-gavgpool-cw/neon-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700566 "src/f32-gavgpool/7p7x-minmax-neon-c4.c",
567 "src/f32-gavgpool/7x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700568 "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c",
569 "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c",
570 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c",
571 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c",
572 "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c",
573 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c",
574 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c",
575 "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c",
576 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c",
577 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c",
578 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c",
579 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c",
580 "src/f32-gemm/gen/1x8s4-minmax-neon.c",
581 "src/f32-gemm/gen/4x8s4-minmax-neon.c",
582 "src/f32-gemm/gen/6x8s4-minmax-neon.c",
583 "src/f32-gemm/gen/8x8s4-minmax-neon.c",
584 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c",
585 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c",
586 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c",
587 "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c",
588 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c",
589 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c",
590 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c",
591 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c",
592 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c",
593 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c",
594 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c",
595 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c",
596 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c",
597 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c",
598 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800599 "src/f32-hswish/gen/neon-x4.c",
600 "src/f32-hswish/gen/neon-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -0700601 "src/f32-ibilinear/gen/neon-c4.c",
602 "src/f32-ibilinear/gen/neon-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700603 "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c",
604 "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c",
605 "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c",
606 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c",
607 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c",
608 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c",
609 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c",
610 "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c",
611 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c",
612 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c",
613 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c",
614 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c",
615 "src/f32-igemm/gen/1x8s4-minmax-neon.c",
616 "src/f32-igemm/gen/4x8s4-minmax-neon.c",
617 "src/f32-igemm/gen/6x8s4-minmax-neon.c",
618 "src/f32-igemm/gen/8x8s4-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700619 "src/f32-maxpool/9p8x-minmax-neon-c4.c",
620 "src/f32-pavgpool/9p8x-minmax-neon-c4.c",
621 "src/f32-pavgpool/9x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700622 "src/f32-ppmm/gen/4x8-minmax-neon.c",
623 "src/f32-ppmm/gen/8x8-minmax-neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800624 "src/f32-prelu/gen/neon-2x4.c",
625 "src/f32-prelu/gen/neon-2x8.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800626 "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c",
627 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c",
628 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c",
629 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c",
630 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c",
631 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c",
632 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c",
633 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c",
634 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c",
635 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c",
636 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c",
637 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c",
638 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c",
639 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c",
640 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c",
641 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c",
642 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c",
643 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c",
644 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c",
645 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c",
646 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c",
647 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c",
648 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c",
649 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700650 "src/f32-rmax/neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800651 "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -0800652 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c",
653 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c",
654 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c",
655 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c",
656 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c",
657 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c",
658 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c",
659 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c",
660 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c",
661 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c",
662 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c",
663 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c",
664 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c",
665 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c",
666 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c",
667 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c",
668 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c",
669 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700670 "src/f32-vbinary/gen/vadd-minmax-neon-x4.c",
671 "src/f32-vbinary/gen/vadd-minmax-neon-x8.c",
672 "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c",
673 "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800674 "src/f32-vbinary/gen/vmax-neon-x4.c",
675 "src/f32-vbinary/gen/vmax-neon-x8.c",
676 "src/f32-vbinary/gen/vmaxc-neon-x4.c",
677 "src/f32-vbinary/gen/vmaxc-neon-x8.c",
678 "src/f32-vbinary/gen/vmin-neon-x4.c",
679 "src/f32-vbinary/gen/vmin-neon-x8.c",
680 "src/f32-vbinary/gen/vminc-neon-x4.c",
681 "src/f32-vbinary/gen/vminc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700682 "src/f32-vbinary/gen/vmul-minmax-neon-x4.c",
683 "src/f32-vbinary/gen/vmul-minmax-neon-x8.c",
684 "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c",
685 "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c",
686 "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c",
687 "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c",
688 "src/f32-vbinary/gen/vsub-minmax-neon-x4.c",
689 "src/f32-vbinary/gen/vsub-minmax-neon-x8.c",
690 "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c",
691 "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700692 "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c",
693 "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c",
694 "src/q8-avgpool/9p8x-minmax-neon-c8.c",
695 "src/q8-avgpool/9x-minmax-neon-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700696 "src/q8-dwconv/up8x9-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700697 "src/q8-gavgpool/7p7x-minmax-neon-c8.c",
698 "src/q8-gavgpool/7x-minmax-neon-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -0700699 "src/q8-gemm/4x8-minmax-neon.c",
700 "src/q8-gemm/8x8-minmax-neon.c",
701 "src/q8-igemm/4x8-minmax-neon.c",
702 "src/q8-igemm/8x8-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700703 "src/q8-vadd/minmax-neon.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700704 "src/u8-clamp/neon-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700705 "src/u8-maxpool/9p8x-minmax-neon-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700706 "src/u8-rmax/neon.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700707 "src/x32-fill/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700708 "src/x32-packx/x4-neon-st4.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700709 "src/x32-pad/neon.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -0700710 "src/x32-unpool/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700711 "src/x32-zip/x2-neon.c",
712 "src/x32-zip/x3-neon.c",
713 "src/x32-zip/x4-neon.c",
714 "src/x32-zip/xm-neon.c",
715 "src/x8-zip/x2-neon.c",
716 "src/x8-zip/x3-neon.c",
717 "src/x8-zip/x4-neon.c",
718 "src/x8-zip/xm-neon.c",
Marat Dukhan075088a2020-05-12 19:42:12 -0700719 "src/math/roundne-neon-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700720 "src/math/roundd-neon-addsub.c",
721 "src/math/roundd-neon-cvt.c",
722 "src/math/roundu-neon-addsub.c",
723 "src/math/roundu-neon-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700724 "src/math/roundz-neon-addsub.c",
725 "src/math/roundz-neon-cvt.c",
Marat Dukhan68b3b452020-01-02 10:11:15 -0800726 "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -0800727 "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c",
728 "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c",
729 "src/math/sigmoid-neon-rr1-p5-nr2recps.c",
730 "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c",
731 "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c",
732 "src/math/sigmoid-neon-rr2-p5-nr2recps.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700733 "src/requantization/precise-neon.c",
734 "src/requantization/fp32-neon.c",
735 "src/requantization/q31-neon.c",
736 "src/requantization/gemmlowp-neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700737]
738
739NEONFMA_UKERNELS = [
Marat Dukhan660fd192020-03-10 04:55:30 -0700740 "src/f32-ibilinear/gen/neonfma-c4.c",
741 "src/f32-ibilinear/gen/neonfma-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700742 "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c",
743 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c",
744 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c",
745 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c",
746 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c",
747 "src/f32-igemm/gen/1x8s4-minmax-neonfma.c",
748 "src/f32-igemm/gen/4x8s4-minmax-neonfma.c",
749 "src/f32-igemm/gen/6x8s4-minmax-neonfma.c",
750 "src/f32-igemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700751 "src/f32-dwconv/gen/up4x4-minmax-neonfma.c",
752 "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c",
753 "src/f32-dwconv/gen/up8x4-minmax-neonfma.c",
754 "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700755 "src/f32-dwconv/gen/up4x9-minmax-neonfma.c",
756 "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c",
757 "src/f32-dwconv/gen/up8x9-minmax-neonfma.c",
758 "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700759 "src/f32-dwconv/gen/up4x25-minmax-neonfma.c",
760 "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c",
761 "src/f32-dwconv/gen/up8x25-minmax-neonfma.c",
762 "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700763 "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c",
764 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c",
765 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c",
766 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c",
767 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c",
768 "src/f32-gemm/gen/1x8s4-minmax-neonfma.c",
769 "src/f32-gemm/gen/4x8s4-minmax-neonfma.c",
770 "src/f32-gemm/gen/6x8s4-minmax-neonfma.c",
771 "src/f32-gemm/gen/8x8s4-minmax-neonfma.c",
772 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c",
773 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c",
774 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c",
775 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c",
776 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c",
777 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c",
778 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c",
779 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c",
780 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c",
Marat Dukhan662faa02019-12-09 22:48:16 -0800781 "src/f32-hswish/gen/neonfma-x4.c",
782 "src/f32-hswish/gen/neonfma-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700783 "src/f32-ppmm/gen/4x8-minmax-neonfma.c",
784 "src/f32-ppmm/gen/8x8-minmax-neonfma.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800785 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c",
786 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c",
787 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c",
788 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c",
789 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c",
790 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c",
791 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c",
792 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c",
793 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c",
794 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c",
795 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c",
796 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c",
797 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c",
798 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c",
799 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c",
800 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c",
801 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c",
802 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c",
803 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c",
804 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c",
805 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c",
806 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c",
807 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c",
808 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -0800809 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c",
810 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c",
811 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c",
812 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c",
813 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c",
814 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c",
815 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c",
816 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c",
817 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c",
818 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c",
819 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c",
820 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c",
821 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c",
822 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c",
823 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c",
824 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c",
825 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c",
826 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c",
827 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c",
828 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c",
829 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c",
830 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c",
831 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c",
832 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c",
833 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c",
834 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c",
835 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c",
836 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c",
837 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c",
838 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c",
839 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c",
840 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c",
841 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c",
842 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c",
843 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c",
844 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c",
845 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c",
846 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c",
847 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c",
848 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c",
849 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c",
850 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c",
851 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c",
852 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c",
853 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c",
854 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c",
855 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c",
856 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c",
857 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c",
858 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c",
859 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c",
860 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c",
861 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c",
862 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700863 "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c",
864 "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c",
Marat Dukhan797a8fe2019-11-14 20:21:57 -0800865 "src/math/exp-neonfma-lut64-p2.c",
866 "src/math/exp-neonfma-p5.c",
Marat Dukhan189ae802019-11-26 11:28:44 -0800867 "src/math/expminus-neonfma-lut2048-p1.c",
868 "src/math/expminus-neonfma-lut64-p2.c",
Marat Dukhan346a9e52019-11-15 09:06:30 -0800869 "src/math/expminus-neonfma-p5.c",
Marat Dukhan77221d32020-01-06 10:04:39 -0800870 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c",
871 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c",
872 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c",
873 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c",
874 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c",
875 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c",
876 "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c",
877 "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c",
878 "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c",
879 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c",
880 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c",
881 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c",
882 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c",
883 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c",
884 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c",
885 "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c",
886 "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c",
887 "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700888]
889
890AARCH64_NEONFMA_UKERNELS = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700891 "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c",
892 "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c",
893 "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c",
894 "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c",
895 "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c",
896 "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700897 "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c",
898 "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c",
899 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c",
900 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c",
901 "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c",
902 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c",
903 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c",
904 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c",
905 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c",
906 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c",
907 "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c",
908 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c",
909 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c",
910 "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c",
911 "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c",
912 "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c",
913 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c",
914 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c",
915 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c",
916 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700917 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c",
918 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700919 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c",
920 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -0700921 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c",
922 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -0700923 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c",
924 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700925 "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c",
926 "src/f32-dwconv-chw/3x3p1-neonfma.c",
927 "src/f32-dwconv-chw/5x5p2-neonfma.c",
928 "src/f32-dwconv-chw/3x3s2p1-neonfma.c",
929 "src/f32-dwconv-chw/5x5s2p2-neonfma.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -0800930 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c",
931 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c",
932 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c",
933 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c",
934 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c",
935 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c",
936 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c",
937 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c",
938 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c",
939 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c",
940 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c",
941 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c",
942 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c",
943 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c",
944 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c",
945 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c",
946 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c",
947 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700948 "src/f32-spmm/gen/12x1-minmax-neonfma.c",
949 "src/f32-spmm/gen/12x2-minmax-neonfma.c",
950 "src/f32-spmm/gen/12x4-minmax-neonfma.c",
951 "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c",
952 "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c",
953 "src/f32-spmm/gen/16x1-minmax-neonfma.c",
954 "src/f32-spmm/gen/16x2-minmax-neonfma.c",
955 "src/f32-spmm/gen/16x4-minmax-neonfma.c",
956 "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c",
957 "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c",
958 "src/f32-spmm/gen/4x1-minmax-neonfma.c",
959 "src/f32-spmm/gen/4x2-minmax-neonfma.c",
960 "src/f32-spmm/gen/4x4-minmax-neonfma.c",
961 "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c",
962 "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c",
963 "src/f32-spmm/gen/8x1-minmax-neonfma.c",
964 "src/f32-spmm/gen/8x2-minmax-neonfma.c",
965 "src/f32-spmm/gen/8x4-minmax-neonfma.c",
Marat Dukhan77221d32020-01-06 10:04:39 -0800966 "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c",
967 "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c",
968 "src/math/sigmoid-neonfma-rr1-p5-div.c",
969 "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c",
970 "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c",
971 "src/math/sigmoid-neonfma-rr2-p5-div.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700972]
973
Marat Dukhan8853b822020-05-07 12:19:01 -0700974NEONV8_UKERNELS = [
975 "src/math/roundne-neonv8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700976 "src/math/roundd-neonv8.c",
977 "src/math/roundu-neonv8.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700978 "src/math/roundz-neonv8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -0700979]
980
Marat Dukhan08c4a432019-10-03 09:29:21 -0700981AARCH64_NEONFP16ARITH_UKERNELS = [
Frank Barchardb1966592020-05-12 13:47:06 -0700982 "src/f16-clamp/gen/neonfp16arith-x16.c",
983 "src/f16-clamp/gen/neonfp16arith-x8.c",
984 "src/f16-hswish/gen/neonfp16arith-x16.c",
985 "src/f16-hswish/gen/neonfp16arith-x8.c",
986 "src/f16-prelu/gen/neonfp16arith-2x16.c",
987 "src/f16-prelu/gen/neonfp16arith-2x8.c",
Frank Barchardd793f6c2020-05-08 13:37:43 -0700988 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c",
989 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c",
990 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c",
991 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c",
992 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c",
993 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c",
994 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c",
995 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c",
996 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c",
997 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c",
998 "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c",
999 "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c",
1000 "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c",
1001 "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c",
1002 "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c",
1003 "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c",
1004 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c",
1005 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c",
1006 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c",
1007 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c",
1008 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c",
1009 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c",
1010 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c",
1011 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c",
1012 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c",
1013 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c",
1014 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c",
1015 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c",
Frank Barchard2a1049c2020-06-03 02:31:27 -07001016 "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c",
1017 "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c",
Frank Barchard83ea9392020-04-20 20:15:14 -07001018 "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1019 "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1020 "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1021 "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c",
1022 "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c",
1023 "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c",
1024 "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c",
1025 "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c",
Frank Barchardb0e4fae2020-05-04 15:27:51 -07001026 "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1027 "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1028 "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1029 "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c",
Frank Barchard3f9f99f2020-05-06 01:12:04 -07001030 "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1031 "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1032 "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1033 "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c",
1034 "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c",
1035 "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c",
1036 "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c",
1037 "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c",
1038 "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1039 "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1040 "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1041 "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001042 "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c",
1043 "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c",
1044 "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c",
1045 "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c",
1046 "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c",
1047 "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c",
1048 "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c",
1049 "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001050]
1051
1052SSE_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -07001053 "src/f32-avgpool/9p8x-minmax-sse-c4.c",
1054 "src/f32-avgpool/9x-minmax-sse-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001055 "src/f32-clamp/gen/sse-x4.c",
1056 "src/f32-clamp/gen/sse-x8.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001057 "src/f32-dwconv-chw/3x3p1-sse.c",
1058 "src/f32-dwconv-chw/3x3s2p1-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001059 "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c",
1060 "src/f32-dwconv/gen/up4x25-minmax-sse.c",
1061 "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c",
1062 "src/f32-dwconv/gen/up4x4-minmax-sse.c",
1063 "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c",
1064 "src/f32-dwconv/gen/up4x9-minmax-sse.c",
1065 "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c",
1066 "src/f32-dwconv/gen/up8x25-minmax-sse.c",
1067 "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c",
1068 "src/f32-dwconv/gen/up8x4-minmax-sse.c",
1069 "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c",
1070 "src/f32-dwconv/gen/up8x9-minmax-sse.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001071 "src/f32-gavgpool-cw/sse-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001072 "src/f32-gavgpool/7p7x-minmax-sse-c4.c",
1073 "src/f32-gavgpool/7x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001074 "src/f32-gemm/gen/1x8-minmax-sse-dup.c",
1075 "src/f32-gemm/gen/1x8-minmax-sse-load1.c",
1076 "src/f32-gemm/gen/1x8s4-minmax-sse.c",
1077 "src/f32-gemm/gen/4x2c4-minmax-sse.c",
1078 "src/f32-gemm/gen/4x8-minmax-sse-dup.c",
1079 "src/f32-gemm/gen/4x8-minmax-sse-load1.c",
1080 "src/f32-gemm/gen/4x8s4-minmax-sse.c",
1081 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c",
1082 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c",
1083 "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c",
1084 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c",
1085 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c",
1086 "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001087 "src/f32-hswish/gen/sse-x4.c",
1088 "src/f32-hswish/gen/sse-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001089 "src/f32-ibilinear/gen/sse-c4.c",
1090 "src/f32-ibilinear/gen/sse-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001091 "src/f32-igemm/gen/1x8-minmax-sse-dup.c",
1092 "src/f32-igemm/gen/1x8-minmax-sse-load1.c",
1093 "src/f32-igemm/gen/1x8s4-minmax-sse.c",
1094 "src/f32-igemm/gen/4x2c4-minmax-sse.c",
1095 "src/f32-igemm/gen/4x8-minmax-sse-dup.c",
1096 "src/f32-igemm/gen/4x8-minmax-sse-load1.c",
1097 "src/f32-igemm/gen/4x8s4-minmax-sse.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001098 "src/f32-maxpool/9p8x-minmax-sse-c4.c",
1099 "src/f32-pavgpool/9p8x-minmax-sse-c4.c",
1100 "src/f32-pavgpool/9x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001101 "src/f32-ppmm/gen/4x8-minmax-sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001102 "src/f32-rmax/sse.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001103 "src/f32-spmm/gen/4x1-minmax-sse.c",
1104 "src/f32-spmm/gen/8x1-minmax-sse.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001105 "src/f32-vbinary/gen/vadd-minmax-sse-x4.c",
1106 "src/f32-vbinary/gen/vadd-minmax-sse-x8.c",
1107 "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c",
1108 "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c",
1109 "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c",
1110 "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c",
1111 "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c",
1112 "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001113 "src/f32-vbinary/gen/vmax-sse-x4.c",
1114 "src/f32-vbinary/gen/vmax-sse-x8.c",
1115 "src/f32-vbinary/gen/vmaxc-sse-x4.c",
1116 "src/f32-vbinary/gen/vmaxc-sse-x8.c",
1117 "src/f32-vbinary/gen/vmin-sse-x4.c",
1118 "src/f32-vbinary/gen/vmin-sse-x8.c",
1119 "src/f32-vbinary/gen/vminc-sse-x4.c",
1120 "src/f32-vbinary/gen/vminc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001121 "src/f32-vbinary/gen/vmul-minmax-sse-x4.c",
1122 "src/f32-vbinary/gen/vmul-minmax-sse-x8.c",
1123 "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c",
1124 "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c",
1125 "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c",
1126 "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c",
1127 "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c",
1128 "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c",
1129 "src/f32-vbinary/gen/vsub-minmax-sse-x4.c",
1130 "src/f32-vbinary/gen/vsub-minmax-sse-x8.c",
1131 "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c",
1132 "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001133 "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c",
1134 "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001135 "src/x32-fill/sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001136 "src/x32-packx/x4-sse.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001137 "src/x32-pad/sse.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001138 "src/math/roundne-sse-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001139 "src/math/roundd-sse-addsub.c",
1140 "src/math/roundu-sse-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001141 "src/math/roundz-sse-addsub.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001142]
1143
1144SSE2_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -08001145 "src/f32-argmaxpool/9p8x-sse2-c4.c",
1146 "src/f32-argmaxpool/4x-sse2-c4.c",
1147 "src/f32-argmaxpool/9x-sse2-c4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001148 "src/f32-prelu/gen/sse2-2x4.c",
1149 "src/f32-prelu/gen/sse2-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001150 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c",
1151 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c",
1152 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c",
1153 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c",
1154 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c",
1155 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c",
1156 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c",
1157 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c",
1158 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c",
1159 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c",
1160 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c",
1161 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001162 "src/f32-sigmoid/gen/sse2-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001163 "src/f32-sigmoid/gen/sse2-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001164 "src/f32-sigmoid/gen/sse2-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001165 "src/f32-sigmoid/gen/sse2-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001166 "src/f32-sigmoid/gen/sse2-p5-div-x20.c",
1167 "src/f32-sigmoid/gen/sse2-p5-div-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001168 "src/q8-avgpool/9p8x-minmax-sse2-c8.c",
1169 "src/q8-avgpool/9x-minmax-sse2-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001170 "src/q8-igemm/4x4c2-minmax-sse2.c",
1171 "src/q8-dwconv/up8x9-minmax-sse2.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001172 "src/q8-gavgpool/7p7x-minmax-sse2-c8.c",
1173 "src/q8-gavgpool/7x-minmax-sse2-c8.c",
Marat Dukhande06f492020-04-09 00:19:31 -07001174 "src/q8-gemm/2x4c8-minmax-sse2.c",
1175 "src/q8-gemm/4x4c2-minmax-sse2.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001176 "src/q8-vadd/minmax-sse2.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001177 "src/u8-clamp/sse2-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001178 "src/u8-maxpool/9p8x-minmax-sse2-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001179 "src/u8-rmax/sse2.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001180 "src/x32-unpool/sse2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001181 "src/x32-zip/x2-sse2.c",
1182 "src/x32-zip/x3-sse2.c",
1183 "src/x32-zip/x4-sse2.c",
1184 "src/x32-zip/xm-sse2.c",
1185 "src/x8-zip/x2-sse2.c",
1186 "src/x8-zip/x3-sse2.c",
1187 "src/x8-zip/x4-sse2.c",
1188 "src/x8-zip/xm-sse2.c",
Marat Dukhanffd68402019-11-15 15:19:11 -08001189 "src/math/exp-sse2-p5.c",
1190 "src/math/expminus-sse2-p5.c",
Marat Dukhan075088a2020-05-12 19:42:12 -07001191 "src/math/roundne-sse2-cvt.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001192 "src/math/roundd-sse2-cvt.c",
1193 "src/math/roundu-sse2-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001194 "src/math/roundz-sse2-cvt.c",
Marat Dukhan80bafd22019-11-18 10:16:01 -08001195 "src/math/sigmoid-sse2-p5-div.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001196 "src/requantization/precise-sse2.c",
1197 "src/requantization/fp32-sse2.c",
1198 "src/requantization/q31-sse2.c",
1199 "src/requantization/gemmlowp-sse2.c",
1200]
1201
1202SSSE3_UKERNELS = [
1203 "src/requantization/precise-ssse3.c",
1204 "src/requantization/q31-ssse3.c",
1205 "src/requantization/gemmlowp-ssse3.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001206]
1207
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001208SSE41_UKERNELS = [
Marat Dukhan40a672f2019-11-25 03:08:22 -08001209 "src/f32-prelu/gen/sse41-2x4.c",
1210 "src/f32-prelu/gen/sse41-2x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001211 "src/f32-sigmoid/gen/sse41-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001212 "src/f32-sigmoid/gen/sse41-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001213 "src/f32-sigmoid/gen/sse41-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001214 "src/f32-sigmoid/gen/sse41-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001215 "src/f32-sigmoid/gen/sse41-p5-div-x20.c",
1216 "src/f32-sigmoid/gen/sse41-p5-div-x24.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001217 "src/math/roundne-sse41.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001218 "src/math/roundd-sse41.c",
1219 "src/math/roundu-sse41.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001220 "src/math/roundz-sse41.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001221 "src/requantization/precise-sse4.c",
1222 "src/requantization/q31-sse4.c",
1223 "src/requantization/gemmlowp-sse4.c",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001224]
1225
Marat Dukhan08c4a432019-10-03 09:29:21 -07001226AVX_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001227 "src/f32-clamp/gen/avx-x8.c",
1228 "src/f32-clamp/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001229 "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c",
1230 "src/f32-dwconv/gen/up16x4-minmax-avx.c",
1231 "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c",
1232 "src/f32-dwconv/gen/up8x4-minmax-avx.c",
1233 "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c",
1234 "src/f32-dwconv/gen/up16x9-minmax-avx.c",
1235 "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c",
1236 "src/f32-dwconv/gen/up8x9-minmax-avx.c",
1237 "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c",
1238 "src/f32-dwconv/gen/up16x25-minmax-avx.c",
1239 "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c",
1240 "src/f32-dwconv/gen/up8x25-minmax-avx.c",
1241 "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c",
1242 "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c",
1243 "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c",
1244 "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c",
1245 "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c",
1246 "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c",
1247 "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c",
1248 "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c",
1249 "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c",
1250 "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c",
1251 "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c",
1252 "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c",
1253 "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c",
1254 "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c",
1255 "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c",
1256 "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c",
1257 "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c",
1258 "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001259 "src/f32-hswish/gen/avx-x8.c",
1260 "src/f32-hswish/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001261 "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c",
1262 "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c",
1263 "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c",
1264 "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c",
1265 "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c",
1266 "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c",
1267 "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c",
1268 "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c",
1269 "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001270 "src/f32-prelu/gen/avx-2x8.c",
1271 "src/f32-prelu/gen/avx-2x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001272 "src/f32-rmax/avx.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001273 "src/f32-vbinary/gen/vadd-minmax-avx-x8.c",
1274 "src/f32-vbinary/gen/vadd-minmax-avx-x16.c",
1275 "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c",
1276 "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c",
1277 "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c",
1278 "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c",
1279 "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c",
1280 "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001281 "src/f32-vbinary/gen/vmax-avx-x8.c",
1282 "src/f32-vbinary/gen/vmax-avx-x16.c",
1283 "src/f32-vbinary/gen/vmaxc-avx-x8.c",
1284 "src/f32-vbinary/gen/vmaxc-avx-x16.c",
1285 "src/f32-vbinary/gen/vmin-avx-x8.c",
1286 "src/f32-vbinary/gen/vmin-avx-x16.c",
1287 "src/f32-vbinary/gen/vminc-avx-x8.c",
1288 "src/f32-vbinary/gen/vminc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001289 "src/f32-vbinary/gen/vmul-minmax-avx-x8.c",
1290 "src/f32-vbinary/gen/vmul-minmax-avx-x16.c",
1291 "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c",
1292 "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c",
1293 "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c",
1294 "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c",
1295 "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c",
1296 "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c",
1297 "src/f32-vbinary/gen/vsub-minmax-avx-x8.c",
1298 "src/f32-vbinary/gen/vsub-minmax-avx-x16.c",
1299 "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c",
1300 "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001301 "src/f32-vscale/avx-unroll32.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001302]
1303
Marat Dukhanfda12b82019-11-21 12:27:59 -08001304FMA3_UKERNELS = [
Marat Dukhan1c587112020-04-08 20:04:28 -07001305 "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c",
1306 "src/f32-dwconv/gen/up16x4-minmax-fma3.c",
1307 "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c",
1308 "src/f32-dwconv/gen/up8x4-minmax-fma3.c",
1309 "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c",
1310 "src/f32-dwconv/gen/up16x9-minmax-fma3.c",
1311 "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c",
1312 "src/f32-dwconv/gen/up8x9-minmax-fma3.c",
1313 "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c",
1314 "src/f32-dwconv/gen/up16x25-minmax-fma3.c",
1315 "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c",
1316 "src/f32-dwconv/gen/up8x25-minmax-fma3.c",
1317 "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c",
1318 "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c",
1319 "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c",
1320 "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c",
1321 "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c",
1322 "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c",
1323 "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c",
1324 "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c",
1325 "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c",
1326 "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c",
1327 "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c",
1328 "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c",
1329 "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c",
1330 "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c",
1331 "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c",
1332 "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c",
1333 "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c",
1334 "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c",
1335 "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c",
1336 "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c",
1337 "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c",
1338 "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c",
1339 "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c",
1340 "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c",
1341 "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c",
1342 "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c",
1343 "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c",
1344 "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001345 "src/f32-hswish/gen/fma3-x8.c",
1346 "src/f32-hswish/gen/fma3-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001347 "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c",
1348 "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c",
1349 "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c",
1350 "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c",
1351 "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c",
1352 "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c",
1353 "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c",
1354 "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c",
1355 "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c",
1356 "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c",
1357 "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c",
1358 "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c",
1359 "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c",
1360 "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c",
Marat Dukhanfda12b82019-11-21 12:27:59 -08001361]
1362
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001363AVX2_UKERNELS = [
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001364 "src/f32-raddexpminusmax/gen/avx2-p5-x64.c",
1365 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c",
1366 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c",
1367 "src/f32-raddexpminusmax/gen/avx2-p5-x72.c",
1368 "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c",
1369 "src/f32-raddexpminusmax/gen/avx2-p5-x80.c",
1370 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c",
1371 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c",
1372 "src/f32-raddexpminusmax/gen/avx2-p5-x96.c",
1373 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c",
1374 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c",
1375 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c",
1376 "src/f32-raddextexp/gen/avx2-p5-x64.c",
1377 "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c",
1378 "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c",
1379 "src/f32-raddextexp/gen/avx2-p5-x72.c",
1380 "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c",
1381 "src/f32-raddextexp/gen/avx2-p5-x80.c",
1382 "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c",
1383 "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c",
1384 "src/f32-raddextexp/gen/avx2-p5-x96.c",
1385 "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c",
1386 "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c",
1387 "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c",
1388 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c",
1389 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c",
1390 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c",
1391 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c",
1392 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c",
1393 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c",
1394 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c",
1395 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c",
1396 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c",
1397 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c",
1398 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c",
1399 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c",
Marat Dukhanfa0a4322020-01-06 16:14:29 -08001400 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c",
1401 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c",
1402 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c",
1403 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c",
1404 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c",
1405 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c",
1406 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c",
1407 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c",
1408 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c",
1409 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c",
1410 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c",
1411 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c",
1412 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c",
1413 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c",
1414 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c",
1415 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c",
1416 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c",
1417 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c",
1418 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c",
1419 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c",
1420 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c",
1421 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c",
1422 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c",
1423 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c",
1424 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c",
1425 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c",
1426 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c",
1427 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c",
1428 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c",
1429 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001430 "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c",
1431 "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c",
1432 "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c",
1433 "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c",
1434 "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c",
1435 "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c",
1436 "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c",
1437 "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c",
1438 "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c",
1439 "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c",
1440 "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c",
1441 "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c",
1442 "src/f32-vscaleextexp/gen/avx2-p5-x8.c",
1443 "src/f32-vscaleextexp/gen/avx2-p5-x16.c",
1444 "src/f32-vscaleextexp/gen/avx2-p5-x24.c",
1445 "src/f32-vscaleextexp/gen/avx2-p5-x32.c",
1446 "src/f32-vscaleextexp/gen/avx2-p5-x40.c",
1447 "src/f32-vscaleextexp/gen/avx2-p5-x48.c",
1448 "src/f32-vscaleextexp/gen/avx2-p5-x56.c",
1449 "src/f32-vscaleextexp/gen/avx2-p5-x64.c",
1450 "src/f32-vscaleextexp/gen/avx2-p5-x72.c",
1451 "src/f32-vscaleextexp/gen/avx2-p5-x80.c",
1452 "src/f32-vscaleextexp/gen/avx2-p5-x88.c",
1453 "src/f32-vscaleextexp/gen/avx2-p5-x96.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001454 "src/math/exp-avx2-p5.c",
1455 "src/math/exp-avx2-perm-p3.c",
1456 "src/math/exp-avx2-perm-p4.c",
Marat Dukhan515c9772019-10-17 18:07:57 -07001457 "src/math/expminus-avx2-p5.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07001458 "src/math/extexp-avx2-p5.c",
Marat Dukhan72416002020-01-05 21:53:19 -08001459 "src/math/sigmoid-avx2-rr2-p5-div.c",
1460 "src/math/sigmoid-avx2-rr1-p5-div.c",
1461 "src/math/sigmoid-avx2-rr2-p5-nr2fma.c",
1462 "src/math/sigmoid-avx2-rr1-p5-nr2fma.c",
1463 "src/math/sigmoid-avx2-rr2-p5-nr1fma.c",
1464 "src/math/sigmoid-avx2-rr1-p5-nr1fma.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001465]
1466
Marat Dukhan08c4a432019-10-03 09:29:21 -07001467AVX512F_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001468 "src/f32-clamp/gen/avx512f-x16.c",
1469 "src/f32-clamp/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001470 "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c",
1471 "src/f32-dwconv/gen/up32x4-minmax-avx512f.c",
1472 "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c",
1473 "src/f32-dwconv/gen/up16x4-minmax-avx512f.c",
1474 "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c",
1475 "src/f32-dwconv/gen/up32x9-minmax-avx512f.c",
1476 "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c",
1477 "src/f32-dwconv/gen/up16x9-minmax-avx512f.c",
1478 "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c",
1479 "src/f32-dwconv/gen/up32x25-minmax-avx512f.c",
1480 "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c",
1481 "src/f32-dwconv/gen/up16x25-minmax-avx512f.c",
1482 "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c",
1483 "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c",
1484 "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c",
1485 "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c",
1486 "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c",
1487 "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c",
1488 "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c",
1489 "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c",
1490 "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c",
1491 "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c",
1492 "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c",
1493 "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c",
Marat Dukhan662faa02019-12-09 22:48:16 -08001494 "src/f32-hswish/gen/avx512f-x16.c",
1495 "src/f32-hswish/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001496 "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c",
1497 "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c",
1498 "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c",
1499 "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c",
1500 "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c",
1501 "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001502 "src/f32-prelu/gen/avx512f-2x16.c",
1503 "src/f32-prelu/gen/avx512f-2x32.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001504 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c",
1505 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
1506 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
1507 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c",
1508 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
1509 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c",
1510 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
1511 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
1512 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c",
1513 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
1514 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
1515 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
1516 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c",
1517 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c",
1518 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c",
1519 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c",
1520 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c",
1521 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c",
1522 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c",
1523 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c",
1524 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c",
1525 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c",
1526 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c",
1527 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c",
1528 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c",
1529 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
1530 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
1531 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c",
1532 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
1533 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c",
1534 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
1535 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
1536 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c",
1537 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
1538 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
1539 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001540 "src/f32-rmax/avx512f.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001541 "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c",
1542 "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c",
1543 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c",
1544 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c",
1545 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c",
1546 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c",
1547 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c",
1548 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001549 "src/f32-vbinary/gen/vmax-avx512f-x16.c",
1550 "src/f32-vbinary/gen/vmax-avx512f-x32.c",
1551 "src/f32-vbinary/gen/vmaxc-avx512f-x16.c",
1552 "src/f32-vbinary/gen/vmaxc-avx512f-x32.c",
1553 "src/f32-vbinary/gen/vmin-avx512f-x16.c",
1554 "src/f32-vbinary/gen/vmin-avx512f-x32.c",
1555 "src/f32-vbinary/gen/vminc-avx512f-x16.c",
1556 "src/f32-vbinary/gen/vminc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001557 "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c",
1558 "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c",
1559 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c",
1560 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c",
1561 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c",
1562 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c",
1563 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c",
1564 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c",
1565 "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c",
1566 "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c",
1567 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c",
1568 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001569 "src/f32-vscale/avx512f-unroll64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001570 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c",
1571 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c",
1572 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c",
1573 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c",
1574 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c",
1575 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c",
1576 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c",
1577 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c",
1578 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c",
1579 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c",
1580 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c",
1581 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c",
1582 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c",
1583 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c",
1584 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c",
1585 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c",
1586 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c",
1587 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c",
1588 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c",
1589 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c",
1590 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c",
1591 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c",
1592 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c",
1593 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001594 "src/math/exp-avx512f-p5-scalef.c",
1595 "src/math/exp-avx512f-p5.c",
1596 "src/math/exp-avx512f-perm-p3.c",
Marat Dukhanfeb49232019-10-28 11:03:31 -07001597 "src/math/exp-avx512f-perm2-p2.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07001598 "src/math/extexp-avx512f-p5.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001599]
1600
1601AARCH32_ASM_UKERNELS = [
Marat Dukhan32f93812020-05-17 20:31:21 -07001602 "src/f32-gemm/4x4-aarch32-vfp-ld64.S",
Marat Dukhan3b98f6b2020-05-17 10:09:22 -07001603 "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001604 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S",
1605 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S",
1606 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
1607 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
1608 "src/f32-gemm/4x8-minmax-aarch32-neon-ld64.S",
1609 "src/f32-igemm/4x8-minmax-aarch32-neon-ld64.S",
1610 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
1611 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
1612 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S",
1613 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001614]
1615
1616AARCH64_ASM_UKERNELS = [
Frank Barchard36b76b62020-04-10 12:39:17 -07001617 "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07001618 "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S",
1619 "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard36b76b62020-04-10 12:39:17 -07001620 "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard683f5592020-04-10 00:48:26 -07001621 "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S",
1622 "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07001623 "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S",
1624 "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S",
1625 "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07001626 "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07001627 "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S",
1628 "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S",
1629 "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07001630 "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001631 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S",
1632 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07001633 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001634 "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S",
1635 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S",
1636 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
1637 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
1638 "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S",
1639 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S",
1640 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S",
1641 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
1642 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
1643 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S",
1644 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S",
1645 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
1646 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
1647 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S",
1648 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S",
1649 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S",
1650 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
1651 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
1652 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ios.S",
1653 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S",
1654 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S",
Frank Barchard3cb54f92020-04-10 10:46:08 -07001655 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07001656 "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S",
1657 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S",
1658 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1659 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1660 "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S",
1661 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S",
1662 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S",
1663 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1664 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1665 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S",
1666 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S",
1667 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1668 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1669 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S",
1670 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S",
1671 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S",
1672 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S",
1673 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S",
1674 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ios.S",
1675 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S",
1676 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S",
1677 "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S",
1678 "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S",
1679 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
1680 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
1681 "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S",
1682 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S",
1683 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S",
1684 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
1685 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
1686 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
1687 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
1688 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S",
1689 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S",
1690 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S",
1691 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
1692 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
1693 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-ios.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001694]
1695
Marat Dukhan1b354632020-03-23 12:50:22 -07001696INTERNAL_MICROKERNEL_HDRS = [
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001697 "src/requantization/gemmlowp-requantization.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001698 "src/xnnpack/argmaxpool.h",
1699 "src/xnnpack/avgpool.h",
1700 "src/xnnpack/clamp.h",
1701 "src/xnnpack/common.h",
1702 "src/xnnpack/conv.h",
1703 "src/xnnpack/dwconv.h",
1704 "src/xnnpack/gavgpool.h",
1705 "src/xnnpack/gemm.h",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001706 "src/xnnpack/fill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001707 "src/xnnpack/hswish.h",
Marat Dukhan660fd192020-03-10 04:55:30 -07001708 "src/xnnpack/ibilinear.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001709 "src/xnnpack/igemm.h",
Marat Dukhancfb31342019-12-05 10:42:57 -08001710 "src/xnnpack/intrinsics-polyfill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001711 "src/xnnpack/lut.h",
1712 "src/xnnpack/math.h",
1713 "src/xnnpack/maxpool.h",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001714 "src/xnnpack/memory.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001715 "src/xnnpack/packx.h",
1716 "src/xnnpack/pad.h",
1717 "src/xnnpack/params.h",
1718 "src/xnnpack/pavgpool.h",
1719 "src/xnnpack/ppmm.h",
1720 "src/xnnpack/prelu.h",
Marat Dukhan97579532019-10-18 16:40:39 -07001721 "src/xnnpack/raddexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07001722 "src/xnnpack/raddextexp.h",
Marat Dukhan97579532019-10-18 16:40:39 -07001723 "src/xnnpack/raddstoreexpminusmax.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001724 "src/xnnpack/rmax.h",
1725 "src/xnnpack/scalar-utils.h",
1726 "src/xnnpack/spmm.h",
1727 "src/xnnpack/unpool.h",
1728 "src/xnnpack/vadd.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08001729 "src/xnnpack/vbinary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001730 "src/xnnpack/vmulcaddc.h",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07001731 "src/xnnpack/vscale.h",
Marat Dukhan97579532019-10-18 16:40:39 -07001732 "src/xnnpack/vscaleexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07001733 "src/xnnpack/vscaleextexp.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08001734 "src/xnnpack/vunary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001735 "src/xnnpack/zip.h",
Marat Dukhan1b354632020-03-23 12:50:22 -07001736]
1737
1738INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001739 "include/xnnpack.h",
1740 "src/xnnpack/allocator.h",
1741 "src/xnnpack/compute.h",
1742 "src/xnnpack/im2col.h",
1743 "src/xnnpack/indirection.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001744 "src/xnnpack/math-stubs.h",
Chao Mei6ddfc602020-05-13 22:29:36 -07001745 "src/xnnpack/memory-planner.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001746 "src/xnnpack/operator.h",
1747 "src/xnnpack/pack.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07001748 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001749 "src/xnnpack/requantization-stubs.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001750 "src/xnnpack/requantization.h",
Marat Dukhan1d75a542020-02-03 12:23:01 -08001751 "src/xnnpack/subgraph.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001752]
1753
Marat Dukhan1b354632020-03-23 12:50:22 -07001754ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001755 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001756]
1757
Marat Dukhan1b354632020-03-23 12:50:22 -07001758MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07001759 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001760 "include/xnnpack.h",
1761]
1762
Marat Dukhan1b354632020-03-23 12:50:22 -07001763MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07001764 "src/xnnpack/isa-checks.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07001765 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001766 "src/xnnpack/requantization.h",
1767 "include/xnnpack.h",
1768]
1769
1770OPERATOR_TEST_PARAMS_HDRS = [
1771 "src/xnnpack/params.h",
1772 "src/xnnpack/common.h",
1773]
1774
1775WEIGHTS_PACK_HDRS = [
1776 "src/xnnpack/pack.h",
1777 "src/xnnpack/operator.h",
1778 "src/xnnpack/compute.h",
1779]
1780
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07001781LOGGING_COPTS = select({
1782 # No logging in optimized mode
1783 ":optimized_build": ["-DXNN_LOG_LEVEL=0"],
1784 # Full logging in debug mode
1785 ":debug_build": ["-DXNN_LOG_LEVEL=5"],
1786 # Error-only logging in default (fastbuild) mode
1787 "//conditions:default": ["-DXNN_LOG_LEVEL=2"],
1788})
1789
1790LOGGING_HDRS = [
1791 "src/xnnpack/log.h",
1792]
1793
Marat Dukhan08c4a432019-10-03 09:29:21 -07001794xnnpack_cc_library(
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001795 name = "tables",
1796 srcs = TABLE_SRCS,
1797 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001798 gcc_copts = xnnpack_gcc_std_copts(),
1799 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001800)
1801
1802xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001803 name = "scalar_ukernels",
1804 srcs = SCALAR_UKERNELS,
1805 hdrs = INTERNAL_HDRS,
1806 aarch32_copts = ["-marm"],
Marat Dukhan10a38082020-04-17 03:58:35 -07001807 gcc_copts = xnnpack_gcc_std_copts(),
1808 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001809 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001810 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001811 "@FP16",
1812 "@FXdiv",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001813 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001814 ],
1815)
1816
1817xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07001818 name = "scalar_ukernels_test_mode",
1819 srcs = SCALAR_UKERNELS,
1820 hdrs = INTERNAL_HDRS,
1821 aarch32_copts = ["-marm"],
1822 copts = [
1823 "-UNDEBUG",
1824 "-DXNN_TEST_MODE=1",
1825 ],
1826 gcc_copts = xnnpack_gcc_std_copts(),
1827 msvc_copts = xnnpack_msvc_std_copts(),
1828 deps = [
1829 ":tables",
1830 "@FP16",
1831 "@FXdiv",
1832 "@pthreadpool",
1833 ],
1834)
1835
1836xnnpack_cc_library(
Marat Dukhan436ebe62019-12-04 15:10:12 -08001837 name = "wasm_ukernels",
1838 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001839 gcc_copts = xnnpack_gcc_std_copts(),
1840 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan436ebe62019-12-04 15:10:12 -08001841 wasm_srcs = WASM_UKERNELS,
1842 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001843 ":tables",
Marat Dukhan436ebe62019-12-04 15:10:12 -08001844 "@FP16",
1845 "@FXdiv",
1846 "@pthreadpool",
1847 ],
1848)
1849
1850xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07001851 name = "wasm_ukernels_test_mode",
1852 hdrs = INTERNAL_HDRS,
1853 copts = [
1854 "-UNDEBUG",
1855 "-DXNN_TEST_MODE=1",
1856 ],
1857 gcc_copts = xnnpack_gcc_std_copts(),
1858 msvc_copts = xnnpack_msvc_std_copts(),
1859 wasm_srcs = WASM_UKERNELS,
1860 deps = [
1861 ":tables",
1862 "@FP16",
1863 "@FXdiv",
1864 "@pthreadpool",
1865 ],
1866)
1867
1868xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001869 name = "psimd_fastmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001870 hdrs = INTERNAL_HDRS,
1871 aarch32_copts = [
1872 "-marm",
1873 "-mfpu=neon",
1874 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07001875 gcc_copts = xnnpack_gcc_std_copts(),
1876 gcc_x86_copts = ["-msse2"],
1877 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07001878 optimized_copts = [
1879 "-O3",
1880 "-ffast-math",
1881 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07001882 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07001883 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001884 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001885 "@FP16",
1886 "@psimd",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001887 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001888 ],
1889)
1890
1891xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07001892 name = "psimd_fastmath_ukernels_test_mode",
1893 hdrs = INTERNAL_HDRS,
1894 aarch32_copts = [
1895 "-marm",
1896 "-mfpu=neon",
1897 ],
1898 copts = [
1899 "-UNDEBUG",
1900 "-DXNN_TEST_MODE=1",
1901 ],
1902 gcc_copts = xnnpack_gcc_std_copts(),
1903 gcc_x86_copts = ["-msse2"],
1904 msvc_copts = xnnpack_msvc_std_copts(),
1905 optimized_copts = [
1906 "-O3",
1907 "-ffast-math",
1908 ],
1909 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
1910 deps = [
1911 ":tables",
1912 "@FP16",
1913 "@psimd",
1914 "@pthreadpool",
1915 ],
1916)
1917
1918xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001919 name = "psimd_accmath_ukernels",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001920 hdrs = INTERNAL_HDRS,
1921 aarch32_copts = [
1922 "-marm",
1923 "-mfpu=neon",
1924 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07001925 gcc_copts = xnnpack_gcc_std_copts(),
1926 gcc_x86_copts = ["-msse2"],
1927 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001928 optimized_copts = [
1929 "-O3",
1930 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07001931 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001932 deps = [
1933 ":tables",
1934 "@FP16",
1935 "@psimd",
1936 "@pthreadpool",
1937 ],
1938)
1939
1940xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07001941 name = "psimd_accmath_ukernels_test_mode",
1942 hdrs = INTERNAL_HDRS,
1943 aarch32_copts = [
1944 "-marm",
1945 "-mfpu=neon",
1946 ],
1947 copts = [
1948 "-UNDEBUG",
1949 "-DXNN_TEST_MODE=1",
1950 ],
1951 gcc_copts = xnnpack_gcc_std_copts(),
1952 gcc_x86_copts = ["-msse2"],
1953 msvc_copts = xnnpack_msvc_std_copts(),
1954 optimized_copts = [
1955 "-O3",
1956 ],
1957 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
1958 deps = [
1959 ":tables",
1960 "@FP16",
1961 "@psimd",
1962 "@pthreadpool",
1963 ],
1964)
1965
1966xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07001967 name = "neon_ukernels",
1968 hdrs = INTERNAL_HDRS,
1969 aarch32_copts = [
1970 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07001971 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001972 "-mfpu=neon",
1973 ],
1974 aarch32_srcs = NEON_UKERNELS,
1975 aarch64_srcs = NEON_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07001976 gcc_copts = xnnpack_gcc_std_copts(),
1977 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08001978 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001979 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08001980 "@FP16",
1981 "@pthreadpool",
1982 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07001983)
1984
1985xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07001986 name = "neon_ukernels_test_mode",
1987 hdrs = INTERNAL_HDRS,
1988 aarch32_copts = [
1989 "-marm",
1990 "-march=armv7-a",
1991 "-mfpu=neon",
1992 ],
1993 aarch32_srcs = NEON_UKERNELS,
1994 aarch64_srcs = NEON_UKERNELS,
1995 copts = [
1996 "-UNDEBUG",
1997 "-DXNN_TEST_MODE=1",
1998 ],
1999 gcc_copts = xnnpack_gcc_std_copts(),
2000 msvc_copts = xnnpack_msvc_std_copts(),
2001 deps = [
2002 ":tables",
2003 "@FP16",
2004 "@pthreadpool",
2005 ],
2006)
2007
2008xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002009 name = "neonfma_ukernels",
2010 hdrs = INTERNAL_HDRS,
2011 aarch32_copts = [
2012 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07002013 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002014 "-mfpu=neon-vfpv4",
2015 ],
2016 aarch32_srcs = NEONFMA_UKERNELS,
2017 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002018 gcc_copts = xnnpack_gcc_std_copts(),
2019 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002020 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002021 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002022 "@FP16",
2023 "@pthreadpool",
2024 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002025)
2026
2027xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002028 name = "neonfma_ukernels_test_mode",
2029 hdrs = INTERNAL_HDRS,
2030 aarch32_copts = [
2031 "-marm",
2032 "-march=armv7-a",
2033 "-mfpu=neon-vfpv4",
2034 ],
2035 aarch32_srcs = NEONFMA_UKERNELS,
2036 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
2037 copts = [
2038 "-UNDEBUG",
2039 "-DXNN_TEST_MODE=1",
2040 ],
2041 gcc_copts = xnnpack_gcc_std_copts(),
2042 msvc_copts = xnnpack_msvc_std_copts(),
2043 deps = [
2044 ":tables",
2045 "@FP16",
2046 "@pthreadpool",
2047 ],
2048)
2049
2050xnnpack_cc_library(
Marat Dukhan8853b822020-05-07 12:19:01 -07002051 name = "neonv8_ukernels",
2052 hdrs = INTERNAL_HDRS,
2053 aarch32_copts = [
2054 "-marm",
2055 "-march=armv8-a",
2056 "-mfpu=neon-fp-armv8",
2057 ],
2058 aarch32_srcs = NEONV8_UKERNELS,
2059 aarch64_srcs = NEONV8_UKERNELS,
2060 gcc_copts = xnnpack_gcc_std_copts(),
2061 msvc_copts = xnnpack_msvc_std_copts(),
2062 deps = [
2063 ":tables",
2064 "@FP16",
2065 "@pthreadpool",
2066 ],
2067)
2068
2069xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002070 name = "neonv8_ukernels_test_mode",
2071 hdrs = INTERNAL_HDRS,
2072 aarch32_copts = [
2073 "-marm",
2074 "-march=armv8-a",
2075 "-mfpu=neon-fp-armv8",
2076 ],
2077 aarch32_srcs = NEONV8_UKERNELS,
2078 aarch64_srcs = NEONV8_UKERNELS,
2079 copts = [
2080 "-UNDEBUG",
2081 "-DXNN_TEST_MODE=1",
2082 ],
2083 gcc_copts = xnnpack_gcc_std_copts(),
2084 msvc_copts = xnnpack_msvc_std_copts(),
2085 deps = [
2086 ":tables",
2087 "@FP16",
2088 "@pthreadpool",
2089 ],
2090)
2091
2092xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002093 name = "neonfp16arith_ukernels",
2094 hdrs = INTERNAL_HDRS,
2095 aarch64_copts = ["-march=armv8.2-a+fp16"],
2096 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002097 gcc_copts = xnnpack_gcc_std_copts(),
2098 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08002099 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002100 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002101 "@FP16",
2102 "@pthreadpool",
2103 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002104)
2105
2106xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002107 name = "neonfp16arith_ukernels_test_mode",
2108 hdrs = INTERNAL_HDRS,
2109 aarch64_copts = ["-march=armv8.2-a+fp16"],
2110 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
2111 copts = [
2112 "-UNDEBUG",
2113 "-DXNN_TEST_MODE=1",
2114 ],
2115 gcc_copts = xnnpack_gcc_std_copts(),
2116 msvc_copts = xnnpack_msvc_std_copts(),
2117 deps = [
2118 ":tables",
2119 "@FP16",
2120 "@pthreadpool",
2121 ],
2122)
2123
2124xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002125 name = "sse2_ukernels",
2126 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002127 gcc_copts = xnnpack_gcc_std_copts(),
2128 gcc_x86_copts = ["-msse2"],
2129 msvc_copts = xnnpack_msvc_std_copts(),
2130 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002131 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002132 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002133 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002134 "@FP16",
2135 "@pthreadpool",
2136 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002137)
2138
2139xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002140 name = "sse2_ukernels_test_mode",
2141 hdrs = INTERNAL_HDRS,
2142 copts = [
2143 "-UNDEBUG",
2144 "-DXNN_TEST_MODE=1",
2145 ],
2146 gcc_copts = xnnpack_gcc_std_copts(),
2147 gcc_x86_copts = ["-msse2"],
2148 msvc_copts = xnnpack_msvc_std_copts(),
2149 msvc_x86_32_copts = ["/arch:SSE2"],
2150 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
2151 deps = [
2152 ":tables",
2153 "@FP16",
2154 "@pthreadpool",
2155 ],
2156)
2157
2158xnnpack_cc_library(
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002159 name = "ssse3_ukernels",
2160 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002161 gcc_copts = xnnpack_gcc_std_copts(),
2162 gcc_x86_copts = ["-mssse3"],
2163 msvc_copts = xnnpack_msvc_std_copts(),
2164 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002165 x86_srcs = SSSE3_UKERNELS,
2166 deps = [
2167 ":tables",
2168 "@FP16",
2169 "@pthreadpool",
2170 ],
2171)
2172
2173xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002174 name = "ssse3_ukernels_test_mode",
2175 hdrs = INTERNAL_HDRS,
2176 copts = [
2177 "-UNDEBUG",
2178 "-DXNN_TEST_MODE=1",
2179 ],
2180 gcc_copts = xnnpack_gcc_std_copts(),
2181 gcc_x86_copts = ["-mssse3"],
2182 msvc_copts = xnnpack_msvc_std_copts(),
2183 msvc_x86_32_copts = ["/arch:SSE2"],
2184 x86_srcs = SSSE3_UKERNELS,
2185 deps = [
2186 ":tables",
2187 "@FP16",
2188 "@pthreadpool",
2189 ],
2190)
2191
2192xnnpack_cc_library(
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002193 name = "sse41_ukernels",
2194 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002195 gcc_copts = xnnpack_gcc_std_copts(),
2196 gcc_x86_copts = ["-msse4.1"],
2197 msvc_copts = xnnpack_msvc_std_copts(),
2198 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002199 x86_srcs = SSE41_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002200 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002201 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002202 "@FP16",
2203 "@pthreadpool",
2204 ],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002205)
2206
2207xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002208 name = "sse41_ukernels_test_mode",
2209 hdrs = INTERNAL_HDRS,
2210 copts = [
2211 "-UNDEBUG",
2212 "-DXNN_TEST_MODE=1",
2213 ],
2214 gcc_copts = xnnpack_gcc_std_copts(),
2215 gcc_x86_copts = ["-msse4.1"],
2216 msvc_copts = xnnpack_msvc_std_copts(),
2217 msvc_x86_32_copts = ["/arch:SSE2"],
2218 x86_srcs = SSE41_UKERNELS,
2219 deps = [
2220 ":tables",
2221 "@FP16",
2222 "@pthreadpool",
2223 ],
2224)
2225
2226xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002227 name = "avx_ukernels",
2228 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002229 gcc_copts = xnnpack_gcc_std_copts(),
2230 gcc_x86_copts = ["-mavx"],
2231 msvc_copts = xnnpack_msvc_std_copts(),
2232 msvc_x86_32_copts = ["/arch:AVX"],
2233 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002234 x86_srcs = AVX_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002235 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002236 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002237 "@FP16",
2238 "@pthreadpool",
2239 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002240)
2241
2242xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002243 name = "avx_ukernels_test_mode",
2244 hdrs = INTERNAL_HDRS,
2245 copts = [
2246 "-UNDEBUG",
2247 "-DXNN_TEST_MODE=1",
2248 ],
2249 gcc_copts = xnnpack_gcc_std_copts(),
2250 gcc_x86_copts = ["-mavx"],
2251 msvc_copts = xnnpack_msvc_std_copts(),
2252 msvc_x86_32_copts = ["/arch:AVX"],
2253 msvc_x86_64_copts = ["/arch:AVX"],
2254 x86_srcs = AVX_UKERNELS,
2255 deps = [
2256 ":tables",
2257 "@FP16",
2258 "@pthreadpool",
2259 ],
2260)
2261
2262xnnpack_cc_library(
Marat Dukhanfda12b82019-11-21 12:27:59 -08002263 name = "fma3_ukernels",
2264 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002265 gcc_copts = xnnpack_gcc_std_copts(),
2266 gcc_x86_copts = ["-mfma"],
2267 msvc_copts = xnnpack_msvc_std_copts(),
2268 msvc_x86_32_copts = ["/arch:AVX"],
2269 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhanfda12b82019-11-21 12:27:59 -08002270 x86_srcs = FMA3_UKERNELS,
2271 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002272 ":tables",
Marat Dukhanfda12b82019-11-21 12:27:59 -08002273 "@FP16",
2274 "@pthreadpool",
2275 ],
2276)
2277
2278xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002279 name = "fma3_ukernels_test_mode",
2280 hdrs = INTERNAL_HDRS,
2281 copts = [
2282 "-UNDEBUG",
2283 "-DXNN_TEST_MODE=1",
2284 ],
2285 gcc_copts = xnnpack_gcc_std_copts(),
2286 gcc_x86_copts = ["-mfma"],
2287 msvc_copts = xnnpack_msvc_std_copts(),
2288 msvc_x86_32_copts = ["/arch:AVX"],
2289 msvc_x86_64_copts = ["/arch:AVX"],
2290 x86_srcs = FMA3_UKERNELS,
2291 deps = [
2292 ":tables",
2293 "@FP16",
2294 "@pthreadpool",
2295 ],
2296)
2297
2298xnnpack_cc_library(
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002299 name = "avx2_ukernels",
2300 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002301 gcc_copts = xnnpack_gcc_std_copts(),
2302 gcc_x86_copts = [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002303 "-mfma",
2304 "-mavx2",
2305 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002306 msvc_copts = xnnpack_msvc_std_copts(),
2307 msvc_x86_32_copts = ["/arch:AVX2"],
2308 msvc_x86_64_copts = ["/arch:AVX2"],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002309 x86_srcs = AVX2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002310 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002311 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002312 "@FP16",
2313 "@pthreadpool",
2314 ],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002315)
2316
2317xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002318 name = "avx2_ukernels_test_mode",
2319 hdrs = INTERNAL_HDRS,
2320 copts = [
2321 "-UNDEBUG",
2322 "-DXNN_TEST_MODE=1",
2323 ],
2324 gcc_copts = xnnpack_gcc_std_copts(),
2325 gcc_x86_copts = [
2326 "-mfma",
2327 "-mavx2",
2328 ],
2329 msvc_copts = xnnpack_msvc_std_copts(),
2330 msvc_x86_32_copts = ["/arch:AVX2"],
2331 msvc_x86_64_copts = ["/arch:AVX2"],
2332 x86_srcs = AVX2_UKERNELS,
2333 deps = [
2334 ":tables",
2335 "@FP16",
2336 "@pthreadpool",
2337 ],
2338)
2339
2340xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002341 name = "avx512f_ukernels",
2342 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002343 gcc_copts = xnnpack_gcc_std_copts(),
2344 gcc_x86_copts = ["-mavx512f"],
2345 mingw_copts = ["-fno-asynchronous-unwind-tables"],
2346 msvc_copts = xnnpack_msvc_std_copts(),
2347 msvc_x86_32_copts = ["/arch:AVX512"],
2348 msvc_x86_64_copts = ["/arch:AVX512"],
2349 msys_copts = ["-fno-asynchronous-unwind-tables"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002350 x86_srcs = AVX512F_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08002351 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08002352 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002353 "@FP16",
2354 "@pthreadpool",
2355 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002356)
2357
2358xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002359 name = "avx512f_ukernels_test_mode",
2360 hdrs = INTERNAL_HDRS,
2361 copts = [
2362 "-UNDEBUG",
2363 "-DXNN_TEST_MODE=1",
2364 ],
2365 gcc_copts = xnnpack_gcc_std_copts(),
2366 gcc_x86_copts = ["-mavx512f"],
2367 mingw_copts = ["-fno-asynchronous-unwind-tables"],
2368 msvc_copts = xnnpack_msvc_std_copts(),
2369 msvc_x86_32_copts = ["/arch:AVX512"],
2370 msvc_x86_64_copts = ["/arch:AVX512"],
2371 msys_copts = ["-fno-asynchronous-unwind-tables"],
2372 x86_srcs = AVX512F_UKERNELS,
2373 deps = [
2374 ":tables",
2375 "@FP16",
2376 "@pthreadpool",
2377 ],
2378)
2379
2380xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002381 name = "asm_ukernels",
2382 hdrs = ["src/xnnpack/assembly.h"],
2383 aarch32_srcs = AARCH32_ASM_UKERNELS,
Frank Barchard683f5592020-04-10 00:48:26 -07002384 aarch64_copts = ["-march=armv8.2-a+fp16"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002385 aarch64_srcs = AARCH64_ASM_UKERNELS,
2386)
2387
2388xnnpack_aggregate_library(
2389 name = "ukernels",
2390 aarch32_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002391 ":neon_ukernels",
2392 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07002393 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002394 ":asm_ukernels",
2395 ],
2396 aarch64_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002397 ":neon_ukernels",
2398 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07002399 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002400 ":neonfp16arith_ukernels",
2401 ":asm_ukernels",
2402 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002403 generic_deps = [
2404 ":scalar_ukernels",
2405 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07002406 psimd_deps = [
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002407 ":psimd_fastmath_ukernels",
2408 ":psimd_accmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002409 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07002410 wasm_deps = [
2411 ":wasm_ukernels",
2412 ],
2413 wasmsimd_deps = [
2414 ":wasm_ukernels",
2415 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002416 x86_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002417 ":sse2_ukernels",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002418 ":ssse3_ukernels",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002419 ":sse41_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002420 ":avx_ukernels",
Marat Dukhanfda12b82019-11-21 12:27:59 -08002421 ":fma3_ukernels",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002422 ":avx2_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002423 ":avx512f_ukernels",
2424 ],
2425)
2426
Marat Dukhan33fcf782020-05-24 14:27:15 -07002427xnnpack_aggregate_library(
2428 name = "ukernels_test_mode",
2429 aarch32_deps = [
2430 ":neon_ukernels_test_mode",
2431 ":neonfma_ukernels_test_mode",
2432 ":neonv8_ukernels_test_mode",
2433 ":asm_ukernels",
2434 ],
2435 aarch64_deps = [
2436 ":neon_ukernels_test_mode",
2437 ":neonfma_ukernels_test_mode",
2438 ":neonv8_ukernels_test_mode",
2439 ":neonfp16arith_ukernels_test_mode",
2440 ":asm_ukernels",
2441 ],
2442 generic_deps = [
2443 ":scalar_ukernels_test_mode",
2444 ],
2445 psimd_deps = [
2446 ":psimd_fastmath_ukernels_test_mode",
2447 ":psimd_accmath_ukernels_test_mode",
2448 ],
2449 wasm_deps = [
2450 ":wasm_ukernels_test_mode",
2451 ],
2452 wasmsimd_deps = [
2453 ":wasm_ukernels_test_mode",
2454 ],
2455 x86_deps = [
2456 ":sse2_ukernels_test_mode",
2457 ":ssse3_ukernels_test_mode",
2458 ":sse41_ukernels_test_mode",
2459 ":avx_ukernels_test_mode",
2460 ":fma3_ukernels_test_mode",
2461 ":avx2_ukernels_test_mode",
2462 ":avx512f_ukernels_test_mode",
2463 ],
2464)
2465
Marat Dukhan08c4a432019-10-03 09:29:21 -07002466xnnpack_cc_library(
2467 name = "im2col",
2468 srcs = ["src/im2col.c"],
2469 hdrs = [
2470 "src/xnnpack/common.h",
2471 "src/xnnpack/im2col.h",
2472 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002473 gcc_copts = xnnpack_gcc_std_copts(),
2474 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002475)
2476
2477xnnpack_cc_library(
2478 name = "indirection",
2479 srcs = ["src/indirection.c"],
2480 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002481 gcc_copts = xnnpack_gcc_std_copts(),
2482 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002483 deps = [
2484 "@FP16",
2485 "@FXdiv",
2486 "@pthreadpool",
2487 ],
2488)
2489
2490xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002491 name = "indirection_test_mode",
2492 srcs = ["src/indirection.c"],
2493 hdrs = INTERNAL_HDRS,
2494 copts = [
2495 "-UNDEBUG",
2496 "-DXNN_TEST_MODE=1",
2497 ],
2498 gcc_copts = xnnpack_gcc_std_copts(),
2499 msvc_copts = xnnpack_msvc_std_copts(),
2500 deps = [
2501 "@FP16",
2502 "@FXdiv",
2503 "@pthreadpool",
2504 ],
2505)
2506
2507xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002508 name = "operator_run",
2509 srcs = ["src/operator-run.c"],
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07002510 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002511 copts = LOGGING_COPTS + select({
Marat Dukhan05702cf2020-03-26 15:41:33 -07002512 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2513 "//conditions:default": [],
2514 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07002515 gcc_copts = xnnpack_gcc_std_copts(),
2516 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002517 deps = [
2518 "@FP16",
2519 "@FXdiv",
2520 "@clog",
2521 "@pthreadpool",
2522 ],
2523)
2524
Chao Mei6ddfc602020-05-13 22:29:36 -07002525xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002526 name = "operator_run_test_mode",
2527 srcs = ["src/operator-run.c"],
2528 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
2529 copts = LOGGING_COPTS + [
2530 "-UNDEBUG",
2531 "-DXNN_TEST_MODE=1",
2532 ] + select({
2533 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2534 "//conditions:default": [],
2535 }),
2536 gcc_copts = xnnpack_gcc_std_copts(),
2537 msvc_copts = xnnpack_msvc_std_copts(),
2538 deps = [
2539 "@FP16",
2540 "@FXdiv",
2541 "@clog",
2542 "@pthreadpool",
2543 ],
2544)
2545
2546xnnpack_cc_library(
Chao Mei6ddfc602020-05-13 22:29:36 -07002547 name = "memory_planner",
2548 srcs = ["src/memory-planner.c"],
2549 hdrs = INTERNAL_HDRS,
2550 defines = select({
2551 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
2552 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
2553 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
2554 }),
2555 gcc_copts = xnnpack_gcc_std_copts(),
2556 msvc_copts = xnnpack_msvc_std_copts(),
2557 deps = [
2558 "@pthreadpool",
2559 ],
2560)
2561
Marat Dukhan33fcf782020-05-24 14:27:15 -07002562xnnpack_cc_library(
2563 name = "memory_planner_test_mode",
2564 srcs = ["src/memory-planner.c"],
2565 hdrs = INTERNAL_HDRS,
2566 copts = [
2567 "-UNDEBUG",
2568 "-DXNN_TEST_MODE=1",
2569 ],
2570 defines = select({
2571 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
2572 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
2573 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
2574 }),
2575 gcc_copts = xnnpack_gcc_std_copts(),
2576 msvc_copts = xnnpack_msvc_std_copts(),
2577 deps = [
2578 "@pthreadpool",
2579 ],
2580)
2581
Marat Dukhan08c4a432019-10-03 09:29:21 -07002582cc_library(
2583 name = "enable_assembly",
2584 defines = select({
2585 ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"],
2586 ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"],
Frank Barchard810171d2019-10-10 10:34:51 -07002587 "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002588 }),
2589)
2590
Marat Dukhancf056b22019-10-07 10:26:29 -07002591xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002592 name = "operators",
2593 srcs = OPERATOR_SRCS + [
Marat Dukhan04f03be2019-11-19 12:36:47 -08002594 "src/memory.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002595 "src/operator-delete.c",
Marat Dukhancf056b22019-10-07 10:26:29 -07002596 ],
2597 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002598 copts = LOGGING_COPTS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002599 "-Isrc",
2600 "-Iinclude",
2601 ] + select({
2602 ":debug_build": [],
2603 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07002604 }) + select({
2605 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2606 "//conditions:default": [],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002607 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07002608 gcc_copts = xnnpack_gcc_std_copts(),
2609 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002610 deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002611 ":indirection",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002612 "@FP16",
2613 "@FXdiv",
2614 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002615 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002616 ],
2617)
2618
Marat Dukhan10a38082020-04-17 03:58:35 -07002619xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002620 name = "operators_test_mode",
2621 srcs = OPERATOR_SRCS + [
2622 "src/memory.c",
2623 "src/operator-delete.c",
2624 ],
2625 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
2626 copts = LOGGING_COPTS + [
2627 "-Isrc",
2628 "-Iinclude",
2629 "-UNDEBUG",
2630 "-DXNN_TEST_MODE=1",
2631 ] + select({
2632 ":debug_build": [],
2633 "//conditions:default": xnnpack_min_size_copts(),
2634 }) + select({
2635 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2636 "//conditions:default": [],
2637 }),
2638 gcc_copts = xnnpack_gcc_std_copts(),
2639 msvc_copts = xnnpack_msvc_std_copts(),
2640 deps = [
2641 ":indirection_test_mode",
2642 "@FP16",
2643 "@FXdiv",
2644 "@clog",
2645 "@pthreadpool",
2646 ],
2647)
2648
2649xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002650 name = "XNNPACK",
2651 srcs = [
2652 "src/init.c",
Marat Dukhanccfdbd12020-02-03 14:27:45 -08002653 "src/runtime.c",
2654 "src/subgraph.c",
2655 "src/tensor.c",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002656 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002657 hdrs = ["include/xnnpack.h"],
2658 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002659 "-Isrc",
2660 "-Iinclude",
2661 ] + select({
2662 ":debug_build": [],
2663 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07002664 }) + select({
2665 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2666 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002667 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07002668 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002669 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002670 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002671 visibility = xnnpack_visibility(),
2672 deps = [
2673 ":enable_assembly",
Chao Mei6ddfc602020-05-13 22:29:36 -07002674 ":memory_planner",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002675 ":ukernels",
2676 ":operator_run",
2677 ":operators",
2678 "@clog",
Marat Dukhanab2946c2020-05-21 20:04:13 -07002679 "@FP16",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002680 "@pthreadpool",
Marat Dukhand343c222019-10-07 09:22:14 -07002681 ] + select({
2682 ":emscripten": [],
2683 "//conditions:default": ["@cpuinfo"],
2684 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002685)
2686
Marat Dukhan10a38082020-04-17 03:58:35 -07002687xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07002688 name = "XNNPACK_test_mode",
2689 srcs = [
2690 "src/init.c",
2691 "src/runtime.c",
2692 "src/subgraph.c",
2693 "src/tensor.c",
2694 ],
2695 hdrs = ["include/xnnpack.h"],
2696 copts = LOGGING_COPTS + [
2697 "-Isrc",
2698 "-Iinclude",
2699 "-UNDEBUG",
2700 "-DXNN_TEST_MODE=1",
2701 ] + select({
2702 ":debug_build": [],
2703 "//conditions:default": xnnpack_min_size_copts(),
2704 }) + select({
2705 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2706 "//conditions:default": [],
2707 }),
2708 gcc_copts = xnnpack_gcc_std_copts(),
2709 includes = ["include"],
2710 msvc_copts = xnnpack_msvc_std_copts(),
2711 visibility = xnnpack_visibility(),
2712 deps = [
2713 ":enable_assembly",
2714 ":memory_planner_test_mode",
2715 ":ukernels_test_mode",
2716 ":operator_run_test_mode",
2717 ":operators_test_mode",
2718 "@clog",
2719 "@FP16",
2720 "@pthreadpool",
2721 ] + select({
2722 ":emscripten": [],
2723 "//conditions:default": ["@cpuinfo"],
2724 }),
2725)
2726
2727xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002728 name = "xnnpack_operators_nhwc_f32",
2729 srcs = [
2730 "src/init.c",
2731 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002732 hdrs = ["include/xnnpack.h"],
2733 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002734 "-Isrc",
2735 "-Iinclude",
2736 ] + select({
2737 ":debug_build": [],
2738 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07002739 }) + select({
2740 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
2741 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002742 }),
2743 defines = [
2744 "XNN_NO_Q8_OPERATORS",
2745 "XNN_NO_U8_OPERATORS",
2746 "XNN_NO_X8_OPERATORS",
Marat Dukhanefc47b82019-11-18 09:25:38 -08002747 "XNN_NO_NCHW_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002748 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07002749 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002750 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07002751 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002752 visibility = xnnpack_visibility(),
2753 deps = [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002754 ":enable_assembly",
2755 ":ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002756 ":operator_run",
2757 ":operators",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002758 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002759 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07002760 ] + select({
2761 ":emscripten": [],
2762 "//conditions:default": ["@cpuinfo"],
2763 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002764)
2765
Marat Dukhancf056b22019-10-07 10:26:29 -07002766xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002767 name = "bench_utils",
2768 srcs = ["bench/utils.cc"],
2769 hdrs = ["bench/utils.h"],
Marat Dukhanbad48fe2019-11-04 10:35:22 -08002770 deps = [
2771 "@com_google_benchmark//:benchmark",
2772 "@cpuinfo",
2773 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002774)
2775
Frank Barchard7e955972019-10-11 10:34:25 -07002776######################### Benchmarks for micro-kernels #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07002777
2778xnnpack_benchmark(
2779 name = "q8_gemm_bench",
2780 srcs = [
2781 "bench/gemm.h",
2782 "bench/q8-gemm.cc",
2783 "src/xnnpack/AlignedAllocator.h",
2784 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002785 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002786 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
2787)
2788
2789xnnpack_benchmark(
Frank Barchard40d20fe2020-05-05 00:37:45 -07002790 name = "f16_igemm_bench",
2791 srcs = [
2792 "bench/f16-igemm.cc",
2793 "bench/conv.h",
2794 "bench/google/conv.h",
2795 "src/xnnpack/AlignedAllocator.h",
2796 ] + MICROKERNEL_BENCHMARK_HDRS,
2797 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
2798)
2799
2800xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002801 name = "f16_gemm_bench",
2802 srcs = [
2803 "bench/f16-gemm.cc",
2804 "bench/gemm.h",
2805 "src/xnnpack/AlignedAllocator.h",
2806 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002807 deps = MICROKERNEL_BENCHMARK_DEPS,
2808)
2809
2810xnnpack_benchmark(
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002811 name = "f16_spmm_bench",
2812 srcs = [
2813 "bench/f16-spmm.cc",
2814 "bench/gemm.h",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002815 "src/xnnpack/AlignedAllocator.h",
2816 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanbdb56f52020-02-05 21:42:49 -08002817 deps = MICROKERNEL_BENCHMARK_DEPS,
2818)
2819
2820xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002821 name = "f32_igemm_bench",
2822 srcs = [
2823 "bench/f32-igemm.cc",
2824 "bench/conv.h",
2825 "src/xnnpack/AlignedAllocator.h",
2826 ] + MICROKERNEL_BENCHMARK_HDRS,
Frank Barchard7e955972019-10-11 10:34:25 -07002827 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07002828)
2829
2830xnnpack_benchmark(
2831 name = "f32_conv_hwc_bench",
2832 srcs = [
2833 "bench/f32-conv-hwc.cc",
2834 "bench/dconv.h",
2835 "src/xnnpack/AlignedAllocator.h",
2836 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002837 deps = MICROKERNEL_BENCHMARK_DEPS,
2838)
2839
2840xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07002841 name = "f32_conv_hwc2chw_bench",
Erich Elsen563df5f2019-10-23 08:02:21 -07002842 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07002843 "bench/f32-conv-hwc2chw.cc",
Erich Elsen563df5f2019-10-23 08:02:21 -07002844 "bench/dconv.h",
2845 "src/xnnpack/AlignedAllocator.h",
2846 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Erich Elsen563df5f2019-10-23 08:02:21 -07002847 deps = MICROKERNEL_BENCHMARK_DEPS,
2848)
2849
2850xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002851 name = "f32_dwconv_bench",
2852 srcs = [
2853 "bench/f32-dwconv.cc",
2854 "bench/dwconv.h",
2855 "src/xnnpack/AlignedAllocator.h",
2856 ] + MICROKERNEL_BENCHMARK_HDRS,
2857 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
2858)
2859
2860xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07002861 name = "f32_dwconv_chw_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002862 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07002863 "bench/f32-dwconv-chw.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002864 "bench/dwconv.h",
2865 "src/xnnpack/AlignedAllocator.h",
2866 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
2867 deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"],
2868)
2869
2870xnnpack_benchmark(
2871 name = "f32_gemm_bench",
2872 srcs = [
2873 "bench/f32-gemm.cc",
2874 "bench/gemm.h",
2875 "src/xnnpack/AlignedAllocator.h",
2876 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002877 copts = xnnpack_optional_ruy_copts(),
Frank Barchard7e955972019-10-11 10:34:25 -07002878 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07002879)
2880
2881xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002882 name = "f32_raddexpminusmax_bench",
2883 srcs = [
2884 "bench/f32-raddexpminusmax.cc",
2885 "src/xnnpack/AlignedAllocator.h",
2886 ] + MICROKERNEL_BENCHMARK_HDRS,
2887 deps = MICROKERNEL_BENCHMARK_DEPS,
2888)
2889
2890xnnpack_benchmark(
2891 name = "f32_raddextexp_bench",
2892 srcs = [
2893 "bench/f32-raddextexp.cc",
2894 "src/xnnpack/AlignedAllocator.h",
2895 ] + MICROKERNEL_BENCHMARK_HDRS,
2896 deps = MICROKERNEL_BENCHMARK_DEPS,
2897)
2898
2899xnnpack_benchmark(
2900 name = "f32_raddstoreexpminusmax_bench",
2901 srcs = [
2902 "bench/f32-raddstoreexpminusmax.cc",
2903 "src/xnnpack/AlignedAllocator.h",
2904 ] + MICROKERNEL_BENCHMARK_HDRS,
2905 deps = MICROKERNEL_BENCHMARK_DEPS,
2906)
2907
2908xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002909 name = "f32_rmax_bench",
2910 srcs = [
2911 "bench/f32-rmax.cc",
2912 "src/xnnpack/AlignedAllocator.h",
2913 ] + MICROKERNEL_BENCHMARK_HDRS,
2914 deps = MICROKERNEL_BENCHMARK_DEPS,
2915)
2916
2917xnnpack_benchmark(
Marat Dukhan14bec502019-11-18 11:35:31 -08002918 name = "f32_sigmoid_bench",
2919 srcs = [
2920 "bench/f32-sigmoid.cc",
2921 "src/xnnpack/AlignedAllocator.h",
2922 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan14bec502019-11-18 11:35:31 -08002923 deps = MICROKERNEL_BENCHMARK_DEPS,
2924)
2925
2926xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002927 name = "f32_spmm_bench",
2928 srcs = [
2929 "bench/f32-spmm.cc",
2930 "bench/gemm.h",
2931 "src/xnnpack/AlignedAllocator.h",
2932 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002933 deps = MICROKERNEL_BENCHMARK_DEPS,
2934)
2935
2936xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002937 name = "f32_softmax_bench",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07002938 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002939 "bench/f32-softmax.cc",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07002940 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07002941 copts = xnnpack_optional_dnnl_copts(),
Marat Dukhan8d3c6932020-03-06 20:27:27 -08002942 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(),
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07002943)
2944
2945xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002946 name = "f32_vscaleexpminusmax_bench",
2947 srcs = [
2948 "bench/f32-vscaleexpminusmax.cc",
2949 "src/xnnpack/AlignedAllocator.h",
2950 ] + MICROKERNEL_BENCHMARK_HDRS,
2951 deps = MICROKERNEL_BENCHMARK_DEPS,
2952)
2953
2954xnnpack_benchmark(
2955 name = "f32_vscaleextexp_bench",
2956 srcs = [
2957 "bench/f32-vscaleextexp.cc",
2958 "src/xnnpack/AlignedAllocator.h",
2959 ] + MICROKERNEL_BENCHMARK_HDRS,
2960 deps = MICROKERNEL_BENCHMARK_DEPS,
2961)
2962
2963xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07002964 name = "f32_im2col_gemm_bench",
2965 srcs = [
2966 "bench/f32-im2col-gemm.cc",
2967 "bench/conv.h",
2968 "src/xnnpack/AlignedAllocator.h",
2969 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
2970 deps = MICROKERNEL_BENCHMARK_DEPS + [":im2col"],
2971)
2972
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002973xnnpack_benchmark(
2974 name = "requantization_bench",
2975 srcs = [
2976 "bench/requantization.cc",
2977 "src/xnnpack/requantization-stubs.h",
2978 "src/xnnpack/AlignedAllocator.h",
2979 ] + MICROKERNEL_BENCHMARK_HDRS,
2980 deps = MICROKERNEL_BENCHMARK_DEPS,
2981)
2982
Marat Dukhanffbf96a2020-05-14 02:59:08 -07002983xnnpack_benchmark(
2984 name = "rounding_bench",
2985 srcs = [
2986 "bench/rounding.cc",
2987 "src/xnnpack/math-stubs.h",
2988 "src/xnnpack/AlignedAllocator.h",
2989 ] + MICROKERNEL_BENCHMARK_HDRS,
2990 deps = MICROKERNEL_BENCHMARK_DEPS,
2991)
2992
Marat Dukhan08c4a432019-10-03 09:29:21 -07002993########################### Benchmarks for operators ###########################
2994
2995xnnpack_benchmark(
2996 name = "add_bench",
2997 srcs = ["bench/add.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07002998 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07002999)
3000
3001xnnpack_benchmark(
3002 name = "average_pooling_bench",
3003 srcs = ["bench/average-pooling.cc"],
Marat Dukhan7a16d8b2020-03-11 04:22:44 -07003004 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003005 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003006 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003007)
3008
3009xnnpack_benchmark(
3010 name = "channel_shuffle_bench",
3011 srcs = ["bench/channel-shuffle.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003012 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003013)
3014
3015xnnpack_benchmark(
3016 name = "convolution_bench",
3017 srcs = ["bench/convolution.cc"],
3018 copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003019 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003020 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003021)
3022
3023xnnpack_benchmark(
3024 name = "deconvolution_bench",
3025 srcs = ["bench/deconvolution.cc"],
3026 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003027 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003028 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003029)
3030
3031xnnpack_benchmark(
3032 name = "global_average_pooling_bench",
3033 srcs = ["bench/global-average-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003034 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003035)
3036
3037xnnpack_benchmark(
3038 name = "max_pooling_bench",
3039 srcs = ["bench/max-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003040 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003041)
3042
3043xnnpack_benchmark(
3044 name = "sigmoid_bench",
3045 srcs = ["bench/sigmoid.cc"],
Marat Dukhanc3b9e862019-11-17 13:18:54 -08003046 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07003047 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003048 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003049)
3050
3051xnnpack_benchmark(
Marat Dukhan95b22432019-10-30 16:30:14 -07003052 name = "prelu_bench",
3053 srcs = ["bench/prelu.cc"],
3054 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07003055 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003056 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan95b22432019-10-30 16:30:14 -07003057)
3058
3059xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003060 name = "softmax_bench",
3061 srcs = ["bench/softmax.cc"],
Marat Dukhan9c0db962020-01-28 12:30:14 -08003062 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07003063 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07003064 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003065)
3066
Marat Dukhanc068bb62019-10-04 13:24:39 -07003067############################# End-to-end benchmarks ############################
3068
3069cc_library(
3070 name = "mobilenet_v1",
3071 srcs = ["models/mobilenet-v1.cc"],
3072 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003073 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07003074 linkstatic = True,
3075 deps = [
3076 ":XNNPACK",
3077 "@pthreadpool",
3078 ],
3079)
3080
3081cc_library(
3082 name = "mobilenet_v2",
3083 srcs = ["models/mobilenet-v2.cc"],
3084 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003085 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07003086 linkstatic = True,
3087 deps = [
3088 ":XNNPACK",
3089 "@pthreadpool",
3090 ],
3091)
3092
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003093cc_library(
3094 name = "mobilenet_v3_large",
3095 srcs = ["models/mobilenet-v3-large.cc"],
3096 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003097 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003098 linkstatic = True,
3099 deps = [
3100 ":XNNPACK",
3101 "@pthreadpool",
3102 ],
3103)
3104
3105cc_library(
3106 name = "mobilenet_v3_small",
3107 srcs = ["models/mobilenet-v3-small.cc"],
3108 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08003109 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003110 linkstatic = True,
3111 deps = [
3112 ":XNNPACK",
3113 "@pthreadpool",
3114 ],
3115)
3116
Marat Dukhanc068bb62019-10-04 13:24:39 -07003117xnnpack_benchmark(
Marat Dukhanef4416e2019-10-31 13:44:40 -07003118 name = "f32_dwconv_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003119 srcs = [
3120 "bench/f32-dwconv-e2e.cc",
3121 "bench/end2end.h",
3122 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanef4416e2019-10-31 13:44:40 -07003123 deps = MICROKERNEL_BENCHMARK_DEPS + [
3124 ":XNNPACK",
3125 ":mobilenet_v1",
3126 ":mobilenet_v2",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003127 ":mobilenet_v3_large",
3128 ":mobilenet_v3_small",
Marat Dukhanef4416e2019-10-31 13:44:40 -07003129 ],
3130)
3131
3132xnnpack_benchmark(
Marat Dukhan5f18d262019-10-31 10:24:14 -07003133 name = "f32_gemm_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003134 srcs = [
3135 "bench/f32-gemm-e2e.cc",
3136 "bench/end2end.h",
3137 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan5f18d262019-10-31 10:24:14 -07003138 deps = MICROKERNEL_BENCHMARK_DEPS + [
3139 ":XNNPACK",
3140 ":mobilenet_v1",
3141 ":mobilenet_v2",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003142 ":mobilenet_v3_large",
3143 ":mobilenet_v3_small",
Marat Dukhan5f18d262019-10-31 10:24:14 -07003144 ],
3145)
3146
3147xnnpack_benchmark(
Marat Dukhanc068bb62019-10-04 13:24:39 -07003148 name = "end2end_bench",
3149 srcs = ["bench/end2end.cc"],
3150 deps = [
3151 ":XNNPACK",
Frank Barchardc712fa42019-10-31 14:00:21 -07003152 ":bench_utils",
Marat Dukhanc068bb62019-10-04 13:24:39 -07003153 ":mobilenet_v1",
3154 ":mobilenet_v2",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08003155 ":mobilenet_v3_large",
3156 ":mobilenet_v3_small",
Marat Dukhanc068bb62019-10-04 13:24:39 -07003157 "@pthreadpool",
3158 ],
3159)
3160
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003161#################### Accuracy evaluation for math functions ####################
3162
3163xnnpack_benchmark(
3164 name = "f32_exp_eval",
3165 srcs = [
3166 "eval/f32-exp.cc",
3167 "src/xnnpack/AlignedAllocator.h",
3168 ] + ACCURACY_EVAL_HDRS,
3169 deps = ACCURACY_EVAL_DEPS,
3170)
3171
Marat Dukhan515c9772019-10-17 18:07:57 -07003172xnnpack_benchmark(
3173 name = "f32_expminus_eval",
3174 srcs = [
3175 "eval/f32-expminus.cc",
3176 "src/xnnpack/AlignedAllocator.h",
3177 ] + ACCURACY_EVAL_HDRS,
3178 deps = ACCURACY_EVAL_DEPS,
3179)
3180
Marat Dukhan98ba4412019-10-23 02:14:28 -07003181xnnpack_benchmark(
3182 name = "f32_extexp_eval",
3183 srcs = [
3184 "eval/f32-extexp.cc",
3185 "src/xnnpack/AlignedAllocator.h",
3186 ] + ACCURACY_EVAL_HDRS,
3187 deps = ACCURACY_EVAL_DEPS,
3188)
3189
Marat Dukhan8853b822020-05-07 12:19:01 -07003190xnnpack_unit_test(
3191 name = "f32_roundne_eval",
3192 srcs = [
3193 "eval/f32-roundne.cc",
3194 "src/xnnpack/AlignedAllocator.h",
3195 "src/xnnpack/math-stubs.h",
3196 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhan22eed3d2020-05-11 20:13:37 -07003197 automatic = False,
Marat Dukhan8853b822020-05-07 12:19:01 -07003198 deps = MICROKERNEL_TEST_DEPS,
3199)
3200
Marat Dukhan2dbb9442020-05-12 20:43:43 -07003201xnnpack_unit_test(
Marat Dukhanc9852ba2020-05-13 17:21:29 -07003202 name = "f32_roundd_eval",
3203 srcs = [
3204 "eval/f32-roundd.cc",
3205 "src/xnnpack/AlignedAllocator.h",
3206 "src/xnnpack/math-stubs.h",
3207 ] + MICROKERNEL_TEST_HDRS,
3208 automatic = False,
3209 deps = MICROKERNEL_TEST_DEPS,
3210)
3211
3212xnnpack_unit_test(
3213 name = "f32_roundu_eval",
3214 srcs = [
3215 "eval/f32-roundu.cc",
3216 "src/xnnpack/AlignedAllocator.h",
3217 "src/xnnpack/math-stubs.h",
3218 ] + MICROKERNEL_TEST_HDRS,
3219 automatic = False,
3220 deps = MICROKERNEL_TEST_DEPS,
3221)
3222
3223xnnpack_unit_test(
Marat Dukhan2dbb9442020-05-12 20:43:43 -07003224 name = "f32_roundz_eval",
3225 srcs = [
3226 "eval/f32-roundz.cc",
3227 "src/xnnpack/AlignedAllocator.h",
3228 "src/xnnpack/math-stubs.h",
3229 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhanc9852ba2020-05-13 17:21:29 -07003230 automatic = False,
Marat Dukhan2dbb9442020-05-12 20:43:43 -07003231 deps = MICROKERNEL_TEST_DEPS,
3232)
3233
Marat Dukhan346a9e52019-11-15 09:06:30 -08003234xnnpack_benchmark(
3235 name = "f32_sigmoid_eval",
3236 srcs = [
3237 "eval/f32-sigmoid.cc",
3238 "src/xnnpack/AlignedAllocator.h",
3239 ] + ACCURACY_EVAL_HDRS,
3240 deps = ACCURACY_EVAL_DEPS,
3241)
3242
Marat Dukhan08c4a432019-10-03 09:29:21 -07003243######################### Unit tests for micro-kernels #########################
3244
3245xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07003246 name = "f16_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003247 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07003248 "test/f16-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003249 "test/gemm-microkernel-tester.h",
3250 "src/xnnpack/AlignedAllocator.h",
3251 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3252 deps = MICROKERNEL_TEST_DEPS,
3253)
3254
3255xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07003256 name = "f16_spmm_minmax_test",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003257 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07003258 "test/f16-spmm-minmax.cc",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08003259 "test/spmm-microkernel-tester.h",
3260 "src/xnnpack/AlignedAllocator.h",
3261 ] + MICROKERNEL_TEST_HDRS,
3262 deps = MICROKERNEL_TEST_DEPS,
3263)
3264
3265xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003266 name = "f32_argmaxpool_test",
3267 srcs = [
3268 "test/f32-argmaxpool.cc",
3269 "test/argmaxpool-microkernel-tester.h",
3270 "src/xnnpack/AlignedAllocator.h",
3271 ] + MICROKERNEL_TEST_HDRS,
3272 deps = MICROKERNEL_TEST_DEPS,
3273)
3274
3275xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003276 name = "f32_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003277 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003278 "test/f32-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003279 "test/avgpool-microkernel-tester.h",
3280 "src/xnnpack/AlignedAllocator.h",
3281 ] + MICROKERNEL_TEST_HDRS,
3282 deps = MICROKERNEL_TEST_DEPS,
3283)
3284
3285xnnpack_unit_test(
Marat Dukhan660fd192020-03-10 04:55:30 -07003286 name = "f32_ibilinear_test",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08003287 srcs = [
Marat Dukhan660fd192020-03-10 04:55:30 -07003288 "test/f32-ibilinear.cc",
3289 "test/ibilinear-microkernel-tester.h",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08003290 "src/xnnpack/AlignedAllocator.h",
3291 ] + MICROKERNEL_TEST_HDRS,
3292 deps = MICROKERNEL_TEST_DEPS,
3293)
3294
3295xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07003296 name = "f16_clamp_test",
3297 srcs = [
3298 "test/f16-clamp.cc",
3299 "test/clamp-microkernel-tester.h",
3300 ] + MICROKERNEL_TEST_HDRS,
3301 deps = MICROKERNEL_TEST_DEPS,
3302)
3303
3304xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003305 name = "f32_clamp_test",
3306 srcs = [
3307 "test/f32-clamp.cc",
3308 "test/clamp-microkernel-tester.h",
3309 ] + MICROKERNEL_TEST_HDRS,
3310 deps = MICROKERNEL_TEST_DEPS,
3311)
3312
3313xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07003314 name = "f32_igemm_test",
3315 srcs = [
3316 "test/f32-igemm.cc",
3317 "test/gemm-microkernel-tester.h",
3318 "src/xnnpack/AlignedAllocator.h",
3319 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3320 deps = MICROKERNEL_TEST_DEPS,
3321)
3322
3323xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07003324 name = "f32_igemm_relu_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003325 srcs = [
Marat Dukhan467f6362020-05-22 23:21:55 -07003326 "test/f32-igemm-relu.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003327 "test/gemm-microkernel-tester.h",
3328 "src/xnnpack/AlignedAllocator.h",
3329 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3330 deps = MICROKERNEL_TEST_DEPS,
3331)
3332
3333xnnpack_unit_test(
Marat Dukhane207b7b2020-05-28 16:27:42 -07003334 name = "f32_igemm_minmax_test",
3335 srcs = [
3336 "test/f32-igemm-minmax.cc",
3337 "test/gemm-microkernel-tester.h",
3338 "src/xnnpack/AlignedAllocator.h",
3339 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3340 deps = MICROKERNEL_TEST_DEPS,
3341)
3342
3343xnnpack_unit_test(
Frank Barchardb0e4fae2020-05-04 15:27:51 -07003344 name = "f16_igemm_minmax_test",
3345 srcs = [
3346 "test/f16-igemm-minmax.cc",
3347 "test/gemm-microkernel-tester.h",
3348 "src/xnnpack/AlignedAllocator.h",
3349 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3350 deps = MICROKERNEL_TEST_DEPS,
3351)
3352
3353xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003354 name = "f32_conv_hwc_test",
3355 srcs = [
3356 "test/f32-conv-hwc.cc",
3357 "test/conv-hwc-microkernel-tester.h",
3358 "src/xnnpack/AlignedAllocator.h",
3359 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3360 deps = MICROKERNEL_TEST_DEPS,
3361)
3362
3363xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003364 name = "f32_conv_hwc2chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003365 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003366 "test/f32-conv-hwc2chw.cc",
3367 "test/conv-hwc2chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003368 "src/xnnpack/AlignedAllocator.h",
3369 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3370 deps = MICROKERNEL_TEST_DEPS,
3371)
3372
3373xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07003374 name = "f32_dwconv_test",
3375 srcs = [
3376 "test/f32-dwconv.cc",
3377 "test/dwconv-microkernel-tester.h",
3378 "src/xnnpack/AlignedAllocator.h",
3379 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3380 deps = MICROKERNEL_TEST_DEPS,
3381)
3382
3383xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07003384 name = "f32_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003385 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07003386 "test/f32-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003387 "test/dwconv-microkernel-tester.h",
3388 "src/xnnpack/AlignedAllocator.h",
3389 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3390 deps = MICROKERNEL_TEST_DEPS,
3391)
3392
3393xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003394 name = "f32_dwconv_chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003395 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003396 "test/f32-dwconv-chw.cc",
3397 "test/dwconv-chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003398 "src/xnnpack/AlignedAllocator.h",
3399 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3400 deps = MICROKERNEL_TEST_DEPS,
3401)
3402
3403xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003404 name = "f32_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003405 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003406 "test/f32-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003407 "test/gavgpool-microkernel-tester.h",
3408 "src/xnnpack/AlignedAllocator.h",
3409 ] + MICROKERNEL_TEST_HDRS,
3410 deps = MICROKERNEL_TEST_DEPS,
3411)
3412
3413xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07003414 name = "f32_gavgpool_cw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003415 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07003416 "test/f32-gavgpool-cw.cc",
3417 "test/gavgpool-cw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003418 "src/xnnpack/AlignedAllocator.h",
3419 ] + MICROKERNEL_TEST_HDRS,
3420 deps = MICROKERNEL_TEST_DEPS,
3421)
3422
3423xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07003424 name = "f32_gemm_test",
3425 srcs = [
3426 "test/f32-gemm.cc",
3427 "test/gemm-microkernel-tester.h",
3428 "src/xnnpack/AlignedAllocator.h",
3429 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3430 deps = MICROKERNEL_TEST_DEPS,
3431)
3432
3433xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07003434 name = "f32_gemm_relu_test",
3435 srcs = [
3436 "test/f32-gemm-relu.cc",
3437 "test/gemm-microkernel-tester.h",
3438 "src/xnnpack/AlignedAllocator.h",
3439 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3440 deps = MICROKERNEL_TEST_DEPS,
3441)
3442
3443xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07003444 name = "f32_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003445 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07003446 "test/f32-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003447 "test/gemm-microkernel-tester.h",
3448 "src/xnnpack/AlignedAllocator.h",
3449 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3450 deps = MICROKERNEL_TEST_DEPS,
3451)
3452
3453xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07003454 name = "f32_gemminc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003455 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07003456 "test/f32-gemminc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003457 "test/gemm-microkernel-tester.h",
3458 "src/xnnpack/AlignedAllocator.h",
3459 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3460 deps = MICROKERNEL_TEST_DEPS,
3461)
3462
3463xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07003464 name = "f16_hswish_test",
3465 srcs = [
3466 "test/f16-hswish.cc",
3467 "test/hswish-microkernel-tester.h",
3468 ] + MICROKERNEL_TEST_HDRS,
3469 deps = MICROKERNEL_TEST_DEPS,
3470)
3471
3472xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003473 name = "f32_hswish_test",
3474 srcs = [
3475 "test/f32-hswish.cc",
3476 "test/hswish-microkernel-tester.h",
3477 ] + MICROKERNEL_TEST_HDRS,
3478 deps = MICROKERNEL_TEST_DEPS,
3479)
3480
3481xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003482 name = "f32_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003483 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003484 "test/f32-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003485 "test/maxpool-microkernel-tester.h",
3486 ] + MICROKERNEL_TEST_HDRS,
3487 deps = MICROKERNEL_TEST_DEPS,
3488)
3489
3490xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003491 name = "f32_pavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003492 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003493 "test/f32-pavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003494 "test/avgpool-microkernel-tester.h",
3495 "src/xnnpack/AlignedAllocator.h",
3496 ] + MICROKERNEL_TEST_HDRS,
3497 deps = MICROKERNEL_TEST_DEPS,
3498)
3499
3500xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07003501 name = "f32_ppmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003502 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07003503 "test/f32-ppmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003504 "test/gemm-microkernel-tester.h",
3505 "src/xnnpack/AlignedAllocator.h",
3506 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3507 deps = MICROKERNEL_TEST_DEPS,
3508)
3509
3510xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07003511 name = "f16_prelu_test",
3512 srcs = [
3513 "test/f16-prelu.cc",
3514 "test/prelu-microkernel-tester.h",
3515 "src/xnnpack/AlignedAllocator.h",
3516 ] + MICROKERNEL_TEST_HDRS,
3517 deps = MICROKERNEL_TEST_DEPS,
3518)
3519
3520xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003521 name = "f32_prelu_test",
3522 srcs = [
3523 "test/f32-prelu.cc",
3524 "test/prelu-microkernel-tester.h",
3525 "src/xnnpack/AlignedAllocator.h",
3526 ] + MICROKERNEL_TEST_HDRS,
3527 deps = MICROKERNEL_TEST_DEPS,
3528)
3529
3530xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07003531 name = "f32_raddexpminusmax_test",
3532 srcs = [
3533 "test/f32-raddexpminusmax.cc",
3534 "test/raddexpminusmax-microkernel-tester.h",
3535 ] + MICROKERNEL_TEST_HDRS,
3536 deps = MICROKERNEL_TEST_DEPS,
3537)
3538
3539xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07003540 name = "f32_raddextexp_test",
3541 srcs = [
3542 "test/f32-raddextexp.cc",
3543 "test/raddextexp-microkernel-tester.h",
3544 ] + MICROKERNEL_TEST_HDRS,
3545 deps = MICROKERNEL_TEST_DEPS,
3546)
3547
3548xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07003549 name = "f32_raddstoreexpminusmax_test",
3550 srcs = [
3551 "test/f32-raddstoreexpminusmax.cc",
3552 "test/raddstoreexpminusmax-microkernel-tester.h",
3553 ] + MICROKERNEL_TEST_HDRS,
3554 deps = MICROKERNEL_TEST_DEPS,
3555)
3556
3557xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003558 name = "f32_rmax_test",
3559 srcs = [
3560 "test/f32-rmax.cc",
3561 "test/rmax-microkernel-tester.h",
3562 ] + MICROKERNEL_TEST_HDRS,
3563 deps = MICROKERNEL_TEST_DEPS,
3564)
3565
3566xnnpack_unit_test(
Marat Dukhan346a9e52019-11-15 09:06:30 -08003567 name = "f32_sigmoid_test",
3568 srcs = [
3569 "test/f32-sigmoid.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003570 "test/vunary-microkernel-tester.h",
Marat Dukhan346a9e52019-11-15 09:06:30 -08003571 ] + MICROKERNEL_TEST_HDRS,
3572 deps = MICROKERNEL_TEST_DEPS,
3573)
3574
3575xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07003576 name = "f32_spmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003577 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07003578 "test/f32-spmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003579 "test/spmm-microkernel-tester.h",
3580 "src/xnnpack/AlignedAllocator.h",
3581 ] + MICROKERNEL_TEST_HDRS,
3582 deps = MICROKERNEL_TEST_DEPS,
3583)
3584
3585xnnpack_unit_test(
Frank Barchardd793f6c2020-05-08 13:37:43 -07003586 name = "f16_vadd_minmax_test",
3587 srcs = [
3588 "test/f16-vadd-minmax.cc",
3589 "test/vbinary-microkernel-tester.h",
3590 ] + MICROKERNEL_TEST_HDRS,
3591 deps = MICROKERNEL_TEST_DEPS,
3592)
3593
3594xnnpack_unit_test(
3595 name = "f16_vaddc_minmax_test",
3596 srcs = [
3597 "test/f16-vaddc-minmax.cc",
3598 "test/vbinaryc-microkernel-tester.h",
3599 ] + MICROKERNEL_TEST_HDRS,
3600 deps = MICROKERNEL_TEST_DEPS,
3601)
3602
3603xnnpack_unit_test(
3604 name = "f16_vdiv_minmax_test",
3605 srcs = [
3606 "test/f16-vdiv-minmax.cc",
3607 "test/vbinary-microkernel-tester.h",
3608 ] + MICROKERNEL_TEST_HDRS,
3609 deps = MICROKERNEL_TEST_DEPS,
3610)
3611
3612xnnpack_unit_test(
3613 name = "f16_vdivc_minmax_test",
3614 srcs = [
3615 "test/f16-vdivc-minmax.cc",
3616 "test/vbinaryc-microkernel-tester.h",
3617 ] + MICROKERNEL_TEST_HDRS,
3618 deps = MICROKERNEL_TEST_DEPS,
3619)
3620
3621xnnpack_unit_test(
3622 name = "f16_vrdivc_minmax_test",
3623 srcs = [
3624 "test/f16-vrdivc-minmax.cc",
3625 "test/vbinaryc-microkernel-tester.h",
3626 ] + MICROKERNEL_TEST_HDRS,
3627 deps = MICROKERNEL_TEST_DEPS,
3628)
3629
3630xnnpack_unit_test(
3631 name = "f16_vmax_test",
3632 srcs = [
3633 "test/f16-vmax.cc",
3634 "test/vbinary-microkernel-tester.h",
3635 ] + MICROKERNEL_TEST_HDRS,
3636 deps = MICROKERNEL_TEST_DEPS,
3637)
3638
3639xnnpack_unit_test(
3640 name = "f16_vmaxc_test",
3641 srcs = [
3642 "test/f16-vmaxc.cc",
3643 "test/vbinaryc-microkernel-tester.h",
3644 ] + MICROKERNEL_TEST_HDRS,
3645 deps = MICROKERNEL_TEST_DEPS,
3646)
3647
3648xnnpack_unit_test(
3649 name = "f16_vmin_test",
3650 srcs = [
3651 "test/f16-vmin.cc",
3652 "test/vbinary-microkernel-tester.h",
3653 ] + MICROKERNEL_TEST_HDRS,
3654 deps = MICROKERNEL_TEST_DEPS,
3655)
3656
3657xnnpack_unit_test(
3658 name = "f16_vminc_test",
3659 srcs = [
3660 "test/f16-vminc.cc",
3661 "test/vbinaryc-microkernel-tester.h",
3662 ] + MICROKERNEL_TEST_HDRS,
3663 deps = MICROKERNEL_TEST_DEPS,
3664)
3665
3666xnnpack_unit_test(
3667 name = "f16_vmul_minmax_test",
3668 srcs = [
3669 "test/f16-vmul-minmax.cc",
3670 "test/vbinary-microkernel-tester.h",
3671 ] + MICROKERNEL_TEST_HDRS,
3672 deps = MICROKERNEL_TEST_DEPS,
3673)
3674
3675xnnpack_unit_test(
3676 name = "f16_vmulc_minmax_test",
3677 srcs = [
3678 "test/f16-vmulc-minmax.cc",
3679 "test/vbinaryc-microkernel-tester.h",
3680 ] + MICROKERNEL_TEST_HDRS,
3681 deps = MICROKERNEL_TEST_DEPS,
3682)
3683
3684xnnpack_unit_test(
3685 name = "f16_vsub_minmax_test",
3686 srcs = [
3687 "test/f16-vsub-minmax.cc",
3688 "test/vbinary-microkernel-tester.h",
3689 ] + MICROKERNEL_TEST_HDRS,
3690 deps = MICROKERNEL_TEST_DEPS,
3691)
3692
3693xnnpack_unit_test(
3694 name = "f16_vsubc_minmax_test",
3695 srcs = [
3696 "test/f16-vsubc-minmax.cc",
3697 "test/vbinaryc-microkernel-tester.h",
3698 ] + MICROKERNEL_TEST_HDRS,
3699 deps = MICROKERNEL_TEST_DEPS,
3700)
3701
3702xnnpack_unit_test(
3703 name = "f16_vrsubc_minmax_test",
3704 srcs = [
3705 "test/f16-vrsubc-minmax.cc",
3706 "test/vbinaryc-microkernel-tester.h",
3707 ] + MICROKERNEL_TEST_HDRS,
3708 deps = MICROKERNEL_TEST_DEPS,
3709)
3710
3711xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003712 name = "f32_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003713 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003714 "test/f32-vadd-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003715 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003716 ] + MICROKERNEL_TEST_HDRS,
3717 deps = MICROKERNEL_TEST_DEPS,
3718)
3719
3720xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003721 name = "f32_vaddc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003722 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003723 "test/f32-vaddc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003724 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003725 ] + MICROKERNEL_TEST_HDRS,
3726 deps = MICROKERNEL_TEST_DEPS,
3727)
3728
3729xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003730 name = "f32_vdiv_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08003731 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003732 "test/f32-vdiv-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08003733 "test/vbinary-microkernel-tester.h",
3734 ] + MICROKERNEL_TEST_HDRS,
3735 deps = MICROKERNEL_TEST_DEPS,
3736)
3737
3738xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003739 name = "f32_vdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08003740 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003741 "test/f32-vdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08003742 "test/vbinaryc-microkernel-tester.h",
3743 ] + MICROKERNEL_TEST_HDRS,
3744 deps = MICROKERNEL_TEST_DEPS,
3745)
3746
3747xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003748 name = "f32_vrdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08003749 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003750 "test/f32-vrdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08003751 "test/vbinaryc-microkernel-tester.h",
3752 ] + MICROKERNEL_TEST_HDRS,
3753 deps = MICROKERNEL_TEST_DEPS,
3754)
3755
3756xnnpack_unit_test(
Marat Dukhan403b7d42019-12-05 12:49:11 -08003757 name = "f32_vmax_test",
3758 srcs = [
3759 "test/f32-vmax.cc",
3760 "test/vbinary-microkernel-tester.h",
3761 ] + MICROKERNEL_TEST_HDRS,
3762 deps = MICROKERNEL_TEST_DEPS,
3763)
3764
3765xnnpack_unit_test(
3766 name = "f32_vmaxc_test",
3767 srcs = [
3768 "test/f32-vmaxc.cc",
3769 "test/vbinaryc-microkernel-tester.h",
3770 ] + MICROKERNEL_TEST_HDRS,
3771 deps = MICROKERNEL_TEST_DEPS,
3772)
3773
3774xnnpack_unit_test(
3775 name = "f32_vmin_test",
3776 srcs = [
3777 "test/f32-vmin.cc",
3778 "test/vbinary-microkernel-tester.h",
3779 ] + MICROKERNEL_TEST_HDRS,
3780 deps = MICROKERNEL_TEST_DEPS,
3781)
3782
3783xnnpack_unit_test(
3784 name = "f32_vminc_test",
3785 srcs = [
3786 "test/f32-vminc.cc",
3787 "test/vbinaryc-microkernel-tester.h",
3788 ] + MICROKERNEL_TEST_HDRS,
3789 deps = MICROKERNEL_TEST_DEPS,
3790)
3791
3792xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003793 name = "f32_vmul_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003794 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003795 "test/f32-vmul-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003796 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003797 ] + MICROKERNEL_TEST_HDRS,
3798 deps = MICROKERNEL_TEST_DEPS,
3799)
3800
3801xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003802 name = "f32_vmulc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003803 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003804 "test/f32-vmulc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003805 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003806 ] + MICROKERNEL_TEST_HDRS,
3807 deps = MICROKERNEL_TEST_DEPS,
3808)
3809
3810xnnpack_unit_test(
Frank Barchard2a1049c2020-06-03 02:31:27 -07003811 name = "f16_vmulcaddc_minmax_test",
3812 srcs = [
3813 "test/f16-vmulcaddc-minmax.cc",
3814 "test/vmulcaddc-microkernel-tester.h",
3815 "src/xnnpack/AlignedAllocator.h",
3816 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3817 deps = MICROKERNEL_TEST_DEPS,
3818)
3819
3820xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003821 name = "f32_vmulcaddc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003822 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003823 "test/f32-vmulcaddc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003824 "test/vmulcaddc-microkernel-tester.h",
3825 "src/xnnpack/AlignedAllocator.h",
3826 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3827 deps = MICROKERNEL_TEST_DEPS,
3828)
3829
3830xnnpack_unit_test(
Marat Dukhan05ac8e32019-10-21 15:39:33 -07003831 name = "f32_vscale_test",
3832 srcs = [
3833 "test/f32-vscale.cc",
3834 "test/vscale-microkernel-tester.h",
3835 ] + MICROKERNEL_TEST_HDRS,
3836 deps = MICROKERNEL_TEST_DEPS,
3837)
3838
3839xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07003840 name = "f32_vscaleexpminusmax_test",
3841 srcs = [
3842 "test/f32-vscaleexpminusmax.cc",
3843 "test/vscaleexpminusmax-microkernel-tester.h",
3844 ] + MICROKERNEL_TEST_HDRS,
3845 deps = MICROKERNEL_TEST_DEPS,
3846)
3847
3848xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07003849 name = "f32_vscaleextexp_test",
3850 srcs = [
3851 "test/f32-vscaleextexp.cc",
3852 "test/vscaleextexp-microkernel-tester.h",
3853 ] + MICROKERNEL_TEST_HDRS,
3854 deps = MICROKERNEL_TEST_DEPS,
3855)
3856
3857xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003858 name = "f32_vsub_minmax_test",
Marat Dukhan97579532019-10-18 16:40:39 -07003859 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003860 "test/f32-vsub-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003861 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003862 ] + MICROKERNEL_TEST_HDRS,
3863 deps = MICROKERNEL_TEST_DEPS,
3864)
3865
3866xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003867 name = "f32_vsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003868 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003869 "test/f32-vsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003870 "test/vbinaryc-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003871 ] + MICROKERNEL_TEST_HDRS,
3872 deps = MICROKERNEL_TEST_DEPS,
3873)
3874
3875xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003876 name = "f32_vrsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08003877 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07003878 "test/f32-vrsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003879 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan97579532019-10-18 16:40:39 -07003880 ] + MICROKERNEL_TEST_HDRS,
3881 deps = MICROKERNEL_TEST_DEPS,
3882)
3883
3884xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003885 name = "q8_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003886 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003887 "test/q8-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003888 "test/avgpool-microkernel-tester.h",
3889 "src/xnnpack/AlignedAllocator.h",
3890 ] + MICROKERNEL_TEST_HDRS,
3891 deps = MICROKERNEL_TEST_DEPS,
3892)
3893
3894xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07003895 name = "q8_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003896 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07003897 "test/q8-igemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003898 "test/gemm-microkernel-tester.h",
3899 "src/xnnpack/AlignedAllocator.h",
3900 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3901 deps = MICROKERNEL_TEST_DEPS,
3902)
3903
3904xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07003905 name = "q8_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003906 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07003907 "test/q8-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003908 "test/dwconv-microkernel-tester.h",
3909 "src/xnnpack/AlignedAllocator.h",
3910 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3911 deps = MICROKERNEL_TEST_DEPS,
3912)
3913
3914xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003915 name = "q8_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003916 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003917 "test/q8-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003918 "test/gavgpool-microkernel-tester.h",
3919 "src/xnnpack/AlignedAllocator.h",
3920 ] + MICROKERNEL_TEST_HDRS,
3921 deps = MICROKERNEL_TEST_DEPS,
3922)
3923
3924xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07003925 name = "q8_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003926 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07003927 "test/q8-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003928 "test/gemm-microkernel-tester.h",
3929 "src/xnnpack/AlignedAllocator.h",
3930 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
3931 deps = MICROKERNEL_TEST_DEPS,
3932)
3933
3934xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003935 name = "q8_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003936 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003937 "test/q8-vadd-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003938 "test/vadd-microkernel-tester.h",
3939 ] + MICROKERNEL_TEST_HDRS,
3940 deps = MICROKERNEL_TEST_DEPS,
3941)
3942
3943xnnpack_unit_test(
3944 name = "u8_clamp_test",
3945 srcs = [
3946 "test/u8-clamp.cc",
3947 "test/clamp-microkernel-tester.h",
3948 ] + MICROKERNEL_TEST_HDRS,
3949 deps = MICROKERNEL_TEST_DEPS,
3950)
3951
3952xnnpack_unit_test(
3953 name = "u8_lut32norm_test",
3954 srcs = [
3955 "test/u8-lut32norm.cc",
3956 "test/lut-norm-microkernel-tester.h",
3957 ] + MICROKERNEL_TEST_HDRS,
3958 deps = MICROKERNEL_TEST_DEPS,
3959)
3960
3961xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07003962 name = "u8_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003963 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07003964 "test/u8-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003965 "test/maxpool-microkernel-tester.h",
3966 ] + MICROKERNEL_TEST_HDRS,
3967 deps = MICROKERNEL_TEST_DEPS,
3968)
3969
3970xnnpack_unit_test(
3971 name = "u8_rmax_test",
3972 srcs = [
3973 "test/u8-rmax.cc",
3974 "test/rmax-microkernel-tester.h",
3975 ] + MICROKERNEL_TEST_HDRS,
3976 deps = MICROKERNEL_TEST_DEPS,
3977)
3978
3979xnnpack_unit_test(
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07003980 name = "x32_fill_test",
3981 srcs = [
3982 "test/x32-fill.cc",
3983 "test/fill-microkernel-tester.h",
3984 ] + MICROKERNEL_TEST_HDRS,
3985 deps = MICROKERNEL_TEST_DEPS,
3986)
3987
3988xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003989 name = "x32_packx_test",
3990 srcs = [
3991 "test/x32-packx.cc",
3992 "test/pack-microkernel-tester.h",
3993 "src/xnnpack/AlignedAllocator.h",
3994 ] + MICROKERNEL_TEST_HDRS,
3995 deps = MICROKERNEL_TEST_DEPS,
3996)
3997
3998xnnpack_unit_test(
3999 name = "x32_pad_test",
4000 srcs = [
4001 "test/x32-pad.cc",
4002 "test/pad-microkernel-tester.h",
4003 ] + MICROKERNEL_TEST_HDRS,
4004 deps = MICROKERNEL_TEST_DEPS,
4005)
4006
4007xnnpack_unit_test(
4008 name = "x32_unpool_test",
4009 srcs = [
4010 "test/x32-unpool.cc",
4011 "test/unpool-microkernel-tester.h",
4012 ] + MICROKERNEL_TEST_HDRS,
4013 deps = MICROKERNEL_TEST_DEPS,
4014)
4015
4016xnnpack_unit_test(
4017 name = "x32_zip_test",
4018 srcs = [
4019 "test/x32-zip.cc",
4020 "test/zip-microkernel-tester.h",
4021 ] + MICROKERNEL_TEST_HDRS,
4022 deps = MICROKERNEL_TEST_DEPS,
4023)
4024
4025xnnpack_unit_test(
4026 name = "x8_lut_test",
4027 srcs = [
4028 "test/x8-lut.cc",
4029 "test/lut-microkernel-tester.h",
4030 ] + MICROKERNEL_TEST_HDRS,
4031 deps = MICROKERNEL_TEST_DEPS,
4032)
4033
4034xnnpack_unit_test(
4035 name = "x8_zip_test",
4036 srcs = [
4037 "test/x8-zip.cc",
4038 "test/zip-microkernel-tester.h",
4039 ] + MICROKERNEL_TEST_HDRS,
4040 deps = MICROKERNEL_TEST_DEPS,
4041)
4042
Marat Dukhanfe7acb62020-03-09 19:30:05 -07004043xnnpack_unit_test(
4044 name = "requantization_test",
4045 srcs = [
4046 "src/xnnpack/requantization-stubs.h",
4047 "test/requantization.cc",
4048 "test/requantization-tester.h",
4049 ] + MICROKERNEL_TEST_HDRS,
4050 deps = MICROKERNEL_TEST_DEPS,
4051)
4052
Marat Dukhan20c3b922020-03-10 03:45:06 -07004053########################## Size tests for the library #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07004054
4055xnnpack_binary(
Marat Dukhan20c3b922020-03-10 03:45:06 -07004056 name = "operator_size_test",
4057 srcs = ["test/operator-size.c"],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004058 deps = [":xnnpack_operators_nhwc_f32"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004059)
4060
Marat Dukhan20c3b922020-03-10 03:45:06 -07004061xnnpack_binary(
4062 name = "subgraph_size_test",
4063 srcs = ["test/subgraph-size.c"],
4064 deps = [":XNNPACK"],
4065)
4066
4067########################### Unit tests for operators ##########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07004068
4069xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004070 name = "add_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004071 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004072 "test/add-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004073 "test/add-operator-tester.h",
4074 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004075 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004076)
4077
4078xnnpack_unit_test(
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08004079 name = "add_nd_test",
4080 srcs = [
4081 "test/add-nd.cc",
4082 "test/binary-elementwise-operator-tester.h",
4083 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004084 deps = OPERATOR_TEST_DEPS,
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08004085)
4086
4087xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004088 name = "argmax_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004089 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004090 "test/argmax-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004091 "test/argmax-pooling-operator-tester.h",
4092 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004093 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004094)
4095
4096xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004097 name = "average_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004098 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004099 "test/average-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004100 "test/average-pooling-operator-tester.h",
4101 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004102 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004103)
4104
4105xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004106 name = "channel_pad_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004107 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004108 "test/channel-pad-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004109 "test/channel-pad-operator-tester.h",
4110 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004111 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004112)
4113
4114xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004115 name = "channel_shuffle_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004116 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004117 "test/channel-shuffle-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004118 "test/channel-shuffle-operator-tester.h",
4119 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004120 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004121)
4122
4123xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004124 name = "clamp_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004125 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004126 "test/clamp-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004127 "test/clamp-operator-tester.h",
4128 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004129 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004130)
4131
4132xnnpack_unit_test(
Marat Dukhan065b11e2020-05-22 09:49:41 -07004133 name = "constant_pad_nd_test",
4134 srcs = [
4135 "test/constant-pad-nd.cc",
4136 "test/constant-pad-operator-tester.h",
4137 ],
4138 deps = OPERATOR_TEST_DEPS,
4139)
4140
4141xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004142 name = "convolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004143 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004144 "test/convolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004145 "test/convolution-operator-tester.h",
4146 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004147 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004148)
4149
4150xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004151 name = "convolution_nchw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004152 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004153 "test/convolution-nchw.cc",
4154 "test/convolution-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004155 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004156 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004157)
4158
4159xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004160 name = "deconvolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004161 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004162 "test/deconvolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004163 "test/deconvolution-operator-tester.h",
4164 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004165 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004166)
4167
4168xnnpack_unit_test(
Marat Dukhan69180502019-12-06 15:00:31 -08004169 name = "divide_nd_test",
4170 srcs = [
4171 "test/binary-elementwise-operator-tester.h",
4172 "test/divide-nd.cc",
4173 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004174 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69180502019-12-06 15:00:31 -08004175)
4176
4177xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004178 name = "fully_connected_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004179 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004180 "test/fully-connected-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004181 "test/fully-connected-operator-tester.h",
4182 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004183 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004184)
4185
4186xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004187 name = "global_average_pooling_nwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004188 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004189 "test/global-average-pooling-nwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004190 "test/global-average-pooling-operator-tester.h",
4191 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004192 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004193)
4194
4195xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004196 name = "global_average_pooling_ncw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004197 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004198 "test/global-average-pooling-ncw.cc",
4199 "test/global-average-pooling-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004200 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004201 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004202)
4203
4204xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004205 name = "hardswish_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004206 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004207 "test/hardswish-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004208 "test/hardswish-operator-tester.h",
4209 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004210 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004211)
4212
4213xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004214 name = "leaky_relu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004215 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004216 "test/leaky-relu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004217 "test/leaky-relu-operator-tester.h",
4218 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004219 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004220)
4221
4222xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004223 name = "max_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004224 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004225 "test/max-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004226 "test/max-pooling-operator-tester.h",
4227 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004228 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004229)
4230
4231xnnpack_unit_test(
Marat Dukhan79e7f842019-12-05 14:35:50 -08004232 name = "maximum_nd_test",
4233 srcs = [
4234 "test/binary-elementwise-operator-tester.h",
4235 "test/maximum-nd.cc",
4236 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004237 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08004238)
4239
4240xnnpack_unit_test(
4241 name = "minimum_nd_test",
4242 srcs = [
4243 "test/binary-elementwise-operator-tester.h",
4244 "test/minimum-nd.cc",
4245 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004246 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08004247)
4248
4249xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004250 name = "multiply_nd_test",
Marat Dukhanca2733c2019-11-15 23:21:17 -08004251 srcs = [
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08004252 "test/binary-elementwise-operator-tester.h",
Marat Dukhanefc47b82019-11-18 09:25:38 -08004253 "test/multiply-nd.cc",
Marat Dukhanca2733c2019-11-15 23:21:17 -08004254 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004255 deps = OPERATOR_TEST_DEPS,
Marat Dukhanca2733c2019-11-15 23:21:17 -08004256)
4257
4258xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004259 name = "prelu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004260 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004261 "test/prelu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004262 "test/prelu-operator-tester.h",
4263 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004264 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004265)
4266
4267xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004268 name = "resize_bilinear_nhwc_test",
Marat Dukhan69722492019-11-11 19:55:50 -08004269 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004270 "test/resize-bilinear-nhwc.cc",
Marat Dukhan69722492019-11-11 19:55:50 -08004271 "test/resize-bilinear-operator-tester.h",
4272 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07004273 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69722492019-11-11 19:55:50 -08004274)
4275
4276xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004277 name = "sigmoid_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004278 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004279 "test/sigmoid-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004280 "test/sigmoid-operator-tester.h",
4281 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004282 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004283)
4284
4285xnnpack_unit_test(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004286 name = "softmax_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004287 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004288 "test/softmax-nc.cc",
4289 "test/softmax-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004290 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004291 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004292)
4293
4294xnnpack_unit_test(
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08004295 name = "subtract_nd_test",
4296 srcs = [
4297 "test/binary-elementwise-operator-tester.h",
4298 "test/subtract-nd.cc",
4299 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004300 deps = OPERATOR_TEST_DEPS,
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08004301)
4302
4303xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08004304 name = "unpooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004305 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08004306 "test/unpooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004307 "test/unpooling-operator-tester.h",
4308 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07004309 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004310)
4311
Chao Mei6ddfc602020-05-13 22:29:36 -07004312############################### Misc unit tests ###############################
4313
4314xnnpack_unit_test(
4315 name = "memory_planner_test",
4316 srcs = [
4317 "test/memory-planner-test.cc",
4318 ],
4319 deps = [
4320 ":XNNPACK",
4321 ":memory_planner",
4322 ],
4323)
4324
Marat Dukhan08c4a432019-10-03 09:29:21 -07004325############################# Build configurations #############################
4326
Marat Dukhanb8642352019-10-30 15:43:02 -07004327# Enables usage of assembly kernels.
Marat Dukhan08c4a432019-10-03 09:29:21 -07004328config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07004329 name = "xnn_enable_assembly_explicit_true",
4330 define_values = {"xnn_enable_assembly": "true"},
4331)
4332
4333# Disables usage of assembly kernels.
4334config_setting(
4335 name = "xnn_enable_assembly_explicit_false",
4336 define_values = {"xnn_enable_assembly": "false"},
4337)
4338
Marat Dukhan05702cf2020-03-26 15:41:33 -07004339# Disables usage of HMP-aware optimizations.
4340config_setting(
4341 name = "xnn_enable_hmp_explicit_false",
4342 define_values = {"xnn_enable_hmp": "false"},
4343)
4344
Chao Mei6ddfc602020-05-13 22:29:36 -07004345# Enable usage of optimized memory allocation
4346config_setting(
4347 name = "xnn_enable_memopt_explicit_true",
4348 define_values = {"xnnpack_enable_memopt": "true"},
4349)
4350
4351# Disable usage of optimized memory allocation
4352config_setting(
4353 name = "xnn_enable_memopt_explicit_false",
4354 define_values = {"xnnpack_enable_memopt": "false"},
4355)
4356
Marat Dukhanb8642352019-10-30 15:43:02 -07004357# Builds with -c dbg
4358config_setting(
4359 name = "debug_build",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004360 values = {
Marat Dukhanb8642352019-10-30 15:43:02 -07004361 "compilation_mode": "dbg",
4362 },
4363)
4364
4365# Builds with -c opt
4366config_setting(
4367 name = "optimized_build",
4368 values = {
4369 "compilation_mode": "opt",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004370 },
4371)
4372
4373config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07004374 name = "linux_k8",
4375 values = {"cpu": "k8"},
4376)
4377
4378config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07004379 name = "linux_arm",
4380 values = {"cpu": "arm"},
Marat Dukhan4e45e662019-10-03 15:40:24 -07004381)
4382
4383config_setting(
Terry Heo68eef3f2020-04-13 22:53:52 -07004384 name = "linux_armhf",
4385 values = {"cpu": "armhf"},
4386)
4387
4388config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07004389 name = "linux_aarch64",
4390 values = {"cpu": "aarch64"},
4391)
4392
4393config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004394 name = "android",
4395 values = {"crosstool_top": "//external:android/crosstool"},
4396)
4397
4398config_setting(
4399 name = "android_armv7",
4400 values = {
4401 "crosstool_top": "//external:android/crosstool",
4402 "cpu": "armeabi-v7a",
4403 },
4404)
4405
4406config_setting(
4407 name = "android_arm64",
4408 values = {
4409 "crosstool_top": "//external:android/crosstool",
4410 "cpu": "arm64-v8a",
4411 },
4412)
4413
4414config_setting(
4415 name = "android_x86",
4416 values = {
4417 "crosstool_top": "//external:android/crosstool",
4418 "cpu": "x86",
4419 },
4420)
4421
4422config_setting(
4423 name = "android_x86_64",
4424 values = {
4425 "crosstool_top": "//external:android/crosstool",
4426 "cpu": "x86_64",
4427 },
4428)
4429
4430config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07004431 name = "windows_x86_64",
4432 values = {"cpu": "x64_windows"},
Marat Dukhan9fe932e2020-04-11 17:14:15 -07004433)
4434
4435config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07004436 name = "windows_x86_64_clang",
4437 values = {
4438 "compiler": "clang-cl",
4439 "cpu": "x64_windows",
4440 },
4441)
4442
4443config_setting(
4444 name = "windows_x86_64_mingw",
4445 values = {
4446 "compiler": "mingw-gcc",
4447 "cpu": "x64_windows",
4448 },
4449)
4450
4451config_setting(
4452 name = "windows_x86_64_msys",
4453 values = {
4454 "compiler": "msys-gcc",
4455 "cpu": "x64_windows",
4456 },
Marat Dukhan9fe932e2020-04-11 17:14:15 -07004457)
4458
4459config_setting(
Marat Dukhan885ca242019-10-07 09:17:32 -07004460 name = "macos_x86_64",
4461 values = {
4462 "apple_platform_type": "macos",
4463 "cpu": "darwin",
4464 },
4465)
4466
4467config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004468 name = "emscripten",
Marat Dukhan1a729ec2019-10-07 09:31:44 -07004469 values = {"crosstool_top": "//toolchain:emscripten"},
Marat Dukhan08c4a432019-10-03 09:29:21 -07004470)
4471
4472config_setting(
4473 name = "emscripten_wasm",
4474 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07004475 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004476 "cpu": "wasm",
4477 },
4478)
4479
4480config_setting(
4481 name = "emscripten_wasmsimd",
4482 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07004483 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004484 "cpu": "wasm",
Marat Dukhan81c62602020-05-29 13:22:49 -07004485 "copt": "-msimd128",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004486 },
4487)
4488
4489config_setting(
4490 name = "emscripten_asmjs",
4491 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07004492 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004493 "cpu": "asmjs",
4494 },
4495)
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004496
4497config_setting(
4498 name = "ios_armv7",
4499 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004500 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004501 "cpu": "ios_armv7",
4502 },
4503)
4504
4505config_setting(
4506 name = "ios_arm64",
4507 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004508 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004509 "cpu": "ios_arm64",
4510 },
4511)
4512
4513config_setting(
4514 name = "ios_arm64e",
4515 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004516 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004517 "cpu": "ios_arm64e",
4518 },
4519)
4520
4521config_setting(
4522 name = "ios_x86",
4523 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004524 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004525 "cpu": "ios_i386",
4526 },
4527)
4528
4529config_setting(
4530 name = "ios_x86_64",
4531 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004532 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004533 "cpu": "ios_x86_64",
4534 },
4535)
4536
4537config_setting(
4538 name = "watchos_armv7k",
4539 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004540 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004541 "cpu": "watchos_armv7k",
4542 },
4543)
4544
4545config_setting(
4546 name = "watchos_arm64_32",
4547 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004548 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004549 "cpu": "watchos_arm64_32",
4550 },
4551)
4552
4553config_setting(
4554 name = "watchos_x86",
4555 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004556 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004557 "cpu": "watchos_i386",
4558 },
4559)
4560
4561config_setting(
4562 name = "watchos_x86_64",
4563 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004564 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004565 "cpu": "watchos_x86_64",
4566 },
4567)
4568
4569config_setting(
4570 name = "tvos_arm64",
4571 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004572 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004573 "cpu": "tvos_arm64",
4574 },
4575)
4576
4577config_setting(
4578 name = "tvos_x86_64",
4579 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08004580 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08004581 "cpu": "tvos_x86_64",
4582 },
4583)