blob: c86df02ce775baf3a33231a7a2bdb1c5b3f048db [file] [log] [blame]
Marat Dukhan08c4a432019-10-03 09:29:21 -07001# Copyright 2019 Google LLC
2#
3# This source code is licensed under the BSD-style license found in the
4# LICENSE file in the root directory of this source tree.
5#
6# Description:
7# XNNPACK - optimized floating-point neural network operators library
8
Marat Dukhan10a38082020-04-17 03:58:35 -07009load(":build_defs.bzl", "xnnpack_aggregate_library", "xnnpack_benchmark", "xnnpack_binary", "xnnpack_cc_library", "xnnpack_gcc_std_copts", "xnnpack_min_size_copts", "xnnpack_msvc_std_copts", "xnnpack_optional_armcl_copts", "xnnpack_optional_armcl_deps", "xnnpack_optional_dnnl_copts", "xnnpack_optional_dnnl_deps", "xnnpack_optional_gemmlowp_copts", "xnnpack_optional_gemmlowp_deps", "xnnpack_optional_ruy_copts", "xnnpack_optional_ruy_deps", "xnnpack_optional_tflite_copts", "xnnpack_optional_tflite_deps", "xnnpack_std_cxxopts", "xnnpack_unit_test", "xnnpack_visibility")
Marat Dukhan69c3f2c2019-11-06 12:30:01 -080010
Marat Dukhan08c4a432019-10-03 09:29:21 -070011licenses(["notice"])
12
13exports_files(["LICENSE"])
14
Marat Dukhan1b354632020-03-23 12:50:22 -070015OPERATOR_BENCHMARK_DEPS = [
16 ":XNNPACK",
17 ":bench_utils",
18 "@cpuinfo",
Frank Barchard0c849732020-06-12 13:31:32 -070019 "@FP16",
Marat Dukhan1b354632020-03-23 12:50:22 -070020 "@pthreadpool",
21]
22
Marat Dukhan08c4a432019-10-03 09:29:21 -070023MICROKERNEL_BENCHMARK_DEPS = [
24 ":ukernels",
25 ":bench_utils",
Frank Barchard7e955972019-10-11 10:34:25 -070026 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070027 "@cpuinfo",
28 "@FP16",
29 "@pthreadpool",
30]
31
Marat Dukhan6adff4e2019-10-14 18:32:07 -070032ACCURACY_EVAL_DEPS = [
33 ":XNNPACK",
34 ":ukernels",
35 "@FP16",
36 "@pthreadpool",
37]
38
Marat Dukhan08c4a432019-10-03 09:29:21 -070039MICROKERNEL_TEST_DEPS = [
Marat Dukhan33fcf782020-05-24 14:27:15 -070040 ":ukernels_test_mode",
Frank Barchard7e955972019-10-11 10:34:25 -070041 ":enable_assembly",
Marat Dukhan08c4a432019-10-03 09:29:21 -070042 "@cpuinfo",
43 "@FP16",
44 "@pthreadpool",
45]
46
Marat Dukhan1b354632020-03-23 12:50:22 -070047OPERATOR_TEST_DEPS = [
Marat Dukhan33fcf782020-05-24 14:27:15 -070048 ":XNNPACK_test_mode",
Marat Dukhan1b354632020-03-23 12:50:22 -070049 "@pthreadpool",
50 "@FP16",
51]
52
Marat Dukhan08c4a432019-10-03 09:29:21 -070053OPERATOR_SRCS = [
Marat Dukhane8265432020-04-28 18:42:59 -070054 "src/operators/argmax-pooling-nhwc.c",
55 "src/operators/average-pooling-nhwc.c",
56 "src/operators/binary-elementwise-nd.c",
Marat Dukhane8265432020-04-28 18:42:59 -070057 "src/operators/channel-shuffle-nc.c",
Marat Dukhan065b11e2020-05-22 09:49:41 -070058 "src/operators/constant-pad-nd.c",
Marat Dukhane8265432020-04-28 18:42:59 -070059 "src/operators/convolution-nchw.c",
60 "src/operators/convolution-nhwc.c",
61 "src/operators/deconvolution-nhwc.c",
62 "src/operators/fully-connected-nc.c",
63 "src/operators/global-average-pooling-ncw.c",
64 "src/operators/global-average-pooling-nwc.c",
Marat Dukhane8265432020-04-28 18:42:59 -070065 "src/operators/leaky-relu-nc.c",
66 "src/operators/max-pooling-nhwc.c",
67 "src/operators/prelu-nc.c",
68 "src/operators/resize-bilinear-nhwc.c",
69 "src/operators/sigmoid-nc.c",
70 "src/operators/softmax-nc.c",
Marat Dukhanc3065f52020-06-04 13:33:32 -070071 "src/operators/unary-elementwise-nc.c",
Marat Dukhane8265432020-04-28 18:42:59 -070072 "src/operators/unpooling-nhwc.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -070073]
74
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070075SUBGRAPH_SRCS = [
Marat Dukhan5fab4092020-06-10 01:28:28 -070076 "src/subgraph/abs.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070077 "src/subgraph/add2.c",
78 "src/subgraph/argmax-pooling-2d.c",
79 "src/subgraph/average-pooling-2d.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -070080 "src/subgraph/bankers-rounding.c",
81 "src/subgraph/ceiling.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070082 "src/subgraph/clamp.c",
83 "src/subgraph/convolution-2d.c",
84 "src/subgraph/deconvolution-2d.c",
85 "src/subgraph/depthwise-convolution-2d.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -070086 "src/subgraph/divide.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -070087 "src/subgraph/floor.c",
Frank Barchard04336c12020-10-22 16:48:55 -070088 "src/subgraph/fully-connected.c",
Marat Dukhana059b7d2020-06-11 11:41:27 -070089 "src/subgraph/global-average-pooling-2d.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070090 "src/subgraph/hardswish.c",
Marat Dukhan5bbebac2020-06-10 19:42:15 -070091 "src/subgraph/leaky-relu.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070092 "src/subgraph/max-pooling-2d.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -070093 "src/subgraph/maximum2.c",
94 "src/subgraph/minimum2.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070095 "src/subgraph/multiply2.c",
Marat Dukhan5fab4092020-06-10 01:28:28 -070096 "src/subgraph/negate.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -070097 "src/subgraph/prelu.c",
98 "src/subgraph/sigmoid.c",
99 "src/subgraph/softmax.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700100 "src/subgraph/square-root.c",
101 "src/subgraph/square.c",
102 "src/subgraph/squared-difference.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -0700103 "src/subgraph/static-constant-pad.c",
Marat Dukhand27202d2020-07-09 23:43:40 -0700104 "src/subgraph/static-reshape.c",
Marat Dukhanaff24e22020-07-23 01:43:58 -0700105 "src/subgraph/static-resize-bilinear-2d.c",
Marat Dukhan9d3a4592020-06-05 16:52:42 -0700106 "src/subgraph/subtract.c",
Marat Dukhan95e8b7a2020-06-03 12:46:26 -0700107 "src/subgraph/unpooling-2d.c",
108]
109
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800110TABLE_SRCS = [
111 "src/tables/exp2-k-over-64.c",
112 "src/tables/exp2-k-over-2048.c",
Marat Dukhan1f256fc2020-09-24 21:27:14 -0700113 "src/tables/exp2minus-k-over-64.c",
114 "src/tables/exp2minus-k-over-2048.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800115]
116
Marat Dukhan08c4a432019-10-03 09:29:21 -0700117SCALAR_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -0800118 "src/f32-argmaxpool/4x-scalar-c1.c",
Marat Dukhan1e782c42019-11-21 17:02:40 -0800119 "src/f32-argmaxpool/9p8x-scalar-c1.c",
Marat Dukhan329da642019-11-19 21:44:39 -0800120 "src/f32-argmaxpool/9x-scalar-c1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700121 "src/f32-avgpool/9p8x-minmax-scalar-c1.c",
122 "src/f32-avgpool/9x-minmax-scalar-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700123 "src/f32-clamp/gen/scalar-x1.c",
124 "src/f32-clamp/gen/scalar-x2.c",
125 "src/f32-clamp/gen/scalar-x4.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700126 "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700127 "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700128 "src/f32-conv-hwc2chw/3x3s2p1c3x4-scalar-1x1.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700129 "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700130 "src/f32-dwconv/gen/up1x4-minmax-scalar.c",
131 "src/f32-dwconv/gen/up1x4-scalar-acc2.c",
132 "src/f32-dwconv/gen/up1x4-scalar.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700133 "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700134 "src/f32-dwconv/gen/up1x9-minmax-scalar.c",
135 "src/f32-dwconv/gen/up1x9-scalar-acc2.c",
136 "src/f32-dwconv/gen/up1x9-scalar.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700137 "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700138 "src/f32-dwconv/gen/up1x25-minmax-scalar.c",
139 "src/f32-dwconv/gen/up1x25-scalar-acc2.c",
140 "src/f32-dwconv/gen/up1x25-scalar.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700141 "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700142 "src/f32-dwconv/gen/up2x4-minmax-scalar.c",
143 "src/f32-dwconv/gen/up2x4-scalar-acc2.c",
144 "src/f32-dwconv/gen/up2x4-scalar.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700145 "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700146 "src/f32-dwconv/gen/up2x9-minmax-scalar.c",
147 "src/f32-dwconv/gen/up2x9-scalar-acc2.c",
148 "src/f32-dwconv/gen/up2x9-scalar.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700149 "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700150 "src/f32-dwconv/gen/up2x25-minmax-scalar.c",
151 "src/f32-dwconv/gen/up2x25-scalar-acc2.c",
152 "src/f32-dwconv/gen/up2x25-scalar.c",
Marat Dukhan91249d22020-10-24 12:02:51 -0700153 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-1x1.c",
154 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-2x1.c",
155 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-3x1.c",
156 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-4x1.c",
157 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-5x1.c",
158 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-6x1.c",
159 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-1x1-acc2.c",
160 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-1x1-acc3.c",
161 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-1x1-acc4.c",
162 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-scalar-2x1-acc2.c",
Marat Dukhancf5b3c32020-10-25 19:21:10 -0700163 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-1x1.c",
164 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-2x1.c",
165 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-3x1.c",
166 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-4x1.c",
167 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-1x1-acc2.c",
168 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-1x1-acc3.c",
169 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-1x1-acc4.c",
170 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-scalar-2x1-acc2.c",
Marat Dukhanc4efb002020-10-25 23:14:47 -0700171 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-1x1.c",
172 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-2x1.c",
173 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-3x1.c",
174 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-1x1-acc2.c",
175 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-1x1-acc3.c",
176 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-1x1-acc4.c",
177 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-1x1-acc5.c",
178 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-2x1-acc2.c",
179 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-2x1-acc3.c",
180 "src/f32-dwconv2d-chw/gen/5x5p2-minmax-scalar-3x1-acc2.c",
Marat Dukhanbf715f92020-10-23 20:17:00 -0700181 "src/f32-dwconv2d-chw/5x5s2p2-scalar-1x1-acc5.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -0700182 "src/f32-gavgpool-cw/scalar-x1.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700183 "src/f32-gavgpool/7p7x-minmax-scalar-c1.c",
184 "src/f32-gavgpool/7x-minmax-scalar-c1.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700185 "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c",
186 "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c",
187 "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700188 "src/f32-gemm/gen/1x4-minmax-scalar.c",
189 "src/f32-gemm/gen/1x4-relu-scalar.c",
190 "src/f32-gemm/gen/1x4-scalar.c",
191 "src/f32-gemm/gen/2x4-minmax-scalar.c",
192 "src/f32-gemm/gen/2x4-relu-scalar.c",
193 "src/f32-gemm/gen/2x4-scalar.c",
194 "src/f32-gemm/gen/4x2-minmax-scalar.c",
195 "src/f32-gemm/gen/4x2-relu-scalar.c",
196 "src/f32-gemm/gen/4x2-scalar.c",
197 "src/f32-gemm/gen/4x4-minmax-scalar.c",
198 "src/f32-gemm/gen/4x4-relu-scalar.c",
199 "src/f32-gemm/gen/4x4-scalar.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700200 "src/f32-hswish/gen/hswish-scalar-x1.c",
201 "src/f32-hswish/gen/hswish-scalar-x2.c",
202 "src/f32-hswish/gen/hswish-scalar-x4.c",
XNNPACK Team21432672020-10-19 19:58:48 -0700203 "src/f32-ibilinear-chw/gen/scalar-p1.c",
204 "src/f32-ibilinear-chw/gen/scalar-p2.c",
205 "src/f32-ibilinear-chw/gen/scalar-p4.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700206 "src/f32-ibilinear/gen/scalar-c1.c",
207 "src/f32-ibilinear/gen/scalar-c2.c",
208 "src/f32-ibilinear/gen/scalar-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700209 "src/f32-igemm/gen/1x4-minmax-scalar.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700210 "src/f32-igemm/gen/1x4-relu-scalar.c",
211 "src/f32-igemm/gen/1x4-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700212 "src/f32-igemm/gen/2x4-minmax-scalar.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700213 "src/f32-igemm/gen/2x4-relu-scalar.c",
214 "src/f32-igemm/gen/2x4-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700215 "src/f32-igemm/gen/4x2-minmax-scalar.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700216 "src/f32-igemm/gen/4x2-relu-scalar.c",
217 "src/f32-igemm/gen/4x2-scalar.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700218 "src/f32-igemm/gen/4x4-minmax-scalar.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700219 "src/f32-igemm/gen/4x4-relu-scalar.c",
220 "src/f32-igemm/gen/4x4-scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700221 "src/f32-maxpool/9p8x-minmax-scalar-c1.c",
222 "src/f32-pavgpool/9p8x-minmax-scalar-c1.c",
223 "src/f32-pavgpool/9x-minmax-scalar-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700224 "src/f32-ppmm/gen/2x4-minmax-scalar.c",
225 "src/f32-ppmm/gen/3x3-minmax-scalar.c",
226 "src/f32-ppmm/gen/4x2-minmax-scalar.c",
227 "src/f32-ppmm/gen/4x4-minmax-scalar.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -0800228 "src/f32-prelu/gen/scalar-2x1.c",
229 "src/f32-prelu/gen/scalar-2x4.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800230 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800231 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700232 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800233 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c",
234 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700235 "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800236 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800237 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700238 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c",
Marat Dukhanf46f6752020-01-21 11:03:49 -0800239 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c",
240 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700241 "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c",
Frank Barchardfb158e22020-07-15 16:10:10 -0700242 "src/f32-relu/gen/scalar-x1.c",
243 "src/f32-relu/gen/scalar-x2.c",
244 "src/f32-relu/gen/scalar-x4.c",
Frank Barchard37297a62020-08-27 12:15:10 -0700245 "src/f32-relu/gen/scalar-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700246 "src/f32-rmax/scalar.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800247 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c",
248 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c",
249 "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700250 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c",
251 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c",
252 "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c",
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800253 "src/f32-sigmoid/gen/scalar-p5-div-x1.c",
254 "src/f32-sigmoid/gen/scalar-p5-div-x2.c",
255 "src/f32-sigmoid/gen/scalar-p5-div-x4.c",
Marat Dukhan355ab432020-04-09 19:01:52 -0700256 "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c",
257 "src/f32-spmm/gen/1x1-minmax-scalar.c",
258 "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c",
259 "src/f32-spmm/gen/2x1-minmax-scalar.c",
260 "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c",
261 "src/f32-spmm/gen/4x1-minmax-scalar.c",
262 "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c",
263 "src/f32-spmm/gen/8x1-minmax-scalar.c",
264 "src/f32-spmm/gen/8x2-minmax-scalar.c",
265 "src/f32-spmm/gen/8x4-minmax-scalar.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700266 "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c",
267 "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c",
268 "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700269 "src/f32-vbinary/gen/vadd-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700270 "src/f32-vbinary/gen/vadd-relu-scalar-x1.c",
271 "src/f32-vbinary/gen/vadd-relu-scalar-x2.c",
272 "src/f32-vbinary/gen/vadd-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700273 "src/f32-vbinary/gen/vadd-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700274 "src/f32-vbinary/gen/vadd-scalar-x1.c",
275 "src/f32-vbinary/gen/vadd-scalar-x2.c",
276 "src/f32-vbinary/gen/vadd-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700277 "src/f32-vbinary/gen/vadd-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700278 "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c",
279 "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c",
280 "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700281 "src/f32-vbinary/gen/vaddc-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700282 "src/f32-vbinary/gen/vaddc-relu-scalar-x1.c",
283 "src/f32-vbinary/gen/vaddc-relu-scalar-x2.c",
284 "src/f32-vbinary/gen/vaddc-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700285 "src/f32-vbinary/gen/vaddc-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700286 "src/f32-vbinary/gen/vaddc-scalar-x1.c",
287 "src/f32-vbinary/gen/vaddc-scalar-x2.c",
288 "src/f32-vbinary/gen/vaddc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700289 "src/f32-vbinary/gen/vaddc-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700290 "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c",
291 "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c",
292 "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700293 "src/f32-vbinary/gen/vdiv-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700294 "src/f32-vbinary/gen/vdiv-relu-scalar-x1.c",
295 "src/f32-vbinary/gen/vdiv-relu-scalar-x2.c",
296 "src/f32-vbinary/gen/vdiv-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700297 "src/f32-vbinary/gen/vdiv-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700298 "src/f32-vbinary/gen/vdiv-scalar-x1.c",
299 "src/f32-vbinary/gen/vdiv-scalar-x2.c",
300 "src/f32-vbinary/gen/vdiv-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700301 "src/f32-vbinary/gen/vdiv-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700302 "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c",
303 "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c",
304 "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700305 "src/f32-vbinary/gen/vdivc-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700306 "src/f32-vbinary/gen/vdivc-relu-scalar-x1.c",
307 "src/f32-vbinary/gen/vdivc-relu-scalar-x2.c",
308 "src/f32-vbinary/gen/vdivc-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700309 "src/f32-vbinary/gen/vdivc-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700310 "src/f32-vbinary/gen/vdivc-scalar-x1.c",
311 "src/f32-vbinary/gen/vdivc-scalar-x2.c",
312 "src/f32-vbinary/gen/vdivc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700313 "src/f32-vbinary/gen/vdivc-scalar-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800314 "src/f32-vbinary/gen/vmax-scalar-x1.c",
315 "src/f32-vbinary/gen/vmax-scalar-x2.c",
316 "src/f32-vbinary/gen/vmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700317 "src/f32-vbinary/gen/vmax-scalar-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800318 "src/f32-vbinary/gen/vmaxc-scalar-x1.c",
319 "src/f32-vbinary/gen/vmaxc-scalar-x2.c",
320 "src/f32-vbinary/gen/vmaxc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700321 "src/f32-vbinary/gen/vmaxc-scalar-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800322 "src/f32-vbinary/gen/vmin-scalar-x1.c",
323 "src/f32-vbinary/gen/vmin-scalar-x2.c",
324 "src/f32-vbinary/gen/vmin-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700325 "src/f32-vbinary/gen/vmin-scalar-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800326 "src/f32-vbinary/gen/vminc-scalar-x1.c",
327 "src/f32-vbinary/gen/vminc-scalar-x2.c",
328 "src/f32-vbinary/gen/vminc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700329 "src/f32-vbinary/gen/vminc-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700330 "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c",
331 "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c",
332 "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700333 "src/f32-vbinary/gen/vmul-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700334 "src/f32-vbinary/gen/vmul-relu-scalar-x1.c",
335 "src/f32-vbinary/gen/vmul-relu-scalar-x2.c",
336 "src/f32-vbinary/gen/vmul-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700337 "src/f32-vbinary/gen/vmul-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700338 "src/f32-vbinary/gen/vmul-scalar-x1.c",
339 "src/f32-vbinary/gen/vmul-scalar-x2.c",
340 "src/f32-vbinary/gen/vmul-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700341 "src/f32-vbinary/gen/vmul-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700342 "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c",
343 "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c",
344 "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700345 "src/f32-vbinary/gen/vmulc-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700346 "src/f32-vbinary/gen/vmulc-relu-scalar-x1.c",
347 "src/f32-vbinary/gen/vmulc-relu-scalar-x2.c",
348 "src/f32-vbinary/gen/vmulc-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700349 "src/f32-vbinary/gen/vmulc-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700350 "src/f32-vbinary/gen/vmulc-scalar-x1.c",
351 "src/f32-vbinary/gen/vmulc-scalar-x2.c",
352 "src/f32-vbinary/gen/vmulc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700353 "src/f32-vbinary/gen/vmulc-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700354 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c",
355 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c",
356 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700357 "src/f32-vbinary/gen/vrdivc-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700358 "src/f32-vbinary/gen/vrdivc-relu-scalar-x1.c",
359 "src/f32-vbinary/gen/vrdivc-relu-scalar-x2.c",
360 "src/f32-vbinary/gen/vrdivc-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700361 "src/f32-vbinary/gen/vrdivc-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700362 "src/f32-vbinary/gen/vrdivc-scalar-x1.c",
363 "src/f32-vbinary/gen/vrdivc-scalar-x2.c",
364 "src/f32-vbinary/gen/vrdivc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700365 "src/f32-vbinary/gen/vrdivc-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700366 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c",
367 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c",
368 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700369 "src/f32-vbinary/gen/vrsubc-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700370 "src/f32-vbinary/gen/vrsubc-relu-scalar-x1.c",
371 "src/f32-vbinary/gen/vrsubc-relu-scalar-x2.c",
372 "src/f32-vbinary/gen/vrsubc-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700373 "src/f32-vbinary/gen/vrsubc-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700374 "src/f32-vbinary/gen/vrsubc-scalar-x1.c",
375 "src/f32-vbinary/gen/vrsubc-scalar-x2.c",
376 "src/f32-vbinary/gen/vrsubc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700377 "src/f32-vbinary/gen/vrsubc-scalar-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -0700378 "src/f32-vbinary/gen/vsqrdiff-scalar-x1.c",
379 "src/f32-vbinary/gen/vsqrdiff-scalar-x2.c",
380 "src/f32-vbinary/gen/vsqrdiff-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700381 "src/f32-vbinary/gen/vsqrdiff-scalar-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -0700382 "src/f32-vbinary/gen/vsqrdiffc-scalar-x1.c",
383 "src/f32-vbinary/gen/vsqrdiffc-scalar-x2.c",
384 "src/f32-vbinary/gen/vsqrdiffc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700385 "src/f32-vbinary/gen/vsqrdiffc-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700386 "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c",
387 "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c",
388 "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700389 "src/f32-vbinary/gen/vsub-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700390 "src/f32-vbinary/gen/vsub-relu-scalar-x1.c",
391 "src/f32-vbinary/gen/vsub-relu-scalar-x2.c",
392 "src/f32-vbinary/gen/vsub-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700393 "src/f32-vbinary/gen/vsub-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700394 "src/f32-vbinary/gen/vsub-scalar-x1.c",
395 "src/f32-vbinary/gen/vsub-scalar-x2.c",
396 "src/f32-vbinary/gen/vsub-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700397 "src/f32-vbinary/gen/vsub-scalar-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700398 "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c",
399 "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c",
400 "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700401 "src/f32-vbinary/gen/vsubc-minmax-scalar-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700402 "src/f32-vbinary/gen/vsubc-relu-scalar-x1.c",
403 "src/f32-vbinary/gen/vsubc-relu-scalar-x2.c",
404 "src/f32-vbinary/gen/vsubc-relu-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700405 "src/f32-vbinary/gen/vsubc-relu-scalar-x8.c",
Frank Barchard8e229db2020-07-06 23:31:35 -0700406 "src/f32-vbinary/gen/vsubc-scalar-x1.c",
407 "src/f32-vbinary/gen/vsubc-scalar-x2.c",
408 "src/f32-vbinary/gen/vsubc-scalar-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700409 "src/f32-vbinary/gen/vsubc-scalar-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700410 "src/f32-vlrelu/gen/vlrelu-scalar-x1.c",
411 "src/f32-vlrelu/gen/vlrelu-scalar-x2.c",
412 "src/f32-vlrelu/gen/vlrelu-scalar-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700413 "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c",
414 "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c",
415 "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -0700416 "src/f32-vrnd/gen/vrndd-scalar-libm-x1.c",
417 "src/f32-vrnd/gen/vrndd-scalar-libm-x2.c",
418 "src/f32-vrnd/gen/vrndd-scalar-libm-x4.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700419 "src/f32-vrnd/gen/vrndne-scalar-libm-x1.c",
420 "src/f32-vrnd/gen/vrndne-scalar-libm-x2.c",
421 "src/f32-vrnd/gen/vrndne-scalar-libm-x4.c",
422 "src/f32-vrnd/gen/vrndu-scalar-libm-x1.c",
423 "src/f32-vrnd/gen/vrndu-scalar-libm-x2.c",
424 "src/f32-vrnd/gen/vrndu-scalar-libm-x4.c",
425 "src/f32-vrnd/gen/vrndz-scalar-libm-x1.c",
426 "src/f32-vrnd/gen/vrndz-scalar-libm-x2.c",
427 "src/f32-vrnd/gen/vrndz-scalar-libm-x4.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -0700428 "src/f32-vsqrt/gen/scalar-sqrt-x1.c",
429 "src/f32-vsqrt/gen/scalar-sqrt-x2.c",
430 "src/f32-vsqrt/gen/scalar-sqrt-x4.c",
Marat Dukhan5020b962020-06-08 13:30:10 -0700431 "src/f32-vunary/gen/vabs-scalar-x1.c",
432 "src/f32-vunary/gen/vabs-scalar-x2.c",
433 "src/f32-vunary/gen/vabs-scalar-x4.c",
434 "src/f32-vunary/gen/vneg-scalar-x1.c",
435 "src/f32-vunary/gen/vneg-scalar-x2.c",
436 "src/f32-vunary/gen/vneg-scalar-x4.c",
437 "src/f32-vunary/gen/vsqr-scalar-x1.c",
438 "src/f32-vunary/gen/vsqr-scalar-x2.c",
439 "src/f32-vunary/gen/vsqr-scalar-x4.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800440 "src/math/expminus-scalar-lut64-p2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700441 "src/math/expminus-scalar-lut2048-p1.c",
Marat Dukhan5739f702019-12-22 19:45:09 -0800442 "src/math/expminus-scalar-p5.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700443 "src/math/roundd-scalar-addsub.c",
444 "src/math/roundd-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700445 "src/math/roundd-scalar-floor.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700446 "src/math/roundne-scalar-addsub.c",
447 "src/math/roundne-scalar-nearbyint.c",
448 "src/math/roundne-scalar-rint.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700449 "src/math/roundu-scalar-addsub.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700450 "src/math/roundu-scalar-ceil.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700451 "src/math/roundu-scalar-cvt.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700452 "src/math/roundz-scalar-addsub.c",
453 "src/math/roundz-scalar-cvt.c",
Marat Dukhanffbf96a2020-05-14 02:59:08 -0700454 "src/math/roundz-scalar-trunc.c",
Marat Dukhanf8475d62020-09-17 15:01:43 -0700455 "src/math/sigmoid-scalar-rr2-lut64-p2-div.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700456 "src/math/sigmoid-scalar-rr2-lut2048-p1-div.c",
Marat Dukhanf8475d62020-09-17 15:01:43 -0700457 "src/math/sigmoid-scalar-rr2-p5-div.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700458 "src/qs8-gemm/gen/8x8c4-minmax-scalar.c",
459 "src/qs8-gemm/gen/12x4c4-minmax-scalar.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -0700460 "src/qs8-requantization/fp32-scalar-lrintf.c",
461 "src/qs8-requantization/fp32-scalar-magic.c",
462 "src/qs8-requantization/precise-scalar-signed64.c",
463 "src/qs8-requantization/precise-scalar-unsigned32.c",
464 "src/qs8-requantization/precise-scalar-unsigned64.c",
465 "src/qs8-requantization/q31-scalar.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -0700466 "src/qu8-avgpool/9p8x-minmax-scalar-c1.c",
467 "src/qu8-avgpool/9x-minmax-scalar-c1.c",
468 "src/qu8-dwconv/up1x9-minmax-scalar.c",
469 "src/qu8-gavgpool/7p7x-minmax-scalar-c1.c",
470 "src/qu8-gavgpool/7x-minmax-scalar-c1.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700471 "src/qu8-gemm/2x2-minmax-scalar.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700472 "src/qu8-gemm/gen/8x8c4-minmax-scalar.c",
473 "src/qu8-gemm/gen/12x4c4-minmax-scalar.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -0700474 "src/qu8-igemm/2x2-minmax-scalar.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -0700475 "src/qu8-requantization/fp32-scalar-lrintf.c",
476 "src/qu8-requantization/fp32-scalar-magic.c",
477 "src/qu8-requantization/precise-scalar-signed64.c",
478 "src/qu8-requantization/precise-scalar-unsigned32.c",
479 "src/qu8-requantization/precise-scalar-unsigned64.c",
480 "src/qu8-requantization/q31-scalar.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -0700481 "src/qu8-vadd/minmax-scalar.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700482 "src/u8-clamp/scalar-x4.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700483 "src/u8-lut32norm/scalar.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700484 "src/u8-maxpool/9p8x-minmax-scalar-c1.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700485 "src/u8-rmax/scalar.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700486 "src/x8-lut/scalar.c",
487 "src/x8-zip/x2-scalar.c",
488 "src/x8-zip/x3-scalar.c",
489 "src/x8-zip/x4-scalar.c",
490 "src/x8-zip/xm-scalar.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -0700491 "src/x32-fill/scalar-float.c",
492 "src/x32-fill/scalar-int.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700493 "src/x32-packx/x2-scalar.c",
494 "src/x32-packx/x3-scalar.c",
495 "src/x32-packx/x4-scalar.c",
Marat Dukhan63523d42020-05-22 17:07:33 -0700496 "src/x32-pad/scalar-float.c",
Frank Barchardc9c320e2020-08-07 22:12:46 -0700497 "src/x32-pad/scalar-int.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700498 "src/x32-unpool/scalar.c",
499 "src/x32-zip/x2-scalar.c",
500 "src/x32-zip/x3-scalar.c",
501 "src/x32-zip/x4-scalar.c",
502 "src/x32-zip/xm-scalar.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -0700503]
504
Marat Dukhan436ebe62019-12-04 15:10:12 -0800505WASM_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -0700506 "src/f32-avgpool/9p8x-minmax-wasm-c1.c",
507 "src/f32-avgpool/9x-minmax-wasm-c1.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700508 "src/f32-clamp/gen/wasm-x1.c",
509 "src/f32-clamp/gen/wasm-x2.c",
510 "src/f32-clamp/gen/wasm-x4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700511 "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c",
512 "src/f32-dwconv/gen/up1x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700513 "src/f32-dwconv/gen/up1x4-wasm-acc2.c",
514 "src/f32-dwconv/gen/up1x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700515 "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c",
516 "src/f32-dwconv/gen/up1x9-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700517 "src/f32-dwconv/gen/up1x9-wasm-acc2.c",
518 "src/f32-dwconv/gen/up1x9-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700519 "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c",
520 "src/f32-dwconv/gen/up1x25-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700521 "src/f32-dwconv/gen/up1x25-wasm-acc2.c",
522 "src/f32-dwconv/gen/up1x25-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700523 "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c",
524 "src/f32-dwconv/gen/up2x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700525 "src/f32-dwconv/gen/up2x4-wasm-acc2.c",
526 "src/f32-dwconv/gen/up2x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700527 "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c",
528 "src/f32-dwconv/gen/up2x9-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700529 "src/f32-dwconv/gen/up2x9-wasm-acc2.c",
530 "src/f32-dwconv/gen/up2x9-wasm.c",
Marat Dukhan163a7e62020-04-09 04:19:26 -0700531 "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c",
532 "src/f32-dwconv/gen/up2x25-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700533 "src/f32-dwconv/gen/up2x25-wasm-acc2.c",
534 "src/f32-dwconv/gen/up2x25-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700535 "src/f32-gavgpool/7p7x-minmax-wasm-c1.c",
536 "src/f32-gavgpool/7x-minmax-wasm-c1.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700537 "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c",
538 "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c",
539 "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c",
540 "src/f32-gemm/gen/1x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700541 "src/f32-gemm/gen/1x4-relu-wasm.c",
542 "src/f32-gemm/gen/1x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700543 "src/f32-gemm/gen/2x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700544 "src/f32-gemm/gen/2x4-relu-wasm.c",
545 "src/f32-gemm/gen/2x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700546 "src/f32-gemm/gen/4x2-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700547 "src/f32-gemm/gen/4x2-relu-wasm.c",
548 "src/f32-gemm/gen/4x2-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700549 "src/f32-gemm/gen/4x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700550 "src/f32-gemm/gen/4x4-relu-wasm.c",
551 "src/f32-gemm/gen/4x4-wasm.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700552 "src/f32-hswish/gen/hswish-wasm-x1.c",
553 "src/f32-hswish/gen/hswish-wasm-x2.c",
554 "src/f32-hswish/gen/hswish-wasm-x4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700555 "src/f32-igemm/gen/1x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700556 "src/f32-igemm/gen/1x4-relu-wasm.c",
557 "src/f32-igemm/gen/1x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700558 "src/f32-igemm/gen/2x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700559 "src/f32-igemm/gen/2x4-relu-wasm.c",
560 "src/f32-igemm/gen/2x4-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700561 "src/f32-igemm/gen/4x2-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700562 "src/f32-igemm/gen/4x2-relu-wasm.c",
563 "src/f32-igemm/gen/4x2-wasm.c",
Marat Dukhan1c587112020-04-08 20:04:28 -0700564 "src/f32-igemm/gen/4x4-minmax-wasm.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700565 "src/f32-igemm/gen/4x4-relu-wasm.c",
566 "src/f32-igemm/gen/4x4-wasm.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700567 "src/f32-maxpool/9p8x-minmax-wasm-c1.c",
568 "src/f32-pavgpool/9p8x-minmax-wasm-c1.c",
569 "src/f32-pavgpool/9x-minmax-wasm-c1.c",
Marat Dukhan7c1f8082020-06-25 13:26:20 -0700570 "src/f32-prelu/gen/wasm-2x1.c",
571 "src/f32-prelu/gen/wasm-2x4.c",
Frank Barchardfb158e22020-07-15 16:10:10 -0700572 "src/f32-relu/gen/wasm-x1.c",
573 "src/f32-relu/gen/wasm-x2.c",
574 "src/f32-relu/gen/wasm-x4.c",
Frank Barchard37297a62020-08-27 12:15:10 -0700575 "src/f32-relu/gen/wasm-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700576 "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c",
577 "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c",
578 "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700579 "src/f32-vbinary/gen/vadd-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700580 "src/f32-vbinary/gen/vadd-relu-wasm-x1.c",
581 "src/f32-vbinary/gen/vadd-relu-wasm-x2.c",
582 "src/f32-vbinary/gen/vadd-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700583 "src/f32-vbinary/gen/vadd-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700584 "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c",
585 "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c",
586 "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c",
587 "src/f32-vbinary/gen/vaddc-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700588 "src/f32-vbinary/gen/vaddc-relu-wasm-x1.c",
589 "src/f32-vbinary/gen/vaddc-relu-wasm-x2.c",
590 "src/f32-vbinary/gen/vaddc-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700591 "src/f32-vbinary/gen/vaddc-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700592 "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c",
593 "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c",
594 "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c",
595 "src/f32-vbinary/gen/vdiv-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700596 "src/f32-vbinary/gen/vdiv-relu-wasm-x1.c",
597 "src/f32-vbinary/gen/vdiv-relu-wasm-x2.c",
598 "src/f32-vbinary/gen/vdiv-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700599 "src/f32-vbinary/gen/vdiv-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700600 "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c",
601 "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c",
602 "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c",
603 "src/f32-vbinary/gen/vdivc-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700604 "src/f32-vbinary/gen/vdivc-relu-wasm-x1.c",
605 "src/f32-vbinary/gen/vdivc-relu-wasm-x2.c",
606 "src/f32-vbinary/gen/vdivc-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700607 "src/f32-vbinary/gen/vdivc-relu-wasm-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800608 "src/f32-vbinary/gen/vmax-wasm-x1.c",
609 "src/f32-vbinary/gen/vmax-wasm-x2.c",
610 "src/f32-vbinary/gen/vmax-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700611 "src/f32-vbinary/gen/vmax-wasm-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800612 "src/f32-vbinary/gen/vmaxc-wasm-x1.c",
613 "src/f32-vbinary/gen/vmaxc-wasm-x2.c",
614 "src/f32-vbinary/gen/vmaxc-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700615 "src/f32-vbinary/gen/vmaxc-wasm-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800616 "src/f32-vbinary/gen/vmin-wasm-x1.c",
617 "src/f32-vbinary/gen/vmin-wasm-x2.c",
618 "src/f32-vbinary/gen/vmin-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700619 "src/f32-vbinary/gen/vmin-wasm-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -0800620 "src/f32-vbinary/gen/vminc-wasm-x1.c",
621 "src/f32-vbinary/gen/vminc-wasm-x2.c",
622 "src/f32-vbinary/gen/vminc-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700623 "src/f32-vbinary/gen/vminc-wasm-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700624 "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c",
625 "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c",
626 "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700627 "src/f32-vbinary/gen/vmul-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700628 "src/f32-vbinary/gen/vmul-relu-wasm-x1.c",
629 "src/f32-vbinary/gen/vmul-relu-wasm-x2.c",
630 "src/f32-vbinary/gen/vmul-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700631 "src/f32-vbinary/gen/vmul-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700632 "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c",
633 "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c",
634 "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c",
635 "src/f32-vbinary/gen/vmulc-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700636 "src/f32-vbinary/gen/vmulc-relu-wasm-x1.c",
637 "src/f32-vbinary/gen/vmulc-relu-wasm-x2.c",
638 "src/f32-vbinary/gen/vmulc-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700639 "src/f32-vbinary/gen/vmulc-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700640 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c",
641 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c",
642 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c",
643 "src/f32-vbinary/gen/vrdivc-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700644 "src/f32-vbinary/gen/vrdivc-relu-wasm-x1.c",
645 "src/f32-vbinary/gen/vrdivc-relu-wasm-x2.c",
646 "src/f32-vbinary/gen/vrdivc-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700647 "src/f32-vbinary/gen/vrdivc-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700648 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c",
649 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c",
650 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c",
651 "src/f32-vbinary/gen/vrsubc-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700652 "src/f32-vbinary/gen/vrsubc-relu-wasm-x1.c",
653 "src/f32-vbinary/gen/vrsubc-relu-wasm-x2.c",
654 "src/f32-vbinary/gen/vrsubc-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700655 "src/f32-vbinary/gen/vrsubc-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700656 "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c",
657 "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c",
658 "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c",
659 "src/f32-vbinary/gen/vsub-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700660 "src/f32-vbinary/gen/vsub-relu-wasm-x1.c",
661 "src/f32-vbinary/gen/vsub-relu-wasm-x2.c",
662 "src/f32-vbinary/gen/vsub-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700663 "src/f32-vbinary/gen/vsub-relu-wasm-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700664 "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c",
665 "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c",
666 "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c",
667 "src/f32-vbinary/gen/vsubc-minmax-wasm-x8.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700668 "src/f32-vbinary/gen/vsubc-relu-wasm-x1.c",
669 "src/f32-vbinary/gen/vsubc-relu-wasm-x2.c",
670 "src/f32-vbinary/gen/vsubc-relu-wasm-x4.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700671 "src/f32-vbinary/gen/vsubc-relu-wasm-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -0700672 "src/f32-vlrelu/gen/vlrelu-wasm-x1.c",
673 "src/f32-vlrelu/gen/vlrelu-wasm-x2.c",
674 "src/f32-vlrelu/gen/vlrelu-wasm-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -0700675 "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c",
676 "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c",
677 "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c",
Marat Dukhan436ebe62019-12-04 15:10:12 -0800678]
679
Marat Dukhan290055c2020-06-09 12:24:29 -0700680WASMSIMD_UKERNELS = [
Marat Dukhan40f05522020-07-16 22:33:12 -0700681 "src/f32-argmaxpool/4x-wasmsimd-c4.c",
682 "src/f32-argmaxpool/9p8x-wasmsimd-c4.c",
683 "src/f32-argmaxpool/9x-wasmsimd-c4.c",
Marat Dukhan3b7432d2020-07-16 17:46:32 -0700684 "src/f32-avgpool/9p8x-minmax-wasmsimd-arm-c4.c",
685 "src/f32-avgpool/9p8x-minmax-wasmsimd-x86-c4.c",
686 "src/f32-avgpool/9x-minmax-wasmsimd-arm-c4.c",
687 "src/f32-avgpool/9x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan3fa52c82020-07-08 12:54:33 -0700688 "src/f32-clamp/gen/wasmsimd-arm-x4.c",
689 "src/f32-clamp/gen/wasmsimd-arm-x8.c",
690 "src/f32-clamp/gen/wasmsimd-x86-x4.c",
691 "src/f32-clamp/gen/wasmsimd-x86-x8.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700692 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700693 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700694 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700695 "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700696 "src/f32-dwconv/gen/up4x4-wasmsimd.c",
697 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700698 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700699 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700700 "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700701 "src/f32-dwconv/gen/up4x9-wasmsimd.c",
702 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-arm.c",
703 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-x86.c",
704 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-arm.c",
705 "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-x86.c",
706 "src/f32-dwconv/gen/up4x25-wasmsimd.c",
707 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700708 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700709 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700710 "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700711 "src/f32-dwconv/gen/up8x4-wasmsimd.c",
712 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700713 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700714 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-arm.c",
Marat Dukhanac014d72020-06-16 08:36:47 -0700715 "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-x86.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700716 "src/f32-dwconv/gen/up8x9-wasmsimd.c",
717 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-arm.c",
718 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-x86.c",
719 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-arm.c",
720 "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-x86.c",
721 "src/f32-dwconv/gen/up8x25-wasmsimd.c",
722 "src/f32-gavgpool-cw/wasmsimd-arm-x4.c",
723 "src/f32-gavgpool-cw/wasmsimd-x86-x4.c",
Marat Dukhanc6016802020-07-16 18:51:28 -0700724 "src/f32-gavgpool/7p7x-minmax-wasmsimd-arm-c4.c",
725 "src/f32-gavgpool/7p7x-minmax-wasmsimd-x86-c4.c",
726 "src/f32-gavgpool/7x-minmax-wasmsimd-arm-c4.c",
727 "src/f32-gavgpool/7x-minmax-wasmsimd-x86-c4.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700728 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-arm.c",
729 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-x86.c",
730 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-arm.c",
731 "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-x86.c",
732 "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-arm.c",
733 "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-x86.c",
734 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-arm.c",
735 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-x86.c",
736 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-arm.c",
737 "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-x86.c",
738 "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-arm.c",
739 "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-x86.c",
740 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-arm.c",
741 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-x86.c",
742 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-arm.c",
743 "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-x86.c",
744 "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-arm.c",
745 "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-x86.c",
746 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-arm.c",
747 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-x86.c",
748 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-arm.c",
749 "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-x86.c",
750 "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-arm.c",
751 "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-x86.c",
752 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-arm.c",
753 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-x86.c",
754 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-arm.c",
755 "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-x86.c",
756 "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-arm.c",
757 "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-x86.c",
758 "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c",
759 "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c",
760 "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-arm.c",
761 "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-x86.c",
762 "src/f32-gemm/gen/1x8-relu-wasmsimd-splat.c",
763 "src/f32-gemm/gen/1x8-wasmsimd-splat.c",
764 "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-arm.c",
765 "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-x86.c",
766 "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c",
767 "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c",
768 "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-arm.c",
769 "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-x86.c",
770 "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-arm.c",
771 "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-x86.c",
772 "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-arm.c",
773 "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-x86.c",
774 "src/f32-gemm/gen/4x2c4-relu-wasmsimd.c",
775 "src/f32-gemm/gen/4x2c4-wasmsimd.c",
776 "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c",
777 "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c",
778 "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-arm.c",
779 "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-x86.c",
780 "src/f32-gemm/gen/4x8-relu-wasmsimd-splat.c",
781 "src/f32-gemm/gen/4x8-wasmsimd-splat.c",
782 "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-arm.c",
783 "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-x86.c",
784 "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c",
785 "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c",
786 "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-arm.c",
787 "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-x86.c",
788 "src/f32-gemm/gen/5x8-relu-wasmsimd-splat.c",
789 "src/f32-gemm/gen/5x8-wasmsimd-splat.c",
790 "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-arm.c",
791 "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-x86.c",
792 "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c",
793 "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c",
794 "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-arm.c",
795 "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-x86.c",
796 "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-arm.c",
797 "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-x86.c",
Marat Dukhanefaac272020-07-16 16:58:07 -0700798 "src/f32-hswish/gen/hswish-wasmsimd-x4.c",
799 "src/f32-hswish/gen/hswish-wasmsimd-x8.c",
800 "src/f32-hswish/gen/hswish-wasmsimd-x16.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700801 "src/f32-ibilinear/gen/wasmsimd-c4.c",
802 "src/f32-ibilinear/gen/wasmsimd-c8.c",
XNNPACK Team965272b2020-10-23 21:10:15 -0700803 "src/f32-ibilinear-chw/gen/wasmsimd-p4.c",
804 "src/f32-ibilinear-chw/gen/wasmsimd-p8.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700805 "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c",
806 "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c",
807 "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-arm.c",
808 "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-x86.c",
809 "src/f32-igemm/gen/1x8-relu-wasmsimd-splat.c",
810 "src/f32-igemm/gen/1x8-wasmsimd-splat.c",
811 "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-arm.c",
812 "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-x86.c",
813 "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c",
814 "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c",
815 "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-arm.c",
816 "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-x86.c",
817 "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-arm.c",
818 "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-x86.c",
819 "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-arm.c",
820 "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-x86.c",
821 "src/f32-igemm/gen/4x2c4-relu-wasmsimd.c",
822 "src/f32-igemm/gen/4x2c4-wasmsimd.c",
823 "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c",
824 "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c",
825 "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-arm.c",
826 "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-x86.c",
827 "src/f32-igemm/gen/4x8-relu-wasmsimd-splat.c",
828 "src/f32-igemm/gen/4x8-wasmsimd-splat.c",
829 "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-arm.c",
830 "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-x86.c",
831 "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c",
832 "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c",
833 "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-arm.c",
834 "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-x86.c",
835 "src/f32-igemm/gen/5x8-relu-wasmsimd-splat.c",
836 "src/f32-igemm/gen/5x8-wasmsimd-splat.c",
837 "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-arm.c",
838 "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-x86.c",
839 "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c",
840 "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c",
841 "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-arm.c",
842 "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-x86.c",
843 "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-arm.c",
844 "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-x86.c",
Marat Dukhanf6e24802020-07-08 22:20:40 -0700845 "src/f32-maxpool/9p8x-minmax-wasmsimd-arm-c4.c",
846 "src/f32-maxpool/9p8x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan1483c532020-07-16 18:08:19 -0700847 "src/f32-pavgpool/9p8x-minmax-wasmsimd-arm-c4.c",
848 "src/f32-pavgpool/9p8x-minmax-wasmsimd-x86-c4.c",
849 "src/f32-pavgpool/9x-minmax-wasmsimd-arm-c4.c",
850 "src/f32-pavgpool/9x-minmax-wasmsimd-x86-c4.c",
Marat Dukhan0d0d8822020-07-23 23:37:56 -0700851 "src/f32-ppmm/gen/4x8-minmax-wasmsimd-splat-arm.c",
852 "src/f32-ppmm/gen/4x8-minmax-wasmsimd-splat-x86.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700853 "src/f32-prelu/gen/wasmsimd-bitselect-1x4.c",
854 "src/f32-prelu/gen/wasmsimd-bitselect-1x8.c",
855 "src/f32-prelu/gen/wasmsimd-bitselect-1x16.c",
Marat Dukhan195f8eb2020-06-25 12:50:57 -0700856 "src/f32-prelu/gen/wasmsimd-bitselect-2x4.c",
857 "src/f32-prelu/gen/wasmsimd-bitselect-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700858 "src/f32-prelu/gen/wasmsimd-bitselect-2x16.c",
859 "src/f32-prelu/gen/wasmsimd-bitselect-4x4.c",
860 "src/f32-prelu/gen/wasmsimd-bitselect-4x8.c",
861 "src/f32-prelu/gen/wasmsimd-bitselect-4x16.c",
862 "src/f32-prelu/gen/wasmsimd-minmax-1x4.c",
863 "src/f32-prelu/gen/wasmsimd-minmax-1x8.c",
864 "src/f32-prelu/gen/wasmsimd-minmax-1x16.c",
Marat Dukhan195f8eb2020-06-25 12:50:57 -0700865 "src/f32-prelu/gen/wasmsimd-minmax-2x4.c",
866 "src/f32-prelu/gen/wasmsimd-minmax-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -0700867 "src/f32-prelu/gen/wasmsimd-minmax-2x16.c",
868 "src/f32-prelu/gen/wasmsimd-minmax-4x4.c",
869 "src/f32-prelu/gen/wasmsimd-minmax-4x8.c",
870 "src/f32-prelu/gen/wasmsimd-minmax-4x16.c",
Marat Dukhan52238f02020-07-16 15:30:28 -0700871 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x4.c",
Marat Dukhan52238f02020-07-16 15:30:28 -0700872 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x8-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700873 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x8.c",
Marat Dukhan52238f02020-07-16 15:30:28 -0700874 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x12-acc2.c",
875 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x12-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700876 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x12.c",
Marat Dukhan52238f02020-07-16 15:30:28 -0700877 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x16-acc2.c",
878 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x16-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700879 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x16.c",
Marat Dukhan52238f02020-07-16 15:30:28 -0700880 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x20-acc2.c",
881 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x20-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700882 "src/f32-raddstoreexpminusmax/gen/wasmsimd-p5-x20.c",
Frank Barchardfb158e22020-07-15 16:10:10 -0700883 "src/f32-relu/gen/wasmsimd-x4.c",
884 "src/f32-relu/gen/wasmsimd-x8.c",
Frank Barchard37297a62020-08-27 12:15:10 -0700885 "src/f32-relu/gen/wasmsimd-x16.c",
Marat Dukhan8c417962020-07-08 12:27:50 -0700886 "src/f32-rmax/wasmsimd-arm.c",
887 "src/f32-rmax/wasmsimd-x86.c",
Marat Dukhand187a5b2020-07-20 01:07:17 -0700888 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x4.c",
889 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x8.c",
890 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x12.c",
891 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x16.c",
892 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x20.c",
893 "src/f32-sigmoid/gen/wasmsimd-lut64-p2-div-x24.c",
Frank Barchard04336c12020-10-22 16:48:55 -0700894 "src/f32-sigmoid/gen/wasmsimd-p5-div-x4.c",
895 "src/f32-sigmoid/gen/wasmsimd-p5-div-x8.c",
896 "src/f32-sigmoid/gen/wasmsimd-p5-div-x12.c",
897 "src/f32-sigmoid/gen/wasmsimd-p5-div-x16.c",
898 "src/f32-sigmoid/gen/wasmsimd-p5-div-x20.c",
899 "src/f32-sigmoid/gen/wasmsimd-p5-div-x24.c",
900 "src/f32-spmm/gen/4x1-minmax-wasmsimd-arm-unroll2.c",
901 "src/f32-spmm/gen/4x1-minmax-wasmsimd-arm-unroll4.c",
902 "src/f32-spmm/gen/4x1-minmax-wasmsimd-arm.c",
903 "src/f32-spmm/gen/4x1-minmax-wasmsimd-x86-unroll2.c",
904 "src/f32-spmm/gen/4x1-minmax-wasmsimd-x86-unroll4.c",
905 "src/f32-spmm/gen/4x1-minmax-wasmsimd-x86.c",
906 "src/f32-spmm/gen/8x1-minmax-wasmsimd-arm-unroll2.c",
907 "src/f32-spmm/gen/8x1-minmax-wasmsimd-arm-unroll4.c",
908 "src/f32-spmm/gen/8x1-minmax-wasmsimd-arm.c",
909 "src/f32-spmm/gen/8x1-minmax-wasmsimd-x86-unroll2.c",
910 "src/f32-spmm/gen/8x1-minmax-wasmsimd-x86-unroll4.c",
911 "src/f32-spmm/gen/8x1-minmax-wasmsimd-x86.c",
912 "src/f32-spmm/gen/16x1-minmax-wasmsimd-arm-unroll2.c",
913 "src/f32-spmm/gen/16x1-minmax-wasmsimd-arm-unroll4.c",
914 "src/f32-spmm/gen/16x1-minmax-wasmsimd-arm.c",
915 "src/f32-spmm/gen/16x1-minmax-wasmsimd-x86-unroll2.c",
916 "src/f32-spmm/gen/16x1-minmax-wasmsimd-x86-unroll4.c",
917 "src/f32-spmm/gen/16x1-minmax-wasmsimd-x86.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700918 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x4.c",
919 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700920 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700921 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x4.c",
922 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700923 "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700924 "src/f32-vbinary/gen/vadd-relu-wasmsimd-x4.c",
925 "src/f32-vbinary/gen/vadd-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700926 "src/f32-vbinary/gen/vadd-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700927 "src/f32-vbinary/gen/vadd-wasmsimd-x4.c",
928 "src/f32-vbinary/gen/vadd-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700929 "src/f32-vbinary/gen/vadd-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700930 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x4.c",
931 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700932 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700933 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x4.c",
934 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700935 "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700936 "src/f32-vbinary/gen/vaddc-relu-wasmsimd-x4.c",
937 "src/f32-vbinary/gen/vaddc-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700938 "src/f32-vbinary/gen/vaddc-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700939 "src/f32-vbinary/gen/vaddc-wasmsimd-x4.c",
940 "src/f32-vbinary/gen/vaddc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700941 "src/f32-vbinary/gen/vaddc-wasmsimd-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700942 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x4.c",
943 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700944 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700945 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x4.c",
946 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700947 "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700948 "src/f32-vbinary/gen/vdiv-relu-wasmsimd-x4.c",
949 "src/f32-vbinary/gen/vdiv-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700950 "src/f32-vbinary/gen/vdiv-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700951 "src/f32-vbinary/gen/vdiv-wasmsimd-x4.c",
952 "src/f32-vbinary/gen/vdiv-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700953 "src/f32-vbinary/gen/vdiv-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700954 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x4.c",
955 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700956 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700957 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x4.c",
958 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700959 "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700960 "src/f32-vbinary/gen/vdivc-relu-wasmsimd-x4.c",
961 "src/f32-vbinary/gen/vdivc-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700962 "src/f32-vbinary/gen/vdivc-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700963 "src/f32-vbinary/gen/vdivc-wasmsimd-x4.c",
964 "src/f32-vbinary/gen/vdivc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700965 "src/f32-vbinary/gen/vdivc-wasmsimd-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700966 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x4.c",
967 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700968 "src/f32-vbinary/gen/vmax-wasmsimd-arm-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700969 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x4.c",
970 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700971 "src/f32-vbinary/gen/vmax-wasmsimd-x86-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700972 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x4.c",
973 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700974 "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700975 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x4.c",
976 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700977 "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700978 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x4.c",
979 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700980 "src/f32-vbinary/gen/vmin-wasmsimd-arm-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700981 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x4.c",
982 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700983 "src/f32-vbinary/gen/vmin-wasmsimd-x86-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700984 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x4.c",
985 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700986 "src/f32-vbinary/gen/vminc-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -0700987 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x4.c",
988 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700989 "src/f32-vbinary/gen/vminc-wasmsimd-x86-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700990 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x4.c",
991 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700992 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -0700993 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x4.c",
994 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700995 "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -0700996 "src/f32-vbinary/gen/vmul-relu-wasmsimd-x4.c",
997 "src/f32-vbinary/gen/vmul-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -0700998 "src/f32-vbinary/gen/vmul-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -0700999 "src/f32-vbinary/gen/vmul-wasmsimd-x4.c",
1000 "src/f32-vbinary/gen/vmul-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001001 "src/f32-vbinary/gen/vmul-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001002 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x4.c",
1003 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001004 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001005 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x4.c",
1006 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001007 "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -07001008 "src/f32-vbinary/gen/vmulc-relu-wasmsimd-x4.c",
1009 "src/f32-vbinary/gen/vmulc-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001010 "src/f32-vbinary/gen/vmulc-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07001011 "src/f32-vbinary/gen/vmulc-wasmsimd-x4.c",
1012 "src/f32-vbinary/gen/vmulc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001013 "src/f32-vbinary/gen/vmulc-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001014 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x4.c",
1015 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001016 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001017 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x4.c",
1018 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001019 "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -07001020 "src/f32-vbinary/gen/vrdivc-relu-wasmsimd-x4.c",
1021 "src/f32-vbinary/gen/vrdivc-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001022 "src/f32-vbinary/gen/vrdivc-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07001023 "src/f32-vbinary/gen/vrdivc-wasmsimd-x4.c",
1024 "src/f32-vbinary/gen/vrdivc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001025 "src/f32-vbinary/gen/vrdivc-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001026 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x4.c",
1027 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001028 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001029 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x4.c",
1030 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001031 "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -07001032 "src/f32-vbinary/gen/vrsubc-relu-wasmsimd-x4.c",
1033 "src/f32-vbinary/gen/vrsubc-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001034 "src/f32-vbinary/gen/vrsubc-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07001035 "src/f32-vbinary/gen/vrsubc-wasmsimd-x4.c",
1036 "src/f32-vbinary/gen/vrsubc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001037 "src/f32-vbinary/gen/vrsubc-wasmsimd-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -07001038 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x4.c",
1039 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001040 "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001041 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x4.c",
1042 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001043 "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -07001044 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x4.c",
1045 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001046 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x16.c",
Marat Dukhan93d1ba12020-06-26 12:33:35 -07001047 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x4.c",
1048 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001049 "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -07001050 "src/f32-vbinary/gen/vsub-relu-wasmsimd-x4.c",
1051 "src/f32-vbinary/gen/vsub-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001052 "src/f32-vbinary/gen/vsub-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07001053 "src/f32-vbinary/gen/vsub-wasmsimd-x4.c",
1054 "src/f32-vbinary/gen/vsub-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001055 "src/f32-vbinary/gen/vsub-wasmsimd-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001056 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x4.c",
1057 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001058 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x16.c",
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07001059 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x4.c",
1060 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001061 "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x16.c",
Frank Barchard674778d2020-08-08 10:17:25 -07001062 "src/f32-vbinary/gen/vsubc-relu-wasmsimd-x4.c",
1063 "src/f32-vbinary/gen/vsubc-relu-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001064 "src/f32-vbinary/gen/vsubc-relu-wasmsimd-x16.c",
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07001065 "src/f32-vbinary/gen/vsubc-wasmsimd-x4.c",
1066 "src/f32-vbinary/gen/vsubc-wasmsimd-x8.c",
Frank Barchard9c7308f2020-08-31 17:03:01 -07001067 "src/f32-vbinary/gen/vsubc-wasmsimd-x16.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001068 "src/f32-vlrelu/gen/vlrelu-wasmsimd-bitselect-x4.c",
1069 "src/f32-vlrelu/gen/vlrelu-wasmsimd-bitselect-x8.c",
1070 "src/f32-vlrelu/gen/vlrelu-wasmsimd-minmax-x4.c",
1071 "src/f32-vlrelu/gen/vlrelu-wasmsimd-minmax-x8.c",
Marat Dukhand816f622020-07-15 10:14:39 -07001072 "src/f32-vmulcaddc/gen/c4-minmax-wasmsimd-arm-2x.c",
Marat Dukhand816f622020-07-15 10:14:39 -07001073 "src/f32-vmulcaddc/gen/c4-minmax-wasmsimd-x86-2x.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001074 "src/f32-vmulcaddc/gen/c8-minmax-wasmsimd-arm-2x.c",
Marat Dukhand816f622020-07-15 10:14:39 -07001075 "src/f32-vmulcaddc/gen/c8-minmax-wasmsimd-x86-2x.c",
Marat Dukhanb82b2cd2020-07-16 02:23:42 -07001076 "src/f32-vrnd/gen/vrndd-wasmsimd-addsub-x4.c",
1077 "src/f32-vrnd/gen/vrndd-wasmsimd-addsub-x8.c",
1078 "src/f32-vrnd/gen/vrndd-wasmsimd-cvt-x4.c",
1079 "src/f32-vrnd/gen/vrndd-wasmsimd-cvt-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001080 "src/f32-vrnd/gen/vrndne-wasmsimd-addsub-x4.c",
1081 "src/f32-vrnd/gen/vrndne-wasmsimd-addsub-x8.c",
1082 "src/f32-vrnd/gen/vrndu-wasmsimd-addsub-x4.c",
1083 "src/f32-vrnd/gen/vrndu-wasmsimd-addsub-x8.c",
1084 "src/f32-vrnd/gen/vrndu-wasmsimd-cvt-x4.c",
1085 "src/f32-vrnd/gen/vrndu-wasmsimd-cvt-x8.c",
1086 "src/f32-vrnd/gen/vrndz-wasmsimd-addsub-x4.c",
1087 "src/f32-vrnd/gen/vrndz-wasmsimd-addsub-x8.c",
1088 "src/f32-vrnd/gen/vrndz-wasmsimd-cvt-x4.c",
1089 "src/f32-vrnd/gen/vrndz-wasmsimd-cvt-x8.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001090 "src/f32-vsqrt/gen/wasmsimd-sqrt-x4.c",
1091 "src/f32-vsqrt/gen/wasmsimd-sqrt-x8.c",
Marat Dukhan37c83512020-06-29 13:25:53 -07001092 "src/f32-vunary/gen/vabs-wasmsimd-x4.c",
1093 "src/f32-vunary/gen/vabs-wasmsimd-x8.c",
1094 "src/f32-vunary/gen/vneg-wasmsimd-x4.c",
1095 "src/f32-vunary/gen/vneg-wasmsimd-x8.c",
1096 "src/f32-vunary/gen/vsqr-wasmsimd-x4.c",
1097 "src/f32-vunary/gen/vsqr-wasmsimd-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001098 "src/math/roundd-wasmsimd-addsub.c",
1099 "src/math/roundd-wasmsimd-cvt.c",
1100 "src/math/roundne-wasmsimd-addsub.c",
1101 "src/math/roundu-wasmsimd-addsub.c",
1102 "src/math/roundu-wasmsimd-cvt.c",
1103 "src/math/roundz-wasmsimd-addsub.c",
1104 "src/math/roundz-wasmsimd-cvt.c",
1105 "src/math/sigmoid-wasmsimd-rr2-lut64-p2-div.c",
1106 "src/math/sigmoid-wasmsimd-rr2-p5-div.c",
Marat Dukhancc8f34c2020-08-05 16:36:38 -07001107 "src/qs8-dwconv/gen/up8x9-minmax-wasmsimd-mul16.c",
1108 "src/qs8-dwconv/gen/up16x9-minmax-wasmsimd-mul16.c",
1109 "src/qs8-dwconv/gen/up24x9-minmax-wasmsimd-mul16.c",
Marat Dukhanb5e3d172020-08-06 13:29:53 -07001110 "src/qs8-gavgpool/gen/7p7x-minmax-wasmsimd-c8-acc2.c",
1111 "src/qs8-gavgpool/gen/7p7x-minmax-wasmsimd-c16-acc2.c",
1112 "src/qs8-gavgpool/gen/7p7x-minmax-wasmsimd-c24-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001113 "src/qs8-gavgpool/gen/7x-minmax-wasmsimd-c8-acc2.c",
1114 "src/qs8-gavgpool/gen/7x-minmax-wasmsimd-c16-acc2.c",
1115 "src/qs8-gavgpool/gen/7x-minmax-wasmsimd-c24-acc2.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001116 "src/qs8-gemm/gen/1x4c8-minmax-wasmsimd-ld64.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001117 "src/qs8-gemm/gen/1x4c8-minmax-wasmsimd-ld128.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001118 "src/qs8-gemm/gen/1x4c8-xw-minmax-wasmsimd.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001119 "src/qs8-gemm/gen/2x4c8-minmax-wasmsimd-ld64.c",
1120 "src/qs8-gemm/gen/2x4c8-minmax-wasmsimd-ld128.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001121 "src/qs8-gemm/gen/2x4c8-xw-minmax-wasmsimd.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001122 "src/qs8-gemm/gen/3x4c8-minmax-wasmsimd-ld64.c",
1123 "src/qs8-gemm/gen/3x4c8-minmax-wasmsimd-ld128.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001124 "src/qs8-gemm/gen/3x4c8-xw-minmax-wasmsimd.c",
1125 "src/qs8-igemm/gen/1x4c8-minmax-wasmsimd-ld64.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001126 "src/qs8-igemm/gen/1x4c8-minmax-wasmsimd-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001127 "src/qs8-igemm/gen/2x4c8-minmax-wasmsimd-ld64.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001128 "src/qs8-igemm/gen/2x4c8-minmax-wasmsimd-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001129 "src/qs8-igemm/gen/3x4c8-minmax-wasmsimd-ld64.c",
Marat Dukhan27203da2020-08-05 15:19:03 -07001130 "src/qs8-igemm/gen/3x4c8-minmax-wasmsimd-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001131 "src/qs8-requantization/fp32-wasmsimd.c",
Marat Dukhan138560c2020-08-03 18:57:34 -07001132 "src/qs8-requantization/q31-wasmsimd.c",
Marat Dukhan5df27f82020-09-02 23:59:21 -07001133 "src/qs8-vadd/gen/minmax-wasmsimd-x8.c",
1134 "src/qs8-vadd/gen/minmax-wasmsimd-x16.c",
1135 "src/qs8-vadd/gen/minmax-wasmsimd-x24.c",
1136 "src/qs8-vadd/gen/minmax-wasmsimd-x32.c",
1137 "src/qs8-vaddc/gen/minmax-wasmsimd-x8.c",
1138 "src/qs8-vaddc/gen/minmax-wasmsimd-x16.c",
1139 "src/qs8-vaddc/gen/minmax-wasmsimd-x24.c",
1140 "src/qs8-vaddc/gen/minmax-wasmsimd-x32.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001141 "src/qu8-requantization/fp32-wasmsimd.c",
Marat Dukhan22de5e72020-08-03 21:53:18 -07001142 "src/qu8-requantization/q31-wasmsimd.c",
Marat Dukhan8ee37012020-07-16 13:17:13 -07001143 "src/x32-fill/wasmsimd.c",
Marat Dukhan66d99e92020-07-16 12:56:21 -07001144 "src/x32-packx/x4-wasmsimd.c",
Marat Dukhan9306ae02020-07-16 15:51:13 -07001145 "src/x32-pad/wasmsimd.c",
Marat Dukhan9d4bfa22020-07-16 19:07:04 -07001146 "src/x32-unpool/wasmsimd.c",
Marat Dukhane3b78762020-07-16 20:02:58 -07001147 "src/x32-zip/x2-wasmsimd.c",
1148 "src/x32-zip/x3-wasmsimd.c",
1149 "src/x32-zip/x4-wasmsimd.c",
1150 "src/x32-zip/xm-wasmsimd.c",
Marat Dukhan290055c2020-06-09 12:24:29 -07001151]
1152
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001153PSIMD_FASTMATH_UKERNELS = [
Erich Elsen0a1970e2020-06-10 09:24:59 -07001154 "src/f32-conv-hwc2chw/3x3s2p1c3x4-psimd-2x2.c",
Marat Dukhanbf715f92020-10-23 20:17:00 -07001155 "src/f32-dwconv2d-chw/3x3p1-psimd-1x4-acc3.c",
1156 "src/f32-dwconv2d-chw/3x3s2p1-psimd-1x4-acc3.c",
1157 "src/f32-dwconv2d-chw/5x5p2-psimd-3x4.c",
1158 "src/f32-dwconv2d-chw/5x5s2p2-psimd-1x4-acc2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001159]
1160
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001161PSIMD_ACCMATH_UKERNELS = [
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001162 "src/qs8-requantization/fp32-psimd.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001163 "src/qs8-requantization/precise-psimd.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001164 "src/qu8-requantization/fp32-psimd.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001165 "src/qu8-requantization/precise-psimd.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001166]
1167
Marat Dukhan08c4a432019-10-03 09:29:21 -07001168# ISA-specific micro-kernels
1169NEON_UKERNELS = [
Marat Dukhanef25c6d2020-07-24 00:59:40 -07001170 "src/f32-argmaxpool/4x-neon-c4.c",
1171 "src/f32-argmaxpool/9p8x-neon-c4.c",
1172 "src/f32-argmaxpool/9x-neon-c4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001173 "src/f32-avgpool/9p8x-minmax-neon-c4.c",
1174 "src/f32-avgpool/9x-minmax-neon-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001175 "src/f32-clamp/gen/neon-x4.c",
1176 "src/f32-clamp/gen/neon-x8.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001177 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001178 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001179 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001180 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001181 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001182 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001183 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001184 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001185 "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001186 "src/f32-dwconv/gen/up4x4-minmax-neon.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001187 "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001188 "src/f32-dwconv/gen/up4x9-minmax-neon.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001189 "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001190 "src/f32-dwconv/gen/up4x25-minmax-neon.c",
1191 "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c",
1192 "src/f32-dwconv/gen/up8x4-minmax-neon.c",
1193 "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c",
1194 "src/f32-dwconv/gen/up8x9-minmax-neon.c",
Marat Dukhanf5425ea2020-04-24 01:46:00 -07001195 "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001196 "src/f32-dwconv/gen/up8x25-minmax-neon.c",
Marat Dukhanc581e482020-10-24 01:28:11 -07001197 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-1x4.c",
1198 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-2x4.c",
1199 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-3x4.c",
1200 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-4x4.c",
1201 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-5x4.c",
1202 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-6x4.c",
1203 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-1x4-acc2.c",
1204 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-1x4-acc3.c",
1205 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-1x4-acc4.c",
1206 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neon-2x4-acc2.c",
Marat Dukhan82f0c322020-10-25 19:17:35 -07001207 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-1x4.c",
1208 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-2x4.c",
1209 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-3x4.c",
1210 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-4x4.c",
1211 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-1x4-acc2.c",
1212 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-1x4-acc3.c",
1213 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-1x4-acc4.c",
1214 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neon-2x4-acc2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001215 "src/f32-gavgpool-cw/neon-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001216 "src/f32-gavgpool/7p7x-minmax-neon-c4.c",
1217 "src/f32-gavgpool/7x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001218 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001219 "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c",
1220 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001221 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001222 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c",
1223 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c",
1224 "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c",
1225 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c",
1226 "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001227 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c",
1228 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001229 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c",
1230 "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001231 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c",
1232 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001233 "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c",
1234 "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c",
1235 "src/f32-gemm/gen/1x8s4-minmax-neon.c",
1236 "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c",
1237 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c",
1238 "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c",
1239 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c",
1240 "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c",
1241 "src/f32-gemm/gen/4x8s4-minmax-neon.c",
1242 "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c",
1243 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c",
1244 "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c",
1245 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c",
1246 "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c",
1247 "src/f32-gemm/gen/6x8s4-minmax-neon.c",
1248 "src/f32-gemm/gen/8x8s4-minmax-neon.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001249 "src/f32-hswish/gen/hswish-neon-x4.c",
1250 "src/f32-hswish/gen/hswish-neon-x8.c",
1251 "src/f32-hswish/gen/hswish-neon-x16.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001252 "src/f32-ibilinear/gen/neon-c4.c",
1253 "src/f32-ibilinear/gen/neon-c8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001254 "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001255 "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001256 "src/f32-igemm/gen/1x8s4-minmax-neon.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001257 "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c",
1258 "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001259 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001260 "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c",
1261 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c",
1262 "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c",
1263 "src/f32-igemm/gen/4x8s4-minmax-neon.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001264 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c",
1265 "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001266 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c",
1267 "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001268 "src/f32-igemm/gen/6x8s4-minmax-neon.c",
1269 "src/f32-igemm/gen/8x8s4-minmax-neon.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001270 "src/f32-maxpool/9p8x-minmax-neon-c4.c",
1271 "src/f32-pavgpool/9p8x-minmax-neon-c4.c",
1272 "src/f32-pavgpool/9x-minmax-neon-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001273 "src/f32-ppmm/gen/4x8-minmax-neon.c",
1274 "src/f32-ppmm/gen/8x8-minmax-neon.c",
Frank Barcharda5316982020-07-23 13:19:28 -07001275 "src/f32-prelu/gen/neon-1x4.c",
1276 "src/f32-prelu/gen/neon-1x8.c",
1277 "src/f32-prelu/gen/neon-1x16.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001278 "src/f32-prelu/gen/neon-2x4.c",
1279 "src/f32-prelu/gen/neon-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -07001280 "src/f32-prelu/gen/neon-2x16.c",
1281 "src/f32-prelu/gen/neon-4x4.c",
1282 "src/f32-prelu/gen/neon-4x8.c",
1283 "src/f32-prelu/gen/neon-4x16.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001284 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001285 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001286 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001287 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c",
1288 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001289 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001290 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c",
1291 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001292 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001293 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c",
1294 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001295 "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c",
1296 "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c",
1297 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c",
1298 "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c",
1299 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c",
1300 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c",
1301 "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c",
1302 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c",
1303 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c",
1304 "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c",
1305 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c",
1306 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c",
1307 "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001308 "src/f32-relu/gen/neon-x4.c",
1309 "src/f32-relu/gen/neon-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001310 "src/f32-rmax/neon.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001311 "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001312 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c",
1313 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c",
1314 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c",
1315 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c",
1316 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c",
1317 "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c",
1318 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c",
1319 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c",
1320 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c",
1321 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c",
1322 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c",
1323 "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001324 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c",
1325 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c",
1326 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c",
1327 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c",
1328 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c",
1329 "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001330 "src/f32-vbinary/gen/vadd-minmax-neon-x4.c",
1331 "src/f32-vbinary/gen/vadd-minmax-neon-x8.c",
1332 "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c",
1333 "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001334 "src/f32-vbinary/gen/vmax-neon-x4.c",
1335 "src/f32-vbinary/gen/vmax-neon-x8.c",
1336 "src/f32-vbinary/gen/vmaxc-neon-x4.c",
1337 "src/f32-vbinary/gen/vmaxc-neon-x8.c",
1338 "src/f32-vbinary/gen/vmin-neon-x4.c",
1339 "src/f32-vbinary/gen/vmin-neon-x8.c",
1340 "src/f32-vbinary/gen/vminc-neon-x4.c",
1341 "src/f32-vbinary/gen/vminc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001342 "src/f32-vbinary/gen/vmul-minmax-neon-x4.c",
1343 "src/f32-vbinary/gen/vmul-minmax-neon-x8.c",
1344 "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c",
1345 "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c",
1346 "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c",
1347 "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001348 "src/f32-vbinary/gen/vsqrdiff-neon-x4.c",
1349 "src/f32-vbinary/gen/vsqrdiff-neon-x8.c",
1350 "src/f32-vbinary/gen/vsqrdiffc-neon-x4.c",
1351 "src/f32-vbinary/gen/vsqrdiffc-neon-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001352 "src/f32-vbinary/gen/vsub-minmax-neon-x4.c",
1353 "src/f32-vbinary/gen/vsub-minmax-neon-x8.c",
1354 "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c",
1355 "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001356 "src/f32-vlrelu/gen/vlrelu-neon-x4.c",
1357 "src/f32-vlrelu/gen/vlrelu-neon-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001358 "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c",
1359 "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001360 "src/f32-vrnd/gen/vrndd-neon-x4.c",
1361 "src/f32-vrnd/gen/vrndd-neon-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001362 "src/f32-vrnd/gen/vrndne-neon-x4.c",
1363 "src/f32-vrnd/gen/vrndne-neon-x8.c",
1364 "src/f32-vrnd/gen/vrndu-neon-x4.c",
1365 "src/f32-vrnd/gen/vrndu-neon-x8.c",
1366 "src/f32-vrnd/gen/vrndz-neon-x4.c",
1367 "src/f32-vrnd/gen/vrndz-neon-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001368 "src/f32-vunary/gen/vabs-neon-x4.c",
1369 "src/f32-vunary/gen/vabs-neon-x8.c",
1370 "src/f32-vunary/gen/vneg-neon-x4.c",
1371 "src/f32-vunary/gen/vneg-neon-x8.c",
1372 "src/f32-vunary/gen/vsqr-neon-x4.c",
1373 "src/f32-vunary/gen/vsqr-neon-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001374 "src/math/roundd-neon-addsub.c",
1375 "src/math/roundd-neon-cvt.c",
1376 "src/math/roundne-neon-addsub.c",
1377 "src/math/roundu-neon-addsub.c",
1378 "src/math/roundu-neon-cvt.c",
1379 "src/math/roundz-neon-addsub.c",
1380 "src/math/roundz-neon-cvt.c",
1381 "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c",
1382 "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c",
1383 "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c",
1384 "src/math/sigmoid-neon-rr1-p5-nr2recps.c",
1385 "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c",
1386 "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c",
1387 "src/math/sigmoid-neon-rr2-p5-nr2recps.c",
1388 "src/math/sqrt-neon-nr1rsqrts.c",
1389 "src/math/sqrt-neon-nr2rsqrts.c",
1390 "src/math/sqrt-neon-nr3rsqrts.c",
Marat Dukhan023bcf92020-08-10 12:40:50 -07001391 "src/qs8-dwconv/gen/up8x9-minmax-neon-mul16.c",
1392 "src/qs8-dwconv/gen/up16x9-minmax-neon-mul16.c",
1393 "src/qs8-dwconv/gen/up24x9-minmax-neon-mul16.c",
1394 "src/qs8-dwconv/gen/up32x9-minmax-neon-mul16.c",
Marat Dukhan281262d2020-08-10 13:23:21 -07001395 "src/qs8-gavgpool/gen/7p7x-minmax-neon-c8-acc2.c",
1396 "src/qs8-gavgpool/gen/7p7x-minmax-neon-c16-acc2.c",
1397 "src/qs8-gavgpool/gen/7p7x-minmax-neon-c24-acc2.c",
1398 "src/qs8-gavgpool/gen/7p7x-minmax-neon-c32-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001399 "src/qs8-gavgpool/gen/7x-minmax-neon-c8-acc2.c",
1400 "src/qs8-gavgpool/gen/7x-minmax-neon-c16-acc2.c",
1401 "src/qs8-gavgpool/gen/7x-minmax-neon-c24-acc2.c",
1402 "src/qs8-gavgpool/gen/7x-minmax-neon-c32-acc2.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001403 "src/qs8-gemm/gen/1x8-minmax-neon-mlal-lane.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001404 "src/qs8-gemm/gen/1x16-minmax-neon-mlal-lane.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001405 "src/qs8-gemm/gen/2x8-minmax-neon-mlal-lane.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001406 "src/qs8-gemm/gen/2x16-minmax-neon-mlal-lane.c",
1407 "src/qs8-igemm/gen/1x8-minmax-neon-mlal-lane.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001408 "src/qs8-igemm/gen/1x16-minmax-neon-mlal-lane.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001409 "src/qs8-igemm/gen/2x8-minmax-neon-mlal-lane.c",
Marat Dukhan40bbafe2020-08-04 02:04:22 -07001410 "src/qs8-igemm/gen/2x16-minmax-neon-mlal-lane.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001411 "src/qs8-requantization/fp32-neon.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001412 "src/qs8-requantization/precise-neon.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07001413 "src/qs8-requantization/q31-neon.c",
Marat Dukhanba7b2792020-09-02 14:26:45 -07001414 "src/qs8-vadd/gen/minmax-neon-ld64-x8.c",
1415 "src/qs8-vadd/gen/minmax-neon-ld64-x16.c",
1416 "src/qs8-vadd/gen/minmax-neon-ld64-x24.c",
1417 "src/qs8-vadd/gen/minmax-neon-ld64-x32.c",
1418 "src/qs8-vaddc/gen/minmax-neon-ld64-x8.c",
1419 "src/qs8-vaddc/gen/minmax-neon-ld64-x16.c",
1420 "src/qs8-vaddc/gen/minmax-neon-ld64-x24.c",
1421 "src/qs8-vaddc/gen/minmax-neon-ld64-x32.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001422 "src/qu8-avgpool/9p8x-minmax-neon-c8.c",
1423 "src/qu8-avgpool/9x-minmax-neon-c8.c",
1424 "src/qu8-dwconv/up8x9-minmax-neon.c",
1425 "src/qu8-gavgpool/7p7x-minmax-neon-c8.c",
1426 "src/qu8-gavgpool/7x-minmax-neon-c8.c",
1427 "src/qu8-gemm/4x8-minmax-neon.c",
1428 "src/qu8-gemm/8x8-minmax-neon.c",
1429 "src/qu8-igemm/4x8-minmax-neon.c",
1430 "src/qu8-igemm/8x8-minmax-neon.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001431 "src/qu8-requantization/fp32-neon.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001432 "src/qu8-requantization/precise-neon.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07001433 "src/qu8-requantization/q31-neon.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07001434 "src/qu8-vadd/minmax-neon.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001435 "src/u8-clamp/neon-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001436 "src/u8-maxpool/9p8x-minmax-neon-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001437 "src/u8-rmax/neon.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001438 "src/x8-zip/x2-neon.c",
1439 "src/x8-zip/x3-neon.c",
1440 "src/x8-zip/x4-neon.c",
1441 "src/x8-zip/xm-neon.c",
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07001442 "src/x32-fill/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001443 "src/x32-packx/x4-neon-st4.c",
Marat Dukhan63523d42020-05-22 17:07:33 -07001444 "src/x32-pad/neon.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07001445 "src/x32-unpool/neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001446 "src/x32-zip/x2-neon.c",
1447 "src/x32-zip/x3-neon.c",
1448 "src/x32-zip/x4-neon.c",
1449 "src/x32-zip/xm-neon.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001450]
1451
1452NEONFMA_UKERNELS = [
Frank Barchard04336c12020-10-22 16:48:55 -07001453 "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c",
1454 "src/f32-dwconv/gen/up4x4-minmax-neonfma.c",
1455 "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c",
1456 "src/f32-dwconv/gen/up4x9-minmax-neonfma.c",
1457 "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c",
1458 "src/f32-dwconv/gen/up4x25-minmax-neonfma.c",
1459 "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c",
1460 "src/f32-dwconv/gen/up8x4-minmax-neonfma.c",
1461 "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c",
1462 "src/f32-dwconv/gen/up8x9-minmax-neonfma.c",
1463 "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c",
1464 "src/f32-dwconv/gen/up8x25-minmax-neonfma.c",
1465 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c",
1466 "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c",
1467 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c",
1468 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c",
1469 "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c",
1470 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c",
1471 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c",
1472 "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c",
1473 "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c",
1474 "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c",
1475 "src/f32-gemm/gen/1x8s4-minmax-neonfma.c",
1476 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c",
1477 "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1478 "src/f32-gemm/gen/4x8s4-minmax-neonfma.c",
1479 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1480 "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c",
1481 "src/f32-gemm/gen/6x8s4-minmax-neonfma.c",
1482 "src/f32-gemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001483 "src/f32-ibilinear/gen/neonfma-c4.c",
1484 "src/f32-ibilinear/gen/neonfma-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001485 "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001486 "src/f32-igemm/gen/1x8s4-minmax-neonfma.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001487 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001488 "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c",
1489 "src/f32-igemm/gen/4x8s4-minmax-neonfma.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001490 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c",
1491 "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001492 "src/f32-igemm/gen/6x8s4-minmax-neonfma.c",
1493 "src/f32-igemm/gen/8x8s4-minmax-neonfma.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001494 "src/f32-ppmm/gen/4x8-minmax-neonfma.c",
1495 "src/f32-ppmm/gen/8x8-minmax-neonfma.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001496 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001497 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001498 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001499 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c",
1500 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001501 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001502 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c",
1503 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001504 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c",
Marat Dukhan8137e4c2020-01-25 12:56:58 -08001505 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c",
1506 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001507 "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c",
1508 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c",
1509 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c",
1510 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c",
1511 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c",
1512 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c",
1513 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c",
1514 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c",
1515 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c",
1516 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c",
1517 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c",
1518 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c",
1519 "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001520 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c",
1521 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c",
1522 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c",
1523 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c",
1524 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c",
1525 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001526 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c",
1527 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c",
1528 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c",
1529 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c",
1530 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c",
1531 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001532 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c",
1533 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c",
1534 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c",
1535 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c",
1536 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c",
1537 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001538 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c",
1539 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c",
1540 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c",
1541 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c",
1542 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c",
1543 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001544 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c",
1545 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c",
1546 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c",
1547 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c",
1548 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c",
1549 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001550 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c",
1551 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c",
1552 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c",
1553 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c",
1554 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c",
1555 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001556 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c",
1557 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c",
1558 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c",
1559 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c",
1560 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c",
1561 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c",
1562 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c",
1563 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c",
1564 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c",
1565 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c",
1566 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c",
1567 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c",
1568 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c",
1569 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c",
1570 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c",
1571 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c",
1572 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c",
1573 "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001574 "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c",
1575 "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001576 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x4.c",
1577 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x8.c",
1578 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x12.c",
1579 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x16.c",
1580 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x20.c",
1581 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x24.c",
1582 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x28.c",
1583 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x32.c",
1584 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x36.c",
1585 "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x40.c",
1586 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x4.c",
1587 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x8.c",
1588 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x12.c",
1589 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x16.c",
1590 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x20.c",
1591 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x24.c",
1592 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x28.c",
1593 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x32.c",
1594 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x36.c",
1595 "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x40.c",
Marat Dukhan797a8fe2019-11-14 20:21:57 -08001596 "src/math/exp-neonfma-lut64-p2.c",
1597 "src/math/exp-neonfma-p5.c",
Marat Dukhan189ae802019-11-26 11:28:44 -08001598 "src/math/expminus-neonfma-lut64-p2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001599 "src/math/expminus-neonfma-lut2048-p1.c",
Marat Dukhan346a9e52019-11-15 09:06:30 -08001600 "src/math/expminus-neonfma-p5.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001601 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c",
1602 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c",
1603 "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001604 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c",
1605 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c",
1606 "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001607 "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c",
1608 "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c",
1609 "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001610 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c",
1611 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c",
1612 "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001613 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c",
1614 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c",
1615 "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001616 "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c",
1617 "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c",
1618 "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001619 "src/math/sqrt-neonfma-nr1fma.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001620 "src/math/sqrt-neonfma-nr1rsqrts1fma1adj.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001621 "src/math/sqrt-neonfma-nr2fma.c",
1622 "src/math/sqrt-neonfma-nr2fma1adj.c",
1623 "src/math/sqrt-neonfma-nr3fma.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001624]
1625
1626AARCH64_NEONFMA_UKERNELS = [
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001627 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001628 "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001629 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001630 "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c",
Marat Dukhan56b10cd2020-05-18 09:35:49 -07001631 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001632 "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001633 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c",
Marat Dukhance7a3f82020-05-17 21:46:44 -07001634 "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001635 "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c",
Marat Dukhan1268a242020-10-24 00:36:32 -07001636 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-1x4.c",
1637 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-2x4.c",
1638 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-3x4.c",
1639 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-4x4.c",
1640 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-5x4.c",
1641 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-6x4.c",
1642 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-1x4-acc2.c",
1643 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-1x4-acc3.c",
1644 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-1x4-acc4.c",
1645 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-neonfma-2x4-acc2.c",
Marat Dukhan82f0c322020-10-25 19:17:35 -07001646 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-1x4.c",
1647 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-2x4.c",
1648 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-3x4.c",
1649 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-4x4.c",
1650 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-1x4-acc2.c",
1651 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-1x4-acc3.c",
1652 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-1x4-acc4.c",
1653 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-neonfma-2x4-acc2.c",
Marat Dukhanbf715f92020-10-23 20:17:00 -07001654 "src/f32-dwconv2d-chw/5x5p2-neonfma-3x4.c",
1655 "src/f32-dwconv2d-chw/5x5s2p2-neonfma-1x4-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001656 "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c",
1657 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c",
1658 "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c",
1659 "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c",
1660 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c",
1661 "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c",
1662 "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1663 "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1664 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1665 "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1666 "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c",
1667 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1668 "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c",
1669 "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c",
1670 "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c",
1671 "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c",
1672 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c",
1673 "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c",
1674 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c",
1675 "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c",
Marat Dukhan4a24a582020-01-06 13:30:00 -08001676 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c",
1677 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c",
1678 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c",
1679 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c",
1680 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c",
1681 "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c",
1682 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c",
1683 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c",
1684 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c",
1685 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c",
1686 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c",
1687 "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001688 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c",
1689 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c",
1690 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c",
1691 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c",
1692 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c",
1693 "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001694 "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c",
1695 "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c",
1696 "src/f32-spmm/gen/4x1-minmax-neonfma.c",
1697 "src/f32-spmm/gen/4x2-minmax-neonfma.c",
1698 "src/f32-spmm/gen/4x4-minmax-neonfma.c",
1699 "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c",
1700 "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c",
1701 "src/f32-spmm/gen/8x1-minmax-neonfma.c",
1702 "src/f32-spmm/gen/8x2-minmax-neonfma.c",
1703 "src/f32-spmm/gen/8x4-minmax-neonfma.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001704 "src/f32-spmm/gen/12x1-minmax-neonfma.c",
1705 "src/f32-spmm/gen/12x2-minmax-neonfma.c",
1706 "src/f32-spmm/gen/12x4-minmax-neonfma.c",
1707 "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c",
1708 "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c",
1709 "src/f32-spmm/gen/16x1-minmax-neonfma.c",
1710 "src/f32-spmm/gen/16x2-minmax-neonfma.c",
1711 "src/f32-spmm/gen/16x4-minmax-neonfma.c",
1712 "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c",
1713 "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c",
1714 "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c",
1715 "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c",
1716 "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c",
1717 "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001718 "src/f32-vsqrt/gen/neon-sqrt-x4.c",
1719 "src/f32-vsqrt/gen/neon-sqrt-x8.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001720 "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001721 "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001722 "src/math/sigmoid-neonfma-rr1-p5-div.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001723 "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001724 "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c",
Marat Dukhan77221d32020-01-06 10:04:39 -08001725 "src/math/sigmoid-neonfma-rr2-p5-div.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001726]
1727
Marat Dukhan8853b822020-05-07 12:19:01 -07001728NEONV8_UKERNELS = [
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07001729 "src/f32-vrnd/gen/vrndd-neonv8-x4.c",
1730 "src/f32-vrnd/gen/vrndd-neonv8-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001731 "src/f32-vrnd/gen/vrndne-neonv8-x4.c",
1732 "src/f32-vrnd/gen/vrndne-neonv8-x8.c",
1733 "src/f32-vrnd/gen/vrndu-neonv8-x4.c",
1734 "src/f32-vrnd/gen/vrndu-neonv8-x8.c",
1735 "src/f32-vrnd/gen/vrndz-neonv8-x4.c",
1736 "src/f32-vrnd/gen/vrndz-neonv8-x8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001737 "src/math/roundd-neonv8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001738 "src/math/roundne-neonv8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001739 "src/math/roundu-neonv8.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001740 "src/math/roundz-neonv8.c",
Marat Dukhan8853b822020-05-07 12:19:01 -07001741]
1742
Marat Dukhan08c4a432019-10-03 09:29:21 -07001743AARCH64_NEONFP16ARITH_UKERNELS = [
Frank Barchardb1966592020-05-12 13:47:06 -07001744 "src/f16-clamp/gen/neonfp16arith-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001745 "src/f16-clamp/gen/neonfp16arith-x16.c",
Frank Barchard5a599a62020-06-04 20:12:44 -07001746 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c",
1747 "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c",
1748 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith-acc2.c",
1749 "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001750 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith-acc2.c",
1751 "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith.c",
1752 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith-acc2.c",
1753 "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith.c",
1754 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith-acc2.c",
1755 "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith.c",
1756 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith-acc2.c",
1757 "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith.c",
Frank Barchard0bb49a72020-06-04 11:35:11 -07001758 "src/f16-gavgpool/7p7x-minmax-neonfp16arith-c8.c",
1759 "src/f16-gavgpool/7x-minmax-neonfp16arith-c8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001760 "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c",
1761 "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c",
1762 "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c",
1763 "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c",
1764 "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c",
1765 "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c",
1766 "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c",
1767 "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c",
1768 "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1769 "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1770 "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1771 "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1772 "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1773 "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1774 "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c",
1775 "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001776 "src/f16-hswish/gen/hswish-neonfp16arith-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001777 "src/f16-hswish/gen/hswish-neonfp16arith-x16.c",
1778 "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c",
1779 "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c",
1780 "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c",
1781 "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c",
1782 "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c",
1783 "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c",
1784 "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c",
1785 "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c",
Frank Barchardb1966592020-05-12 13:47:06 -07001786 "src/f16-prelu/gen/neonfp16arith-2x8.c",
Frank Barcharda5316982020-07-23 13:19:28 -07001787 "src/f16-prelu/gen/neonfp16arith-2x16.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001788 "src/f16-relu/gen/neonfp16arith-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001789 "src/f16-relu/gen/neonfp16arith-x16.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001790 "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001791 "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001792 "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001793 "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001794 "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001795 "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001796 "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001797 "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c",
1798 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c",
1799 "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c",
1800 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c",
1801 "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c",
1802 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c",
1803 "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c",
1804 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c",
1805 "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c",
1806 "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c",
1807 "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c",
1808 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c",
1809 "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c",
1810 "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c",
1811 "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c",
1812 "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c",
1813 "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c",
1814 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c",
1815 "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c",
1816 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c",
1817 "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c",
1818 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c",
1819 "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c",
1820 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c",
1821 "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c",
1822 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c",
1823 "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c",
1824 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c",
1825 "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c",
1826 "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c",
1827 "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001828]
1829
Benoit Jacoba9644732020-08-13 12:48:55 -07001830NEONDOT_UKERNELS = [
Marat Dukhand4c83032020-09-09 23:20:12 -07001831 "src/qs8-gemm/gen/1x8c4-minmax-neondot.c",
Marat Dukhand4c83032020-09-09 23:20:12 -07001832 "src/qs8-gemm/gen/1x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001833 "src/qs8-gemm/gen/4x8c4-minmax-neondot.c",
Benoit Jacoba9644732020-08-13 12:48:55 -07001834 "src/qs8-gemm/gen/4x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001835 "src/qs8-gemm/gen/6x8c4-minmax-neondot.c",
Frank Barchard2fa17452020-09-22 09:51:46 -07001836 "src/qs8-gemm/gen/6x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001837 "src/qs8-gemm/gen/8x8c4-minmax-neondot.c",
Frank Barcharda48848f2020-09-24 00:59:24 -07001838 "src/qs8-gemm/gen/8x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001839 "src/qs8-gemm/gen/12x8c4-minmax-neondot.c",
Marat Dukhand4c83032020-09-09 23:20:12 -07001840 "src/qs8-igemm/gen/1x8c4-minmax-neondot.c",
Marat Dukhand4c83032020-09-09 23:20:12 -07001841 "src/qs8-igemm/gen/1x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001842 "src/qs8-igemm/gen/4x8c4-minmax-neondot.c",
Benoit Jacoba05487f2020-08-14 13:37:21 -07001843 "src/qs8-igemm/gen/4x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001844 "src/qs8-igemm/gen/6x8c4-minmax-neondot.c",
Frank Barchard2fa17452020-09-22 09:51:46 -07001845 "src/qs8-igemm/gen/6x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001846 "src/qs8-igemm/gen/8x8c4-minmax-neondot.c",
Frank Barcharda48848f2020-09-24 00:59:24 -07001847 "src/qs8-igemm/gen/8x16c4-minmax-neondot.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001848 "src/qs8-igemm/gen/12x8c4-minmax-neondot.c",
Benoit Jacoba9644732020-08-13 12:48:55 -07001849]
1850
Marat Dukhan08c4a432019-10-03 09:29:21 -07001851SSE_UKERNELS = [
Marat Dukhan99936602020-04-11 16:47:01 -07001852 "src/f32-avgpool/9p8x-minmax-sse-c4.c",
1853 "src/f32-avgpool/9x-minmax-sse-c4.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001854 "src/f32-clamp/gen/sse-x4.c",
1855 "src/f32-clamp/gen/sse-x8.c",
Erich Elsenb1233402020-06-08 15:53:15 -07001856 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-1x1.c",
1857 "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-2x2.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001858 "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c",
1859 "src/f32-dwconv/gen/up4x4-minmax-sse.c",
1860 "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c",
1861 "src/f32-dwconv/gen/up4x9-minmax-sse.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001862 "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c",
1863 "src/f32-dwconv/gen/up4x25-minmax-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001864 "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c",
1865 "src/f32-dwconv/gen/up8x4-minmax-sse.c",
1866 "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c",
1867 "src/f32-dwconv/gen/up8x9-minmax-sse.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001868 "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c",
1869 "src/f32-dwconv/gen/up8x25-minmax-sse.c",
Marat Dukhan470078a2020-10-23 22:36:52 -07001870 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-1x4.c",
1871 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-2x4.c",
1872 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-3x4.c",
1873 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-4x4.c",
1874 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-5x4.c",
1875 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-6x4.c",
1876 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-1x4-acc2.c",
1877 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-1x4-acc3.c",
1878 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-1x4-acc4.c",
1879 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-sse-2x4-acc2.c",
Marat Dukhan0ff97182020-10-25 19:14:03 -07001880 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-1x4.c",
1881 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-2x4.c",
1882 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-3x4.c",
1883 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-4x4.c",
1884 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-1x4-acc2.c",
1885 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-1x4-acc3.c",
1886 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-1x4-acc4.c",
1887 "src/f32-dwconv2d-chw/gen/3x3s2p1-minmax-sse-2x4-acc2.c",
Marat Dukhan1f29b802020-05-15 23:46:39 -07001888 "src/f32-gavgpool-cw/sse-x4.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001889 "src/f32-gavgpool/7p7x-minmax-sse-c4.c",
1890 "src/f32-gavgpool/7x-minmax-sse-c4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001891 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c",
1892 "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c",
1893 "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c",
1894 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c",
1895 "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c",
1896 "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001897 "src/f32-gemm/gen/1x8-minmax-sse-dup.c",
1898 "src/f32-gemm/gen/1x8-minmax-sse-load1.c",
1899 "src/f32-gemm/gen/1x8s4-minmax-sse.c",
1900 "src/f32-gemm/gen/4x2c4-minmax-sse.c",
1901 "src/f32-gemm/gen/4x8-minmax-sse-dup.c",
1902 "src/f32-gemm/gen/4x8-minmax-sse-load1.c",
1903 "src/f32-gemm/gen/4x8s4-minmax-sse.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07001904 "src/f32-hswish/gen/hswish-sse-x4.c",
1905 "src/f32-hswish/gen/hswish-sse-x8.c",
Marat Dukhan660fd192020-03-10 04:55:30 -07001906 "src/f32-ibilinear/gen/sse-c4.c",
1907 "src/f32-ibilinear/gen/sse-c8.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001908 "src/f32-igemm/gen/1x8-minmax-sse-dup.c",
1909 "src/f32-igemm/gen/1x8-minmax-sse-load1.c",
1910 "src/f32-igemm/gen/1x8s4-minmax-sse.c",
1911 "src/f32-igemm/gen/4x2c4-minmax-sse.c",
1912 "src/f32-igemm/gen/4x8-minmax-sse-dup.c",
1913 "src/f32-igemm/gen/4x8-minmax-sse-load1.c",
1914 "src/f32-igemm/gen/4x8s4-minmax-sse.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001915 "src/f32-maxpool/9p8x-minmax-sse-c4.c",
1916 "src/f32-pavgpool/9p8x-minmax-sse-c4.c",
1917 "src/f32-pavgpool/9x-minmax-sse-c4.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07001918 "src/f32-ppmm/gen/4x8-minmax-sse.c",
Marat Dukhan39b5e942020-06-24 15:03:48 -07001919 "src/f32-prelu/gen/sse-2x4.c",
1920 "src/f32-prelu/gen/sse-2x8.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07001921 "src/f32-relu/gen/sse-x4.c",
1922 "src/f32-relu/gen/sse-x8.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001923 "src/f32-rmax/sse.c",
Marat Dukhan355ab432020-04-09 19:01:52 -07001924 "src/f32-spmm/gen/4x1-minmax-sse.c",
1925 "src/f32-spmm/gen/8x1-minmax-sse.c",
Erich Elsen6e80fdc2020-06-09 15:35:37 -07001926 "src/f32-spmm/gen/16x1-minmax-sse.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001927 "src/f32-vbinary/gen/vadd-minmax-sse-x4.c",
1928 "src/f32-vbinary/gen/vadd-minmax-sse-x8.c",
1929 "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c",
1930 "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c",
1931 "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c",
1932 "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c",
1933 "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c",
1934 "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c",
Marat Dukhan403b7d42019-12-05 12:49:11 -08001935 "src/f32-vbinary/gen/vmax-sse-x4.c",
1936 "src/f32-vbinary/gen/vmax-sse-x8.c",
1937 "src/f32-vbinary/gen/vmaxc-sse-x4.c",
1938 "src/f32-vbinary/gen/vmaxc-sse-x8.c",
1939 "src/f32-vbinary/gen/vmin-sse-x4.c",
1940 "src/f32-vbinary/gen/vmin-sse-x8.c",
1941 "src/f32-vbinary/gen/vminc-sse-x4.c",
1942 "src/f32-vbinary/gen/vminc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001943 "src/f32-vbinary/gen/vmul-minmax-sse-x4.c",
1944 "src/f32-vbinary/gen/vmul-minmax-sse-x8.c",
1945 "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c",
1946 "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c",
1947 "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c",
1948 "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c",
1949 "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c",
1950 "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07001951 "src/f32-vbinary/gen/vsqrdiff-sse-x4.c",
1952 "src/f32-vbinary/gen/vsqrdiff-sse-x8.c",
1953 "src/f32-vbinary/gen/vsqrdiffc-sse-x4.c",
1954 "src/f32-vbinary/gen/vsqrdiffc-sse-x8.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001955 "src/f32-vbinary/gen/vsub-minmax-sse-x4.c",
1956 "src/f32-vbinary/gen/vsub-minmax-sse-x8.c",
1957 "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c",
1958 "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07001959 "src/f32-vlrelu/gen/vlrelu-sse-x4.c",
1960 "src/f32-vlrelu/gen/vlrelu-sse-x8.c",
Marat Dukhan99936602020-04-11 16:47:01 -07001961 "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c",
1962 "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07001963 "src/f32-vsqrt/gen/sse-sqrt-x4.c",
1964 "src/f32-vsqrt/gen/sse-sqrt-x8.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07001965 "src/f32-vunary/gen/vabs-sse-x4.c",
1966 "src/f32-vunary/gen/vabs-sse-x8.c",
1967 "src/f32-vunary/gen/vneg-sse-x4.c",
1968 "src/f32-vunary/gen/vneg-sse-x8.c",
1969 "src/f32-vunary/gen/vsqr-sse-x4.c",
1970 "src/f32-vunary/gen/vsqr-sse-x8.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001971 "src/math/roundd-sse-addsub.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001972 "src/math/roundne-sse-addsub.c",
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001973 "src/math/roundu-sse-addsub.c",
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001974 "src/math/roundz-sse-addsub.c",
Marat Dukhan84000762020-06-29 18:38:43 -07001975 "src/math/sqrt-sse-hh1mac.c",
1976 "src/math/sqrt-sse-nr1mac.c",
1977 "src/math/sqrt-sse-nr2mac.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001978 "src/x32-fill/sse.c",
1979 "src/x32-packx/x4-sse.c",
1980 "src/x32-pad/sse.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07001981]
1982
1983SSE2_UKERNELS = [
Marat Dukhan329da642019-11-19 21:44:39 -08001984 "src/f32-argmaxpool/4x-sse2-c4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001985 "src/f32-argmaxpool/9p8x-sse2-c4.c",
Marat Dukhan329da642019-11-19 21:44:39 -08001986 "src/f32-argmaxpool/9x-sse2-c4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08001987 "src/f32-prelu/gen/sse2-2x4.c",
1988 "src/f32-prelu/gen/sse2-2x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001989 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001990 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001991 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001992 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c",
1993 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001994 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001995 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c",
1996 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07001997 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c",
Marat Dukhanb39689d2020-01-24 13:32:20 -08001998 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c",
1999 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002000 "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c",
Marat Dukhand243c1a2020-09-17 18:48:10 -07002001 "src/f32-sigmoid/gen/sse2-lut64-p2-div-x4.c",
2002 "src/f32-sigmoid/gen/sse2-lut64-p2-div-x8.c",
2003 "src/f32-sigmoid/gen/sse2-lut64-p2-div-x12.c",
2004 "src/f32-sigmoid/gen/sse2-lut64-p2-div-x16.c",
2005 "src/f32-sigmoid/gen/sse2-lut64-p2-div-x20.c",
2006 "src/f32-sigmoid/gen/sse2-lut64-p2-div-x24.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002007 "src/f32-sigmoid/gen/sse2-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08002008 "src/f32-sigmoid/gen/sse2-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002009 "src/f32-sigmoid/gen/sse2-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08002010 "src/f32-sigmoid/gen/sse2-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002011 "src/f32-sigmoid/gen/sse2-p5-div-x20.c",
2012 "src/f32-sigmoid/gen/sse2-p5-div-x24.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07002013 "src/f32-vlrelu/gen/vlrelu-sse2-x4.c",
2014 "src/f32-vlrelu/gen/vlrelu-sse2-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07002015 "src/f32-vrnd/gen/vrndd-sse2-x4.c",
2016 "src/f32-vrnd/gen/vrndd-sse2-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002017 "src/f32-vrnd/gen/vrndne-sse2-x4.c",
2018 "src/f32-vrnd/gen/vrndne-sse2-x8.c",
2019 "src/f32-vrnd/gen/vrndu-sse2-x4.c",
2020 "src/f32-vrnd/gen/vrndu-sse2-x8.c",
2021 "src/f32-vrnd/gen/vrndz-sse2-x4.c",
2022 "src/f32-vrnd/gen/vrndz-sse2-x8.c",
2023 "src/math/exp-sse2-lut64-p2.c",
2024 "src/math/exp-sse2-p5.c",
2025 "src/math/expminus-sse2-p5.c",
2026 "src/math/roundd-sse2-cvt.c",
2027 "src/math/roundne-sse2-cvt.c",
2028 "src/math/roundu-sse2-cvt.c",
2029 "src/math/roundz-sse2-cvt.c",
2030 "src/math/sigmoid-sse2-rr2-lut64-p2-div.c",
2031 "src/math/sigmoid-sse2-rr2-lut64-p2-nr1.c",
2032 "src/math/sigmoid-sse2-rr2-lut64-p2-nr2.c",
2033 "src/math/sigmoid-sse2-rr2-p5-div.c",
2034 "src/math/sigmoid-sse2-rr2-p5-nr1.c",
2035 "src/math/sigmoid-sse2-rr2-p5-nr2.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07002036 "src/qs8-dwconv/gen/up8x9-minmax-sse2-mul16.c",
2037 "src/qs8-dwconv/gen/up16x9-minmax-sse2-mul16.c",
2038 "src/qs8-dwconv/gen/up24x9-minmax-sse2-mul16.c",
Marat Dukhan159688f2020-08-06 10:34:29 -07002039 "src/qs8-gavgpool/gen/7p7x-minmax-sse2-c8-acc2.c",
2040 "src/qs8-gavgpool/gen/7p7x-minmax-sse2-c16-acc2.c",
2041 "src/qs8-gavgpool/gen/7p7x-minmax-sse2-c24-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002042 "src/qs8-gavgpool/gen/7x-minmax-sse2-c8-acc2.c",
2043 "src/qs8-gavgpool/gen/7x-minmax-sse2-c16-acc2.c",
2044 "src/qs8-gavgpool/gen/7x-minmax-sse2-c24-acc2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002045 "src/qs8-gemm/gen/1x4c2-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002046 "src/qs8-gemm/gen/1x4c2-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002047 "src/qs8-gemm/gen/1x4c2-xw-minmax-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002048 "src/qs8-gemm/gen/1x4c8-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002049 "src/qs8-gemm/gen/1x4c8-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002050 "src/qs8-gemm/gen/1x4c8-xw-minmax-sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002051 "src/qs8-gemm/gen/2x4c8-minmax-sse2-ld64.c",
2052 "src/qs8-gemm/gen/2x4c8-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002053 "src/qs8-gemm/gen/2x4c8-xw-minmax-sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002054 "src/qs8-gemm/gen/3x4c8-minmax-sse2-ld64.c",
2055 "src/qs8-gemm/gen/3x4c8-minmax-sse2-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002056 "src/qs8-gemm/gen/3x4c8-xw-minmax-sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002057 "src/qs8-gemm/gen/4x4c2-minmax-sse2-ld64.c",
2058 "src/qs8-gemm/gen/4x4c2-minmax-sse2-ld128.c",
2059 "src/qs8-gemm/gen/4x4c2-xw-minmax-sse2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002060 "src/qs8-igemm/gen/1x4c2-minmax-sse2-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002061 "src/qs8-igemm/gen/1x4c2-minmax-sse2-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002062 "src/qs8-igemm/gen/1x4c8-minmax-sse2-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002063 "src/qs8-igemm/gen/1x4c8-minmax-sse2-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002064 "src/qs8-igemm/gen/2x4c8-minmax-sse2-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002065 "src/qs8-igemm/gen/2x4c8-minmax-sse2-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002066 "src/qs8-igemm/gen/3x4c8-minmax-sse2-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07002067 "src/qs8-igemm/gen/3x4c8-minmax-sse2-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002068 "src/qs8-igemm/gen/4x4c2-minmax-sse2-ld64.c",
2069 "src/qs8-igemm/gen/4x4c2-minmax-sse2-ld128.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07002070 "src/qs8-requantization/fp32-sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002071 "src/qs8-requantization/precise-sse2.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07002072 "src/qs8-requantization/q31-sse2.c",
Marat Dukhand9f3ad42020-08-10 12:30:58 -07002073 "src/qs8-vadd/gen/minmax-sse2-mul16-ld64-x8.c",
2074 "src/qs8-vadd/gen/minmax-sse2-mul16-ld64-x16.c",
2075 "src/qs8-vadd/gen/minmax-sse2-mul16-ld64-x24.c",
2076 "src/qs8-vadd/gen/minmax-sse2-mul16-ld64-x32.c",
Marat Dukhan0270d9f2020-08-11 00:56:46 -07002077 "src/qs8-vaddc/gen/minmax-sse2-mul16-ld64-x8.c",
2078 "src/qs8-vaddc/gen/minmax-sse2-mul16-ld64-x16.c",
2079 "src/qs8-vaddc/gen/minmax-sse2-mul16-ld64-x24.c",
2080 "src/qs8-vaddc/gen/minmax-sse2-mul16-ld64-x32.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07002081 "src/qu8-avgpool/9p8x-minmax-sse2-c8.c",
2082 "src/qu8-avgpool/9x-minmax-sse2-c8.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07002083 "src/qu8-dwconv/up8x9-minmax-sse2.c",
2084 "src/qu8-gavgpool/7p7x-minmax-sse2-c8.c",
2085 "src/qu8-gavgpool/7x-minmax-sse2-c8.c",
2086 "src/qu8-gemm/2x4c8-minmax-sse2.c",
2087 "src/qu8-gemm/4x4c2-minmax-sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002088 "src/qu8-igemm/4x4c2-minmax-sse2.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07002089 "src/qu8-requantization/fp32-sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002090 "src/qu8-requantization/precise-sse2.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07002091 "src/qu8-requantization/q31-sse2.c",
Marat Dukhan08b7a972020-07-14 18:17:29 -07002092 "src/qu8-vadd/minmax-sse2.c",
Marat Dukhan5c5fa962020-03-10 18:38:33 -07002093 "src/u8-clamp/sse2-x64.c",
Marat Dukhan99936602020-04-11 16:47:01 -07002094 "src/u8-maxpool/9p8x-minmax-sse2-c16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002095 "src/u8-rmax/sse2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002096 "src/x8-zip/x2-sse2.c",
2097 "src/x8-zip/x3-sse2.c",
2098 "src/x8-zip/x4-sse2.c",
2099 "src/x8-zip/xm-sse2.c",
Marat Dukhan57dccd82020-04-14 00:53:10 -07002100 "src/x32-unpool/sse2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002101 "src/x32-zip/x2-sse2.c",
2102 "src/x32-zip/x3-sse2.c",
2103 "src/x32-zip/x4-sse2.c",
2104 "src/x32-zip/xm-sse2.c",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002105]
2106
2107SSSE3_UKERNELS = [
Marat Dukhan98f2eeb2020-10-23 23:13:41 -07002108 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-1x4.c",
2109 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-2x4.c",
2110 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-3x4.c",
2111 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-4x4.c",
2112 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-5x4.c",
2113 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-6x4.c",
2114 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-1x4-acc2.c",
2115 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-1x4-acc3.c",
2116 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-1x4-acc4.c",
2117 "src/f32-dwconv2d-chw/gen/3x3p1-minmax-ssse3-2x4-acc2.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07002118 "src/qs8-dwconv/gen/up8x9-minmax-ssse3-mul16.c",
2119 "src/qs8-dwconv/gen/up16x9-minmax-ssse3-mul16.c",
2120 "src/qs8-dwconv/gen/up24x9-minmax-ssse3-mul16.c",
Marat Dukhan159688f2020-08-06 10:34:29 -07002121 "src/qs8-gavgpool/gen/7p7x-minmax-ssse3-c8-acc2.c",
2122 "src/qs8-gavgpool/gen/7p7x-minmax-ssse3-c16-acc2.c",
2123 "src/qs8-gavgpool/gen/7p7x-minmax-ssse3-c24-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002124 "src/qs8-gavgpool/gen/7x-minmax-ssse3-c8-acc2.c",
2125 "src/qs8-gavgpool/gen/7x-minmax-ssse3-c16-acc2.c",
2126 "src/qs8-gavgpool/gen/7x-minmax-ssse3-c24-acc2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002127 "src/qs8-gemm/gen/1x4c2-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002128 "src/qs8-gemm/gen/1x4c2-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002129 "src/qs8-gemm/gen/1x4c2-xw-minmax-ssse3.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002130 "src/qs8-gemm/gen/1x4c8-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002131 "src/qs8-gemm/gen/1x4c8-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002132 "src/qs8-gemm/gen/1x4c8-xw-minmax-ssse3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002133 "src/qs8-gemm/gen/2x4c8-minmax-ssse3-ld64.c",
2134 "src/qs8-gemm/gen/2x4c8-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002135 "src/qs8-gemm/gen/2x4c8-xw-minmax-ssse3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002136 "src/qs8-gemm/gen/3x4c8-minmax-ssse3-ld64.c",
2137 "src/qs8-gemm/gen/3x4c8-minmax-ssse3-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002138 "src/qs8-gemm/gen/3x4c8-xw-minmax-ssse3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002139 "src/qs8-gemm/gen/4x4c2-minmax-ssse3-ld64.c",
2140 "src/qs8-gemm/gen/4x4c2-minmax-ssse3-ld128.c",
2141 "src/qs8-gemm/gen/4x4c2-xw-minmax-ssse3.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002142 "src/qs8-igemm/gen/1x4c2-minmax-ssse3-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002143 "src/qs8-igemm/gen/1x4c2-minmax-ssse3-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002144 "src/qs8-igemm/gen/1x4c8-minmax-ssse3-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002145 "src/qs8-igemm/gen/1x4c8-minmax-ssse3-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002146 "src/qs8-igemm/gen/2x4c8-minmax-ssse3-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002147 "src/qs8-igemm/gen/2x4c8-minmax-ssse3-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002148 "src/qs8-igemm/gen/3x4c8-minmax-ssse3-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07002149 "src/qs8-igemm/gen/3x4c8-minmax-ssse3-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002150 "src/qs8-igemm/gen/4x4c2-minmax-ssse3-ld64.c",
2151 "src/qs8-igemm/gen/4x4c2-minmax-ssse3-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07002152 "src/qs8-requantization/precise-ssse3.c",
2153 "src/qs8-requantization/q31-ssse3.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07002154 "src/qu8-requantization/precise-ssse3.c",
2155 "src/qu8-requantization/q31-ssse3.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002156]
2157
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002158SSE41_UKERNELS = [
Marat Dukhan40a672f2019-11-25 03:08:22 -08002159 "src/f32-prelu/gen/sse41-2x4.c",
2160 "src/f32-prelu/gen/sse41-2x8.c",
Marat Dukhand243c1a2020-09-17 18:48:10 -07002161 "src/f32-sigmoid/gen/sse41-lut64-p2-div-x4.c",
2162 "src/f32-sigmoid/gen/sse41-lut64-p2-div-x8.c",
2163 "src/f32-sigmoid/gen/sse41-lut64-p2-div-x12.c",
2164 "src/f32-sigmoid/gen/sse41-lut64-p2-div-x16.c",
2165 "src/f32-sigmoid/gen/sse41-lut64-p2-div-x20.c",
2166 "src/f32-sigmoid/gen/sse41-lut64-p2-div-x24.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002167 "src/f32-sigmoid/gen/sse41-p5-div-x4.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08002168 "src/f32-sigmoid/gen/sse41-p5-div-x8.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002169 "src/f32-sigmoid/gen/sse41-p5-div-x12.c",
Marat Dukhan40a672f2019-11-25 03:08:22 -08002170 "src/f32-sigmoid/gen/sse41-p5-div-x16.c",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08002171 "src/f32-sigmoid/gen/sse41-p5-div-x20.c",
2172 "src/f32-sigmoid/gen/sse41-p5-div-x24.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07002173 "src/f32-vlrelu/gen/vlrelu-sse41-x4.c",
2174 "src/f32-vlrelu/gen/vlrelu-sse41-x8.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07002175 "src/f32-vrnd/gen/vrndd-sse41-x4.c",
2176 "src/f32-vrnd/gen/vrndd-sse41-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002177 "src/f32-vrnd/gen/vrndne-sse41-x4.c",
2178 "src/f32-vrnd/gen/vrndne-sse41-x8.c",
2179 "src/f32-vrnd/gen/vrndu-sse41-x4.c",
2180 "src/f32-vrnd/gen/vrndu-sse41-x8.c",
2181 "src/f32-vrnd/gen/vrndz-sse41-x4.c",
2182 "src/f32-vrnd/gen/vrndz-sse41-x8.c",
2183 "src/math/roundd-sse41.c",
2184 "src/math/roundne-sse41.c",
2185 "src/math/roundu-sse41.c",
2186 "src/math/roundz-sse41.c",
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07002187 "src/qs8-dwconv/gen/up8x9-minmax-sse41-mul16.c",
2188 "src/qs8-dwconv/gen/up16x9-minmax-sse41-mul16.c",
2189 "src/qs8-dwconv/gen/up24x9-minmax-sse41-mul16.c",
Marat Dukhan159688f2020-08-06 10:34:29 -07002190 "src/qs8-gavgpool/gen/7p7x-minmax-sse41-c8-acc2.c",
2191 "src/qs8-gavgpool/gen/7p7x-minmax-sse41-c16-acc2.c",
2192 "src/qs8-gavgpool/gen/7p7x-minmax-sse41-c24-acc2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002193 "src/qs8-gavgpool/gen/7x-minmax-sse41-c8-acc2.c",
2194 "src/qs8-gavgpool/gen/7x-minmax-sse41-c16-acc2.c",
2195 "src/qs8-gavgpool/gen/7x-minmax-sse41-c24-acc2.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002196 "src/qs8-gemm/gen/1x4c2-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002197 "src/qs8-gemm/gen/1x4c2-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002198 "src/qs8-gemm/gen/1x4c2-xw-minmax-sse41.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002199 "src/qs8-gemm/gen/1x4c8-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002200 "src/qs8-gemm/gen/1x4c8-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002201 "src/qs8-gemm/gen/1x4c8-xw-minmax-sse41.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002202 "src/qs8-gemm/gen/2x4c8-minmax-sse41-ld64.c",
2203 "src/qs8-gemm/gen/2x4c8-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002204 "src/qs8-gemm/gen/2x4c8-xw-minmax-sse41.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002205 "src/qs8-gemm/gen/3x4c8-minmax-sse41-ld64.c",
2206 "src/qs8-gemm/gen/3x4c8-minmax-sse41-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002207 "src/qs8-gemm/gen/3x4c8-xw-minmax-sse41.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002208 "src/qs8-gemm/gen/4x4c2-minmax-sse41-ld64.c",
2209 "src/qs8-gemm/gen/4x4c2-minmax-sse41-ld128.c",
2210 "src/qs8-gemm/gen/4x4c2-xw-minmax-sse41.c",
Marat Dukhan14d3ce82020-07-31 16:19:15 -07002211 "src/qs8-igemm/gen/1x4c2-minmax-sse41-ld64.c",
Marat Dukhandee732b2020-07-31 17:32:04 -07002212 "src/qs8-igemm/gen/1x4c2-minmax-sse41-ld128.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002213 "src/qs8-igemm/gen/1x4c8-minmax-sse41-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002214 "src/qs8-igemm/gen/1x4c8-minmax-sse41-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002215 "src/qs8-igemm/gen/2x4c8-minmax-sse41-ld64.c",
Marat Dukhan07bd2522020-07-31 19:12:39 -07002216 "src/qs8-igemm/gen/2x4c8-minmax-sse41-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002217 "src/qs8-igemm/gen/3x4c8-minmax-sse41-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07002218 "src/qs8-igemm/gen/3x4c8-minmax-sse41-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002219 "src/qs8-igemm/gen/4x4c2-minmax-sse41-ld64.c",
2220 "src/qs8-igemm/gen/4x4c2-minmax-sse41-ld128.c",
Marat Dukhan2e23d2b2020-07-29 16:01:37 -07002221 "src/qs8-requantization/fp32-sse4.c",
2222 "src/qs8-requantization/precise-sse4.c",
2223 "src/qs8-requantization/q31-sse4.c",
Marat Dukhand9f3ad42020-08-10 12:30:58 -07002224 "src/qs8-vadd/gen/minmax-sse41-mul16-ld64-x8.c",
2225 "src/qs8-vadd/gen/minmax-sse41-mul16-ld64-x16.c",
2226 "src/qs8-vadd/gen/minmax-sse41-mul16-ld64-x24.c",
2227 "src/qs8-vadd/gen/minmax-sse41-mul16-ld64-x32.c",
Marat Dukhanbb9225e2020-09-06 22:40:56 -07002228 "src/qs8-vadd/gen/minmax-sse41-mul32-ld32-x8.c",
2229 "src/qs8-vadd/gen/minmax-sse41-mul32-ld32-x16.c",
2230 "src/qs8-vadd/gen/minmax-sse41-mul32-ld32-x24.c",
2231 "src/qs8-vadd/gen/minmax-sse41-mul32-ld32-x32.c",
Marat Dukhan0270d9f2020-08-11 00:56:46 -07002232 "src/qs8-vaddc/gen/minmax-sse41-mul16-ld64-x8.c",
2233 "src/qs8-vaddc/gen/minmax-sse41-mul16-ld64-x16.c",
2234 "src/qs8-vaddc/gen/minmax-sse41-mul16-ld64-x24.c",
2235 "src/qs8-vaddc/gen/minmax-sse41-mul16-ld64-x32.c",
Marat Dukhanbb9225e2020-09-06 22:40:56 -07002236 "src/qs8-vaddc/gen/minmax-sse41-mul32-ld32-x8.c",
2237 "src/qs8-vaddc/gen/minmax-sse41-mul32-ld32-x16.c",
2238 "src/qs8-vaddc/gen/minmax-sse41-mul32-ld32-x24.c",
2239 "src/qs8-vaddc/gen/minmax-sse41-mul32-ld32-x32.c",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07002240 "src/qu8-requantization/precise-sse4.c",
2241 "src/qu8-requantization/q31-sse4.c",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08002242]
2243
Marat Dukhan08c4a432019-10-03 09:29:21 -07002244AVX_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07002245 "src/f32-clamp/gen/avx-x8.c",
2246 "src/f32-clamp/gen/avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002247 "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c",
2248 "src/f32-dwconv/gen/up8x4-minmax-avx.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002249 "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c",
2250 "src/f32-dwconv/gen/up8x9-minmax-avx.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002251 "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c",
2252 "src/f32-dwconv/gen/up8x25-minmax-avx.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002253 "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c",
2254 "src/f32-dwconv/gen/up16x4-minmax-avx.c",
2255 "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c",
2256 "src/f32-dwconv/gen/up16x9-minmax-avx.c",
2257 "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c",
2258 "src/f32-dwconv/gen/up16x25-minmax-avx.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002259 "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002260 "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c",
2261 "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002262 "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002263 "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002264 "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002265 "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002266 "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c",
2267 "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c",
2268 "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c",
2269 "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c",
2270 "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c",
2271 "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c",
2272 "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c",
2273 "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c",
2274 "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c",
2275 "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c",
2276 "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07002277 "src/f32-hswish/gen/hswish-avx-x8.c",
2278 "src/f32-hswish/gen/hswish-avx-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002279 "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002280 "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c",
2281 "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002282 "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002283 "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002284 "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002285 "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002286 "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c",
2287 "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07002288 "src/f32-prelu/gen/avx-2x8.c",
2289 "src/f32-prelu/gen/avx-2x16.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07002290 "src/f32-relu/gen/avx-x8.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002291 "src/f32-relu/gen/avx-x16.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002292 "src/f32-rmax/avx.c",
T.J. Alumbaughdc2b29c2020-10-14 13:56:08 -07002293 "src/f32-sigmoid/gen/avx-rr2-p5-div-x8.c",
2294 "src/f32-sigmoid/gen/avx-rr2-p5-div-x16.c",
2295 "src/f32-sigmoid/gen/avx-rr2-p5-div-x24.c",
2296 "src/f32-sigmoid/gen/avx-rr2-p5-div-x32.c",
2297 "src/f32-sigmoid/gen/avx-rr2-p5-div-x40.c",
2298 "src/f32-sigmoid/gen/avx-rr2-p5-div-x48.c",
2299 "src/f32-sigmoid/gen/avx-rr2-p5-div-x56.c",
2300 "src/f32-sigmoid/gen/avx-rr2-p5-div-x64.c",
2301 "src/f32-sigmoid/gen/avx-rr2-p5-div-x72.c",
2302 "src/f32-sigmoid/gen/avx-rr2-p5-div-x80.c",
2303 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x8.c",
2304 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x16.c",
2305 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x24.c",
2306 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x32.c",
2307 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x40.c",
2308 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x48.c",
2309 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x56.c",
2310 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x64.c",
2311 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x72.c",
2312 "src/f32-sigmoid/gen/avx-rr2-p5-nr2-x80.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002313 "src/f32-vbinary/gen/vadd-minmax-avx-x8.c",
2314 "src/f32-vbinary/gen/vadd-minmax-avx-x16.c",
2315 "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c",
2316 "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c",
2317 "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c",
2318 "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c",
2319 "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c",
2320 "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08002321 "src/f32-vbinary/gen/vmax-avx-x8.c",
2322 "src/f32-vbinary/gen/vmax-avx-x16.c",
2323 "src/f32-vbinary/gen/vmaxc-avx-x8.c",
2324 "src/f32-vbinary/gen/vmaxc-avx-x16.c",
2325 "src/f32-vbinary/gen/vmin-avx-x8.c",
2326 "src/f32-vbinary/gen/vmin-avx-x16.c",
2327 "src/f32-vbinary/gen/vminc-avx-x8.c",
2328 "src/f32-vbinary/gen/vminc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002329 "src/f32-vbinary/gen/vmul-minmax-avx-x8.c",
2330 "src/f32-vbinary/gen/vmul-minmax-avx-x16.c",
2331 "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c",
2332 "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c",
2333 "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c",
2334 "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c",
2335 "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c",
2336 "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07002337 "src/f32-vbinary/gen/vsqrdiff-avx-x8.c",
2338 "src/f32-vbinary/gen/vsqrdiff-avx-x16.c",
2339 "src/f32-vbinary/gen/vsqrdiffc-avx-x8.c",
2340 "src/f32-vbinary/gen/vsqrdiffc-avx-x16.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002341 "src/f32-vbinary/gen/vsub-minmax-avx-x8.c",
2342 "src/f32-vbinary/gen/vsub-minmax-avx-x16.c",
2343 "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c",
2344 "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07002345 "src/f32-vlrelu/gen/vlrelu-avx-x8.c",
2346 "src/f32-vlrelu/gen/vlrelu-avx-x16.c",
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07002347 "src/f32-vrnd/gen/vrndd-avx-x8.c",
2348 "src/f32-vrnd/gen/vrndd-avx-x16.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002349 "src/f32-vrnd/gen/vrndne-avx-x8.c",
2350 "src/f32-vrnd/gen/vrndne-avx-x16.c",
2351 "src/f32-vrnd/gen/vrndu-avx-x8.c",
2352 "src/f32-vrnd/gen/vrndu-avx-x16.c",
2353 "src/f32-vrnd/gen/vrndz-avx-x8.c",
2354 "src/f32-vrnd/gen/vrndz-avx-x16.c",
2355 "src/f32-vscale/avx-unroll32.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002356 "src/f32-vsqrt/gen/avx-sqrt-x8.c",
2357 "src/f32-vsqrt/gen/avx-sqrt-x16.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07002358 "src/f32-vunary/gen/vabs-avx-x8.c",
2359 "src/f32-vunary/gen/vabs-avx-x16.c",
2360 "src/f32-vunary/gen/vneg-avx-x8.c",
2361 "src/f32-vunary/gen/vneg-avx-x16.c",
2362 "src/f32-vunary/gen/vsqr-avx-x8.c",
2363 "src/f32-vunary/gen/vsqr-avx-x16.c",
Marat Dukhand08abcb2020-09-21 00:26:25 -07002364 "src/math/exp-avx-p5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002365 "src/math/sigmoid-avx-rr2-lut64-p2-div.c",
Marat Dukhan2e4727b2020-09-24 00:48:39 -07002366 "src/math/sigmoid-avx-rr2-p5-div.c",
Marat Dukhan39ab16f2020-10-16 14:30:35 -07002367 "src/math/sigmoid-avx-rr2-p5-nr1.c",
2368 "src/math/sigmoid-avx-rr2-p5-nr2.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002369]
2370
Marat Dukhan1566fee2020-08-02 21:55:41 -07002371XOP_UKERNELS = [
2372 "src/qs8-gemm/gen/1x4c2-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002373 "src/qs8-gemm/gen/1x4c2-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002374 "src/qs8-gemm/gen/1x4c2-xw-minmax-xop.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002375 "src/qs8-gemm/gen/1x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002376 "src/qs8-gemm/gen/1x4c8-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002377 "src/qs8-gemm/gen/1x4c8-xw-minmax-xop.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002378 "src/qs8-gemm/gen/2x4c8-minmax-xop-ld64.c",
2379 "src/qs8-gemm/gen/2x4c8-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002380 "src/qs8-gemm/gen/2x4c8-xw-minmax-xop.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002381 "src/qs8-gemm/gen/3x4c8-minmax-xop-ld64.c",
2382 "src/qs8-gemm/gen/3x4c8-minmax-xop-ld128.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002383 "src/qs8-gemm/gen/3x4c8-xw-minmax-xop.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002384 "src/qs8-gemm/gen/4x4c2-minmax-xop-ld64.c",
2385 "src/qs8-gemm/gen/4x4c2-minmax-xop-ld128.c",
2386 "src/qs8-gemm/gen/4x4c2-xw-minmax-xop.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002387 "src/qs8-igemm/gen/1x4c2-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002388 "src/qs8-igemm/gen/1x4c2-minmax-xop-ld128.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002389 "src/qs8-igemm/gen/1x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002390 "src/qs8-igemm/gen/1x4c8-minmax-xop-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002391 "src/qs8-igemm/gen/2x4c8-minmax-xop-ld64.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002392 "src/qs8-igemm/gen/2x4c8-minmax-xop-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002393 "src/qs8-igemm/gen/3x4c8-minmax-xop-ld64.c",
Marat Dukhane7edc802020-08-03 16:43:57 -07002394 "src/qs8-igemm/gen/3x4c8-minmax-xop-ld128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002395 "src/qs8-igemm/gen/4x4c2-minmax-xop-ld64.c",
2396 "src/qs8-igemm/gen/4x4c2-minmax-xop-ld128.c",
Marat Dukhanbb9225e2020-09-06 22:40:56 -07002397 "src/qs8-vadd/gen/minmax-xop-mul32-ld32-x8.c",
2398 "src/qs8-vadd/gen/minmax-xop-mul32-ld32-x16.c",
2399 "src/qs8-vadd/gen/minmax-xop-mul32-ld32-x24.c",
2400 "src/qs8-vadd/gen/minmax-xop-mul32-ld32-x32.c",
2401 "src/qs8-vaddc/gen/minmax-xop-mul32-ld32-x8.c",
2402 "src/qs8-vaddc/gen/minmax-xop-mul32-ld32-x16.c",
2403 "src/qs8-vaddc/gen/minmax-xop-mul32-ld32-x24.c",
2404 "src/qs8-vaddc/gen/minmax-xop-mul32-ld32-x32.c",
Marat Dukhan1566fee2020-08-02 21:55:41 -07002405]
2406
Marat Dukhanfda12b82019-11-21 12:27:59 -08002407FMA3_UKERNELS = [
Marat Dukhan1c587112020-04-08 20:04:28 -07002408 "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c",
2409 "src/f32-dwconv/gen/up8x4-minmax-fma3.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002410 "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c",
2411 "src/f32-dwconv/gen/up8x9-minmax-fma3.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002412 "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c",
2413 "src/f32-dwconv/gen/up8x25-minmax-fma3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002414 "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c",
2415 "src/f32-dwconv/gen/up16x4-minmax-fma3.c",
2416 "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c",
2417 "src/f32-dwconv/gen/up16x9-minmax-fma3.c",
2418 "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c",
2419 "src/f32-dwconv/gen/up16x25-minmax-fma3.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002420 "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002421 "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c",
2422 "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c",
2423 "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c",
2424 "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002425 "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002426 "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c",
2427 "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002428 "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002429 "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c",
2430 "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002431 "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c",
2432 "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c",
2433 "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002434 "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c",
2435 "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c",
2436 "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c",
2437 "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c",
2438 "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c",
2439 "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c",
2440 "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c",
2441 "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c",
2442 "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c",
2443 "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c",
2444 "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c",
2445 "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c",
2446 "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c",
2447 "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07002448 "src/f32-hswish/gen/hswish-fma3-x8.c",
2449 "src/f32-hswish/gen/hswish-fma3-x16.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002450 "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002451 "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c",
2452 "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c",
2453 "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c",
2454 "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002455 "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002456 "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c",
2457 "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002458 "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002459 "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c",
2460 "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002461 "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c",
2462 "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c",
2463 "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002464 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x8.c",
2465 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x16.c",
2466 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x24.c",
2467 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x32.c",
2468 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x40.c",
2469 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x48.c",
2470 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x56.c",
2471 "src/f32-vsqrt/gen/fma3-nr1fma1adj-x64.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002472 "src/math/sqrt-fma3-nr1fma.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002473 "src/math/sqrt-fma3-nr1fma1adj.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002474 "src/math/sqrt-fma3-nr2fma.c",
Marat Dukhanfda12b82019-11-21 12:27:59 -08002475]
2476
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002477AVX2_UKERNELS = [
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002478 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c",
2479 "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002480 "src/f32-raddexpminusmax/gen/avx2-p5-x64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002481 "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002482 "src/f32-raddexpminusmax/gen/avx2-p5-x72.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002483 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c",
2484 "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002485 "src/f32-raddexpminusmax/gen/avx2-p5-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002486 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c",
2487 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c",
2488 "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002489 "src/f32-raddexpminusmax/gen/avx2-p5-x96.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002490 "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c",
2491 "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002492 "src/f32-raddextexp/gen/avx2-p5-x64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002493 "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002494 "src/f32-raddextexp/gen/avx2-p5-x72.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002495 "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c",
2496 "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002497 "src/f32-raddextexp/gen/avx2-p5-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002498 "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c",
2499 "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c",
2500 "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002501 "src/f32-raddextexp/gen/avx2-p5-x96.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002502 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c",
2503 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002504 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002505 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002506 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002507 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c",
2508 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002509 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002510 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c",
2511 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c",
2512 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002513 "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c",
Marat Dukhanfa0a4322020-01-06 16:14:29 -08002514 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c",
2515 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c",
2516 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c",
2517 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c",
2518 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c",
2519 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c",
2520 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c",
2521 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c",
2522 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c",
2523 "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c",
2524 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c",
2525 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c",
2526 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c",
2527 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c",
2528 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c",
2529 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c",
2530 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c",
2531 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c",
2532 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c",
2533 "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c",
2534 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c",
2535 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c",
2536 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c",
2537 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c",
2538 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c",
2539 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c",
2540 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c",
2541 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c",
2542 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c",
2543 "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002544 "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c",
2545 "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c",
2546 "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c",
2547 "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c",
2548 "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c",
2549 "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c",
2550 "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c",
2551 "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c",
2552 "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c",
2553 "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c",
2554 "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c",
2555 "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c",
2556 "src/f32-vscaleextexp/gen/avx2-p5-x8.c",
2557 "src/f32-vscaleextexp/gen/avx2-p5-x16.c",
2558 "src/f32-vscaleextexp/gen/avx2-p5-x24.c",
2559 "src/f32-vscaleextexp/gen/avx2-p5-x32.c",
2560 "src/f32-vscaleextexp/gen/avx2-p5-x40.c",
2561 "src/f32-vscaleextexp/gen/avx2-p5-x48.c",
2562 "src/f32-vscaleextexp/gen/avx2-p5-x56.c",
2563 "src/f32-vscaleextexp/gen/avx2-p5-x64.c",
2564 "src/f32-vscaleextexp/gen/avx2-p5-x72.c",
2565 "src/f32-vscaleextexp/gen/avx2-p5-x80.c",
2566 "src/f32-vscaleextexp/gen/avx2-p5-x88.c",
2567 "src/f32-vscaleextexp/gen/avx2-p5-x96.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002568 "src/math/exp-avx2-lut8-p3-perm.c",
2569 "src/math/exp-avx2-lut8-p4-perm.c",
2570 "src/math/exp-avx2-p5.c",
2571 "src/math/expminus-avx2-p5.c",
2572 "src/math/extexp-avx2-p5.c",
2573 "src/math/sigmoid-avx2-rr1-lut64-p2-gather-div.c",
2574 "src/math/sigmoid-avx2-rr1-lut64-p2-gather-nr1fma.c",
2575 "src/math/sigmoid-avx2-rr1-lut64-p2-gather-nr2fma.c",
2576 "src/math/sigmoid-avx2-rr1-lut64-p2-gather-nr2fma1adj.c",
2577 "src/math/sigmoid-avx2-rr1-p5-div.c",
2578 "src/math/sigmoid-avx2-rr1-p5-nr1fma.c",
2579 "src/math/sigmoid-avx2-rr1-p5-nr2fma.c",
2580 "src/math/sigmoid-avx2-rr2-lut64-p2-gather-div.c",
2581 "src/math/sigmoid-avx2-rr2-lut64-p2-gather-nr1fma.c",
2582 "src/math/sigmoid-avx2-rr2-lut64-p2-gather-nr2fma.c",
2583 "src/math/sigmoid-avx2-rr2-lut64-p2-gather-nr2fma1adj.c",
2584 "src/math/sigmoid-avx2-rr2-p5-div.c",
2585 "src/math/sigmoid-avx2-rr2-p5-nr1fma.c",
2586 "src/math/sigmoid-avx2-rr2-p5-nr2fma.c",
Marat Dukhand65a1522020-08-04 19:28:18 -07002587 "src/qs8-dwconv/gen/up8x9-minmax-avx2-mul32.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002588 "src/qs8-dwconv/gen/up16x9-minmax-avx2-mul16.c",
Marat Dukhand65a1522020-08-04 19:28:18 -07002589 "src/qs8-dwconv/gen/up16x9-minmax-avx2-mul32.c",
2590 "src/qs8-dwconv/gen/up24x9-minmax-avx2-mul32.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002591 "src/qs8-dwconv/gen/up32x9-minmax-avx2-mul16.c",
Marat Dukhand65a1522020-08-04 19:28:18 -07002592 "src/qs8-dwconv/gen/up32x9-minmax-avx2-mul32.c",
Marat Dukhan12809522020-08-02 22:23:51 -07002593 "src/qs8-gemm/gen/1x8c8-minmax-avx2.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002594 "src/qs8-gemm/gen/1x8c8-xw-minmax-avx2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002595 "src/qs8-gemm/gen/2x8c8-minmax-avx2.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002596 "src/qs8-gemm/gen/2x8c8-xw-minmax-avx2.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002597 "src/qs8-gemm/gen/3x8c8-minmax-avx2.c",
Marat Dukhan683fab32020-08-03 19:42:52 -07002598 "src/qs8-gemm/gen/3x8c8-xw-minmax-avx2.c",
Marat Dukhan12809522020-08-02 22:23:51 -07002599 "src/qs8-igemm/gen/1x8c8-minmax-avx2.c",
2600 "src/qs8-igemm/gen/2x8c8-minmax-avx2.c",
2601 "src/qs8-igemm/gen/3x8c8-minmax-avx2.c",
Marat Dukhane6dc0b62020-09-08 23:57:14 -07002602 "src/qs8-vadd/gen/minmax-avx2-mul32-ld64-x8.c",
2603 "src/qs8-vadd/gen/minmax-avx2-mul32-ld64-x16.c",
2604 "src/qs8-vadd/gen/minmax-avx2-mul32-ld64-x24.c",
2605 "src/qs8-vadd/gen/minmax-avx2-mul32-ld64-x32.c",
2606 "src/qs8-vaddc/gen/minmax-avx2-mul32-ld64-x8.c",
2607 "src/qs8-vaddc/gen/minmax-avx2-mul32-ld64-x16.c",
2608 "src/qs8-vaddc/gen/minmax-avx2-mul32-ld64-x24.c",
2609 "src/qs8-vaddc/gen/minmax-avx2-mul32-ld64-x32.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002610]
2611
Marat Dukhan08c4a432019-10-03 09:29:21 -07002612AVX512F_UKERNELS = [
Marat Dukhan5c5fa962020-03-10 18:38:33 -07002613 "src/f32-clamp/gen/avx512f-x16.c",
2614 "src/f32-clamp/gen/avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002615 "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c",
2616 "src/f32-dwconv/gen/up16x4-minmax-avx512f.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002617 "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c",
2618 "src/f32-dwconv/gen/up16x9-minmax-avx512f.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002619 "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c",
2620 "src/f32-dwconv/gen/up16x25-minmax-avx512f.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002621 "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c",
2622 "src/f32-dwconv/gen/up32x4-minmax-avx512f.c",
2623 "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c",
2624 "src/f32-dwconv/gen/up32x9-minmax-avx512f.c",
2625 "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c",
2626 "src/f32-dwconv/gen/up32x25-minmax-avx512f.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002627 "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c",
2628 "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c",
2629 "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c",
2630 "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c",
2631 "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c",
2632 "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002633 "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c",
2634 "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c",
2635 "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c",
2636 "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c",
2637 "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c",
2638 "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhanefaac272020-07-16 16:58:07 -07002639 "src/f32-hswish/gen/hswish-avx512f-x16.c",
2640 "src/f32-hswish/gen/hswish-avx512f-x32.c",
Marat Dukhan1c587112020-04-08 20:04:28 -07002641 "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c",
2642 "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c",
2643 "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c",
2644 "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c",
2645 "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c",
2646 "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c",
Marat Dukhan90eca0a2020-03-11 00:52:23 -07002647 "src/f32-prelu/gen/avx512f-2x16.c",
2648 "src/f32-prelu/gen/avx512f-2x32.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002649 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2650 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002651 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002652 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002653 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002654 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2655 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002656 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002657 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2658 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2659 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002660 "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002661 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c",
2662 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002663 "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002664 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002665 "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002666 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c",
2667 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002668 "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002669 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c",
2670 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c",
2671 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002672 "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002673 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c",
2674 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002675 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002676 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002677 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002678 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c",
2679 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002680 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002681 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c",
2682 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c",
2683 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002684 "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c",
Frank Barchardfb158e22020-07-15 16:10:10 -07002685 "src/f32-relu/gen/avx512f-x16.c",
2686 "src/f32-relu/gen/avx512f-x32.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002687 "src/f32-rmax/avx512f.c",
Marat Dukhand9ca7e62020-09-23 23:45:29 -07002688 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x16.c",
2689 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x32.c",
2690 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x48.c",
2691 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x64.c",
2692 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x80.c",
2693 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x96.c",
2694 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x112.c",
2695 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-div-x128.c",
2696 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x16.c",
2697 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x32.c",
2698 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x48.c",
2699 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x64.c",
2700 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x80.c",
2701 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x96.c",
2702 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x112.c",
2703 "src/f32-sigmoid/gen/avx512f-rr1-lut16-p3-perm-scalef-nr1fma-x128.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002704 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x16.c",
2705 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x32.c",
2706 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x48.c",
2707 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x64.c",
2708 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x80.c",
2709 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x96.c",
2710 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x112.c",
2711 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-div-x128.c",
2712 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x16.c",
2713 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x32.c",
2714 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x48.c",
2715 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x64.c",
2716 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x80.c",
2717 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x96.c",
2718 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x112.c",
2719 "src/f32-sigmoid/gen/avx512f-rr1-p5-scalef-nr1fma-x128.c",
Marat Dukhand9ca7e62020-09-23 23:45:29 -07002720 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x16.c",
2721 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x32.c",
2722 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x48.c",
2723 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x64.c",
2724 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x80.c",
2725 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x96.c",
2726 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x112.c",
2727 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-div-x128.c",
2728 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x16.c",
2729 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x32.c",
2730 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x48.c",
2731 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x64.c",
2732 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x80.c",
2733 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x96.c",
2734 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x112.c",
2735 "src/f32-sigmoid/gen/avx512f-rr2-lut32-p2-perm2-scalef-nr1fma-x128.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002736 "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c",
2737 "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c",
2738 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c",
2739 "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c",
2740 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c",
2741 "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c",
2742 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c",
2743 "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c",
Marat Dukhan9a88efe2019-12-10 15:54:24 -08002744 "src/f32-vbinary/gen/vmax-avx512f-x16.c",
2745 "src/f32-vbinary/gen/vmax-avx512f-x32.c",
2746 "src/f32-vbinary/gen/vmaxc-avx512f-x16.c",
2747 "src/f32-vbinary/gen/vmaxc-avx512f-x32.c",
2748 "src/f32-vbinary/gen/vmin-avx512f-x16.c",
2749 "src/f32-vbinary/gen/vmin-avx512f-x32.c",
2750 "src/f32-vbinary/gen/vminc-avx512f-x16.c",
2751 "src/f32-vbinary/gen/vminc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002752 "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c",
2753 "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c",
2754 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c",
2755 "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c",
2756 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c",
2757 "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c",
2758 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c",
2759 "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c",
Marat Dukhan13bafb02020-06-05 00:43:11 -07002760 "src/f32-vbinary/gen/vsqrdiff-avx512f-x16.c",
2761 "src/f32-vbinary/gen/vsqrdiff-avx512f-x32.c",
2762 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x16.c",
2763 "src/f32-vbinary/gen/vsqrdiffc-avx512f-x32.c",
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002764 "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c",
2765 "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c",
2766 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c",
2767 "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c",
Marat Dukhan19dd91d2020-07-16 11:12:44 -07002768 "src/f32-vlrelu/gen/vlrelu-avx512f-x16.c",
2769 "src/f32-vlrelu/gen/vlrelu-avx512f-x32.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002770 "src/f32-vrnd/gen/vrndd-avx512f-x16.c",
2771 "src/f32-vrnd/gen/vrndd-avx512f-x32.c",
2772 "src/f32-vrnd/gen/vrndne-avx512f-x16.c",
2773 "src/f32-vrnd/gen/vrndne-avx512f-x32.c",
2774 "src/f32-vrnd/gen/vrndu-avx512f-x16.c",
2775 "src/f32-vrnd/gen/vrndu-avx512f-x32.c",
2776 "src/f32-vrnd/gen/vrndz-avx512f-x16.c",
2777 "src/f32-vrnd/gen/vrndz-avx512f-x32.c",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07002778 "src/f32-vscale/avx512f-unroll64.c",
Marat Dukhan4c4eb002019-12-08 21:27:49 -08002779 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c",
2780 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c",
2781 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c",
2782 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c",
2783 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c",
2784 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c",
2785 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c",
2786 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c",
2787 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c",
2788 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c",
2789 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c",
2790 "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c",
2791 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c",
2792 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c",
2793 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c",
2794 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c",
2795 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c",
2796 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c",
2797 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c",
2798 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c",
2799 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c",
2800 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c",
2801 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c",
2802 "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c",
Marat Dukhanf4db2f32020-06-30 10:55:30 -07002803 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x16.c",
2804 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x32.c",
2805 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x48.c",
2806 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x64.c",
2807 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x80.c",
2808 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x96.c",
2809 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x112.c",
2810 "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x128.c",
Marat Dukhan5020b962020-06-08 13:30:10 -07002811 "src/f32-vunary/gen/vabs-avx512f-x16.c",
2812 "src/f32-vunary/gen/vabs-avx512f-x32.c",
2813 "src/f32-vunary/gen/vneg-avx512f-x16.c",
2814 "src/f32-vunary/gen/vneg-avx512f-x32.c",
2815 "src/f32-vunary/gen/vsqr-avx512f-x16.c",
2816 "src/f32-vunary/gen/vsqr-avx512f-x32.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002817 "src/math/exp-avx512f-lut16-p3-perm-scalef.c",
2818 "src/math/exp-avx512f-lut16-p3-perm.c",
2819 "src/math/exp-avx512f-lut32-p2-perm2-scalef.c",
2820 "src/math/exp-avx512f-lut32-p2-perm2.c",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07002821 "src/math/exp-avx512f-p5-scalef.c",
2822 "src/math/exp-avx512f-p5.c",
Marat Dukhan98ba4412019-10-23 02:14:28 -07002823 "src/math/extexp-avx512f-p5.c",
Marat Dukhan6a34c5f2020-09-22 21:44:15 -07002824 "src/math/sigmoid-avx512f-rr1-lut16-p3-perm-scalef-div.c",
Marat Dukhan6a34c5f2020-09-22 21:44:15 -07002825 "src/math/sigmoid-avx512f-rr1-lut16-p3-perm-scalef-nr1fma.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002826 "src/math/sigmoid-avx512f-rr1-lut16-p3-perm-scalef-nr1fma1adj.c",
Marat Dukhan6a34c5f2020-09-22 21:44:15 -07002827 "src/math/sigmoid-avx512f-rr1-lut32-p2-perm2-scalef-div.c",
Marat Dukhan6a34c5f2020-09-22 21:44:15 -07002828 "src/math/sigmoid-avx512f-rr1-lut32-p2-perm2-scalef-nr1fma.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002829 "src/math/sigmoid-avx512f-rr1-lut32-p2-perm2-scalef-nr1fma1adj.c",
Marat Dukhan36173d22020-10-15 17:14:26 -07002830 "src/math/sigmoid-avx512f-rr1-lut64-p2-gather-scalef-div.c",
Marat Dukhan36173d22020-10-15 17:14:26 -07002831 "src/math/sigmoid-avx512f-rr1-lut64-p2-gather-scalef-nr1fma.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002832 "src/math/sigmoid-avx512f-rr1-lut64-p2-gather-scalef-nr1fma1adj.c",
2833 "src/math/sigmoid-avx512f-rr1-p5-scalef-div.c",
2834 "src/math/sigmoid-avx512f-rr1-p5-scalef-nr1fma.c",
2835 "src/math/sigmoid-avx512f-rr1-p5-scalef-nr1fma1adj.c",
2836 "src/math/sigmoid-avx512f-rr2-lut16-p3-perm-scalef-div.c",
2837 "src/math/sigmoid-avx512f-rr2-lut16-p3-perm-scalef-nr1fma.c",
2838 "src/math/sigmoid-avx512f-rr2-lut16-p3-perm-scalef-nr1fma1adj.c",
2839 "src/math/sigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div.c",
2840 "src/math/sigmoid-avx512f-rr2-lut32-p2-perm2-scalef-nr1fma.c",
2841 "src/math/sigmoid-avx512f-rr2-lut32-p2-perm2-scalef-nr1fma1adj.c",
Marat Dukhan36173d22020-10-15 17:14:26 -07002842 "src/math/sigmoid-avx512f-rr2-lut64-p2-gather-scalef-div.c",
Marat Dukhan36173d22020-10-15 17:14:26 -07002843 "src/math/sigmoid-avx512f-rr2-lut64-p2-gather-scalef-nr1fma.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002844 "src/math/sigmoid-avx512f-rr2-lut64-p2-gather-scalef-nr1fma1adj.c",
2845 "src/math/sigmoid-avx512f-rr2-p5-scalef-div.c",
2846 "src/math/sigmoid-avx512f-rr2-p5-scalef-nr1fma.c",
2847 "src/math/sigmoid-avx512f-rr2-p5-scalef-nr1fma1adj.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002848 "src/math/sqrt-avx512f-nr1fma.c",
Marat Dukhan84000762020-06-29 18:38:43 -07002849 "src/math/sqrt-avx512f-nr1fma1adj.c",
Frank Barchard04336c12020-10-22 16:48:55 -07002850 "src/math/sqrt-avx512f-nr2fma.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002851]
2852
Marat Dukhanbb00b1d2020-08-10 11:37:23 -07002853AVX512SKX_UKERNELS = [
Marat Dukhan2ffc5e62020-09-06 22:33:38 -07002854 "src/qs8-dwconv/gen/up16x9-minmax-avx512skx-mul32.c",
2855 "src/qs8-dwconv/gen/up32x9-minmax-avx512skx-mul32.c",
Marat Dukhanbb00b1d2020-08-10 11:37:23 -07002856 "src/qs8-gemm/gen/1x16c8-minmax-avx512skx.c",
2857 "src/qs8-gemm/gen/2x16c8-minmax-avx512skx.c",
2858 "src/qs8-gemm/gen/3x16c8-minmax-avx512skx.c",
2859 "src/qs8-gemm/gen/4x16c8-minmax-avx512skx.c",
2860 "src/qs8-igemm/gen/1x16c8-minmax-avx512skx.c",
2861 "src/qs8-igemm/gen/2x16c8-minmax-avx512skx.c",
2862 "src/qs8-igemm/gen/3x16c8-minmax-avx512skx.c",
2863 "src/qs8-igemm/gen/4x16c8-minmax-avx512skx.c",
2864]
2865
Frank Barchardbcedc082020-08-17 18:00:51 -07002866WASM32_ASM_UKERNELS = [
2867 "src/f32-relu/wasm_shr_x1.S",
2868 "src/f32-relu/wasm_shr_x2.S",
2869 "src/f32-relu/wasm_shr_x4.S",
2870]
2871
Marat Dukhan08c4a432019-10-03 09:29:21 -07002872AARCH32_ASM_UKERNELS = [
Marat Dukhan32f93812020-05-17 20:31:21 -07002873 "src/f32-gemm/4x4-aarch32-vfp-ld64.S",
Marat Dukhan3b98f6b2020-05-17 10:09:22 -07002874 "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002875 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2876 "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002877 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a7.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002878 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
Frank Barchard569561d2020-06-17 13:11:12 -07002879 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-ld64.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002880 "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002881 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S",
2882 "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S",
Frank Barchard490febe2020-07-16 18:42:17 -07002883 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a7.S",
2884 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S",
2885 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-ld64.S",
2886 "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002887]
2888
2889AARCH64_ASM_UKERNELS = [
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002890 "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002891 "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002892 "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002893 "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchardbddfbcd2020-04-15 12:32:41 -07002894 "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002895 "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S",
Frank Barchard3b8e5662020-04-20 12:12:53 -07002896 "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002897 "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S",
2898 "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S",
2899 "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S",
2900 "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S",
2901 "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S",
2902 "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S",
2903 "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002904 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S",
2905 "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002906 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2907 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2908 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002909 "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S",
2910 "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002911 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2912 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S",
2913 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2914 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002915 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002916 "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S",
2917 "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002918 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S",
2919 "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S",
2920 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S",
2921 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002922 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002923 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002924 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002925 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002926 "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S",
2927 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S",
2928 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2929 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
2930 "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S",
2931 "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S",
2932 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2933 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S",
2934 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2935 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2936 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S",
2937 "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S",
2938 "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2939 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2940 "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
2941 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2942 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2943 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2944 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2945 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
2946 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S",
2947 "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002948 "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002949 "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002950 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S",
2951 "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S",
Frank Barchard04336c12020-10-22 16:48:55 -07002952 "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S",
2953 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S",
2954 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S",
2955 "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S",
2956 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S",
2957 "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002958 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S",
2959 "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S",
2960 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S",
2961 "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S",
Marat Dukhan1c587112020-04-08 20:04:28 -07002962 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S",
2963 "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S",
Frank Barchardf1fd89e2020-10-06 23:27:11 -07002964 "src/qs8-gemm/1x16c4-aarch64-neondot-ld64.S",
Frank Barchardf2742c42020-10-12 21:16:46 -07002965 "src/qs8-gemm/4x16c4-aarch64-neondot-cortex-a55.S",
Frank Barcharda5237a52020-10-06 16:18:46 -07002966 "src/qs8-gemm/4x16c4-aarch64-neondot-ld64.S",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002967]
2968
Marat Dukhan1b354632020-03-23 12:50:22 -07002969INTERNAL_MICROKERNEL_HDRS = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07002970 "src/xnnpack/argmaxpool.h",
2971 "src/xnnpack/avgpool.h",
2972 "src/xnnpack/clamp.h",
2973 "src/xnnpack/common.h",
2974 "src/xnnpack/conv.h",
2975 "src/xnnpack/dwconv.h",
Frank Barchard04336c12020-10-22 16:48:55 -07002976 "src/xnnpack/fill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002977 "src/xnnpack/gavgpool.h",
2978 "src/xnnpack/gemm.h",
2979 "src/xnnpack/hswish.h",
Marat Dukhan660fd192020-03-10 04:55:30 -07002980 "src/xnnpack/ibilinear.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002981 "src/xnnpack/igemm.h",
Marat Dukhancfb31342019-12-05 10:42:57 -08002982 "src/xnnpack/intrinsics-polyfill.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002983 "src/xnnpack/lut.h",
2984 "src/xnnpack/math.h",
2985 "src/xnnpack/maxpool.h",
Marat Dukhan04f03be2019-11-19 12:36:47 -08002986 "src/xnnpack/memory.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002987 "src/xnnpack/packx.h",
2988 "src/xnnpack/pad.h",
2989 "src/xnnpack/params.h",
2990 "src/xnnpack/pavgpool.h",
2991 "src/xnnpack/ppmm.h",
2992 "src/xnnpack/prelu.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002993 "src/xnnpack/raddexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002994 "src/xnnpack/raddextexp.h",
Marat Dukhan97579532019-10-18 16:40:39 -07002995 "src/xnnpack/raddstoreexpminusmax.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07002996 "src/xnnpack/rmax.h",
2997 "src/xnnpack/scalar-utils.h",
2998 "src/xnnpack/spmm.h",
2999 "src/xnnpack/unpool.h",
3000 "src/xnnpack/vadd.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003001 "src/xnnpack/vbinary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003002 "src/xnnpack/vmulcaddc.h",
Marat Dukhan05ac8e32019-10-21 15:39:33 -07003003 "src/xnnpack/vscale.h",
Marat Dukhan97579532019-10-18 16:40:39 -07003004 "src/xnnpack/vscaleexpminusmax.h",
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07003005 "src/xnnpack/vscaleextexp.h",
Marat Dukhan1e782c42019-11-21 17:02:40 -08003006 "src/xnnpack/vunary.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003007 "src/xnnpack/zip.h",
Marat Dukhan1b354632020-03-23 12:50:22 -07003008]
3009
3010INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003011 "include/xnnpack.h",
3012 "src/xnnpack/allocator.h",
3013 "src/xnnpack/compute.h",
3014 "src/xnnpack/im2col.h",
3015 "src/xnnpack/indirection.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003016 "src/xnnpack/math-stubs.h",
Chao Mei6ddfc602020-05-13 22:29:36 -07003017 "src/xnnpack/memory-planner.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003018 "src/xnnpack/operator.h",
3019 "src/xnnpack/pack.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07003020 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003021 "src/xnnpack/requantization-stubs.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003022 "src/xnnpack/requantization.h",
Marat Dukhan1d75a542020-02-03 12:23:01 -08003023 "src/xnnpack/subgraph.h",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003024]
3025
Marat Dukhan1b354632020-03-23 12:50:22 -07003026ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003027 "src/xnnpack/math-stubs.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003028]
3029
Marat Dukhan1b354632020-03-23 12:50:22 -07003030MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07003031 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003032 "include/xnnpack.h",
3033]
3034
Marat Dukhan1b354632020-03-23 12:50:22 -07003035MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003036 "src/xnnpack/isa-checks.h",
Marat Dukhaneeaa7bd2019-10-25 17:31:25 -07003037 "src/xnnpack/params-init.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003038 "src/xnnpack/requantization.h",
3039 "include/xnnpack.h",
3040]
3041
3042OPERATOR_TEST_PARAMS_HDRS = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003043 "src/xnnpack/common.h",
Frank Barchard04336c12020-10-22 16:48:55 -07003044 "src/xnnpack/params.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003045]
3046
3047WEIGHTS_PACK_HDRS = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003048 "src/xnnpack/compute.h",
Frank Barchard04336c12020-10-22 16:48:55 -07003049 "src/xnnpack/operator.h",
3050 "src/xnnpack/pack.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003051]
3052
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07003053LOGGING_COPTS = select({
3054 # No logging in optimized mode
3055 ":optimized_build": ["-DXNN_LOG_LEVEL=0"],
3056 # Full logging in debug mode
3057 ":debug_build": ["-DXNN_LOG_LEVEL=5"],
3058 # Error-only logging in default (fastbuild) mode
3059 "//conditions:default": ["-DXNN_LOG_LEVEL=2"],
3060})
3061
Marat Dukhan3b59de22020-06-03 20:15:19 -07003062LOGGING_SRCS = select({
3063 # No logging in optimized mode
3064 ":optimized_build": [],
3065 "//conditions:default": [
3066 "src/operator-strings.c",
3067 "src/subgraph-strings.c",
3068 ],
3069})
3070
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07003071LOGGING_HDRS = [
3072 "src/xnnpack/log.h",
3073]
3074
Marat Dukhan08c4a432019-10-03 09:29:21 -07003075xnnpack_cc_library(
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003076 name = "tables",
3077 srcs = TABLE_SRCS,
3078 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003079 gcc_copts = xnnpack_gcc_std_copts(),
3080 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003081)
3082
3083xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003084 name = "scalar_ukernels",
3085 srcs = SCALAR_UKERNELS,
3086 hdrs = INTERNAL_HDRS,
3087 aarch32_copts = ["-marm"],
Marat Dukhan10a38082020-04-17 03:58:35 -07003088 gcc_copts = xnnpack_gcc_std_copts(),
3089 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003090 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003091 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003092 "@FP16",
3093 "@FXdiv",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003094 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003095 ],
3096)
3097
3098xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003099 name = "scalar_ukernels_test_mode",
3100 srcs = SCALAR_UKERNELS,
3101 hdrs = INTERNAL_HDRS,
3102 aarch32_copts = ["-marm"],
3103 copts = [
3104 "-UNDEBUG",
3105 "-DXNN_TEST_MODE=1",
3106 ],
3107 gcc_copts = xnnpack_gcc_std_copts(),
3108 msvc_copts = xnnpack_msvc_std_copts(),
3109 deps = [
3110 ":tables",
3111 "@FP16",
3112 "@FXdiv",
3113 "@pthreadpool",
3114 ],
3115)
3116
3117xnnpack_cc_library(
Marat Dukhan436ebe62019-12-04 15:10:12 -08003118 name = "wasm_ukernels",
3119 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003120 gcc_copts = xnnpack_gcc_std_copts(),
3121 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan436ebe62019-12-04 15:10:12 -08003122 wasm_srcs = WASM_UKERNELS,
Marat Dukhan1c6e3892020-06-25 23:56:10 -07003123 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan436ebe62019-12-04 15:10:12 -08003124 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003125 ":tables",
Marat Dukhan436ebe62019-12-04 15:10:12 -08003126 "@FP16",
3127 "@FXdiv",
3128 "@pthreadpool",
3129 ],
3130)
3131
3132xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003133 name = "wasm_ukernels_test_mode",
3134 hdrs = INTERNAL_HDRS,
3135 copts = [
3136 "-UNDEBUG",
3137 "-DXNN_TEST_MODE=1",
3138 ],
3139 gcc_copts = xnnpack_gcc_std_copts(),
3140 msvc_copts = xnnpack_msvc_std_copts(),
3141 wasm_srcs = WASM_UKERNELS,
Marat Dukhan0e97d6f2020-06-26 19:35:09 -07003142 wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07003143 deps = [
3144 ":tables",
3145 "@FP16",
3146 "@FXdiv",
3147 "@pthreadpool",
3148 ],
3149)
3150
3151xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003152 name = "psimd_fastmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003153 hdrs = INTERNAL_HDRS,
3154 aarch32_copts = [
3155 "-marm",
3156 "-mfpu=neon",
3157 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003158 gcc_copts = xnnpack_gcc_std_copts(),
3159 gcc_x86_copts = ["-msse2"],
3160 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003161 optimized_copts = [
3162 "-O3",
3163 "-ffast-math",
3164 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07003165 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003166 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003167 ":tables",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003168 "@FP16",
3169 "@psimd",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003170 "@pthreadpool",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003171 ],
3172)
3173
3174xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003175 name = "psimd_fastmath_ukernels_test_mode",
3176 hdrs = INTERNAL_HDRS,
3177 aarch32_copts = [
3178 "-marm",
3179 "-mfpu=neon",
3180 ],
3181 copts = [
3182 "-UNDEBUG",
3183 "-DXNN_TEST_MODE=1",
3184 ],
3185 gcc_copts = xnnpack_gcc_std_copts(),
3186 gcc_x86_copts = ["-msse2"],
3187 msvc_copts = xnnpack_msvc_std_copts(),
3188 optimized_copts = [
3189 "-O3",
3190 "-ffast-math",
3191 ],
3192 psimd_srcs = PSIMD_FASTMATH_UKERNELS,
3193 deps = [
3194 ":tables",
3195 "@FP16",
3196 "@psimd",
3197 "@pthreadpool",
3198 ],
3199)
3200
3201xnnpack_cc_library(
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003202 name = "psimd_accmath_ukernels",
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003203 hdrs = INTERNAL_HDRS,
3204 aarch32_copts = [
3205 "-marm",
3206 "-mfpu=neon",
3207 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003208 gcc_copts = xnnpack_gcc_std_copts(),
3209 gcc_x86_copts = ["-msse2"],
3210 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003211 optimized_copts = [
3212 "-O3",
3213 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07003214 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003215 deps = [
3216 ":tables",
3217 "@FP16",
3218 "@psimd",
3219 "@pthreadpool",
3220 ],
3221)
3222
3223xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003224 name = "psimd_accmath_ukernels_test_mode",
3225 hdrs = INTERNAL_HDRS,
3226 aarch32_copts = [
3227 "-marm",
3228 "-mfpu=neon",
3229 ],
3230 copts = [
3231 "-UNDEBUG",
3232 "-DXNN_TEST_MODE=1",
3233 ],
3234 gcc_copts = xnnpack_gcc_std_copts(),
3235 gcc_x86_copts = ["-msse2"],
3236 msvc_copts = xnnpack_msvc_std_copts(),
3237 optimized_copts = [
3238 "-O3",
3239 ],
3240 psimd_srcs = PSIMD_ACCMATH_UKERNELS,
3241 deps = [
3242 ":tables",
3243 "@FP16",
3244 "@psimd",
3245 "@pthreadpool",
3246 ],
3247)
3248
3249xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003250 name = "neon_ukernels",
3251 hdrs = INTERNAL_HDRS,
3252 aarch32_copts = [
3253 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07003254 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003255 "-mfpu=neon",
3256 ],
3257 aarch32_srcs = NEON_UKERNELS,
3258 aarch64_srcs = NEON_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003259 gcc_copts = xnnpack_gcc_std_copts(),
3260 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08003261 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003262 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003263 "@FP16",
3264 "@pthreadpool",
3265 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003266)
3267
3268xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003269 name = "neon_ukernels_test_mode",
3270 hdrs = INTERNAL_HDRS,
3271 aarch32_copts = [
3272 "-marm",
3273 "-march=armv7-a",
3274 "-mfpu=neon",
3275 ],
3276 aarch32_srcs = NEON_UKERNELS,
3277 aarch64_srcs = NEON_UKERNELS,
3278 copts = [
3279 "-UNDEBUG",
3280 "-DXNN_TEST_MODE=1",
3281 ],
3282 gcc_copts = xnnpack_gcc_std_copts(),
3283 msvc_copts = xnnpack_msvc_std_copts(),
3284 deps = [
3285 ":tables",
3286 "@FP16",
3287 "@pthreadpool",
3288 ],
3289)
3290
3291xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003292 name = "neonfma_ukernels",
3293 hdrs = INTERNAL_HDRS,
3294 aarch32_copts = [
3295 "-marm",
Marat Dukhan8853b822020-05-07 12:19:01 -07003296 "-march=armv7-a",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003297 "-mfpu=neon-vfpv4",
3298 ],
3299 aarch32_srcs = NEONFMA_UKERNELS,
3300 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07003301 apple_aarch32_copts = [
3302 "-mcpu=swift",
3303 "-mtune=generic",
3304 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003305 gcc_copts = xnnpack_gcc_std_copts(),
3306 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08003307 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003308 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003309 "@FP16",
3310 "@pthreadpool",
3311 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003312)
3313
3314xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003315 name = "neonfma_ukernels_test_mode",
3316 hdrs = INTERNAL_HDRS,
3317 aarch32_copts = [
3318 "-marm",
3319 "-march=armv7-a",
3320 "-mfpu=neon-vfpv4",
3321 ],
3322 aarch32_srcs = NEONFMA_UKERNELS,
3323 aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07003324 apple_aarch32_copts = [
3325 "-mcpu=swift",
3326 "-mtune=generic",
3327 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003328 copts = [
3329 "-UNDEBUG",
3330 "-DXNN_TEST_MODE=1",
3331 ],
3332 gcc_copts = xnnpack_gcc_std_copts(),
3333 msvc_copts = xnnpack_msvc_std_copts(),
3334 deps = [
3335 ":tables",
3336 "@FP16",
3337 "@pthreadpool",
3338 ],
3339)
3340
3341xnnpack_cc_library(
Marat Dukhan8853b822020-05-07 12:19:01 -07003342 name = "neonv8_ukernels",
3343 hdrs = INTERNAL_HDRS,
3344 aarch32_copts = [
3345 "-marm",
3346 "-march=armv8-a",
3347 "-mfpu=neon-fp-armv8",
3348 ],
3349 aarch32_srcs = NEONV8_UKERNELS,
3350 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07003351 apple_aarch32_copts = [
3352 "-mcpu=cyclone",
3353 "-mtune=generic",
3354 ],
Marat Dukhan8853b822020-05-07 12:19:01 -07003355 gcc_copts = xnnpack_gcc_std_copts(),
3356 msvc_copts = xnnpack_msvc_std_copts(),
3357 deps = [
3358 ":tables",
3359 "@FP16",
3360 "@pthreadpool",
3361 ],
3362)
3363
3364xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003365 name = "neonv8_ukernels_test_mode",
3366 hdrs = INTERNAL_HDRS,
3367 aarch32_copts = [
3368 "-marm",
3369 "-march=armv8-a",
3370 "-mfpu=neon-fp-armv8",
3371 ],
3372 aarch32_srcs = NEONV8_UKERNELS,
3373 aarch64_srcs = NEONV8_UKERNELS,
Marat Dukhanbc69ed62020-06-09 21:34:56 -07003374 apple_aarch32_copts = [
3375 "-mcpu=cyclone",
3376 "-mtune=generic",
3377 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003378 copts = [
3379 "-UNDEBUG",
3380 "-DXNN_TEST_MODE=1",
3381 ],
3382 gcc_copts = xnnpack_gcc_std_copts(),
3383 msvc_copts = xnnpack_msvc_std_copts(),
3384 deps = [
3385 ":tables",
3386 "@FP16",
3387 "@pthreadpool",
3388 ],
3389)
3390
3391xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003392 name = "neonfp16arith_ukernels",
3393 hdrs = INTERNAL_HDRS,
3394 aarch64_copts = ["-march=armv8.2-a+fp16"],
3395 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003396 gcc_copts = xnnpack_gcc_std_copts(),
3397 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan04f03be2019-11-19 12:36:47 -08003398 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003399 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003400 "@FP16",
3401 "@pthreadpool",
3402 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003403)
3404
3405xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003406 name = "neonfp16arith_ukernels_test_mode",
3407 hdrs = INTERNAL_HDRS,
3408 aarch64_copts = ["-march=armv8.2-a+fp16"],
3409 aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS,
3410 copts = [
3411 "-UNDEBUG",
3412 "-DXNN_TEST_MODE=1",
3413 ],
3414 gcc_copts = xnnpack_gcc_std_copts(),
3415 msvc_copts = xnnpack_msvc_std_copts(),
3416 deps = [
3417 ":tables",
3418 "@FP16",
3419 "@pthreadpool",
3420 ],
3421)
3422
3423xnnpack_cc_library(
Benoit Jacoba9644732020-08-13 12:48:55 -07003424 name = "neondot_ukernels",
3425 hdrs = INTERNAL_HDRS,
Marat Dukhan799ac752020-08-13 16:08:03 -07003426 aarch32_copts = [
3427 "-marm",
3428 "-march=armv8.2-a+dotprod",
3429 "-mfpu=neon-fp-armv8",
3430 ],
Benoit Jacoba9644732020-08-13 12:48:55 -07003431 aarch32_srcs = NEONDOT_UKERNELS,
3432 aarch64_copts = ["-march=armv8.2-a+dotprod"],
3433 aarch64_srcs = NEONDOT_UKERNELS,
3434 gcc_copts = xnnpack_gcc_std_copts(),
3435 msvc_copts = xnnpack_msvc_std_copts(),
3436 deps = [
3437 ":tables",
3438 "@FP16",
3439 "@pthreadpool",
3440 ],
3441)
3442
3443xnnpack_cc_library(
3444 name = "neondot_ukernels_test_mode",
3445 hdrs = INTERNAL_HDRS,
Marat Dukhan799ac752020-08-13 16:08:03 -07003446 aarch32_copts = [
3447 "-marm",
3448 "-march=armv8.2-a+dotprod",
3449 "-mfpu=neon-fp-armv8",
3450 ],
Benoit Jacoba9644732020-08-13 12:48:55 -07003451 aarch32_srcs = NEONDOT_UKERNELS,
3452 aarch64_copts = ["-march=armv8.2-a+dotprod"],
3453 aarch64_srcs = NEONDOT_UKERNELS,
3454 copts = [
3455 "-UNDEBUG",
3456 "-DXNN_TEST_MODE=1",
3457 ],
3458 gcc_copts = xnnpack_gcc_std_copts(),
3459 msvc_copts = xnnpack_msvc_std_copts(),
3460 deps = [
3461 ":tables",
3462 "@FP16",
3463 "@pthreadpool",
3464 ],
3465)
3466
3467xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003468 name = "sse2_ukernels",
3469 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003470 gcc_copts = xnnpack_gcc_std_copts(),
3471 gcc_x86_copts = ["-msse2"],
3472 msvc_copts = xnnpack_msvc_std_copts(),
3473 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003474 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003475 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003476 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003477 "@FP16",
3478 "@pthreadpool",
3479 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003480)
3481
3482xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003483 name = "sse2_ukernels_test_mode",
3484 hdrs = INTERNAL_HDRS,
3485 copts = [
3486 "-UNDEBUG",
3487 "-DXNN_TEST_MODE=1",
3488 ],
3489 gcc_copts = xnnpack_gcc_std_copts(),
3490 gcc_x86_copts = ["-msse2"],
3491 msvc_copts = xnnpack_msvc_std_copts(),
3492 msvc_x86_32_copts = ["/arch:SSE2"],
3493 x86_srcs = SSE_UKERNELS + SSE2_UKERNELS,
3494 deps = [
3495 ":tables",
3496 "@FP16",
3497 "@pthreadpool",
3498 ],
3499)
3500
3501xnnpack_cc_library(
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003502 name = "ssse3_ukernels",
3503 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003504 gcc_copts = xnnpack_gcc_std_copts(),
3505 gcc_x86_copts = ["-mssse3"],
3506 msvc_copts = xnnpack_msvc_std_copts(),
3507 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003508 x86_srcs = SSSE3_UKERNELS,
3509 deps = [
3510 ":tables",
3511 "@FP16",
3512 "@pthreadpool",
3513 ],
3514)
3515
3516xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003517 name = "ssse3_ukernels_test_mode",
3518 hdrs = INTERNAL_HDRS,
3519 copts = [
3520 "-UNDEBUG",
3521 "-DXNN_TEST_MODE=1",
3522 ],
3523 gcc_copts = xnnpack_gcc_std_copts(),
3524 gcc_x86_copts = ["-mssse3"],
3525 msvc_copts = xnnpack_msvc_std_copts(),
3526 msvc_x86_32_copts = ["/arch:SSE2"],
3527 x86_srcs = SSSE3_UKERNELS,
3528 deps = [
3529 ":tables",
3530 "@FP16",
3531 "@pthreadpool",
3532 ],
3533)
3534
3535xnnpack_cc_library(
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003536 name = "sse41_ukernels",
3537 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003538 gcc_copts = xnnpack_gcc_std_copts(),
3539 gcc_x86_copts = ["-msse4.1"],
3540 msvc_copts = xnnpack_msvc_std_copts(),
3541 msvc_x86_32_copts = ["/arch:SSE2"],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003542 x86_srcs = SSE41_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003543 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003544 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003545 "@FP16",
3546 "@pthreadpool",
3547 ],
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003548)
3549
3550xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003551 name = "sse41_ukernels_test_mode",
3552 hdrs = INTERNAL_HDRS,
3553 copts = [
3554 "-UNDEBUG",
3555 "-DXNN_TEST_MODE=1",
3556 ],
3557 gcc_copts = xnnpack_gcc_std_copts(),
3558 gcc_x86_copts = ["-msse4.1"],
3559 msvc_copts = xnnpack_msvc_std_copts(),
3560 msvc_x86_32_copts = ["/arch:SSE2"],
3561 x86_srcs = SSE41_UKERNELS,
3562 deps = [
3563 ":tables",
3564 "@FP16",
3565 "@pthreadpool",
3566 ],
3567)
3568
3569xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003570 name = "avx_ukernels",
3571 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003572 gcc_copts = xnnpack_gcc_std_copts(),
3573 gcc_x86_copts = ["-mavx"],
3574 msvc_copts = xnnpack_msvc_std_copts(),
3575 msvc_x86_32_copts = ["/arch:AVX"],
3576 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003577 x86_srcs = AVX_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003578 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003579 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003580 "@FP16",
3581 "@pthreadpool",
3582 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003583)
3584
3585xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003586 name = "avx_ukernels_test_mode",
3587 hdrs = INTERNAL_HDRS,
3588 copts = [
3589 "-UNDEBUG",
3590 "-DXNN_TEST_MODE=1",
3591 ],
3592 gcc_copts = xnnpack_gcc_std_copts(),
3593 gcc_x86_copts = ["-mavx"],
3594 msvc_copts = xnnpack_msvc_std_copts(),
3595 msvc_x86_32_copts = ["/arch:AVX"],
3596 msvc_x86_64_copts = ["/arch:AVX"],
3597 x86_srcs = AVX_UKERNELS,
3598 deps = [
3599 ":tables",
3600 "@FP16",
3601 "@pthreadpool",
3602 ],
3603)
3604
3605xnnpack_cc_library(
Marat Dukhan1566fee2020-08-02 21:55:41 -07003606 name = "xop_ukernels",
3607 hdrs = INTERNAL_HDRS,
3608 gcc_copts = xnnpack_gcc_std_copts(),
3609 gcc_x86_copts = ["-mxop"],
3610 msvc_copts = xnnpack_msvc_std_copts(),
3611 msvc_x86_32_copts = ["/arch:AVX"],
3612 msvc_x86_64_copts = ["/arch:AVX"],
3613 x86_srcs = XOP_UKERNELS,
3614 deps = [
3615 ":tables",
3616 "@FP16",
3617 "@pthreadpool",
3618 ],
3619)
3620
3621xnnpack_cc_library(
3622 name = "xop_ukernels_test_mode",
3623 hdrs = INTERNAL_HDRS,
3624 copts = [
3625 "-UNDEBUG",
3626 "-DXNN_TEST_MODE=1",
3627 ],
3628 gcc_copts = xnnpack_gcc_std_copts(),
3629 gcc_x86_copts = ["-mxop"],
3630 msvc_copts = xnnpack_msvc_std_copts(),
3631 msvc_x86_32_copts = ["/arch:AVX"],
3632 msvc_x86_64_copts = ["/arch:AVX"],
3633 x86_srcs = XOP_UKERNELS,
3634 deps = [
3635 ":tables",
3636 "@FP16",
3637 "@pthreadpool",
3638 ],
3639)
3640
3641xnnpack_cc_library(
Marat Dukhanfda12b82019-11-21 12:27:59 -08003642 name = "fma3_ukernels",
3643 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003644 gcc_copts = xnnpack_gcc_std_copts(),
3645 gcc_x86_copts = ["-mfma"],
3646 msvc_copts = xnnpack_msvc_std_copts(),
3647 msvc_x86_32_copts = ["/arch:AVX"],
3648 msvc_x86_64_copts = ["/arch:AVX"],
Marat Dukhanfda12b82019-11-21 12:27:59 -08003649 x86_srcs = FMA3_UKERNELS,
3650 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003651 ":tables",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003652 "@FP16",
3653 "@pthreadpool",
3654 ],
3655)
3656
3657xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003658 name = "fma3_ukernels_test_mode",
3659 hdrs = INTERNAL_HDRS,
3660 copts = [
3661 "-UNDEBUG",
3662 "-DXNN_TEST_MODE=1",
3663 ],
3664 gcc_copts = xnnpack_gcc_std_copts(),
3665 gcc_x86_copts = ["-mfma"],
3666 msvc_copts = xnnpack_msvc_std_copts(),
3667 msvc_x86_32_copts = ["/arch:AVX"],
3668 msvc_x86_64_copts = ["/arch:AVX"],
3669 x86_srcs = FMA3_UKERNELS,
3670 deps = [
3671 ":tables",
3672 "@FP16",
3673 "@pthreadpool",
3674 ],
3675)
3676
3677xnnpack_cc_library(
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003678 name = "avx2_ukernels",
3679 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003680 gcc_copts = xnnpack_gcc_std_copts(),
3681 gcc_x86_copts = [
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003682 "-mfma",
3683 "-mavx2",
3684 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003685 msvc_copts = xnnpack_msvc_std_copts(),
3686 msvc_x86_32_copts = ["/arch:AVX2"],
3687 msvc_x86_64_copts = ["/arch:AVX2"],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003688 x86_srcs = AVX2_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003689 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003690 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003691 "@FP16",
3692 "@pthreadpool",
3693 ],
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003694)
3695
3696xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003697 name = "avx2_ukernels_test_mode",
3698 hdrs = INTERNAL_HDRS,
3699 copts = [
3700 "-UNDEBUG",
3701 "-DXNN_TEST_MODE=1",
3702 ],
3703 gcc_copts = xnnpack_gcc_std_copts(),
3704 gcc_x86_copts = [
3705 "-mfma",
3706 "-mavx2",
3707 ],
3708 msvc_copts = xnnpack_msvc_std_copts(),
3709 msvc_x86_32_copts = ["/arch:AVX2"],
3710 msvc_x86_64_copts = ["/arch:AVX2"],
3711 x86_srcs = AVX2_UKERNELS,
3712 deps = [
3713 ":tables",
3714 "@FP16",
3715 "@pthreadpool",
3716 ],
3717)
3718
3719xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003720 name = "avx512f_ukernels",
3721 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003722 gcc_copts = xnnpack_gcc_std_copts(),
3723 gcc_x86_copts = ["-mavx512f"],
3724 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3725 msvc_copts = xnnpack_msvc_std_copts(),
3726 msvc_x86_32_copts = ["/arch:AVX512"],
3727 msvc_x86_64_copts = ["/arch:AVX512"],
3728 msys_copts = ["-fno-asynchronous-unwind-tables"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003729 x86_srcs = AVX512F_UKERNELS,
Marat Dukhan04f03be2019-11-19 12:36:47 -08003730 deps = [
Marat Dukhan3a77ea72019-12-23 12:10:24 -08003731 ":tables",
Marat Dukhan04f03be2019-11-19 12:36:47 -08003732 "@FP16",
3733 "@pthreadpool",
3734 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003735)
3736
3737xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07003738 name = "avx512f_ukernels_test_mode",
3739 hdrs = INTERNAL_HDRS,
3740 copts = [
3741 "-UNDEBUG",
3742 "-DXNN_TEST_MODE=1",
3743 ],
3744 gcc_copts = xnnpack_gcc_std_copts(),
3745 gcc_x86_copts = ["-mavx512f"],
3746 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3747 msvc_copts = xnnpack_msvc_std_copts(),
3748 msvc_x86_32_copts = ["/arch:AVX512"],
3749 msvc_x86_64_copts = ["/arch:AVX512"],
3750 msys_copts = ["-fno-asynchronous-unwind-tables"],
3751 x86_srcs = AVX512F_UKERNELS,
3752 deps = [
3753 ":tables",
3754 "@FP16",
3755 "@pthreadpool",
3756 ],
3757)
3758
3759xnnpack_cc_library(
Marat Dukhanbb00b1d2020-08-10 11:37:23 -07003760 name = "avx512skx_ukernels",
3761 hdrs = INTERNAL_HDRS,
3762 gcc_copts = xnnpack_gcc_std_copts(),
3763 gcc_x86_copts = [
3764 "-mavx512f",
3765 "-mavx512cd",
3766 "-mavx512bw",
3767 "-mavx512dq",
3768 "-mavx512vl",
3769 ],
3770 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3771 msvc_copts = xnnpack_msvc_std_copts(),
3772 msvc_x86_32_copts = ["/arch:AVX512"],
3773 msvc_x86_64_copts = ["/arch:AVX512"],
3774 msys_copts = ["-fno-asynchronous-unwind-tables"],
3775 x86_srcs = AVX512SKX_UKERNELS,
3776 deps = [
3777 ":tables",
3778 "@FP16",
3779 "@pthreadpool",
3780 ],
3781)
3782
3783xnnpack_cc_library(
3784 name = "avx512skx_ukernels_test_mode",
3785 hdrs = INTERNAL_HDRS,
3786 copts = [
3787 "-UNDEBUG",
3788 "-DXNN_TEST_MODE=1",
3789 ],
3790 gcc_copts = xnnpack_gcc_std_copts(),
3791 gcc_x86_copts = [
3792 "-mavx512f",
3793 "-mavx512cd",
3794 "-mavx512bw",
3795 "-mavx512dq",
3796 "-mavx512vl",
3797 ],
3798 mingw_copts = ["-fno-asynchronous-unwind-tables"],
3799 msvc_copts = xnnpack_msvc_std_copts(),
3800 msvc_x86_32_copts = ["/arch:AVX512"],
3801 msvc_x86_64_copts = ["/arch:AVX512"],
3802 msys_copts = ["-fno-asynchronous-unwind-tables"],
3803 x86_srcs = AVX512SKX_UKERNELS,
3804 deps = [
3805 ":tables",
3806 "@FP16",
3807 "@pthreadpool",
3808 ],
3809)
3810
3811xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07003812 name = "asm_ukernels",
3813 hdrs = ["src/xnnpack/assembly.h"],
3814 aarch32_srcs = AARCH32_ASM_UKERNELS,
Frank Barchard31bb45b2020-10-06 00:26:33 -07003815 aarch64_copts = ["-march=armv8.2-a+fp16+dotprod"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003816 aarch64_srcs = AARCH64_ASM_UKERNELS,
Frank Barchardbcedc082020-08-17 18:00:51 -07003817 wasm_srcs = WASM32_ASM_UKERNELS,
3818 wasmsimd_srcs = WASM32_ASM_UKERNELS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07003819)
3820
Marat Dukhan3b59de22020-06-03 20:15:19 -07003821xnnpack_cc_library(
3822 name = "logging_utils",
3823 srcs = LOGGING_SRCS,
3824 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
3825 copts = LOGGING_COPTS + [
3826 "-Isrc",
3827 "-Iinclude",
3828 ] + select({
3829 ":debug_build": [],
3830 "//conditions:default": xnnpack_min_size_copts(),
3831 }),
3832 gcc_copts = xnnpack_gcc_std_copts(),
3833 msvc_copts = xnnpack_msvc_std_copts(),
3834 visibility = xnnpack_visibility(),
3835 deps = [
3836 "@FP16",
3837 "@clog",
3838 "@pthreadpool",
3839 ],
3840)
3841
Marat Dukhan08c4a432019-10-03 09:29:21 -07003842xnnpack_aggregate_library(
3843 name = "ukernels",
3844 aarch32_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003845 ":neon_ukernels",
3846 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003847 ":neonv8_ukernels",
Benoit Jacoba9644732020-08-13 12:48:55 -07003848 ":neondot_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003849 ":asm_ukernels",
3850 ],
3851 aarch64_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003852 ":neon_ukernels",
3853 ":neonfma_ukernels",
Marat Dukhan8853b822020-05-07 12:19:01 -07003854 ":neonv8_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003855 ":neonfp16arith_ukernels",
Benoit Jacoba9644732020-08-13 12:48:55 -07003856 ":neondot_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003857 ":asm_ukernels",
3858 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003859 generic_deps = [
3860 ":scalar_ukernels",
3861 ],
Marat Dukhan500b8892020-04-15 17:09:50 -07003862 psimd_deps = [
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08003863 ":psimd_fastmath_ukernels",
3864 ":psimd_accmath_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003865 ],
Marat Dukhan33fcf782020-05-24 14:27:15 -07003866 wasm_deps = [
3867 ":wasm_ukernels",
Frank Barchardbcedc082020-08-17 18:00:51 -07003868 ":asm_ukernels",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003869 ],
3870 wasmsimd_deps = [
3871 ":wasm_ukernels",
Frank Barchardbcedc082020-08-17 18:00:51 -07003872 ":asm_ukernels",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003873 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07003874 x86_deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07003875 ":sse2_ukernels",
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003876 ":ssse3_ukernels",
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08003877 ":sse41_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003878 ":avx_ukernels",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003879 ":xop_ukernels",
Marat Dukhanfda12b82019-11-21 12:27:59 -08003880 ":fma3_ukernels",
Marat Dukhan6adff4e2019-10-14 18:32:07 -07003881 ":avx2_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003882 ":avx512f_ukernels",
Marat Dukhanbb00b1d2020-08-10 11:37:23 -07003883 ":avx512skx_ukernels",
Marat Dukhan08c4a432019-10-03 09:29:21 -07003884 ],
3885)
3886
Marat Dukhan33fcf782020-05-24 14:27:15 -07003887xnnpack_aggregate_library(
3888 name = "ukernels_test_mode",
3889 aarch32_deps = [
3890 ":neon_ukernels_test_mode",
3891 ":neonfma_ukernels_test_mode",
3892 ":neonv8_ukernels_test_mode",
Benoit Jacoba9644732020-08-13 12:48:55 -07003893 ":neondot_ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003894 ":asm_ukernels",
3895 ],
3896 aarch64_deps = [
3897 ":neon_ukernels_test_mode",
3898 ":neonfma_ukernels_test_mode",
3899 ":neonv8_ukernels_test_mode",
3900 ":neonfp16arith_ukernels_test_mode",
Benoit Jacoba9644732020-08-13 12:48:55 -07003901 ":neondot_ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003902 ":asm_ukernels",
3903 ],
3904 generic_deps = [
3905 ":scalar_ukernels_test_mode",
3906 ],
3907 psimd_deps = [
3908 ":psimd_fastmath_ukernels_test_mode",
3909 ":psimd_accmath_ukernels_test_mode",
3910 ],
3911 wasm_deps = [
3912 ":wasm_ukernels_test_mode",
Frank Barchardbcedc082020-08-17 18:00:51 -07003913 ":asm_ukernels",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003914 ],
3915 wasmsimd_deps = [
3916 ":wasm_ukernels_test_mode",
Frank Barchardbcedc082020-08-17 18:00:51 -07003917 ":asm_ukernels",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003918 ],
3919 x86_deps = [
3920 ":sse2_ukernels_test_mode",
3921 ":ssse3_ukernels_test_mode",
3922 ":sse41_ukernels_test_mode",
3923 ":avx_ukernels_test_mode",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003924 ":xop_ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003925 ":fma3_ukernels_test_mode",
3926 ":avx2_ukernels_test_mode",
3927 ":avx512f_ukernels_test_mode",
Marat Dukhanbb00b1d2020-08-10 11:37:23 -07003928 ":avx512skx_ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07003929 ],
3930)
3931
Marat Dukhan86df3842020-06-17 14:03:31 -07003932# This target must be compatible with Android NDK r17 and compile with Clang 6.
3933# It is similar to :ukernels target, but excludes microkernels which require
3934# NEON FP16 arithmetics, NEON Dot Product, and newer intrinsics.
Marat Dukhanae046f52020-06-15 13:16:14 -07003935xnnpack_aggregate_library(
Marat Dukhan86df3842020-06-17 14:03:31 -07003936 name = "ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07003937 aarch32_deps = [
3938 ":neon_ukernels",
3939 ":neonfma_ukernels",
3940 ":neonv8_ukernels",
3941 ":asm_ukernels",
3942 ],
3943 aarch64_deps = [
3944 ":neon_ukernels",
3945 ":neonfma_ukernels",
3946 ":neonv8_ukernels",
3947 ":asm_ukernels",
3948 ],
3949 generic_deps = [
3950 ":scalar_ukernels",
3951 ],
3952 psimd_deps = [
3953 ":psimd_fastmath_ukernels",
3954 ":psimd_accmath_ukernels",
3955 ],
3956 wasm_deps = [
3957 ":wasm_ukernels",
3958 ],
3959 wasmsimd_deps = [
3960 ":wasm_ukernels",
3961 ],
3962 x86_deps = [
3963 ":sse2_ukernels",
3964 ":ssse3_ukernels",
3965 ":sse41_ukernels",
3966 ":avx_ukernels",
Marat Dukhan1566fee2020-08-02 21:55:41 -07003967 ":xop_ukernels",
Marat Dukhanae046f52020-06-15 13:16:14 -07003968 ":fma3_ukernels",
3969 ":avx2_ukernels",
3970 ":avx512f_ukernels",
Marat Dukhanbb00b1d2020-08-10 11:37:23 -07003971 ":avx512skx_ukernels",
Marat Dukhanae046f52020-06-15 13:16:14 -07003972 ],
3973)
3974
Marat Dukhan08c4a432019-10-03 09:29:21 -07003975xnnpack_cc_library(
3976 name = "im2col",
3977 srcs = ["src/im2col.c"],
3978 hdrs = [
3979 "src/xnnpack/common.h",
3980 "src/xnnpack/im2col.h",
3981 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07003982 gcc_copts = xnnpack_gcc_std_copts(),
3983 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003984)
3985
3986xnnpack_cc_library(
3987 name = "indirection",
3988 srcs = ["src/indirection.c"],
3989 hdrs = INTERNAL_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07003990 gcc_copts = xnnpack_gcc_std_copts(),
3991 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07003992 deps = [
3993 "@FP16",
3994 "@FXdiv",
3995 "@pthreadpool",
3996 ],
3997)
3998
3999xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07004000 name = "indirection_test_mode",
4001 srcs = ["src/indirection.c"],
4002 hdrs = INTERNAL_HDRS,
4003 copts = [
4004 "-UNDEBUG",
4005 "-DXNN_TEST_MODE=1",
4006 ],
4007 gcc_copts = xnnpack_gcc_std_copts(),
4008 msvc_copts = xnnpack_msvc_std_copts(),
4009 deps = [
4010 "@FP16",
4011 "@FXdiv",
4012 "@pthreadpool",
4013 ],
4014)
4015
4016xnnpack_cc_library(
Marat Dukhanab582382020-07-06 13:32:08 -07004017 name = "packing",
4018 srcs = ["src/packing.c"],
4019 hdrs = INTERNAL_HDRS,
4020 gcc_copts = xnnpack_gcc_std_copts(),
4021 msvc_copts = xnnpack_msvc_std_copts(),
4022 deps = [
4023 "@FP16",
4024 "@FXdiv",
4025 "@pthreadpool",
4026 ],
4027)
4028
4029xnnpack_cc_library(
4030 name = "packing_test_mode",
4031 srcs = ["src/packing.c"],
4032 hdrs = INTERNAL_HDRS,
4033 copts = [
4034 "-UNDEBUG",
4035 "-DXNN_TEST_MODE=1",
4036 ],
4037 gcc_copts = xnnpack_gcc_std_copts(),
4038 msvc_copts = xnnpack_msvc_std_copts(),
4039 deps = [
4040 "@FP16",
4041 "@FXdiv",
4042 "@pthreadpool",
4043 ],
4044)
4045
4046xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004047 name = "operator_run",
4048 srcs = ["src/operator-run.c"],
Marat Dukhanc8e00eb2019-10-04 14:55:26 -07004049 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07004050 copts = LOGGING_COPTS + select({
Marat Dukhan05702cf2020-03-26 15:41:33 -07004051 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4052 "//conditions:default": [],
4053 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07004054 gcc_copts = xnnpack_gcc_std_copts(),
4055 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004056 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07004057 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004058 "@FP16",
4059 "@FXdiv",
4060 "@clog",
4061 "@pthreadpool",
4062 ],
4063)
4064
Chao Mei6ddfc602020-05-13 22:29:36 -07004065xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07004066 name = "operator_run_test_mode",
4067 srcs = ["src/operator-run.c"],
4068 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
4069 copts = LOGGING_COPTS + [
4070 "-UNDEBUG",
4071 "-DXNN_TEST_MODE=1",
4072 ] + select({
4073 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4074 "//conditions:default": [],
4075 }),
4076 gcc_copts = xnnpack_gcc_std_copts(),
4077 msvc_copts = xnnpack_msvc_std_copts(),
4078 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07004079 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07004080 "@FP16",
4081 "@FXdiv",
4082 "@clog",
4083 "@pthreadpool",
4084 ],
4085)
4086
4087xnnpack_cc_library(
Chao Mei6ddfc602020-05-13 22:29:36 -07004088 name = "memory_planner",
4089 srcs = ["src/memory-planner.c"],
4090 hdrs = INTERNAL_HDRS,
4091 defines = select({
4092 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
4093 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
4094 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
4095 }),
4096 gcc_copts = xnnpack_gcc_std_copts(),
4097 msvc_copts = xnnpack_msvc_std_copts(),
4098 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07004099 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07004100 "@pthreadpool",
4101 ],
4102)
4103
Marat Dukhan33fcf782020-05-24 14:27:15 -07004104xnnpack_cc_library(
4105 name = "memory_planner_test_mode",
4106 srcs = ["src/memory-planner.c"],
4107 hdrs = INTERNAL_HDRS,
4108 copts = [
4109 "-UNDEBUG",
4110 "-DXNN_TEST_MODE=1",
4111 ],
4112 defines = select({
4113 ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"],
4114 ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"],
4115 "//conditions:default": ["XNN_ENABLE_MEMOPT=1"],
4116 }),
4117 gcc_copts = xnnpack_gcc_std_copts(),
4118 msvc_copts = xnnpack_msvc_std_copts(),
4119 deps = [
Marat Dukhan3b59de22020-06-03 20:15:19 -07004120 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07004121 "@pthreadpool",
4122 ],
4123)
4124
Marat Dukhan08c4a432019-10-03 09:29:21 -07004125cc_library(
4126 name = "enable_assembly",
4127 defines = select({
4128 ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"],
4129 ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"],
Frank Barchard810171d2019-10-10 10:34:51 -07004130 "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004131 }),
4132)
4133
Marat Dukhan9de90e02020-06-18 16:04:12 -07004134cc_library(
4135 name = "enable_sparse",
4136 defines = select({
4137 ":xnn_enable_sparse_explicit_true": ["XNN_ENABLE_SPARSE=1"],
4138 ":xnn_enable_sparse_explicit_false": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan8b283aa2020-06-18 16:48:57 -07004139 "//conditions:default": ["XNN_ENABLE_SPARSE=0"],
Marat Dukhan9de90e02020-06-18 16:04:12 -07004140 }),
4141)
4142
Marat Dukhancf056b22019-10-07 10:26:29 -07004143xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004144 name = "operators",
4145 srcs = OPERATOR_SRCS + [
Marat Dukhan04f03be2019-11-19 12:36:47 -08004146 "src/memory.c",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004147 "src/operator-delete.c",
Marat Dukhancf056b22019-10-07 10:26:29 -07004148 ],
4149 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07004150 copts = LOGGING_COPTS + [
Marat Dukhan08c4a432019-10-03 09:29:21 -07004151 "-Isrc",
4152 "-Iinclude",
4153 ] + select({
4154 ":debug_build": [],
4155 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07004156 }) + select({
4157 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4158 "//conditions:default": [],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004159 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07004160 gcc_copts = xnnpack_gcc_std_copts(),
4161 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004162 deps = [
Marat Dukhan08c4a432019-10-03 09:29:21 -07004163 ":indirection",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004164 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07004165 ":packing",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004166 "@FP16",
4167 "@FXdiv",
4168 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004169 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004170 ],
4171)
4172
Marat Dukhan10a38082020-04-17 03:58:35 -07004173xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07004174 name = "operators_test_mode",
4175 srcs = OPERATOR_SRCS + [
4176 "src/memory.c",
4177 "src/operator-delete.c",
4178 ],
4179 hdrs = INTERNAL_HDRS + LOGGING_HDRS,
4180 copts = LOGGING_COPTS + [
4181 "-Isrc",
4182 "-Iinclude",
4183 "-UNDEBUG",
4184 "-DXNN_TEST_MODE=1",
4185 ] + select({
4186 ":debug_build": [],
4187 "//conditions:default": xnnpack_min_size_copts(),
4188 }) + select({
4189 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4190 "//conditions:default": [],
4191 }),
4192 gcc_copts = xnnpack_gcc_std_copts(),
4193 msvc_copts = xnnpack_msvc_std_copts(),
4194 deps = [
4195 ":indirection_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004196 ":logging_utils",
Marat Dukhanab582382020-07-06 13:32:08 -07004197 ":packing_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07004198 "@FP16",
4199 "@FXdiv",
4200 "@clog",
4201 "@pthreadpool",
4202 ],
4203)
4204
4205xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004206 name = "XNNPACK",
4207 srcs = [
4208 "src/init.c",
Marat Dukhanccfdbd12020-02-03 14:27:45 -08004209 "src/runtime.c",
4210 "src/subgraph.c",
4211 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07004212 ] + SUBGRAPH_SRCS,
Marat Dukhan10a38082020-04-17 03:58:35 -07004213 hdrs = ["include/xnnpack.h"],
4214 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004215 "-Isrc",
4216 "-Iinclude",
4217 ] + select({
4218 ":debug_build": [],
4219 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07004220 }) + select({
4221 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4222 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004223 }),
Marat Dukhan10a38082020-04-17 03:58:35 -07004224 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004225 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07004226 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004227 visibility = xnnpack_visibility(),
4228 deps = [
4229 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07004230 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004231 ":logging_utils",
Chao Mei6ddfc602020-05-13 22:29:36 -07004232 ":memory_planner",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004233 ":operator_run",
4234 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004235 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004236 "@clog",
Marat Dukhanab2946c2020-05-21 20:04:13 -07004237 "@FP16",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004238 "@pthreadpool",
Marat Dukhand343c222019-10-07 09:22:14 -07004239 ] + select({
4240 ":emscripten": [],
4241 "//conditions:default": ["@cpuinfo"],
4242 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004243)
4244
Marat Dukhan10a38082020-04-17 03:58:35 -07004245xnnpack_cc_library(
Marat Dukhan33fcf782020-05-24 14:27:15 -07004246 name = "XNNPACK_test_mode",
4247 srcs = [
4248 "src/init.c",
4249 "src/runtime.c",
4250 "src/subgraph.c",
4251 "src/tensor.c",
Marat Dukhanf03da0d2020-06-10 16:00:20 -07004252 ] + SUBGRAPH_SRCS,
Marat Dukhan33fcf782020-05-24 14:27:15 -07004253 hdrs = ["include/xnnpack.h"],
4254 copts = LOGGING_COPTS + [
4255 "-Isrc",
4256 "-Iinclude",
4257 "-UNDEBUG",
4258 "-DXNN_TEST_MODE=1",
4259 ] + select({
4260 ":debug_build": [],
4261 "//conditions:default": xnnpack_min_size_copts(),
4262 }) + select({
4263 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4264 "//conditions:default": [],
4265 }),
4266 gcc_copts = xnnpack_gcc_std_copts(),
4267 includes = ["include"],
4268 msvc_copts = xnnpack_msvc_std_copts(),
4269 visibility = xnnpack_visibility(),
4270 deps = [
4271 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07004272 ":enable_sparse",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004273 ":logging_utils",
Marat Dukhan33fcf782020-05-24 14:27:15 -07004274 ":memory_planner_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07004275 ":operator_run_test_mode",
4276 ":operators_test_mode",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004277 ":ukernels_test_mode",
Marat Dukhan33fcf782020-05-24 14:27:15 -07004278 "@clog",
4279 "@FP16",
4280 "@pthreadpool",
4281 ] + select({
4282 ":emscripten": [],
4283 "//conditions:default": ["@cpuinfo"],
4284 }),
4285)
4286
4287xnnpack_cc_library(
Marat Dukhanae046f52020-06-15 13:16:14 -07004288 name = "xnnpack_f32",
4289 srcs = [
4290 "src/init.c",
4291 "src/runtime.c",
4292 "src/subgraph.c",
4293 "src/tensor.c",
4294 ] + SUBGRAPH_SRCS,
4295 hdrs = ["include/xnnpack.h"],
4296 copts = LOGGING_COPTS + [
4297 "-Isrc",
4298 "-Iinclude",
4299 ] + select({
4300 ":debug_build": [],
4301 "//conditions:default": xnnpack_min_size_copts(),
4302 }) + select({
4303 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4304 "//conditions:default": [],
4305 }),
4306 defines = [
Marat Dukhan16f1e1a2020-08-04 16:38:22 -07004307 "XNN_NO_QS8_OPERATORS",
Marat Dukhan08b7a972020-07-14 18:17:29 -07004308 "XNN_NO_QU8_OPERATORS",
Marat Dukhanae046f52020-06-15 13:16:14 -07004309 "XNN_NO_U8_OPERATORS",
4310 "XNN_NO_X8_OPERATORS",
4311 "XNN_NO_F16_OPERATORS",
4312 "XNN_NO_X16_OPERATORS",
4313 ],
4314 gcc_copts = xnnpack_gcc_std_copts(),
4315 includes = ["include"],
4316 msvc_copts = xnnpack_msvc_std_copts(),
4317 visibility = xnnpack_visibility(),
4318 deps = [
4319 ":enable_assembly",
Marat Dukhan9de90e02020-06-18 16:04:12 -07004320 ":enable_sparse",
Marat Dukhanae046f52020-06-15 13:16:14 -07004321 ":logging_utils",
4322 ":memory_planner",
4323 ":operator_run",
4324 ":operators",
Marat Dukhan86df3842020-06-17 14:03:31 -07004325 ":ukernels_max_compatibility",
Marat Dukhanae046f52020-06-15 13:16:14 -07004326 "@clog",
4327 "@FP16",
4328 "@pthreadpool",
4329 ] + select({
4330 ":emscripten": [],
4331 "//conditions:default": ["@cpuinfo"],
4332 }),
4333)
4334
4335xnnpack_cc_library(
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004336 name = "xnnpack_operators_nhwc_f32",
4337 srcs = [
4338 "src/init.c",
4339 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07004340 hdrs = ["include/xnnpack.h"],
4341 copts = LOGGING_COPTS + [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004342 "-Isrc",
4343 "-Iinclude",
4344 ] + select({
4345 ":debug_build": [],
4346 "//conditions:default": xnnpack_min_size_copts(),
Marat Dukhan05702cf2020-03-26 15:41:33 -07004347 }) + select({
4348 ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"],
4349 "//conditions:default": [],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004350 }),
4351 defines = [
Marat Dukhan16f1e1a2020-08-04 16:38:22 -07004352 "XNN_NO_QS8_OPERATORS",
Marat Dukhan08b7a972020-07-14 18:17:29 -07004353 "XNN_NO_QU8_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004354 "XNN_NO_U8_OPERATORS",
4355 "XNN_NO_X8_OPERATORS",
Marat Dukhanefc47b82019-11-18 09:25:38 -08004356 "XNN_NO_NCHW_OPERATORS",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004357 ],
Marat Dukhan10a38082020-04-17 03:58:35 -07004358 gcc_copts = xnnpack_gcc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004359 includes = ["include"],
Marat Dukhan10a38082020-04-17 03:58:35 -07004360 msvc_copts = xnnpack_msvc_std_copts(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004361 visibility = xnnpack_visibility(),
4362 deps = [
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004363 ":enable_assembly",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004364 ":logging_utils",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004365 ":operator_run",
4366 ":operators",
Marat Dukhan3b59de22020-06-03 20:15:19 -07004367 ":ukernels",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004368 "@clog",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004369 "@pthreadpool",
Marat Dukhan8fe54e42019-10-10 14:12:59 -07004370 ] + select({
4371 ":emscripten": [],
4372 "//conditions:default": ["@cpuinfo"],
4373 }),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004374)
4375
Marat Dukhancf056b22019-10-07 10:26:29 -07004376xnnpack_cc_library(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004377 name = "bench_utils",
4378 srcs = ["bench/utils.cc"],
4379 hdrs = ["bench/utils.h"],
Marat Dukhanbad48fe2019-11-04 10:35:22 -08004380 deps = [
4381 "@com_google_benchmark//:benchmark",
4382 "@cpuinfo",
4383 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004384)
4385
Frank Barchard7e955972019-10-11 10:34:25 -07004386######################### Benchmarks for micro-kernels #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07004387
4388xnnpack_benchmark(
Marat Dukhan595e1702020-07-31 10:12:52 -07004389 name = "qs8_gemm_bench",
4390 srcs = [
4391 "bench/gemm.h",
4392 "bench/qs8-gemm.cc",
4393 "src/xnnpack/AlignedAllocator.h",
4394 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Frank Barchard31328cb2020-10-12 11:55:18 -07004395 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
4396 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
Marat Dukhan595e1702020-07-31 10:12:52 -07004397)
4398
4399xnnpack_benchmark(
Marat Dukhan56bdd4a2020-08-03 19:47:04 -07004400 name = "qs8_requantization_bench",
4401 srcs = [
4402 "bench/qs8-requantization.cc",
Marat Dukhan56bdd4a2020-08-03 19:47:04 -07004403 "src/xnnpack/AlignedAllocator.h",
Frank Barchard04336c12020-10-22 16:48:55 -07004404 "src/xnnpack/requantization-stubs.h",
Marat Dukhan56bdd4a2020-08-03 19:47:04 -07004405 ] + MICROKERNEL_BENCHMARK_HDRS,
4406 deps = MICROKERNEL_BENCHMARK_DEPS,
4407)
4408
4409xnnpack_benchmark(
Marat Dukhan08b7a972020-07-14 18:17:29 -07004410 name = "qu8_gemm_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004411 srcs = [
4412 "bench/gemm.h",
Marat Dukhan08b7a972020-07-14 18:17:29 -07004413 "bench/qu8-gemm.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004414 "src/xnnpack/AlignedAllocator.h",
4415 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07004416 copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07004417 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004418)
4419
4420xnnpack_benchmark(
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07004421 name = "qu8_requantization_bench",
4422 srcs = [
4423 "bench/qu8-requantization.cc",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07004424 "src/xnnpack/AlignedAllocator.h",
Frank Barchard04336c12020-10-22 16:48:55 -07004425 "src/xnnpack/requantization-stubs.h",
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07004426 ] + MICROKERNEL_BENCHMARK_HDRS,
4427 deps = MICROKERNEL_BENCHMARK_DEPS,
4428)
4429
4430xnnpack_benchmark(
Frank Barchard40d20fe2020-05-05 00:37:45 -07004431 name = "f16_igemm_bench",
4432 srcs = [
4433 "bench/f16-igemm.cc",
4434 "bench/conv.h",
4435 "bench/google/conv.h",
4436 "src/xnnpack/AlignedAllocator.h",
4437 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004438 deps = MICROKERNEL_BENCHMARK_DEPS + [
4439 ":indirection",
4440 ":packing",
4441 ],
Frank Barchard40d20fe2020-05-05 00:37:45 -07004442)
4443
4444xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004445 name = "f16_gemm_bench",
4446 srcs = [
4447 "bench/f16-gemm.cc",
4448 "bench/gemm.h",
4449 "src/xnnpack/AlignedAllocator.h",
4450 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004451 deps = MICROKERNEL_BENCHMARK_DEPS + [
4452 ":packing",
4453 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004454)
4455
4456xnnpack_benchmark(
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004457 name = "f16_spmm_bench",
4458 srcs = [
4459 "bench/f16-spmm.cc",
4460 "bench/gemm.h",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004461 "src/xnnpack/AlignedAllocator.h",
4462 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanbdb56f52020-02-05 21:42:49 -08004463 deps = MICROKERNEL_BENCHMARK_DEPS,
4464)
4465
4466xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004467 name = "f32_igemm_bench",
4468 srcs = [
4469 "bench/f32-igemm.cc",
4470 "bench/conv.h",
4471 "src/xnnpack/AlignedAllocator.h",
4472 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004473 deps = MICROKERNEL_BENCHMARK_DEPS + [
4474 ":indirection",
4475 ":packing",
4476 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004477)
4478
4479xnnpack_benchmark(
Frank Barchardc2010062020-07-19 10:04:12 -07004480 name = "f16_relu_bench",
4481 srcs = [
4482 "bench/f16-relu.cc",
4483 "src/xnnpack/AlignedAllocator.h",
4484 ] + MICROKERNEL_BENCHMARK_HDRS,
4485 deps = MICROKERNEL_BENCHMARK_DEPS,
4486)
4487
4488xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004489 name = "f32_conv_hwc_bench",
4490 srcs = [
4491 "bench/f32-conv-hwc.cc",
4492 "bench/dconv.h",
4493 "src/xnnpack/AlignedAllocator.h",
4494 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004495 deps = MICROKERNEL_BENCHMARK_DEPS + [
4496 ":packing",
4497 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004498)
4499
4500xnnpack_benchmark(
Marat Dukhan1f29b802020-05-15 23:46:39 -07004501 name = "f32_conv_hwc2chw_bench",
Erich Elsen563df5f2019-10-23 08:02:21 -07004502 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07004503 "bench/f32-conv-hwc2chw.cc",
Erich Elsen563df5f2019-10-23 08:02:21 -07004504 "bench/dconv.h",
4505 "src/xnnpack/AlignedAllocator.h",
4506 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004507 deps = MICROKERNEL_BENCHMARK_DEPS + [
4508 ":packing",
4509 ],
Erich Elsen563df5f2019-10-23 08:02:21 -07004510)
4511
4512xnnpack_benchmark(
Frank Barchard5a599a62020-06-04 20:12:44 -07004513 name = "f16_dwconv_bench",
4514 srcs = [
4515 "bench/f16-dwconv.cc",
4516 "bench/dwconv.h",
4517 "bench/google/dwconv.h",
4518 "src/xnnpack/AlignedAllocator.h",
4519 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004520 deps = MICROKERNEL_BENCHMARK_DEPS + [
4521 ":indirection",
4522 ":packing",
4523 ],
Frank Barchard5a599a62020-06-04 20:12:44 -07004524)
4525
4526xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004527 name = "f32_dwconv_bench",
4528 srcs = [
4529 "bench/f32-dwconv.cc",
4530 "bench/dwconv.h",
4531 "src/xnnpack/AlignedAllocator.h",
4532 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004533 deps = MICROKERNEL_BENCHMARK_DEPS + [
4534 ":indirection",
4535 ":packing",
4536 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004537)
4538
4539xnnpack_benchmark(
Marat Dukhanbf715f92020-10-23 20:17:00 -07004540 name = "f32_dwconv2d_chw_bench",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004541 srcs = [
Marat Dukhanbf715f92020-10-23 20:17:00 -07004542 "bench/f32-dwconv2d-chw.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07004543 "bench/dwconv.h",
4544 "src/xnnpack/AlignedAllocator.h",
4545 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004546 deps = MICROKERNEL_BENCHMARK_DEPS + [
4547 ":indirection",
4548 ":packing",
4549 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004550)
4551
4552xnnpack_benchmark(
4553 name = "f32_gemm_bench",
4554 srcs = [
4555 "bench/f32-gemm.cc",
4556 "bench/gemm.h",
4557 "src/xnnpack/AlignedAllocator.h",
4558 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07004559 copts = xnnpack_optional_ruy_copts(),
Marat Dukhanab582382020-07-06 13:32:08 -07004560 deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004561)
4562
4563xnnpack_benchmark(
Marat Dukhana11ca342020-06-25 23:45:07 -07004564 name = "f32_hswish_bench",
4565 srcs = [
4566 "bench/f32-hswish.cc",
4567 "src/xnnpack/AlignedAllocator.h",
4568 ] + MICROKERNEL_BENCHMARK_HDRS,
4569 deps = MICROKERNEL_BENCHMARK_DEPS,
4570)
4571
4572xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08004573 name = "f32_raddexpminusmax_bench",
4574 srcs = [
4575 "bench/f32-raddexpminusmax.cc",
4576 "src/xnnpack/AlignedAllocator.h",
4577 ] + MICROKERNEL_BENCHMARK_HDRS,
4578 deps = MICROKERNEL_BENCHMARK_DEPS,
4579)
4580
4581xnnpack_benchmark(
4582 name = "f32_raddextexp_bench",
4583 srcs = [
4584 "bench/f32-raddextexp.cc",
4585 "src/xnnpack/AlignedAllocator.h",
4586 ] + MICROKERNEL_BENCHMARK_HDRS,
4587 deps = MICROKERNEL_BENCHMARK_DEPS,
4588)
4589
4590xnnpack_benchmark(
4591 name = "f32_raddstoreexpminusmax_bench",
4592 srcs = [
4593 "bench/f32-raddstoreexpminusmax.cc",
4594 "src/xnnpack/AlignedAllocator.h",
4595 ] + MICROKERNEL_BENCHMARK_HDRS,
4596 deps = MICROKERNEL_BENCHMARK_DEPS,
4597)
4598
4599xnnpack_benchmark(
Frank Barchard3c4a9522020-07-18 16:11:22 -07004600 name = "f32_relu_bench",
4601 srcs = [
4602 "bench/f32-relu.cc",
4603 "src/xnnpack/AlignedAllocator.h",
4604 ] + MICROKERNEL_BENCHMARK_HDRS,
4605 deps = MICROKERNEL_BENCHMARK_DEPS,
4606)
4607
4608xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004609 name = "f32_rmax_bench",
4610 srcs = [
4611 "bench/f32-rmax.cc",
4612 "src/xnnpack/AlignedAllocator.h",
4613 ] + MICROKERNEL_BENCHMARK_HDRS,
4614 deps = MICROKERNEL_BENCHMARK_DEPS,
4615)
4616
4617xnnpack_benchmark(
Marat Dukhan14bec502019-11-18 11:35:31 -08004618 name = "f32_sigmoid_bench",
4619 srcs = [
4620 "bench/f32-sigmoid.cc",
4621 "src/xnnpack/AlignedAllocator.h",
4622 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan14bec502019-11-18 11:35:31 -08004623 deps = MICROKERNEL_BENCHMARK_DEPS,
4624)
4625
4626xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004627 name = "f32_spmm_bench",
4628 srcs = [
4629 "bench/f32-spmm.cc",
4630 "bench/gemm.h",
4631 "src/xnnpack/AlignedAllocator.h",
4632 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004633 deps = MICROKERNEL_BENCHMARK_DEPS,
4634)
4635
4636xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004637 name = "f32_softmax_bench",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07004638 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004639 "bench/f32-softmax.cc",
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07004640 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan10a38082020-04-17 03:58:35 -07004641 copts = xnnpack_optional_dnnl_copts(),
Marat Dukhan8d3c6932020-03-06 20:27:27 -08004642 deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(),
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07004643)
4644
4645xnnpack_benchmark(
Marat Dukhan4c4eb002019-12-08 21:27:49 -08004646 name = "f32_vscaleexpminusmax_bench",
4647 srcs = [
4648 "bench/f32-vscaleexpminusmax.cc",
4649 "src/xnnpack/AlignedAllocator.h",
4650 ] + MICROKERNEL_BENCHMARK_HDRS,
4651 deps = MICROKERNEL_BENCHMARK_DEPS,
4652)
4653
4654xnnpack_benchmark(
4655 name = "f32_vscaleextexp_bench",
4656 srcs = [
4657 "bench/f32-vscaleextexp.cc",
4658 "src/xnnpack/AlignedAllocator.h",
4659 ] + MICROKERNEL_BENCHMARK_HDRS,
4660 deps = MICROKERNEL_BENCHMARK_DEPS,
4661)
4662
4663xnnpack_benchmark(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07004664 name = "f32_vsqrt_bench",
4665 srcs = [
4666 "bench/f32-vsqrt.cc",
4667 "src/xnnpack/AlignedAllocator.h",
4668 ] + MICROKERNEL_BENCHMARK_HDRS,
4669 deps = MICROKERNEL_BENCHMARK_DEPS,
4670)
4671
4672xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004673 name = "f32_im2col_gemm_bench",
4674 srcs = [
4675 "bench/f32-im2col-gemm.cc",
4676 "bench/conv.h",
4677 "src/xnnpack/AlignedAllocator.h",
4678 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07004679 deps = MICROKERNEL_BENCHMARK_DEPS + [
4680 ":im2col",
4681 ":packing",
4682 ],
Marat Dukhan08c4a432019-10-03 09:29:21 -07004683)
4684
Marat Dukhanfe7acb62020-03-09 19:30:05 -07004685xnnpack_benchmark(
Marat Dukhanffbf96a2020-05-14 02:59:08 -07004686 name = "rounding_bench",
4687 srcs = [
4688 "bench/rounding.cc",
Marat Dukhanffbf96a2020-05-14 02:59:08 -07004689 "src/xnnpack/AlignedAllocator.h",
Frank Barchard04336c12020-10-22 16:48:55 -07004690 "src/xnnpack/math-stubs.h",
Marat Dukhanffbf96a2020-05-14 02:59:08 -07004691 ] + MICROKERNEL_BENCHMARK_HDRS,
4692 deps = MICROKERNEL_BENCHMARK_DEPS,
4693)
4694
Marat Dukhan08c4a432019-10-03 09:29:21 -07004695########################### Benchmarks for operators ###########################
4696
4697xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004698 name = "average_pooling_bench",
4699 srcs = ["bench/average-pooling.cc"],
Marat Dukhan7a16d8b2020-03-11 04:22:44 -07004700 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004701 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004702 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004703)
4704
4705xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004706 name = "bankers_rounding_bench",
4707 srcs = ["bench/bankers-rounding.cc"],
4708 copts = xnnpack_optional_tflite_copts(),
4709 tags = ["nowin32"],
4710 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4711)
4712
4713xnnpack_benchmark(
4714 name = "ceiling_bench",
4715 srcs = ["bench/ceiling.cc"],
4716 copts = xnnpack_optional_tflite_copts(),
4717 tags = ["nowin32"],
4718 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4719)
4720
4721xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004722 name = "channel_shuffle_bench",
4723 srcs = ["bench/channel-shuffle.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004724 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004725)
4726
4727xnnpack_benchmark(
4728 name = "convolution_bench",
4729 srcs = ["bench/convolution.cc"],
4730 copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004731 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004732 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004733)
4734
4735xnnpack_benchmark(
4736 name = "deconvolution_bench",
4737 srcs = ["bench/deconvolution.cc"],
4738 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004739 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004740 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004741)
4742
4743xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004744 name = "floor_bench",
4745 srcs = ["bench/floor.cc"],
4746 copts = xnnpack_optional_tflite_copts(),
4747 tags = ["nowin32"],
4748 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4749)
4750
4751xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004752 name = "global_average_pooling_bench",
4753 srcs = ["bench/global-average-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004754 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004755)
4756
4757xnnpack_benchmark(
Marat Dukhanad352602020-06-25 21:50:54 -07004758 name = "hardswish_bench",
4759 srcs = ["bench/hardswish.cc"],
4760 copts = xnnpack_optional_tflite_copts(),
4761 tags = ["nowin32"],
4762 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4763)
4764
4765xnnpack_benchmark(
Marat Dukhan08c4a432019-10-03 09:29:21 -07004766 name = "max_pooling_bench",
4767 srcs = ["bench/max-pooling.cc"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004768 deps = OPERATOR_BENCHMARK_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07004769)
4770
4771xnnpack_benchmark(
4772 name = "sigmoid_bench",
4773 srcs = ["bench/sigmoid.cc"],
Marat Dukhanc3b9e862019-11-17 13:18:54 -08004774 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07004775 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004776 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004777)
4778
4779xnnpack_benchmark(
Marat Dukhan95b22432019-10-30 16:30:14 -07004780 name = "prelu_bench",
4781 srcs = ["bench/prelu.cc"],
4782 copts = xnnpack_optional_tflite_copts(),
Marat Dukhan8ea0b072020-04-23 16:12:18 -07004783 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004784 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan95b22432019-10-30 16:30:14 -07004785)
4786
4787xnnpack_benchmark(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08004788 name = "softmax_bench",
4789 srcs = ["bench/softmax.cc"],
Marat Dukhan9c0db962020-01-28 12:30:14 -08004790 copts = xnnpack_optional_tflite_copts(),
Marat Dukhanca2ba702020-04-24 01:31:47 -07004791 tags = ["nowin32"],
Marat Dukhan1b354632020-03-23 12:50:22 -07004792 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
Marat Dukhan08c4a432019-10-03 09:29:21 -07004793)
4794
Marat Dukhan87727142020-06-24 15:24:10 -07004795xnnpack_benchmark(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07004796 name = "square_root_bench",
4797 srcs = ["bench/square-root.cc"],
4798 copts = xnnpack_optional_tflite_copts(),
4799 tags = ["nowin32"],
4800 deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(),
4801)
4802
4803xnnpack_benchmark(
Marat Dukhan87727142020-06-24 15:24:10 -07004804 name = "truncation_bench",
4805 srcs = ["bench/truncation.cc"],
4806 deps = OPERATOR_BENCHMARK_DEPS,
4807)
4808
Marat Dukhanc068bb62019-10-04 13:24:39 -07004809############################# End-to-end benchmarks ############################
4810
4811cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004812 name = "fp32_mobilenet_v1",
4813 srcs = ["models/fp32-mobilenet-v1.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07004814 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004815 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07004816 linkstatic = True,
4817 deps = [
4818 ":XNNPACK",
4819 "@pthreadpool",
4820 ],
4821)
4822
4823cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004824 name = "fp16_mobilenet_v1",
4825 srcs = ["models/fp16-mobilenet-v1.cc"],
4826 hdrs = ["models/models.h"],
4827 copts = xnnpack_std_cxxopts(),
4828 linkstatic = True,
4829 deps = [
4830 ":XNNPACK",
4831 "@FP16",
4832 "@pthreadpool",
4833 ],
4834)
4835
4836cc_library(
Marat Dukhan0743cdf2020-08-04 18:52:07 -07004837 name = "qs8_mobilenet_v1",
4838 srcs = ["models/qs8-mobilenet-v1.cc"],
4839 hdrs = ["models/models.h"],
4840 copts = xnnpack_std_cxxopts(),
4841 linkstatic = True,
4842 deps = [
4843 ":XNNPACK",
4844 "@pthreadpool",
4845 ],
4846)
4847
4848cc_library(
Marat Dukhan70a96182020-09-03 17:13:58 -07004849 name = "qs8_mobilenet_v2",
4850 srcs = ["models/qs8-mobilenet-v2.cc"],
4851 hdrs = ["models/models.h"],
4852 copts = xnnpack_std_cxxopts(),
4853 linkstatic = True,
4854 deps = [
4855 ":XNNPACK",
4856 "@pthreadpool",
4857 ],
4858)
4859
4860cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004861 name = "fp32_mobilenet_v2",
4862 srcs = ["models/fp32-mobilenet-v2.cc"],
Marat Dukhanc068bb62019-10-04 13:24:39 -07004863 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004864 copts = xnnpack_std_cxxopts(),
Marat Dukhanc068bb62019-10-04 13:24:39 -07004865 linkstatic = True,
4866 deps = [
4867 ":XNNPACK",
4868 "@pthreadpool",
4869 ],
4870)
4871
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004872cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004873 name = "fp16_mobilenet_v2",
4874 srcs = ["models/fp16-mobilenet-v2.cc"],
4875 hdrs = ["models/models.h"],
4876 copts = xnnpack_std_cxxopts(),
4877 linkstatic = True,
4878 deps = [
4879 ":XNNPACK",
4880 "@FP16",
4881 "@pthreadpool",
4882 ],
4883)
4884
4885cc_library(
4886 name = "fp32_mobilenet_v3_large",
4887 srcs = ["models/fp32-mobilenet-v3-large.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004888 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004889 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004890 linkstatic = True,
4891 deps = [
4892 ":XNNPACK",
4893 "@pthreadpool",
4894 ],
4895)
4896
4897cc_library(
Marat Dukhan66f3ccd2020-09-14 16:09:38 -07004898 name = "fp16_mobilenet_v3_large",
4899 srcs = ["models/fp16-mobilenet-v3-large.cc"],
4900 hdrs = ["models/models.h"],
4901 copts = xnnpack_std_cxxopts(),
4902 linkstatic = True,
4903 deps = [
4904 ":XNNPACK",
4905 "@FP16",
4906 "@pthreadpool",
4907 ],
4908)
4909
4910cc_library(
Marat Dukhan270a2c42020-06-26 16:45:52 -07004911 name = "fp32_mobilenet_v3_small",
4912 srcs = ["models/fp32-mobilenet-v3-small.cc"],
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004913 hdrs = ["models/models.h"],
Marat Dukhana84e40b2019-12-11 15:38:03 -08004914 copts = xnnpack_std_cxxopts(),
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004915 linkstatic = True,
4916 deps = [
4917 ":XNNPACK",
4918 "@pthreadpool",
4919 ],
4920)
4921
Marat Dukhan66f3ccd2020-09-14 16:09:38 -07004922cc_library(
4923 name = "fp16_mobilenet_v3_small",
4924 srcs = ["models/fp16-mobilenet-v3-small.cc"],
4925 hdrs = ["models/models.h"],
4926 copts = xnnpack_std_cxxopts(),
4927 linkstatic = True,
4928 deps = [
4929 ":XNNPACK",
4930 "@FP16",
4931 "@pthreadpool",
4932 ],
4933)
4934
Marat Dukhanc068bb62019-10-04 13:24:39 -07004935xnnpack_benchmark(
Marat Dukhanef4416e2019-10-31 13:44:40 -07004936 name = "f32_dwconv_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004937 srcs = [
4938 "bench/f32-dwconv-e2e.cc",
4939 "bench/end2end.h",
4940 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhanef4416e2019-10-31 13:44:40 -07004941 deps = MICROKERNEL_BENCHMARK_DEPS + [
4942 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004943 ":fp32_mobilenet_v1",
4944 ":fp32_mobilenet_v2",
4945 ":fp32_mobilenet_v3_large",
4946 ":fp32_mobilenet_v3_small",
Marat Dukhanef4416e2019-10-31 13:44:40 -07004947 ],
4948)
4949
4950xnnpack_benchmark(
Marat Dukhan5f18d262019-10-31 10:24:14 -07004951 name = "f32_gemm_e2e_bench",
Marat Dukhanc08cdf52019-12-09 09:17:51 -08004952 srcs = [
4953 "bench/f32-gemm-e2e.cc",
4954 "bench/end2end.h",
4955 ] + MICROKERNEL_BENCHMARK_HDRS,
Marat Dukhan5f18d262019-10-31 10:24:14 -07004956 deps = MICROKERNEL_BENCHMARK_DEPS + [
4957 ":XNNPACK",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004958 ":fp32_mobilenet_v1",
4959 ":fp32_mobilenet_v2",
4960 ":fp32_mobilenet_v3_large",
4961 ":fp32_mobilenet_v3_small",
Marat Dukhan5f18d262019-10-31 10:24:14 -07004962 ],
4963)
4964
4965xnnpack_benchmark(
Marat Dukhanc068bb62019-10-04 13:24:39 -07004966 name = "end2end_bench",
4967 srcs = ["bench/end2end.cc"],
4968 deps = [
4969 ":XNNPACK",
Frank Barchardc712fa42019-10-31 14:00:21 -07004970 ":bench_utils",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004971 ":fp16_mobilenet_v1",
4972 ":fp16_mobilenet_v2",
Marat Dukhan66f3ccd2020-09-14 16:09:38 -07004973 ":fp16_mobilenet_v3_large",
4974 ":fp16_mobilenet_v3_small",
Marat Dukhan270a2c42020-06-26 16:45:52 -07004975 ":fp32_mobilenet_v1",
4976 ":fp32_mobilenet_v2",
4977 ":fp32_mobilenet_v3_large",
4978 ":fp32_mobilenet_v3_small",
Marat Dukhan0743cdf2020-08-04 18:52:07 -07004979 ":qs8_mobilenet_v1",
Marat Dukhan70a96182020-09-03 17:13:58 -07004980 ":qs8_mobilenet_v2",
Marat Dukhanc068bb62019-10-04 13:24:39 -07004981 "@pthreadpool",
4982 ],
4983)
4984
Marat Dukhan6adff4e2019-10-14 18:32:07 -07004985#################### Accuracy evaluation for math functions ####################
4986
4987xnnpack_benchmark(
4988 name = "f32_exp_eval",
4989 srcs = [
4990 "eval/f32-exp.cc",
4991 "src/xnnpack/AlignedAllocator.h",
4992 ] + ACCURACY_EVAL_HDRS,
4993 deps = ACCURACY_EVAL_DEPS,
4994)
4995
Marat Dukhan515c9772019-10-17 18:07:57 -07004996xnnpack_benchmark(
4997 name = "f32_expminus_eval",
4998 srcs = [
4999 "eval/f32-expminus.cc",
5000 "src/xnnpack/AlignedAllocator.h",
5001 ] + ACCURACY_EVAL_HDRS,
5002 deps = ACCURACY_EVAL_DEPS,
5003)
5004
Marat Dukhan98ba4412019-10-23 02:14:28 -07005005xnnpack_benchmark(
5006 name = "f32_extexp_eval",
5007 srcs = [
5008 "eval/f32-extexp.cc",
5009 "src/xnnpack/AlignedAllocator.h",
5010 ] + ACCURACY_EVAL_HDRS,
5011 deps = ACCURACY_EVAL_DEPS,
5012)
5013
Marat Dukhan8853b822020-05-07 12:19:01 -07005014xnnpack_unit_test(
5015 name = "f32_roundne_eval",
5016 srcs = [
5017 "eval/f32-roundne.cc",
5018 "src/xnnpack/AlignedAllocator.h",
5019 "src/xnnpack/math-stubs.h",
5020 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhan22eed3d2020-05-11 20:13:37 -07005021 automatic = False,
Marat Dukhan8853b822020-05-07 12:19:01 -07005022 deps = MICROKERNEL_TEST_DEPS,
5023)
5024
Marat Dukhan2dbb9442020-05-12 20:43:43 -07005025xnnpack_unit_test(
Marat Dukhanc9852ba2020-05-13 17:21:29 -07005026 name = "f32_roundd_eval",
5027 srcs = [
5028 "eval/f32-roundd.cc",
5029 "src/xnnpack/AlignedAllocator.h",
5030 "src/xnnpack/math-stubs.h",
5031 ] + MICROKERNEL_TEST_HDRS,
5032 automatic = False,
5033 deps = MICROKERNEL_TEST_DEPS,
5034)
5035
5036xnnpack_unit_test(
5037 name = "f32_roundu_eval",
5038 srcs = [
5039 "eval/f32-roundu.cc",
5040 "src/xnnpack/AlignedAllocator.h",
5041 "src/xnnpack/math-stubs.h",
5042 ] + MICROKERNEL_TEST_HDRS,
5043 automatic = False,
5044 deps = MICROKERNEL_TEST_DEPS,
5045)
5046
5047xnnpack_unit_test(
Marat Dukhan2dbb9442020-05-12 20:43:43 -07005048 name = "f32_roundz_eval",
5049 srcs = [
5050 "eval/f32-roundz.cc",
5051 "src/xnnpack/AlignedAllocator.h",
5052 "src/xnnpack/math-stubs.h",
5053 ] + MICROKERNEL_TEST_HDRS,
Marat Dukhanc9852ba2020-05-13 17:21:29 -07005054 automatic = False,
Marat Dukhan2dbb9442020-05-12 20:43:43 -07005055 deps = MICROKERNEL_TEST_DEPS,
5056)
5057
Marat Dukhan346a9e52019-11-15 09:06:30 -08005058xnnpack_benchmark(
5059 name = "f32_sigmoid_eval",
5060 srcs = [
5061 "eval/f32-sigmoid.cc",
5062 "src/xnnpack/AlignedAllocator.h",
5063 ] + ACCURACY_EVAL_HDRS,
5064 deps = ACCURACY_EVAL_DEPS,
5065)
5066
Marat Dukhan84000762020-06-29 18:38:43 -07005067xnnpack_benchmark(
5068 name = "f32_sqrt_eval",
5069 srcs = [
5070 "eval/f32-sqrt.cc",
5071 "src/xnnpack/AlignedAllocator.h",
5072 ] + ACCURACY_EVAL_HDRS,
5073 deps = ACCURACY_EVAL_DEPS + [
5074 ":bench_utils",
5075 ],
5076)
5077
Marat Dukhan08c4a432019-10-03 09:29:21 -07005078######################### Unit tests for micro-kernels #########################
5079
5080xnnpack_unit_test(
Marat Dukhande06f492020-04-09 00:19:31 -07005081 name = "f16_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005082 srcs = [
Marat Dukhande06f492020-04-09 00:19:31 -07005083 "test/f16-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005084 "test/gemm-microkernel-tester.h",
5085 "src/xnnpack/AlignedAllocator.h",
5086 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005087 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005088)
5089
5090xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07005091 name = "f16_spmm_minmax_test",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08005092 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07005093 "test/f16-spmm-minmax.cc",
Marat Dukhanbdb56f52020-02-05 21:42:49 -08005094 "test/spmm-microkernel-tester.h",
5095 "src/xnnpack/AlignedAllocator.h",
5096 ] + MICROKERNEL_TEST_HDRS,
5097 deps = MICROKERNEL_TEST_DEPS,
5098)
5099
5100xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005101 name = "f32_argmaxpool_test",
5102 srcs = [
5103 "test/f32-argmaxpool.cc",
5104 "test/argmaxpool-microkernel-tester.h",
5105 "src/xnnpack/AlignedAllocator.h",
5106 ] + MICROKERNEL_TEST_HDRS,
5107 deps = MICROKERNEL_TEST_DEPS,
5108)
5109
5110xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005111 name = "f32_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005112 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005113 "test/f32-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005114 "test/avgpool-microkernel-tester.h",
5115 "src/xnnpack/AlignedAllocator.h",
5116 ] + MICROKERNEL_TEST_HDRS,
5117 deps = MICROKERNEL_TEST_DEPS,
5118)
5119
5120xnnpack_unit_test(
Marat Dukhan660fd192020-03-10 04:55:30 -07005121 name = "f32_ibilinear_test",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08005122 srcs = [
Marat Dukhan660fd192020-03-10 04:55:30 -07005123 "test/f32-ibilinear.cc",
5124 "test/ibilinear-microkernel-tester.h",
Marat Dukhan35dacfb2019-11-07 19:18:16 -08005125 "src/xnnpack/AlignedAllocator.h",
5126 ] + MICROKERNEL_TEST_HDRS,
5127 deps = MICROKERNEL_TEST_DEPS,
5128)
5129
5130xnnpack_unit_test(
XNNPACK Team21432672020-10-19 19:58:48 -07005131 name = "f32_ibilinear_chw_test",
5132 srcs = [
5133 "test/f32-ibilinear-chw.cc",
XNNPACK Team6be46b22020-10-22 23:34:54 -07005134 "test/ibilinear-microkernel-tester.h",
XNNPACK Team21432672020-10-19 19:58:48 -07005135 "src/xnnpack/AlignedAllocator.h",
5136 ] + MICROKERNEL_TEST_HDRS,
5137 deps = MICROKERNEL_TEST_DEPS,
5138)
5139
5140xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07005141 name = "f16_clamp_test",
5142 srcs = [
5143 "test/f16-clamp.cc",
5144 "test/clamp-microkernel-tester.h",
5145 ] + MICROKERNEL_TEST_HDRS,
5146 deps = MICROKERNEL_TEST_DEPS,
5147)
5148
5149xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005150 name = "f32_clamp_test",
5151 srcs = [
5152 "test/f32-clamp.cc",
5153 "test/clamp-microkernel-tester.h",
5154 ] + MICROKERNEL_TEST_HDRS,
5155 deps = MICROKERNEL_TEST_DEPS,
5156)
5157
5158xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07005159 name = "f32_igemm_test",
5160 srcs = [
5161 "test/f32-igemm.cc",
5162 "test/gemm-microkernel-tester.h",
5163 "src/xnnpack/AlignedAllocator.h",
5164 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005165 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07005166)
5167
5168xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07005169 name = "f32_igemm_relu_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005170 srcs = [
Marat Dukhan467f6362020-05-22 23:21:55 -07005171 "test/f32-igemm-relu.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005172 "test/gemm-microkernel-tester.h",
5173 "src/xnnpack/AlignedAllocator.h",
5174 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005175 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005176)
5177
5178xnnpack_unit_test(
Marat Dukhane207b7b2020-05-28 16:27:42 -07005179 name = "f32_igemm_minmax_test",
5180 srcs = [
5181 "test/f32-igemm-minmax.cc",
5182 "test/gemm-microkernel-tester.h",
5183 "src/xnnpack/AlignedAllocator.h",
5184 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005185 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhane207b7b2020-05-28 16:27:42 -07005186)
5187
5188xnnpack_unit_test(
Frank Barchardb0e4fae2020-05-04 15:27:51 -07005189 name = "f16_igemm_minmax_test",
5190 srcs = [
5191 "test/f16-igemm-minmax.cc",
5192 "test/gemm-microkernel-tester.h",
5193 "src/xnnpack/AlignedAllocator.h",
5194 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005195 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchardb0e4fae2020-05-04 15:27:51 -07005196)
5197
5198xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005199 name = "f32_conv_hwc_test",
5200 srcs = [
5201 "test/f32-conv-hwc.cc",
5202 "test/conv-hwc-microkernel-tester.h",
5203 "src/xnnpack/AlignedAllocator.h",
5204 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005205 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005206)
5207
5208xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07005209 name = "f32_conv_hwc2chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005210 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07005211 "test/f32-conv-hwc2chw.cc",
5212 "test/conv-hwc2chw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005213 "src/xnnpack/AlignedAllocator.h",
5214 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005215 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005216)
5217
5218xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07005219 name = "f32_dwconv_test",
5220 srcs = [
5221 "test/f32-dwconv.cc",
5222 "test/dwconv-microkernel-tester.h",
5223 "src/xnnpack/AlignedAllocator.h",
5224 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005225 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07005226)
5227
5228xnnpack_unit_test(
Frank Barchard5a599a62020-06-04 20:12:44 -07005229 name = "f16_dwconv_minmax_test",
5230 srcs = [
5231 "test/f16-dwconv-minmax.cc",
5232 "test/dwconv-microkernel-tester.h",
5233 "src/xnnpack/AlignedAllocator.h",
5234 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005235 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard5a599a62020-06-04 20:12:44 -07005236)
5237
5238xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07005239 name = "f32_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005240 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07005241 "test/f32-dwconv-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005242 "test/dwconv-microkernel-tester.h",
5243 "src/xnnpack/AlignedAllocator.h",
5244 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005245 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005246)
5247
5248xnnpack_unit_test(
Marat Dukhanbf715f92020-10-23 20:17:00 -07005249 name = "f32_dwconv2d_chw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005250 srcs = [
Marat Dukhanbf715f92020-10-23 20:17:00 -07005251 "test/f32-dwconv2d-chw.cc",
5252 "test/dwconv2d-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005253 "src/xnnpack/AlignedAllocator.h",
5254 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005255 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005256)
5257
5258xnnpack_unit_test(
Frank Barchard0bb49a72020-06-04 11:35:11 -07005259 name = "f16_gavgpool_minmax_test",
5260 srcs = [
5261 "test/f16-gavgpool-minmax.cc",
5262 "test/gavgpool-microkernel-tester.h",
5263 "src/xnnpack/AlignedAllocator.h",
5264 ] + MICROKERNEL_TEST_HDRS,
5265 deps = MICROKERNEL_TEST_DEPS,
5266)
5267
5268xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005269 name = "f32_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005270 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005271 "test/f32-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005272 "test/gavgpool-microkernel-tester.h",
5273 "src/xnnpack/AlignedAllocator.h",
5274 ] + MICROKERNEL_TEST_HDRS,
5275 deps = MICROKERNEL_TEST_DEPS,
5276)
5277
5278xnnpack_unit_test(
Marat Dukhan1f29b802020-05-15 23:46:39 -07005279 name = "f32_gavgpool_cw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005280 srcs = [
Marat Dukhan1f29b802020-05-15 23:46:39 -07005281 "test/f32-gavgpool-cw.cc",
5282 "test/gavgpool-cw-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005283 "src/xnnpack/AlignedAllocator.h",
5284 ] + MICROKERNEL_TEST_HDRS,
5285 deps = MICROKERNEL_TEST_DEPS,
5286)
5287
5288xnnpack_unit_test(
Marat Dukhan163a7e62020-04-09 04:19:26 -07005289 name = "f32_gemm_test",
5290 srcs = [
5291 "test/f32-gemm.cc",
5292 "test/gemm-microkernel-tester.h",
5293 "src/xnnpack/AlignedAllocator.h",
5294 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005295 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan163a7e62020-04-09 04:19:26 -07005296)
5297
5298xnnpack_unit_test(
Marat Dukhan467f6362020-05-22 23:21:55 -07005299 name = "f32_gemm_relu_test",
5300 srcs = [
5301 "test/f32-gemm-relu.cc",
5302 "test/gemm-microkernel-tester.h",
5303 "src/xnnpack/AlignedAllocator.h",
5304 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005305 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan467f6362020-05-22 23:21:55 -07005306)
5307
5308xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07005309 name = "f32_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005310 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07005311 "test/f32-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005312 "test/gemm-microkernel-tester.h",
5313 "src/xnnpack/AlignedAllocator.h",
5314 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005315 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005316)
5317
5318xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07005319 name = "f32_gemminc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005320 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07005321 "test/f32-gemminc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005322 "test/gemm-microkernel-tester.h",
5323 "src/xnnpack/AlignedAllocator.h",
5324 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005325 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005326)
5327
5328xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07005329 name = "f16_hswish_test",
5330 srcs = [
5331 "test/f16-hswish.cc",
5332 "test/hswish-microkernel-tester.h",
5333 ] + MICROKERNEL_TEST_HDRS,
5334 deps = MICROKERNEL_TEST_DEPS,
5335)
5336
5337xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005338 name = "f32_hswish_test",
5339 srcs = [
5340 "test/f32-hswish.cc",
5341 "test/hswish-microkernel-tester.h",
5342 ] + MICROKERNEL_TEST_HDRS,
5343 deps = MICROKERNEL_TEST_DEPS,
5344)
5345
5346xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005347 name = "f32_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005348 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005349 "test/f32-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005350 "test/maxpool-microkernel-tester.h",
5351 ] + MICROKERNEL_TEST_HDRS,
5352 deps = MICROKERNEL_TEST_DEPS,
5353)
5354
5355xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005356 name = "f32_pavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005357 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005358 "test/f32-pavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005359 "test/avgpool-microkernel-tester.h",
5360 "src/xnnpack/AlignedAllocator.h",
5361 ] + MICROKERNEL_TEST_HDRS,
5362 deps = MICROKERNEL_TEST_DEPS,
5363)
5364
5365xnnpack_unit_test(
Marat Dukhan1c587112020-04-08 20:04:28 -07005366 name = "f32_ppmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005367 srcs = [
Marat Dukhan1c587112020-04-08 20:04:28 -07005368 "test/f32-ppmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005369 "test/gemm-microkernel-tester.h",
5370 "src/xnnpack/AlignedAllocator.h",
5371 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005372 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005373)
5374
5375xnnpack_unit_test(
Frank Barchardb1966592020-05-12 13:47:06 -07005376 name = "f16_prelu_test",
5377 srcs = [
5378 "test/f16-prelu.cc",
5379 "test/prelu-microkernel-tester.h",
5380 "src/xnnpack/AlignedAllocator.h",
5381 ] + MICROKERNEL_TEST_HDRS,
5382 deps = MICROKERNEL_TEST_DEPS,
5383)
5384
5385xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005386 name = "f32_prelu_test",
5387 srcs = [
5388 "test/f32-prelu.cc",
5389 "test/prelu-microkernel-tester.h",
5390 "src/xnnpack/AlignedAllocator.h",
5391 ] + MICROKERNEL_TEST_HDRS,
5392 deps = MICROKERNEL_TEST_DEPS,
5393)
5394
5395xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07005396 name = "f32_raddexpminusmax_test",
5397 srcs = [
5398 "test/f32-raddexpminusmax.cc",
5399 "test/raddexpminusmax-microkernel-tester.h",
5400 ] + MICROKERNEL_TEST_HDRS,
5401 deps = MICROKERNEL_TEST_DEPS,
5402)
5403
5404xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07005405 name = "f32_raddextexp_test",
5406 srcs = [
5407 "test/f32-raddextexp.cc",
5408 "test/raddextexp-microkernel-tester.h",
5409 ] + MICROKERNEL_TEST_HDRS,
5410 deps = MICROKERNEL_TEST_DEPS,
5411)
5412
5413xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07005414 name = "f32_raddstoreexpminusmax_test",
5415 srcs = [
5416 "test/f32-raddstoreexpminusmax.cc",
5417 "test/raddstoreexpminusmax-microkernel-tester.h",
5418 ] + MICROKERNEL_TEST_HDRS,
5419 deps = MICROKERNEL_TEST_DEPS,
5420)
5421
5422xnnpack_unit_test(
Frank Barchardfb158e22020-07-15 16:10:10 -07005423 name = "f32_relu_test",
5424 srcs = [
5425 "test/f32-relu.cc",
5426 "test/vunary-microkernel-tester.h",
5427 ] + MICROKERNEL_TEST_HDRS,
5428 deps = MICROKERNEL_TEST_DEPS,
5429)
5430
5431xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07005432 name = "f32_rmax_test",
5433 srcs = [
5434 "test/f32-rmax.cc",
5435 "test/rmax-microkernel-tester.h",
5436 ] + MICROKERNEL_TEST_HDRS,
5437 deps = MICROKERNEL_TEST_DEPS,
5438)
5439
5440xnnpack_unit_test(
Marat Dukhan346a9e52019-11-15 09:06:30 -08005441 name = "f32_sigmoid_test",
5442 srcs = [
5443 "test/f32-sigmoid.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005444 "test/vunary-microkernel-tester.h",
Marat Dukhan346a9e52019-11-15 09:06:30 -08005445 ] + MICROKERNEL_TEST_HDRS,
5446 deps = MICROKERNEL_TEST_DEPS,
5447)
5448
5449xnnpack_unit_test(
Marat Dukhan355ab432020-04-09 19:01:52 -07005450 name = "f32_spmm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005451 srcs = [
Marat Dukhan355ab432020-04-09 19:01:52 -07005452 "test/f32-spmm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005453 "test/spmm-microkernel-tester.h",
5454 "src/xnnpack/AlignedAllocator.h",
5455 ] + MICROKERNEL_TEST_HDRS,
5456 deps = MICROKERNEL_TEST_DEPS,
5457)
5458
5459xnnpack_unit_test(
Frank Barchardd793f6c2020-05-08 13:37:43 -07005460 name = "f16_vadd_minmax_test",
5461 srcs = [
5462 "test/f16-vadd-minmax.cc",
5463 "test/vbinary-microkernel-tester.h",
5464 ] + MICROKERNEL_TEST_HDRS,
5465 deps = MICROKERNEL_TEST_DEPS,
5466)
5467
5468xnnpack_unit_test(
5469 name = "f16_vaddc_minmax_test",
5470 srcs = [
5471 "test/f16-vaddc-minmax.cc",
5472 "test/vbinaryc-microkernel-tester.h",
5473 ] + MICROKERNEL_TEST_HDRS,
5474 deps = MICROKERNEL_TEST_DEPS,
5475)
5476
5477xnnpack_unit_test(
5478 name = "f16_vdiv_minmax_test",
5479 srcs = [
5480 "test/f16-vdiv-minmax.cc",
5481 "test/vbinary-microkernel-tester.h",
5482 ] + MICROKERNEL_TEST_HDRS,
5483 deps = MICROKERNEL_TEST_DEPS,
5484)
5485
5486xnnpack_unit_test(
5487 name = "f16_vdivc_minmax_test",
5488 srcs = [
5489 "test/f16-vdivc-minmax.cc",
5490 "test/vbinaryc-microkernel-tester.h",
5491 ] + MICROKERNEL_TEST_HDRS,
5492 deps = MICROKERNEL_TEST_DEPS,
5493)
5494
5495xnnpack_unit_test(
5496 name = "f16_vrdivc_minmax_test",
5497 srcs = [
5498 "test/f16-vrdivc-minmax.cc",
5499 "test/vbinaryc-microkernel-tester.h",
5500 ] + MICROKERNEL_TEST_HDRS,
5501 deps = MICROKERNEL_TEST_DEPS,
5502)
5503
5504xnnpack_unit_test(
5505 name = "f16_vmax_test",
5506 srcs = [
5507 "test/f16-vmax.cc",
5508 "test/vbinary-microkernel-tester.h",
5509 ] + MICROKERNEL_TEST_HDRS,
5510 deps = MICROKERNEL_TEST_DEPS,
5511)
5512
5513xnnpack_unit_test(
5514 name = "f16_vmaxc_test",
5515 srcs = [
5516 "test/f16-vmaxc.cc",
5517 "test/vbinaryc-microkernel-tester.h",
5518 ] + MICROKERNEL_TEST_HDRS,
5519 deps = MICROKERNEL_TEST_DEPS,
5520)
5521
5522xnnpack_unit_test(
5523 name = "f16_vmin_test",
5524 srcs = [
5525 "test/f16-vmin.cc",
5526 "test/vbinary-microkernel-tester.h",
5527 ] + MICROKERNEL_TEST_HDRS,
5528 deps = MICROKERNEL_TEST_DEPS,
5529)
5530
5531xnnpack_unit_test(
5532 name = "f16_vminc_test",
5533 srcs = [
5534 "test/f16-vminc.cc",
5535 "test/vbinaryc-microkernel-tester.h",
5536 ] + MICROKERNEL_TEST_HDRS,
5537 deps = MICROKERNEL_TEST_DEPS,
5538)
5539
5540xnnpack_unit_test(
5541 name = "f16_vmul_minmax_test",
5542 srcs = [
5543 "test/f16-vmul-minmax.cc",
5544 "test/vbinary-microkernel-tester.h",
5545 ] + MICROKERNEL_TEST_HDRS,
5546 deps = MICROKERNEL_TEST_DEPS,
5547)
5548
5549xnnpack_unit_test(
5550 name = "f16_vmulc_minmax_test",
5551 srcs = [
5552 "test/f16-vmulc-minmax.cc",
5553 "test/vbinaryc-microkernel-tester.h",
5554 ] + MICROKERNEL_TEST_HDRS,
5555 deps = MICROKERNEL_TEST_DEPS,
5556)
5557
5558xnnpack_unit_test(
5559 name = "f16_vsub_minmax_test",
5560 srcs = [
5561 "test/f16-vsub-minmax.cc",
5562 "test/vbinary-microkernel-tester.h",
5563 ] + MICROKERNEL_TEST_HDRS,
5564 deps = MICROKERNEL_TEST_DEPS,
5565)
5566
5567xnnpack_unit_test(
5568 name = "f16_vsubc_minmax_test",
5569 srcs = [
5570 "test/f16-vsubc-minmax.cc",
5571 "test/vbinaryc-microkernel-tester.h",
5572 ] + MICROKERNEL_TEST_HDRS,
5573 deps = MICROKERNEL_TEST_DEPS,
5574)
5575
5576xnnpack_unit_test(
5577 name = "f16_vrsubc_minmax_test",
5578 srcs = [
5579 "test/f16-vrsubc-minmax.cc",
5580 "test/vbinaryc-microkernel-tester.h",
5581 ] + MICROKERNEL_TEST_HDRS,
5582 deps = MICROKERNEL_TEST_DEPS,
5583)
5584
5585xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005586 name = "f32_vabs_test",
5587 srcs = [
5588 "test/f32-vabs.cc",
5589 "test/vunary-microkernel-tester.h",
5590 ] + MICROKERNEL_TEST_HDRS,
5591 deps = MICROKERNEL_TEST_DEPS,
5592)
5593
5594xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005595 name = "f32_vadd_test",
5596 srcs = [
5597 "test/f32-vadd.cc",
5598 "test/vbinary-microkernel-tester.h",
5599 ] + MICROKERNEL_TEST_HDRS,
5600 deps = MICROKERNEL_TEST_DEPS,
5601)
5602
5603xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005604 name = "f32_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005605 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005606 "test/f32-vadd-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005607 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005608 ] + MICROKERNEL_TEST_HDRS,
5609 deps = MICROKERNEL_TEST_DEPS,
5610)
5611
5612xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005613 name = "f32_vadd_relu_test",
5614 srcs = [
5615 "test/f32-vadd-relu.cc",
5616 "test/vbinary-microkernel-tester.h",
5617 ] + MICROKERNEL_TEST_HDRS,
5618 deps = MICROKERNEL_TEST_DEPS,
5619)
5620
5621xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005622 name = "f32_vaddc_test",
5623 srcs = [
5624 "test/f32-vaddc.cc",
5625 "test/vbinaryc-microkernel-tester.h",
5626 ] + MICROKERNEL_TEST_HDRS,
5627 deps = MICROKERNEL_TEST_DEPS,
5628)
5629
5630xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005631 name = "f32_vaddc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005632 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005633 "test/f32-vaddc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005634 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005635 ] + MICROKERNEL_TEST_HDRS,
5636 deps = MICROKERNEL_TEST_DEPS,
5637)
5638
5639xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005640 name = "f32_vaddc_relu_test",
5641 srcs = [
5642 "test/f32-vaddc-relu.cc",
5643 "test/vbinaryc-microkernel-tester.h",
5644 ] + MICROKERNEL_TEST_HDRS,
5645 deps = MICROKERNEL_TEST_DEPS,
5646)
5647
5648xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005649 name = "f32_vdiv_test",
5650 srcs = [
5651 "test/f32-vdiv.cc",
5652 "test/vbinary-microkernel-tester.h",
5653 ] + MICROKERNEL_TEST_HDRS,
5654 deps = MICROKERNEL_TEST_DEPS,
5655)
5656
5657xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005658 name = "f32_vdiv_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08005659 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005660 "test/f32-vdiv-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08005661 "test/vbinary-microkernel-tester.h",
5662 ] + MICROKERNEL_TEST_HDRS,
5663 deps = MICROKERNEL_TEST_DEPS,
5664)
5665
5666xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005667 name = "f32_vdiv_relu_test",
5668 srcs = [
5669 "test/f32-vdiv-relu.cc",
5670 "test/vbinary-microkernel-tester.h",
5671 ] + MICROKERNEL_TEST_HDRS,
5672 deps = MICROKERNEL_TEST_DEPS,
5673)
5674
5675xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005676 name = "f32_vdivc_test",
5677 srcs = [
5678 "test/f32-vdivc.cc",
5679 "test/vbinaryc-microkernel-tester.h",
5680 ] + MICROKERNEL_TEST_HDRS,
5681 deps = MICROKERNEL_TEST_DEPS,
5682)
5683
5684xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005685 name = "f32_vdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08005686 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005687 "test/f32-vdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08005688 "test/vbinaryc-microkernel-tester.h",
5689 ] + MICROKERNEL_TEST_HDRS,
5690 deps = MICROKERNEL_TEST_DEPS,
5691)
5692
5693xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005694 name = "f32_vdivc_relu_test",
5695 srcs = [
5696 "test/f32-vdivc-relu.cc",
5697 "test/vbinaryc-microkernel-tester.h",
5698 ] + MICROKERNEL_TEST_HDRS,
5699 deps = MICROKERNEL_TEST_DEPS,
5700)
5701
5702xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005703 name = "f32_vrdivc_test",
5704 srcs = [
5705 "test/f32-vrdivc.cc",
5706 "test/vbinaryc-microkernel-tester.h",
5707 ] + MICROKERNEL_TEST_HDRS,
5708 deps = MICROKERNEL_TEST_DEPS,
5709)
5710
5711xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005712 name = "f32_vrdivc_minmax_test",
Marat Dukhan77ca6302019-12-06 12:48:15 -08005713 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005714 "test/f32-vrdivc-minmax.cc",
Marat Dukhan77ca6302019-12-06 12:48:15 -08005715 "test/vbinaryc-microkernel-tester.h",
5716 ] + MICROKERNEL_TEST_HDRS,
5717 deps = MICROKERNEL_TEST_DEPS,
5718)
5719
5720xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005721 name = "f32_vrdivc_relu_test",
5722 srcs = [
5723 "test/f32-vrdivc-relu.cc",
5724 "test/vbinaryc-microkernel-tester.h",
5725 ] + MICROKERNEL_TEST_HDRS,
5726 deps = MICROKERNEL_TEST_DEPS,
5727)
5728
5729xnnpack_unit_test(
Marat Dukhan403b7d42019-12-05 12:49:11 -08005730 name = "f32_vmax_test",
5731 srcs = [
5732 "test/f32-vmax.cc",
5733 "test/vbinary-microkernel-tester.h",
5734 ] + MICROKERNEL_TEST_HDRS,
5735 deps = MICROKERNEL_TEST_DEPS,
5736)
5737
5738xnnpack_unit_test(
5739 name = "f32_vmaxc_test",
5740 srcs = [
5741 "test/f32-vmaxc.cc",
5742 "test/vbinaryc-microkernel-tester.h",
5743 ] + MICROKERNEL_TEST_HDRS,
5744 deps = MICROKERNEL_TEST_DEPS,
5745)
5746
5747xnnpack_unit_test(
5748 name = "f32_vmin_test",
5749 srcs = [
5750 "test/f32-vmin.cc",
5751 "test/vbinary-microkernel-tester.h",
5752 ] + MICROKERNEL_TEST_HDRS,
5753 deps = MICROKERNEL_TEST_DEPS,
5754)
5755
5756xnnpack_unit_test(
5757 name = "f32_vminc_test",
5758 srcs = [
5759 "test/f32-vminc.cc",
5760 "test/vbinaryc-microkernel-tester.h",
5761 ] + MICROKERNEL_TEST_HDRS,
5762 deps = MICROKERNEL_TEST_DEPS,
5763)
5764
5765xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005766 name = "f32_vmul_test",
5767 srcs = [
5768 "test/f32-vmul.cc",
5769 "test/vbinary-microkernel-tester.h",
5770 ] + MICROKERNEL_TEST_HDRS,
5771 deps = MICROKERNEL_TEST_DEPS,
5772)
5773
5774xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005775 name = "f32_vmul_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005776 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005777 "test/f32-vmul-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005778 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005779 ] + MICROKERNEL_TEST_HDRS,
5780 deps = MICROKERNEL_TEST_DEPS,
5781)
5782
5783xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005784 name = "f32_vmul_relu_test",
5785 srcs = [
5786 "test/f32-vmul-relu.cc",
5787 "test/vbinary-microkernel-tester.h",
5788 ] + MICROKERNEL_TEST_HDRS,
5789 deps = MICROKERNEL_TEST_DEPS,
5790)
5791
5792xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005793 name = "f32_vmulc_test",
5794 srcs = [
5795 "test/f32-vmulc.cc",
5796 "test/vbinaryc-microkernel-tester.h",
5797 ] + MICROKERNEL_TEST_HDRS,
5798 deps = MICROKERNEL_TEST_DEPS,
5799)
5800
5801xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005802 name = "f32_vmulc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005803 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005804 "test/f32-vmulc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005805 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005806 ] + MICROKERNEL_TEST_HDRS,
5807 deps = MICROKERNEL_TEST_DEPS,
5808)
5809
5810xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005811 name = "f32_vmulc_relu_test",
5812 srcs = [
5813 "test/f32-vmulc-relu.cc",
5814 "test/vbinaryc-microkernel-tester.h",
5815 ] + MICROKERNEL_TEST_HDRS,
5816 deps = MICROKERNEL_TEST_DEPS,
5817)
5818
5819xnnpack_unit_test(
Frank Barchard2a1049c2020-06-03 02:31:27 -07005820 name = "f16_vmulcaddc_minmax_test",
5821 srcs = [
5822 "test/f16-vmulcaddc-minmax.cc",
5823 "test/vmulcaddc-microkernel-tester.h",
5824 "src/xnnpack/AlignedAllocator.h",
5825 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005826 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Frank Barchard2a1049c2020-06-03 02:31:27 -07005827)
5828
5829xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07005830 name = "f32_vmulcaddc_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005831 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07005832 "test/f32-vmulcaddc-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07005833 "test/vmulcaddc-microkernel-tester.h",
5834 "src/xnnpack/AlignedAllocator.h",
5835 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07005836 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07005837)
5838
5839xnnpack_unit_test(
Marat Dukhan8cc7efe2020-06-10 16:24:27 -07005840 name = "f32_vlrelu_test",
5841 srcs = [
5842 "test/f32-vlrelu.cc",
5843 "test/vunary-microkernel-tester.h",
5844 ] + MICROKERNEL_TEST_HDRS,
5845 deps = MICROKERNEL_TEST_DEPS,
5846)
5847
5848xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005849 name = "f32_vneg_test",
5850 srcs = [
5851 "test/f32-vneg.cc",
5852 "test/vunary-microkernel-tester.h",
5853 ] + MICROKERNEL_TEST_HDRS,
5854 deps = MICROKERNEL_TEST_DEPS,
5855)
5856
5857xnnpack_unit_test(
Marat Dukhaneecf8fd2020-06-09 08:59:37 -07005858 name = "f32_vrndne_test",
5859 srcs = [
5860 "test/f32-vrndne.cc",
5861 "test/vunary-microkernel-tester.h",
5862 ] + MICROKERNEL_TEST_HDRS,
5863 deps = MICROKERNEL_TEST_DEPS,
5864)
5865
5866xnnpack_unit_test(
5867 name = "f32_vrndz_test",
5868 srcs = [
5869 "test/f32-vrndz.cc",
5870 "test/vunary-microkernel-tester.h",
5871 ] + MICROKERNEL_TEST_HDRS,
5872 deps = MICROKERNEL_TEST_DEPS,
5873)
5874
5875xnnpack_unit_test(
5876 name = "f32_vrndu_test",
5877 srcs = [
5878 "test/f32-vrndu.cc",
5879 "test/vunary-microkernel-tester.h",
5880 ] + MICROKERNEL_TEST_HDRS,
5881 deps = MICROKERNEL_TEST_DEPS,
5882)
5883
5884xnnpack_unit_test(
5885 name = "f32_vrndd_test",
5886 srcs = [
5887 "test/f32-vrndd.cc",
5888 "test/vunary-microkernel-tester.h",
5889 ] + MICROKERNEL_TEST_HDRS,
5890 deps = MICROKERNEL_TEST_DEPS,
5891)
5892
5893xnnpack_unit_test(
Marat Dukhan05ac8e32019-10-21 15:39:33 -07005894 name = "f32_vscale_test",
5895 srcs = [
5896 "test/f32-vscale.cc",
5897 "test/vscale-microkernel-tester.h",
5898 ] + MICROKERNEL_TEST_HDRS,
5899 deps = MICROKERNEL_TEST_DEPS,
5900)
5901
5902xnnpack_unit_test(
Marat Dukhan97579532019-10-18 16:40:39 -07005903 name = "f32_vscaleexpminusmax_test",
5904 srcs = [
5905 "test/f32-vscaleexpminusmax.cc",
5906 "test/vscaleexpminusmax-microkernel-tester.h",
5907 ] + MICROKERNEL_TEST_HDRS,
5908 deps = MICROKERNEL_TEST_DEPS,
5909)
5910
5911xnnpack_unit_test(
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07005912 name = "f32_vscaleextexp_test",
5913 srcs = [
5914 "test/f32-vscaleextexp.cc",
5915 "test/vscaleextexp-microkernel-tester.h",
5916 ] + MICROKERNEL_TEST_HDRS,
5917 deps = MICROKERNEL_TEST_DEPS,
5918)
5919
5920xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07005921 name = "f32_vsqr_test",
5922 srcs = [
5923 "test/f32-vsqr.cc",
5924 "test/vunary-microkernel-tester.h",
5925 ] + MICROKERNEL_TEST_HDRS,
5926 deps = MICROKERNEL_TEST_DEPS,
5927)
5928
5929xnnpack_unit_test(
Marat Dukhan13bafb02020-06-05 00:43:11 -07005930 name = "f32_vsqrdiff_test",
5931 srcs = [
5932 "test/f32-vsqrdiff.cc",
5933 "test/vbinary-microkernel-tester.h",
5934 ] + MICROKERNEL_TEST_HDRS,
5935 deps = MICROKERNEL_TEST_DEPS,
5936)
5937
5938xnnpack_unit_test(
5939 name = "f32_vsqrdiffc_test",
5940 srcs = [
5941 "test/f32-vsqrdiffc.cc",
5942 "test/vbinaryc-microkernel-tester.h",
5943 ] + MICROKERNEL_TEST_HDRS,
5944 deps = MICROKERNEL_TEST_DEPS,
5945)
5946
5947xnnpack_unit_test(
Marat Dukhanf4db2f32020-06-30 10:55:30 -07005948 name = "f32_vsqrt_test",
5949 srcs = [
5950 "test/f32-vsqrt.cc",
5951 "test/vunary-microkernel-tester.h",
5952 ] + MICROKERNEL_TEST_HDRS,
5953 deps = MICROKERNEL_TEST_DEPS,
5954)
5955
5956xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005957 name = "f32_vsub_test",
5958 srcs = [
5959 "test/f32-vsub.cc",
5960 "test/vbinary-microkernel-tester.h",
5961 ] + MICROKERNEL_TEST_HDRS,
5962 deps = MICROKERNEL_TEST_DEPS,
5963)
5964
5965xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005966 name = "f32_vsub_minmax_test",
Marat Dukhan97579532019-10-18 16:40:39 -07005967 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005968 "test/f32-vsub-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005969 "test/vbinary-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005970 ] + MICROKERNEL_TEST_HDRS,
5971 deps = MICROKERNEL_TEST_DEPS,
5972)
5973
5974xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07005975 name = "f32_vsub_relu_test",
5976 srcs = [
5977 "test/f32-vsub-relu.cc",
5978 "test/vbinary-microkernel-tester.h",
5979 ] + MICROKERNEL_TEST_HDRS,
5980 deps = MICROKERNEL_TEST_DEPS,
5981)
5982
5983xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07005984 name = "f32_vsubc_test",
5985 srcs = [
5986 "test/f32-vsubc.cc",
5987 "test/vbinaryc-microkernel-tester.h",
5988 ] + MICROKERNEL_TEST_HDRS,
5989 deps = MICROKERNEL_TEST_DEPS,
5990)
5991
5992xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005993 name = "f32_vsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005994 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07005995 "test/f32-vsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08005996 "test/vbinaryc-microkernel-tester.h",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08005997 ] + MICROKERNEL_TEST_HDRS,
5998 deps = MICROKERNEL_TEST_DEPS,
5999)
6000
6001xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07006002 name = "f32_vsubc_relu_test",
6003 srcs = [
6004 "test/f32-vsubc-relu.cc",
6005 "test/vbinaryc-microkernel-tester.h",
6006 ] + MICROKERNEL_TEST_HDRS,
6007 deps = MICROKERNEL_TEST_DEPS,
6008)
6009
6010xnnpack_unit_test(
Frank Barchardd5b9f1c2020-07-01 15:00:19 -07006011 name = "f32_vrsubc_test",
6012 srcs = [
6013 "test/f32-vrsubc.cc",
6014 "test/vbinaryc-microkernel-tester.h",
6015 ] + MICROKERNEL_TEST_HDRS,
6016 deps = MICROKERNEL_TEST_DEPS,
6017)
6018
6019xnnpack_unit_test(
Marat Dukhan91cd2b72020-04-09 23:57:31 -07006020 name = "f32_vrsubc_minmax_test",
Marat Dukhanc07cb7f2019-11-14 15:32:05 -08006021 srcs = [
Marat Dukhan91cd2b72020-04-09 23:57:31 -07006022 "test/f32-vrsubc-minmax.cc",
Marat Dukhan1e782c42019-11-21 17:02:40 -08006023 "test/vbinaryc-microkernel-tester.h",
Marat Dukhan97579532019-10-18 16:40:39 -07006024 ] + MICROKERNEL_TEST_HDRS,
6025 deps = MICROKERNEL_TEST_DEPS,
6026)
6027
6028xnnpack_unit_test(
Frank Barchard674778d2020-08-08 10:17:25 -07006029 name = "f32_vrsubc_relu_test",
6030 srcs = [
6031 "test/f32-vrsubc-relu.cc",
6032 "test/vbinaryc-microkernel-tester.h",
6033 ] + MICROKERNEL_TEST_HDRS,
6034 deps = MICROKERNEL_TEST_DEPS,
6035)
6036
6037xnnpack_unit_test(
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07006038 name = "qs8_dwconv_minmax_test",
6039 srcs = [
6040 "test/qs8-dwconv-minmax.cc",
6041 "test/dwconv-microkernel-tester.h",
6042 "src/xnnpack/AlignedAllocator.h",
6043 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
6044 deps = MICROKERNEL_TEST_DEPS + [":packing"],
6045)
6046
6047xnnpack_unit_test(
Marat Dukhan4ed53f42020-08-06 01:12:55 -07006048 name = "qs8_gavgpool_minmax_test",
6049 srcs = [
6050 "test/qs8-gavgpool-minmax.cc",
6051 "test/gavgpool-microkernel-tester.h",
6052 "src/xnnpack/AlignedAllocator.h",
6053 ] + MICROKERNEL_TEST_HDRS,
6054 deps = MICROKERNEL_TEST_DEPS,
6055)
6056
6057xnnpack_unit_test(
Marat Dukhan595e1702020-07-31 10:12:52 -07006058 name = "qs8_gemm_minmax_test",
6059 srcs = [
6060 "test/qs8-gemm-minmax.cc",
6061 "test/gemm-microkernel-tester.h",
6062 "src/xnnpack/AlignedAllocator.h",
6063 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
6064 deps = MICROKERNEL_TEST_DEPS + [":packing"],
6065)
6066
6067xnnpack_unit_test(
Marat Dukhanf9480682020-07-31 14:50:24 -07006068 name = "qs8_igemm_minmax_test",
6069 srcs = [
6070 "test/qs8-igemm-minmax.cc",
6071 "test/gemm-microkernel-tester.h",
6072 "src/xnnpack/AlignedAllocator.h",
6073 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
6074 deps = MICROKERNEL_TEST_DEPS + [":packing"],
6075)
6076
6077xnnpack_unit_test(
6078 name = "qs8_requantization_test",
6079 srcs = [
6080 "src/xnnpack/requantization-stubs.h",
6081 "test/qs8-requantization.cc",
6082 "test/requantization-tester.h",
6083 ] + MICROKERNEL_TEST_HDRS,
6084 deps = MICROKERNEL_TEST_DEPS,
6085)
6086
6087xnnpack_unit_test(
Marat Dukhand9f3ad42020-08-10 12:30:58 -07006088 name = "qs8_vadd_minmax_test",
6089 srcs = [
6090 "test/qs8-vadd-minmax.cc",
6091 "test/vadd-microkernel-tester.h",
6092 ] + MICROKERNEL_TEST_HDRS,
6093 deps = MICROKERNEL_TEST_DEPS,
6094)
6095
6096xnnpack_unit_test(
Marat Dukhan0270d9f2020-08-11 00:56:46 -07006097 name = "qs8_vaddc_minmax_test",
6098 srcs = [
6099 "test/qs8-vaddc-minmax.cc",
6100 "test/vaddc-microkernel-tester.h",
6101 ] + MICROKERNEL_TEST_HDRS,
6102 deps = MICROKERNEL_TEST_DEPS,
6103)
6104
6105xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07006106 name = "qu8_avgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006107 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07006108 "test/qu8-avgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006109 "test/avgpool-microkernel-tester.h",
6110 "src/xnnpack/AlignedAllocator.h",
6111 ] + MICROKERNEL_TEST_HDRS,
6112 deps = MICROKERNEL_TEST_DEPS,
6113)
6114
6115xnnpack_unit_test(
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07006116 name = "qu8_dwconv_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006117 srcs = [
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07006118 "test/qu8-dwconv-minmax.cc",
6119 "test/dwconv-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006120 "src/xnnpack/AlignedAllocator.h",
6121 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07006122 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07006123)
6124
6125xnnpack_unit_test(
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07006126 name = "qu8_igemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006127 srcs = [
Marat Dukhanf62bbdc2020-08-04 13:59:04 -07006128 "test/qu8-igemm-minmax.cc",
6129 "test/gemm-microkernel-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006130 "src/xnnpack/AlignedAllocator.h",
6131 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07006132 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07006133)
6134
6135xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07006136 name = "qu8_gavgpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006137 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07006138 "test/qu8-gavgpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006139 "test/gavgpool-microkernel-tester.h",
6140 "src/xnnpack/AlignedAllocator.h",
6141 ] + MICROKERNEL_TEST_HDRS,
6142 deps = MICROKERNEL_TEST_DEPS,
6143)
6144
6145xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07006146 name = "qu8_gemm_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006147 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07006148 "test/qu8-gemm-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006149 "test/gemm-microkernel-tester.h",
6150 "src/xnnpack/AlignedAllocator.h",
6151 ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS,
Marat Dukhanab582382020-07-06 13:32:08 -07006152 deps = MICROKERNEL_TEST_DEPS + [":packing"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07006153)
6154
6155xnnpack_unit_test(
Marat Dukhan5b69f8b2020-07-24 15:26:48 -07006156 name = "qu8_requantization_test",
6157 srcs = [
6158 "src/xnnpack/requantization-stubs.h",
6159 "test/qu8-requantization.cc",
6160 "test/requantization-tester.h",
6161 ] + MICROKERNEL_TEST_HDRS,
6162 deps = MICROKERNEL_TEST_DEPS,
6163)
6164
6165xnnpack_unit_test(
Marat Dukhan08b7a972020-07-14 18:17:29 -07006166 name = "qu8_vadd_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006167 srcs = [
Marat Dukhan08b7a972020-07-14 18:17:29 -07006168 "test/qu8-vadd-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006169 "test/vadd-microkernel-tester.h",
6170 ] + MICROKERNEL_TEST_HDRS,
6171 deps = MICROKERNEL_TEST_DEPS,
6172)
6173
6174xnnpack_unit_test(
6175 name = "u8_clamp_test",
6176 srcs = [
6177 "test/u8-clamp.cc",
6178 "test/clamp-microkernel-tester.h",
6179 ] + MICROKERNEL_TEST_HDRS,
6180 deps = MICROKERNEL_TEST_DEPS,
6181)
6182
6183xnnpack_unit_test(
6184 name = "u8_lut32norm_test",
6185 srcs = [
6186 "test/u8-lut32norm.cc",
6187 "test/lut-norm-microkernel-tester.h",
6188 ] + MICROKERNEL_TEST_HDRS,
6189 deps = MICROKERNEL_TEST_DEPS,
6190)
6191
6192xnnpack_unit_test(
Marat Dukhan99936602020-04-11 16:47:01 -07006193 name = "u8_maxpool_minmax_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006194 srcs = [
Marat Dukhan99936602020-04-11 16:47:01 -07006195 "test/u8-maxpool-minmax.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006196 "test/maxpool-microkernel-tester.h",
6197 ] + MICROKERNEL_TEST_HDRS,
6198 deps = MICROKERNEL_TEST_DEPS,
6199)
6200
6201xnnpack_unit_test(
6202 name = "u8_rmax_test",
6203 srcs = [
6204 "test/u8-rmax.cc",
6205 "test/rmax-microkernel-tester.h",
6206 ] + MICROKERNEL_TEST_HDRS,
6207 deps = MICROKERNEL_TEST_DEPS,
6208)
6209
6210xnnpack_unit_test(
Marat Dukhan3bb3bfc2020-05-19 17:42:46 -07006211 name = "x32_fill_test",
6212 srcs = [
6213 "test/x32-fill.cc",
6214 "test/fill-microkernel-tester.h",
6215 ] + MICROKERNEL_TEST_HDRS,
6216 deps = MICROKERNEL_TEST_DEPS,
6217)
6218
6219xnnpack_unit_test(
Marat Dukhan08c4a432019-10-03 09:29:21 -07006220 name = "x32_packx_test",
6221 srcs = [
6222 "test/x32-packx.cc",
6223 "test/pack-microkernel-tester.h",
6224 "src/xnnpack/AlignedAllocator.h",
6225 ] + MICROKERNEL_TEST_HDRS,
6226 deps = MICROKERNEL_TEST_DEPS,
6227)
6228
6229xnnpack_unit_test(
6230 name = "x32_pad_test",
6231 srcs = [
6232 "test/x32-pad.cc",
6233 "test/pad-microkernel-tester.h",
6234 ] + MICROKERNEL_TEST_HDRS,
6235 deps = MICROKERNEL_TEST_DEPS,
6236)
6237
6238xnnpack_unit_test(
6239 name = "x32_unpool_test",
6240 srcs = [
6241 "test/x32-unpool.cc",
6242 "test/unpool-microkernel-tester.h",
6243 ] + MICROKERNEL_TEST_HDRS,
6244 deps = MICROKERNEL_TEST_DEPS,
6245)
6246
6247xnnpack_unit_test(
6248 name = "x32_zip_test",
6249 srcs = [
6250 "test/x32-zip.cc",
6251 "test/zip-microkernel-tester.h",
6252 ] + MICROKERNEL_TEST_HDRS,
6253 deps = MICROKERNEL_TEST_DEPS,
6254)
6255
6256xnnpack_unit_test(
6257 name = "x8_lut_test",
6258 srcs = [
6259 "test/x8-lut.cc",
6260 "test/lut-microkernel-tester.h",
6261 ] + MICROKERNEL_TEST_HDRS,
6262 deps = MICROKERNEL_TEST_DEPS,
6263)
6264
6265xnnpack_unit_test(
6266 name = "x8_zip_test",
6267 srcs = [
6268 "test/x8-zip.cc",
6269 "test/zip-microkernel-tester.h",
6270 ] + MICROKERNEL_TEST_HDRS,
6271 deps = MICROKERNEL_TEST_DEPS,
6272)
6273
Marat Dukhan20c3b922020-03-10 03:45:06 -07006274########################## Size tests for the library #########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07006275
6276xnnpack_binary(
Marat Dukhan20c3b922020-03-10 03:45:06 -07006277 name = "operator_size_test",
6278 srcs = ["test/operator-size.c"],
Marat Dukhan8fe54e42019-10-10 14:12:59 -07006279 deps = [":xnnpack_operators_nhwc_f32"],
Marat Dukhan08c4a432019-10-03 09:29:21 -07006280)
6281
Marat Dukhan20c3b922020-03-10 03:45:06 -07006282xnnpack_binary(
6283 name = "subgraph_size_test",
6284 srcs = ["test/subgraph-size.c"],
6285 deps = [":XNNPACK"],
6286)
6287
6288########################### Unit tests for operators ##########################
Marat Dukhan08c4a432019-10-03 09:29:21 -07006289
6290xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07006291 name = "abs_nc_test",
6292 srcs = [
6293 "test/abs-nc.cc",
6294 "test/abs-operator-tester.h",
6295 ],
6296 deps = OPERATOR_TEST_DEPS,
6297)
6298
6299xnnpack_unit_test(
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08006300 name = "add_nd_test",
6301 srcs = [
6302 "test/add-nd.cc",
6303 "test/binary-elementwise-operator-tester.h",
6304 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006305 deps = OPERATOR_TEST_DEPS,
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08006306)
6307
6308xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006309 name = "argmax_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006310 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006311 "test/argmax-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006312 "test/argmax-pooling-operator-tester.h",
6313 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006314 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006315)
6316
6317xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006318 name = "average_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006319 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006320 "test/average-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006321 "test/average-pooling-operator-tester.h",
6322 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006323 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006324)
6325
6326xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07006327 name = "bankers_rounding_nc_test",
6328 srcs = [
6329 "test/bankers-rounding-nc.cc",
6330 "test/bankers-rounding-operator-tester.h",
6331 ],
6332 deps = OPERATOR_TEST_DEPS,
6333)
6334
6335xnnpack_unit_test(
6336 name = "ceiling_nc_test",
6337 srcs = [
6338 "test/ceiling-nc.cc",
6339 "test/ceiling-operator-tester.h",
6340 ],
6341 deps = OPERATOR_TEST_DEPS,
6342)
6343
6344xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006345 name = "channel_shuffle_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006346 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006347 "test/channel-shuffle-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006348 "test/channel-shuffle-operator-tester.h",
6349 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006350 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006351)
6352
6353xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006354 name = "clamp_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006355 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006356 "test/clamp-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006357 "test/clamp-operator-tester.h",
6358 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006359 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006360)
6361
6362xnnpack_unit_test(
Marat Dukhan065b11e2020-05-22 09:49:41 -07006363 name = "constant_pad_nd_test",
6364 srcs = [
6365 "test/constant-pad-nd.cc",
6366 "test/constant-pad-operator-tester.h",
6367 ],
6368 deps = OPERATOR_TEST_DEPS,
6369)
6370
6371xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006372 name = "convolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006373 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006374 "test/convolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006375 "test/convolution-operator-tester.h",
6376 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006377 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006378)
6379
6380xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006381 name = "convolution_nchw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006382 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006383 "test/convolution-nchw.cc",
6384 "test/convolution-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006385 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006386 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006387)
6388
6389xnnpack_unit_test(
Marat Dukhan4e21b272020-06-04 18:45:01 -07006390 name = "copy_nc_test",
6391 srcs = [
6392 "test/copy-nc.cc",
6393 "test/copy-operator-tester.h",
6394 ],
6395 deps = OPERATOR_TEST_DEPS,
6396)
6397
6398xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006399 name = "deconvolution_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006400 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006401 "test/deconvolution-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006402 "test/deconvolution-operator-tester.h",
6403 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006404 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006405)
6406
6407xnnpack_unit_test(
Marat Dukhan69180502019-12-06 15:00:31 -08006408 name = "divide_nd_test",
6409 srcs = [
6410 "test/binary-elementwise-operator-tester.h",
6411 "test/divide-nd.cc",
6412 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006413 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69180502019-12-06 15:00:31 -08006414)
6415
6416xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006417 name = "fully_connected_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006418 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006419 "test/fully-connected-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006420 "test/fully-connected-operator-tester.h",
6421 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006422 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006423)
6424
6425xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07006426 name = "floor_nc_test",
6427 srcs = [
6428 "test/floor-nc.cc",
6429 "test/floor-operator-tester.h",
6430 ],
6431 deps = OPERATOR_TEST_DEPS,
6432)
6433
6434xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006435 name = "global_average_pooling_nwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006436 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006437 "test/global-average-pooling-nwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006438 "test/global-average-pooling-operator-tester.h",
Marat Dukhanef61d022020-06-19 13:54:49 -07006439 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006440 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006441)
6442
6443xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006444 name = "global_average_pooling_ncw_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006445 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006446 "test/global-average-pooling-ncw.cc",
6447 "test/global-average-pooling-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006448 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006449 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006450)
6451
6452xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006453 name = "hardswish_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006454 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006455 "test/hardswish-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006456 "test/hardswish-operator-tester.h",
6457 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006458 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006459)
6460
6461xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006462 name = "leaky_relu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006463 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006464 "test/leaky-relu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006465 "test/leaky-relu-operator-tester.h",
6466 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006467 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006468)
6469
6470xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006471 name = "max_pooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006472 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006473 "test/max-pooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006474 "test/max-pooling-operator-tester.h",
6475 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006476 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006477)
6478
6479xnnpack_unit_test(
Marat Dukhan79e7f842019-12-05 14:35:50 -08006480 name = "maximum_nd_test",
6481 srcs = [
6482 "test/binary-elementwise-operator-tester.h",
6483 "test/maximum-nd.cc",
6484 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006485 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08006486)
6487
6488xnnpack_unit_test(
6489 name = "minimum_nd_test",
6490 srcs = [
6491 "test/binary-elementwise-operator-tester.h",
6492 "test/minimum-nd.cc",
6493 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006494 deps = OPERATOR_TEST_DEPS,
Marat Dukhan79e7f842019-12-05 14:35:50 -08006495)
6496
6497xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006498 name = "multiply_nd_test",
Marat Dukhanca2733c2019-11-15 23:21:17 -08006499 srcs = [
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08006500 "test/binary-elementwise-operator-tester.h",
Marat Dukhanefc47b82019-11-18 09:25:38 -08006501 "test/multiply-nd.cc",
Marat Dukhanca2733c2019-11-15 23:21:17 -08006502 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006503 deps = OPERATOR_TEST_DEPS,
Marat Dukhanca2733c2019-11-15 23:21:17 -08006504)
6505
6506xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07006507 name = "negate_nc_test",
6508 srcs = [
6509 "test/negate-nc.cc",
6510 "test/negate-operator-tester.h",
6511 ],
6512 deps = OPERATOR_TEST_DEPS,
6513)
6514
6515xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006516 name = "prelu_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006517 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006518 "test/prelu-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006519 "test/prelu-operator-tester.h",
6520 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006521 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006522)
6523
6524xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006525 name = "resize_bilinear_nhwc_test",
Marat Dukhan69722492019-11-11 19:55:50 -08006526 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006527 "test/resize-bilinear-nhwc.cc",
Marat Dukhan69722492019-11-11 19:55:50 -08006528 "test/resize-bilinear-operator-tester.h",
6529 ] + OPERATOR_TEST_PARAMS_HDRS,
Marat Dukhan1b354632020-03-23 12:50:22 -07006530 deps = OPERATOR_TEST_DEPS,
Marat Dukhan69722492019-11-11 19:55:50 -08006531)
6532
6533xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006534 name = "sigmoid_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006535 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006536 "test/sigmoid-nc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006537 "test/sigmoid-operator-tester.h",
6538 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006539 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006540)
6541
6542xnnpack_unit_test(
Marat Dukhanfd8e6892020-01-27 15:25:25 -08006543 name = "softmax_nc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006544 srcs = [
Marat Dukhanfd8e6892020-01-27 15:25:25 -08006545 "test/softmax-nc.cc",
6546 "test/softmax-operator-tester.h",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006547 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006548 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006549)
6550
6551xnnpack_unit_test(
Marat Dukhan5020b962020-06-08 13:30:10 -07006552 name = "square_nc_test",
6553 srcs = [
6554 "test/square-nc.cc",
6555 "test/square-operator-tester.h",
6556 ],
6557 deps = OPERATOR_TEST_DEPS,
6558)
6559
6560xnnpack_unit_test(
Marat Dukhan6804bbd2020-06-30 19:26:11 -07006561 name = "square_root_nc_test",
6562 srcs = [
6563 "test/square-root-nc.cc",
6564 "test/square-root-operator-tester.h",
6565 ],
6566 deps = OPERATOR_TEST_DEPS,
6567)
6568
6569xnnpack_unit_test(
Marat Dukhanf7399262020-06-05 10:58:44 -07006570 name = "squared_difference_nd_test",
6571 srcs = [
6572 "test/binary-elementwise-operator-tester.h",
6573 "test/squared-difference-nd.cc",
6574 ],
6575 deps = OPERATOR_TEST_DEPS,
6576)
6577
6578xnnpack_unit_test(
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08006579 name = "subtract_nd_test",
6580 srcs = [
6581 "test/binary-elementwise-operator-tester.h",
6582 "test/subtract-nd.cc",
6583 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006584 deps = OPERATOR_TEST_DEPS,
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08006585)
6586
6587xnnpack_unit_test(
Marat Dukhan64e52512020-06-09 13:41:16 -07006588 name = "truncation_nc_test",
6589 srcs = [
6590 "test/truncation-nc.cc",
6591 "test/truncation-operator-tester.h",
6592 ],
6593 deps = OPERATOR_TEST_DEPS,
6594)
6595
6596xnnpack_unit_test(
Marat Dukhanefc47b82019-11-18 09:25:38 -08006597 name = "unpooling_nhwc_test",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006598 srcs = [
Marat Dukhanefc47b82019-11-18 09:25:38 -08006599 "test/unpooling-nhwc.cc",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006600 "test/unpooling-operator-tester.h",
6601 ],
Marat Dukhan1b354632020-03-23 12:50:22 -07006602 deps = OPERATOR_TEST_DEPS,
Marat Dukhan08c4a432019-10-03 09:29:21 -07006603)
6604
Chao Mei6ddfc602020-05-13 22:29:36 -07006605############################### Misc unit tests ###############################
6606
6607xnnpack_unit_test(
6608 name = "memory_planner_test",
6609 srcs = [
6610 "test/memory-planner-test.cc",
6611 ],
6612 deps = [
6613 ":XNNPACK",
6614 ":memory_planner",
6615 ],
6616)
6617
XNNPACK Teamab8c4c82020-10-09 08:05:51 -07006618xnnpack_unit_test(
6619 name = "subgraph_nchw_test",
6620 srcs = [
6621 "src/xnnpack/subgraph.h",
6622 "test/subgraph-nchw.cc",
6623 "test/subgraph-tester.h",
6624 ],
6625 deps = [
6626 ":XNNPACK",
6627 ],
6628)
6629
Marat Dukhan08c4a432019-10-03 09:29:21 -07006630############################# Build configurations #############################
6631
Marat Dukhanb8642352019-10-30 15:43:02 -07006632# Enables usage of assembly kernels.
Marat Dukhan08c4a432019-10-03 09:29:21 -07006633config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07006634 name = "xnn_enable_assembly_explicit_true",
6635 define_values = {"xnn_enable_assembly": "true"},
6636)
6637
6638# Disables usage of assembly kernels.
6639config_setting(
6640 name = "xnn_enable_assembly_explicit_false",
6641 define_values = {"xnn_enable_assembly": "false"},
6642)
6643
Marat Dukhan9de90e02020-06-18 16:04:12 -07006644# Enables usage of sparse inference.
6645config_setting(
6646 name = "xnn_enable_sparse_explicit_true",
6647 define_values = {"xnn_enable_sparse": "true"},
6648)
6649
6650# Disables usage of sparse inference.
6651config_setting(
6652 name = "xnn_enable_sparse_explicit_false",
6653 define_values = {"xnn_enable_sparse": "false"},
6654)
6655
Marat Dukhan05702cf2020-03-26 15:41:33 -07006656# Disables usage of HMP-aware optimizations.
6657config_setting(
6658 name = "xnn_enable_hmp_explicit_false",
6659 define_values = {"xnn_enable_hmp": "false"},
6660)
6661
Chao Mei6ddfc602020-05-13 22:29:36 -07006662# Enable usage of optimized memory allocation
6663config_setting(
6664 name = "xnn_enable_memopt_explicit_true",
6665 define_values = {"xnnpack_enable_memopt": "true"},
6666)
6667
6668# Disable usage of optimized memory allocation
6669config_setting(
6670 name = "xnn_enable_memopt_explicit_false",
6671 define_values = {"xnnpack_enable_memopt": "false"},
6672)
6673
Marat Dukhanb8642352019-10-30 15:43:02 -07006674# Builds with -c dbg
6675config_setting(
6676 name = "debug_build",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006677 values = {
Marat Dukhanb8642352019-10-30 15:43:02 -07006678 "compilation_mode": "dbg",
6679 },
6680)
6681
6682# Builds with -c opt
6683config_setting(
6684 name = "optimized_build",
6685 values = {
6686 "compilation_mode": "opt",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006687 },
6688)
6689
6690config_setting(
Marat Dukhanb8642352019-10-30 15:43:02 -07006691 name = "linux_k8",
6692 values = {"cpu": "k8"},
6693)
6694
6695config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07006696 name = "linux_arm",
6697 values = {"cpu": "arm"},
Marat Dukhan4e45e662019-10-03 15:40:24 -07006698)
6699
6700config_setting(
Marat Dukhanf0bd4de2020-06-15 15:53:19 -07006701 name = "linux_armeabi",
6702 values = {"cpu": "armeabi"},
6703)
6704
6705config_setting(
Terry Heo68eef3f2020-04-13 22:53:52 -07006706 name = "linux_armhf",
6707 values = {"cpu": "armhf"},
6708)
6709
6710config_setting(
Marat Dukhana720e932020-06-10 13:01:11 -07006711 name = "linux_armv7a",
6712 values = {"cpu": "armv7a"},
6713)
6714
6715config_setting(
Marat Dukhan582094e2020-04-30 17:21:25 -07006716 name = "linux_aarch64",
6717 values = {"cpu": "aarch64"},
6718)
6719
6720config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07006721 name = "android",
6722 values = {"crosstool_top": "//external:android/crosstool"},
6723)
6724
6725config_setting(
6726 name = "android_armv7",
6727 values = {
6728 "crosstool_top": "//external:android/crosstool",
6729 "cpu": "armeabi-v7a",
6730 },
6731)
6732
6733config_setting(
6734 name = "android_arm64",
6735 values = {
6736 "crosstool_top": "//external:android/crosstool",
6737 "cpu": "arm64-v8a",
6738 },
6739)
6740
6741config_setting(
6742 name = "android_x86",
6743 values = {
6744 "crosstool_top": "//external:android/crosstool",
6745 "cpu": "x86",
6746 },
6747)
6748
6749config_setting(
6750 name = "android_x86_64",
6751 values = {
6752 "crosstool_top": "//external:android/crosstool",
6753 "cpu": "x86_64",
6754 },
6755)
6756
6757config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07006758 name = "windows_x86_64",
6759 values = {"cpu": "x64_windows"},
Marat Dukhan9fe932e2020-04-11 17:14:15 -07006760)
6761
6762config_setting(
Marat Dukhan10a38082020-04-17 03:58:35 -07006763 name = "windows_x86_64_clang",
6764 values = {
6765 "compiler": "clang-cl",
6766 "cpu": "x64_windows",
6767 },
6768)
6769
6770config_setting(
6771 name = "windows_x86_64_mingw",
6772 values = {
6773 "compiler": "mingw-gcc",
6774 "cpu": "x64_windows",
6775 },
6776)
6777
6778config_setting(
6779 name = "windows_x86_64_msys",
6780 values = {
6781 "compiler": "msys-gcc",
6782 "cpu": "x64_windows",
6783 },
Marat Dukhan9fe932e2020-04-11 17:14:15 -07006784)
6785
6786config_setting(
Marat Dukhan885ca242019-10-07 09:17:32 -07006787 name = "macos_x86_64",
6788 values = {
6789 "apple_platform_type": "macos",
6790 "cpu": "darwin",
6791 },
6792)
6793
6794config_setting(
Marat Dukhan08c4a432019-10-03 09:29:21 -07006795 name = "emscripten",
Marat Dukhan1a729ec2019-10-07 09:31:44 -07006796 values = {"crosstool_top": "//toolchain:emscripten"},
Marat Dukhan08c4a432019-10-03 09:29:21 -07006797)
6798
6799config_setting(
6800 name = "emscripten_wasm",
6801 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07006802 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006803 "cpu": "wasm",
6804 },
6805)
6806
6807config_setting(
6808 name = "emscripten_wasmsimd",
6809 values = {
Marat Dukhan1a729ec2019-10-07 09:31:44 -07006810 "crosstool_top": "//toolchain:emscripten",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006811 "cpu": "wasm",
Marat Dukhan81c62602020-05-29 13:22:49 -07006812 "copt": "-msimd128",
Marat Dukhan08c4a432019-10-03 09:29:21 -07006813 },
6814)
6815
6816config_setting(
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006817 name = "ios_armv7",
6818 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006819 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006820 "cpu": "ios_armv7",
6821 },
6822)
6823
6824config_setting(
6825 name = "ios_arm64",
6826 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006827 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006828 "cpu": "ios_arm64",
6829 },
6830)
6831
6832config_setting(
6833 name = "ios_arm64e",
6834 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006835 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006836 "cpu": "ios_arm64e",
6837 },
6838)
6839
6840config_setting(
6841 name = "ios_x86",
6842 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006843 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006844 "cpu": "ios_i386",
6845 },
6846)
6847
6848config_setting(
6849 name = "ios_x86_64",
6850 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006851 "apple_platform_type": "ios",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006852 "cpu": "ios_x86_64",
6853 },
6854)
6855
6856config_setting(
6857 name = "watchos_armv7k",
6858 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006859 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006860 "cpu": "watchos_armv7k",
6861 },
6862)
6863
6864config_setting(
6865 name = "watchos_arm64_32",
6866 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006867 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006868 "cpu": "watchos_arm64_32",
6869 },
6870)
6871
6872config_setting(
6873 name = "watchos_x86",
6874 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006875 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006876 "cpu": "watchos_i386",
6877 },
6878)
6879
6880config_setting(
6881 name = "watchos_x86_64",
6882 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006883 "apple_platform_type": "watchos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006884 "cpu": "watchos_x86_64",
6885 },
6886)
6887
6888config_setting(
6889 name = "tvos_arm64",
6890 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006891 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006892 "cpu": "tvos_arm64",
6893 },
6894)
6895
6896config_setting(
6897 name = "tvos_x86_64",
6898 values = {
Marat Dukhanf85fc332020-02-13 00:05:20 -08006899 "apple_platform_type": "tvos",
Marat Dukhan1498d1d2020-02-11 20:00:05 -08006900 "cpu": "tvos_x86_64",
6901 },
6902)