Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1 | # 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 Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 9 | load(":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 Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 10 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 11 | licenses(["notice"]) |
| 12 | |
| 13 | exports_files(["LICENSE"]) |
| 14 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 15 | OPERATOR_BENCHMARK_DEPS = [ |
| 16 | ":XNNPACK", |
| 17 | ":bench_utils", |
| 18 | "@cpuinfo", |
Frank Barchard | 0c84973 | 2020-06-12 13:31:32 -0700 | [diff] [blame] | 19 | "@FP16", |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 20 | "@pthreadpool", |
| 21 | ] |
| 22 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 23 | MICROKERNEL_BENCHMARK_DEPS = [ |
| 24 | ":ukernels", |
| 25 | ":bench_utils", |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 26 | ":enable_assembly", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 27 | "@cpuinfo", |
| 28 | "@FP16", |
| 29 | "@pthreadpool", |
| 30 | ] |
| 31 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 32 | ACCURACY_EVAL_DEPS = [ |
| 33 | ":XNNPACK", |
| 34 | ":ukernels", |
| 35 | "@FP16", |
| 36 | "@pthreadpool", |
| 37 | ] |
| 38 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 39 | MICROKERNEL_TEST_DEPS = [ |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 40 | ":ukernels_test_mode", |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 41 | ":enable_assembly", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 42 | "@cpuinfo", |
| 43 | "@FP16", |
| 44 | "@pthreadpool", |
| 45 | ] |
| 46 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 47 | OPERATOR_TEST_DEPS = [ |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 48 | ":XNNPACK_test_mode", |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 49 | "@pthreadpool", |
| 50 | "@FP16", |
| 51 | ] |
| 52 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 53 | OPERATOR_SRCS = [ |
Marat Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 54 | "src/operators/argmax-pooling-nhwc.c", |
| 55 | "src/operators/average-pooling-nhwc.c", |
| 56 | "src/operators/binary-elementwise-nd.c", |
Marat Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 57 | "src/operators/channel-shuffle-nc.c", |
Marat Dukhan | 065b11e | 2020-05-22 09:49:41 -0700 | [diff] [blame] | 58 | "src/operators/constant-pad-nd.c", |
Marat Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 59 | "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 Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 65 | "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 Dukhan | c3065f5 | 2020-06-04 13:33:32 -0700 | [diff] [blame] | 71 | "src/operators/unary-elementwise-nc.c", |
Marat Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 72 | "src/operators/unpooling-nhwc.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 73 | ] |
| 74 | |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 75 | SUBGRAPH_SRCS = [ |
Marat Dukhan | 5fab409 | 2020-06-10 01:28:28 -0700 | [diff] [blame] | 76 | "src/subgraph/abs.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 77 | "src/subgraph/add2.c", |
| 78 | "src/subgraph/argmax-pooling-2d.c", |
| 79 | "src/subgraph/average-pooling-2d.c", |
Marat Dukhan | 5fab409 | 2020-06-10 01:28:28 -0700 | [diff] [blame] | 80 | "src/subgraph/bankers-rounding.c", |
| 81 | "src/subgraph/ceiling.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 82 | "src/subgraph/clamp.c", |
| 83 | "src/subgraph/convolution-2d.c", |
| 84 | "src/subgraph/deconvolution-2d.c", |
| 85 | "src/subgraph/depthwise-convolution-2d.c", |
Marat Dukhan | 9d3a459 | 2020-06-05 16:52:42 -0700 | [diff] [blame] | 86 | "src/subgraph/divide.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 87 | "src/subgraph/fully-connected.c", |
Marat Dukhan | 5fab409 | 2020-06-10 01:28:28 -0700 | [diff] [blame] | 88 | "src/subgraph/floor.c", |
Marat Dukhan | a059b7d | 2020-06-11 11:41:27 -0700 | [diff] [blame] | 89 | "src/subgraph/global-average-pooling-2d.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 90 | "src/subgraph/hardswish.c", |
Marat Dukhan | 5bbebac | 2020-06-10 19:42:15 -0700 | [diff] [blame] | 91 | "src/subgraph/leaky-relu.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 92 | "src/subgraph/max-pooling-2d.c", |
Marat Dukhan | 9d3a459 | 2020-06-05 16:52:42 -0700 | [diff] [blame] | 93 | "src/subgraph/maximum2.c", |
| 94 | "src/subgraph/minimum2.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 95 | "src/subgraph/multiply2.c", |
Marat Dukhan | 5fab409 | 2020-06-10 01:28:28 -0700 | [diff] [blame] | 96 | "src/subgraph/negate.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 97 | "src/subgraph/prelu.c", |
| 98 | "src/subgraph/sigmoid.c", |
| 99 | "src/subgraph/softmax.c", |
| 100 | "src/subgraph/static-constant-pad.c", |
Marat Dukhan | 5fab409 | 2020-06-10 01:28:28 -0700 | [diff] [blame] | 101 | "src/subgraph/square.c", |
Marat Dukhan | 51a01c6 | 2020-07-09 03:26:57 -0700 | [diff] [blame^] | 102 | "src/subgraph/square-root.c", |
Marat Dukhan | 9d3a459 | 2020-06-05 16:52:42 -0700 | [diff] [blame] | 103 | "src/subgraph/squared-difference.c", |
| 104 | "src/subgraph/subtract.c", |
Marat Dukhan | 95e8b7a | 2020-06-03 12:46:26 -0700 | [diff] [blame] | 105 | "src/subgraph/unpooling-2d.c", |
| 106 | ] |
| 107 | |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 108 | TABLE_SRCS = [ |
| 109 | "src/tables/exp2-k-over-64.c", |
| 110 | "src/tables/exp2-k-over-2048.c", |
| 111 | ] |
| 112 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 113 | SCALAR_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 114 | "src/f32-argmaxpool/4x-scalar-c1.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 115 | "src/f32-argmaxpool/9p8x-scalar-c1.c", |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 116 | "src/f32-argmaxpool/9x-scalar-c1.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 117 | "src/f32-avgpool/9p8x-minmax-scalar-c1.c", |
| 118 | "src/f32-avgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 119 | "src/f32-clamp/gen/scalar-x1.c", |
| 120 | "src/f32-clamp/gen/scalar-x2.c", |
| 121 | "src/f32-clamp/gen/scalar-x4.c", |
Marat Dukhan | 441e221 | 2019-12-04 18:30:49 -0800 | [diff] [blame] | 122 | "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c", |
Marat Dukhan | 6b7dfae | 2019-12-04 16:00:52 -0800 | [diff] [blame] | 123 | "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 124 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-scalar-1x1.c", |
| 125 | "src/f32-dwconv-chw/3x3p1-scalar.c", |
| 126 | "src/f32-dwconv-chw/3x3s2p1-scalar.c", |
| 127 | "src/f32-dwconv-chw/5x5p2-scalar.c", |
| 128 | "src/f32-dwconv-chw/5x5s2p2-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 129 | "src/f32-dwconv/gen/up1x4-scalar-acc2.c", |
| 130 | "src/f32-dwconv/gen/up1x4-scalar.c", |
| 131 | "src/f32-dwconv/gen/up1x9-scalar-acc2.c", |
| 132 | "src/f32-dwconv/gen/up1x9-scalar.c", |
| 133 | "src/f32-dwconv/gen/up1x25-scalar-acc2.c", |
| 134 | "src/f32-dwconv/gen/up1x25-scalar.c", |
| 135 | "src/f32-dwconv/gen/up2x4-scalar-acc2.c", |
| 136 | "src/f32-dwconv/gen/up2x4-scalar.c", |
| 137 | "src/f32-dwconv/gen/up2x9-scalar-acc2.c", |
| 138 | "src/f32-dwconv/gen/up2x9-scalar.c", |
| 139 | "src/f32-dwconv/gen/up2x25-scalar-acc2.c", |
| 140 | "src/f32-dwconv/gen/up2x25-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 141 | "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c", |
| 142 | "src/f32-dwconv/gen/up1x4-minmax-scalar.c", |
| 143 | "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c", |
| 144 | "src/f32-dwconv/gen/up1x9-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 145 | "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c", |
| 146 | "src/f32-dwconv/gen/up1x25-minmax-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 147 | "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c", |
| 148 | "src/f32-dwconv/gen/up2x4-minmax-scalar.c", |
| 149 | "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c", |
| 150 | "src/f32-dwconv/gen/up2x9-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 151 | "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c", |
| 152 | "src/f32-dwconv/gen/up2x25-minmax-scalar.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 153 | "src/f32-gavgpool-cw/scalar-x1.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 154 | "src/f32-gavgpool/7p7x-minmax-scalar-c1.c", |
| 155 | "src/f32-gavgpool/7x-minmax-scalar-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 156 | "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c", |
| 157 | "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c", |
| 158 | "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 159 | "src/f32-gemm/gen/1x4-scalar.c", |
| 160 | "src/f32-gemm/gen/2x4-scalar.c", |
| 161 | "src/f32-gemm/gen/4x2-scalar.c", |
| 162 | "src/f32-gemm/gen/4x4-scalar.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 163 | "src/f32-gemm/gen/1x4-relu-scalar.c", |
| 164 | "src/f32-gemm/gen/2x4-relu-scalar.c", |
| 165 | "src/f32-gemm/gen/4x2-relu-scalar.c", |
| 166 | "src/f32-gemm/gen/4x4-relu-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 167 | "src/f32-gemm/gen/1x4-minmax-scalar.c", |
| 168 | "src/f32-gemm/gen/2x4-minmax-scalar.c", |
| 169 | "src/f32-gemm/gen/4x2-minmax-scalar.c", |
| 170 | "src/f32-gemm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 171 | "src/f32-hswish/gen/scalar-x1.c", |
| 172 | "src/f32-hswish/gen/scalar-x2.c", |
| 173 | "src/f32-hswish/gen/scalar-x4.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 174 | "src/f32-ibilinear/gen/scalar-c1.c", |
| 175 | "src/f32-ibilinear/gen/scalar-c2.c", |
| 176 | "src/f32-ibilinear/gen/scalar-c4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 177 | "src/f32-igemm/gen/1x4-scalar.c", |
| 178 | "src/f32-igemm/gen/2x4-scalar.c", |
| 179 | "src/f32-igemm/gen/4x2-scalar.c", |
| 180 | "src/f32-igemm/gen/4x4-scalar.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 181 | "src/f32-igemm/gen/1x4-relu-scalar.c", |
| 182 | "src/f32-igemm/gen/2x4-relu-scalar.c", |
| 183 | "src/f32-igemm/gen/4x2-relu-scalar.c", |
| 184 | "src/f32-igemm/gen/4x4-relu-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 185 | "src/f32-igemm/gen/1x4-minmax-scalar.c", |
| 186 | "src/f32-igemm/gen/2x4-minmax-scalar.c", |
| 187 | "src/f32-igemm/gen/4x2-minmax-scalar.c", |
| 188 | "src/f32-igemm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 189 | "src/f32-maxpool/9p8x-minmax-scalar-c1.c", |
| 190 | "src/f32-pavgpool/9p8x-minmax-scalar-c1.c", |
| 191 | "src/f32-pavgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 192 | "src/f32-ppmm/gen/2x4-minmax-scalar.c", |
| 193 | "src/f32-ppmm/gen/3x3-minmax-scalar.c", |
| 194 | "src/f32-ppmm/gen/4x2-minmax-scalar.c", |
| 195 | "src/f32-ppmm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 196 | "src/f32-prelu/gen/scalar-2x1.c", |
| 197 | "src/f32-prelu/gen/scalar-2x4.c", |
Marat Dukhan | f46f675 | 2020-01-21 11:03:49 -0800 | [diff] [blame] | 198 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c", |
| 199 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c", |
| 200 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c", |
| 201 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c", |
| 202 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c", |
| 203 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c", |
| 204 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c", |
| 205 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c", |
| 206 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c", |
| 207 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c", |
| 208 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c", |
| 209 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 210 | "src/f32-rmax/scalar.c", |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 211 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c", |
| 212 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c", |
| 213 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c", |
| 214 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c", |
| 215 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c", |
| 216 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c", |
| 217 | "src/f32-sigmoid/gen/scalar-p5-div-x1.c", |
| 218 | "src/f32-sigmoid/gen/scalar-p5-div-x2.c", |
| 219 | "src/f32-sigmoid/gen/scalar-p5-div-x4.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 220 | "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c", |
| 221 | "src/f32-spmm/gen/1x1-minmax-scalar.c", |
| 222 | "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c", |
| 223 | "src/f32-spmm/gen/2x1-minmax-scalar.c", |
| 224 | "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c", |
| 225 | "src/f32-spmm/gen/4x1-minmax-scalar.c", |
| 226 | "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c", |
| 227 | "src/f32-spmm/gen/8x1-minmax-scalar.c", |
| 228 | "src/f32-spmm/gen/8x2-minmax-scalar.c", |
| 229 | "src/f32-spmm/gen/8x4-minmax-scalar.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 230 | "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c", |
| 231 | "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c", |
| 232 | "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 233 | "src/f32-vbinary/gen/vadd-scalar-x1.c", |
| 234 | "src/f32-vbinary/gen/vadd-scalar-x2.c", |
| 235 | "src/f32-vbinary/gen/vadd-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 236 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c", |
| 237 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c", |
| 238 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 239 | "src/f32-vbinary/gen/vaddc-scalar-x1.c", |
| 240 | "src/f32-vbinary/gen/vaddc-scalar-x2.c", |
| 241 | "src/f32-vbinary/gen/vaddc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 242 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c", |
| 243 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c", |
| 244 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 245 | "src/f32-vbinary/gen/vdiv-scalar-x1.c", |
| 246 | "src/f32-vbinary/gen/vdiv-scalar-x2.c", |
| 247 | "src/f32-vbinary/gen/vdiv-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 248 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c", |
| 249 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c", |
| 250 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 251 | "src/f32-vbinary/gen/vdivc-scalar-x1.c", |
| 252 | "src/f32-vbinary/gen/vdivc-scalar-x2.c", |
| 253 | "src/f32-vbinary/gen/vdivc-scalar-x4.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 254 | "src/f32-vbinary/gen/vmax-scalar-x1.c", |
| 255 | "src/f32-vbinary/gen/vmax-scalar-x2.c", |
| 256 | "src/f32-vbinary/gen/vmax-scalar-x4.c", |
| 257 | "src/f32-vbinary/gen/vmaxc-scalar-x1.c", |
| 258 | "src/f32-vbinary/gen/vmaxc-scalar-x2.c", |
| 259 | "src/f32-vbinary/gen/vmaxc-scalar-x4.c", |
| 260 | "src/f32-vbinary/gen/vmin-scalar-x1.c", |
| 261 | "src/f32-vbinary/gen/vmin-scalar-x2.c", |
| 262 | "src/f32-vbinary/gen/vmin-scalar-x4.c", |
| 263 | "src/f32-vbinary/gen/vminc-scalar-x1.c", |
| 264 | "src/f32-vbinary/gen/vminc-scalar-x2.c", |
| 265 | "src/f32-vbinary/gen/vminc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 266 | "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c", |
| 267 | "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c", |
| 268 | "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 269 | "src/f32-vbinary/gen/vmul-scalar-x1.c", |
| 270 | "src/f32-vbinary/gen/vmul-scalar-x2.c", |
| 271 | "src/f32-vbinary/gen/vmul-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 272 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c", |
| 273 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c", |
| 274 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 275 | "src/f32-vbinary/gen/vmulc-scalar-x1.c", |
| 276 | "src/f32-vbinary/gen/vmulc-scalar-x2.c", |
| 277 | "src/f32-vbinary/gen/vmulc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 278 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c", |
| 279 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c", |
| 280 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 281 | "src/f32-vbinary/gen/vrdivc-scalar-x1.c", |
| 282 | "src/f32-vbinary/gen/vrdivc-scalar-x2.c", |
| 283 | "src/f32-vbinary/gen/vrdivc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 284 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c", |
| 285 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c", |
| 286 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 287 | "src/f32-vbinary/gen/vrsubc-scalar-x1.c", |
| 288 | "src/f32-vbinary/gen/vrsubc-scalar-x2.c", |
| 289 | "src/f32-vbinary/gen/vrsubc-scalar-x4.c", |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 290 | "src/f32-vbinary/gen/vsqrdiff-scalar-x1.c", |
| 291 | "src/f32-vbinary/gen/vsqrdiff-scalar-x2.c", |
| 292 | "src/f32-vbinary/gen/vsqrdiff-scalar-x4.c", |
| 293 | "src/f32-vbinary/gen/vsqrdiffc-scalar-x1.c", |
| 294 | "src/f32-vbinary/gen/vsqrdiffc-scalar-x2.c", |
| 295 | "src/f32-vbinary/gen/vsqrdiffc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 296 | "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c", |
| 297 | "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c", |
| 298 | "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 299 | "src/f32-vbinary/gen/vsub-scalar-x1.c", |
| 300 | "src/f32-vbinary/gen/vsub-scalar-x2.c", |
| 301 | "src/f32-vbinary/gen/vsub-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 302 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c", |
| 303 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c", |
| 304 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c", |
Frank Barchard | 8e229db | 2020-07-06 23:31:35 -0700 | [diff] [blame] | 305 | "src/f32-vbinary/gen/vsubc-scalar-x1.c", |
| 306 | "src/f32-vbinary/gen/vsubc-scalar-x2.c", |
| 307 | "src/f32-vbinary/gen/vsubc-scalar-x4.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 308 | "src/f32-vlrelu/gen/scalar-x1.c", |
| 309 | "src/f32-vlrelu/gen/scalar-x2.c", |
| 310 | "src/f32-vlrelu/gen/scalar-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 311 | "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c", |
| 312 | "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c", |
| 313 | "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 314 | "src/f32-vrnd/gen/vrndne-scalar-libm-x1.c", |
| 315 | "src/f32-vrnd/gen/vrndne-scalar-libm-x2.c", |
| 316 | "src/f32-vrnd/gen/vrndne-scalar-libm-x4.c", |
| 317 | "src/f32-vrnd/gen/vrndz-scalar-libm-x1.c", |
| 318 | "src/f32-vrnd/gen/vrndz-scalar-libm-x2.c", |
| 319 | "src/f32-vrnd/gen/vrndz-scalar-libm-x4.c", |
| 320 | "src/f32-vrnd/gen/vrndu-scalar-libm-x1.c", |
| 321 | "src/f32-vrnd/gen/vrndu-scalar-libm-x2.c", |
| 322 | "src/f32-vrnd/gen/vrndu-scalar-libm-x4.c", |
| 323 | "src/f32-vrnd/gen/vrndd-scalar-libm-x1.c", |
| 324 | "src/f32-vrnd/gen/vrndd-scalar-libm-x2.c", |
| 325 | "src/f32-vrnd/gen/vrndd-scalar-libm-x4.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 326 | "src/f32-vsqrt/gen/scalar-sqrt-x1.c", |
| 327 | "src/f32-vsqrt/gen/scalar-sqrt-x2.c", |
| 328 | "src/f32-vsqrt/gen/scalar-sqrt-x4.c", |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 329 | "src/f32-vunary/gen/vabs-scalar-x1.c", |
| 330 | "src/f32-vunary/gen/vabs-scalar-x2.c", |
| 331 | "src/f32-vunary/gen/vabs-scalar-x4.c", |
| 332 | "src/f32-vunary/gen/vneg-scalar-x1.c", |
| 333 | "src/f32-vunary/gen/vneg-scalar-x2.c", |
| 334 | "src/f32-vunary/gen/vneg-scalar-x4.c", |
| 335 | "src/f32-vunary/gen/vsqr-scalar-x1.c", |
| 336 | "src/f32-vunary/gen/vsqr-scalar-x2.c", |
| 337 | "src/f32-vunary/gen/vsqr-scalar-x4.c", |
Marat Dukhan | 5739f70 | 2019-12-22 19:45:09 -0800 | [diff] [blame] | 338 | "src/math/expminus-scalar-lut2048-p1.c", |
| 339 | "src/math/expminus-scalar-lut64-p2.c", |
| 340 | "src/math/expminus-scalar-p5.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 341 | "src/math/roundne-scalar-addsub.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 342 | "src/math/roundne-scalar-nearbyint.c", |
| 343 | "src/math/roundne-scalar-rint.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 344 | "src/math/roundd-scalar-addsub.c", |
| 345 | "src/math/roundd-scalar-cvt.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 346 | "src/math/roundd-scalar-floor.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 347 | "src/math/roundu-scalar-addsub.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 348 | "src/math/roundu-scalar-ceil.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 349 | "src/math/roundu-scalar-cvt.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 350 | "src/math/roundz-scalar-addsub.c", |
| 351 | "src/math/roundz-scalar-cvt.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 352 | "src/math/roundz-scalar-trunc.c", |
Marat Dukhan | 5739f70 | 2019-12-22 19:45:09 -0800 | [diff] [blame] | 353 | "src/math/sigmoid-scalar-lut2048-p1-div.c", |
| 354 | "src/math/sigmoid-scalar-lut64-p2-div.c", |
| 355 | "src/math/sigmoid-scalar-p5-div.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 356 | "src/q8-avgpool/9p8x-minmax-scalar-c1.c", |
| 357 | "src/q8-avgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 358 | "src/q8-dwconv/up1x9-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 359 | "src/q8-gavgpool/7p7x-minmax-scalar-c1.c", |
| 360 | "src/q8-gavgpool/7x-minmax-scalar-c1.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 361 | "src/q8-gemm/2x2-minmax-scalar.c", |
| 362 | "src/q8-igemm/2x2-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 363 | "src/q8-vadd/minmax-scalar.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 364 | "src/u8-clamp/scalar-x4.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 365 | "src/u8-lut32norm/scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 366 | "src/u8-maxpool/9p8x-minmax-scalar-c1.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 367 | "src/u8-rmax/scalar.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 368 | "src/x32-fill/scalar-float.c", |
| 369 | "src/x32-fill/scalar-int.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 370 | "src/x32-packx/x2-scalar.c", |
| 371 | "src/x32-packx/x3-scalar.c", |
| 372 | "src/x32-packx/x4-scalar.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 373 | "src/x32-pad/scalar-int.c", |
| 374 | "src/x32-pad/scalar-float.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 375 | "src/x32-unpool/scalar.c", |
| 376 | "src/x32-zip/x2-scalar.c", |
| 377 | "src/x32-zip/x3-scalar.c", |
| 378 | "src/x32-zip/x4-scalar.c", |
| 379 | "src/x32-zip/xm-scalar.c", |
| 380 | "src/x8-lut/scalar.c", |
| 381 | "src/x8-zip/x2-scalar.c", |
| 382 | "src/x8-zip/x3-scalar.c", |
| 383 | "src/x8-zip/x4-scalar.c", |
| 384 | "src/x8-zip/xm-scalar.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 385 | "src/requantization/precise-scalar.c", |
| 386 | "src/requantization/fp32-scalar.c", |
| 387 | "src/requantization/q31-scalar.c", |
| 388 | "src/requantization/gemmlowp-scalar.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 389 | ] |
| 390 | |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 391 | WASM_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 392 | "src/f32-avgpool/9p8x-minmax-wasm-c1.c", |
| 393 | "src/f32-avgpool/9x-minmax-wasm-c1.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 394 | "src/f32-clamp/gen/wasm-x1.c", |
| 395 | "src/f32-clamp/gen/wasm-x2.c", |
| 396 | "src/f32-clamp/gen/wasm-x4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 397 | "src/f32-dwconv/gen/up1x4-wasm-acc2.c", |
| 398 | "src/f32-dwconv/gen/up1x4-wasm.c", |
| 399 | "src/f32-dwconv/gen/up1x9-wasm-acc2.c", |
| 400 | "src/f32-dwconv/gen/up1x9-wasm.c", |
| 401 | "src/f32-dwconv/gen/up1x25-wasm-acc2.c", |
| 402 | "src/f32-dwconv/gen/up1x25-wasm.c", |
| 403 | "src/f32-dwconv/gen/up2x4-wasm-acc2.c", |
| 404 | "src/f32-dwconv/gen/up2x4-wasm.c", |
| 405 | "src/f32-dwconv/gen/up2x9-wasm-acc2.c", |
| 406 | "src/f32-dwconv/gen/up2x9-wasm.c", |
| 407 | "src/f32-dwconv/gen/up2x25-wasm-acc2.c", |
| 408 | "src/f32-dwconv/gen/up2x25-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 409 | "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c", |
| 410 | "src/f32-dwconv/gen/up1x4-minmax-wasm.c", |
| 411 | "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c", |
| 412 | "src/f32-dwconv/gen/up1x9-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 413 | "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c", |
| 414 | "src/f32-dwconv/gen/up1x25-minmax-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 415 | "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c", |
| 416 | "src/f32-dwconv/gen/up2x4-minmax-wasm.c", |
| 417 | "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c", |
| 418 | "src/f32-dwconv/gen/up2x9-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 419 | "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c", |
| 420 | "src/f32-dwconv/gen/up2x25-minmax-wasm.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 421 | "src/f32-gavgpool/7p7x-minmax-wasm-c1.c", |
| 422 | "src/f32-gavgpool/7x-minmax-wasm-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 423 | "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c", |
| 424 | "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c", |
| 425 | "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 426 | "src/f32-gemm/gen/1x4-wasm.c", |
| 427 | "src/f32-gemm/gen/2x4-wasm.c", |
| 428 | "src/f32-gemm/gen/4x2-wasm.c", |
| 429 | "src/f32-gemm/gen/4x4-wasm.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 430 | "src/f32-gemm/gen/1x4-relu-wasm.c", |
| 431 | "src/f32-gemm/gen/2x4-relu-wasm.c", |
| 432 | "src/f32-gemm/gen/4x2-relu-wasm.c", |
| 433 | "src/f32-gemm/gen/4x4-relu-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 434 | "src/f32-gemm/gen/1x4-minmax-wasm.c", |
| 435 | "src/f32-gemm/gen/2x4-minmax-wasm.c", |
| 436 | "src/f32-gemm/gen/4x2-minmax-wasm.c", |
| 437 | "src/f32-gemm/gen/4x4-minmax-wasm.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 438 | "src/f32-hswish/gen/wasm-x1.c", |
| 439 | "src/f32-hswish/gen/wasm-x2.c", |
| 440 | "src/f32-hswish/gen/wasm-x4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 441 | "src/f32-igemm/gen/1x4-wasm.c", |
| 442 | "src/f32-igemm/gen/2x4-wasm.c", |
| 443 | "src/f32-igemm/gen/4x2-wasm.c", |
| 444 | "src/f32-igemm/gen/4x4-wasm.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 445 | "src/f32-igemm/gen/1x4-relu-wasm.c", |
| 446 | "src/f32-igemm/gen/2x4-relu-wasm.c", |
| 447 | "src/f32-igemm/gen/4x2-relu-wasm.c", |
| 448 | "src/f32-igemm/gen/4x4-relu-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 449 | "src/f32-igemm/gen/1x4-minmax-wasm.c", |
| 450 | "src/f32-igemm/gen/2x4-minmax-wasm.c", |
| 451 | "src/f32-igemm/gen/4x2-minmax-wasm.c", |
| 452 | "src/f32-igemm/gen/4x4-minmax-wasm.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 453 | "src/f32-maxpool/9p8x-minmax-wasm-c1.c", |
| 454 | "src/f32-pavgpool/9p8x-minmax-wasm-c1.c", |
| 455 | "src/f32-pavgpool/9x-minmax-wasm-c1.c", |
Marat Dukhan | 7c1f808 | 2020-06-25 13:26:20 -0700 | [diff] [blame] | 456 | "src/f32-prelu/gen/wasm-2x1.c", |
| 457 | "src/f32-prelu/gen/wasm-2x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 458 | "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c", |
| 459 | "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c", |
| 460 | "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c", |
| 461 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c", |
| 462 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c", |
| 463 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c", |
| 464 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c", |
| 465 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c", |
| 466 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c", |
| 467 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c", |
| 468 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c", |
| 469 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 470 | "src/f32-vbinary/gen/vmax-wasm-x1.c", |
| 471 | "src/f32-vbinary/gen/vmax-wasm-x2.c", |
| 472 | "src/f32-vbinary/gen/vmax-wasm-x4.c", |
| 473 | "src/f32-vbinary/gen/vmaxc-wasm-x1.c", |
| 474 | "src/f32-vbinary/gen/vmaxc-wasm-x2.c", |
| 475 | "src/f32-vbinary/gen/vmaxc-wasm-x4.c", |
| 476 | "src/f32-vbinary/gen/vmin-wasm-x1.c", |
| 477 | "src/f32-vbinary/gen/vmin-wasm-x2.c", |
| 478 | "src/f32-vbinary/gen/vmin-wasm-x4.c", |
| 479 | "src/f32-vbinary/gen/vminc-wasm-x1.c", |
| 480 | "src/f32-vbinary/gen/vminc-wasm-x2.c", |
| 481 | "src/f32-vbinary/gen/vminc-wasm-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 482 | "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c", |
| 483 | "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c", |
| 484 | "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c", |
| 485 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c", |
| 486 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c", |
| 487 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c", |
| 488 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c", |
| 489 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c", |
| 490 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c", |
| 491 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c", |
| 492 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c", |
| 493 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c", |
| 494 | "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c", |
| 495 | "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c", |
| 496 | "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c", |
| 497 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c", |
| 498 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c", |
| 499 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 500 | "src/f32-vlrelu/gen/wasm-x1.c", |
| 501 | "src/f32-vlrelu/gen/wasm-x2.c", |
| 502 | "src/f32-vlrelu/gen/wasm-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 503 | "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c", |
| 504 | "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c", |
| 505 | "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c", |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 506 | ] |
| 507 | |
Marat Dukhan | 290055c | 2020-06-09 12:24:29 -0700 | [diff] [blame] | 508 | WASMSIMD_UKERNELS = [ |
Marat Dukhan | 3fa52c8 | 2020-07-08 12:54:33 -0700 | [diff] [blame] | 509 | "src/f32-clamp/gen/wasmsimd-arm-x4.c", |
| 510 | "src/f32-clamp/gen/wasmsimd-arm-x8.c", |
| 511 | "src/f32-clamp/gen/wasmsimd-x86-x4.c", |
| 512 | "src/f32-clamp/gen/wasmsimd-x86-x8.c", |
Marat Dukhan | b8e7b07 | 2020-06-16 12:34:23 -0700 | [diff] [blame] | 513 | "src/f32-dwconv/gen/up4x25-wasmsimd.c", |
| 514 | "src/f32-dwconv/gen/up4x4-wasmsimd.c", |
| 515 | "src/f32-dwconv/gen/up4x9-wasmsimd.c", |
| 516 | "src/f32-dwconv/gen/up8x25-wasmsimd.c", |
| 517 | "src/f32-dwconv/gen/up8x4-wasmsimd.c", |
| 518 | "src/f32-dwconv/gen/up8x9-wasmsimd.c", |
Marat Dukhan | ac014d7 | 2020-06-16 08:36:47 -0700 | [diff] [blame] | 519 | "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-arm.c", |
| 520 | "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-arm.c", |
| 521 | "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-arm.c", |
| 522 | "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-arm.c", |
| 523 | "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-arm.c", |
| 524 | "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-arm.c", |
| 525 | "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-arm.c", |
| 526 | "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-arm.c", |
| 527 | "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-arm.c", |
| 528 | "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-arm.c", |
| 529 | "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-arm.c", |
| 530 | "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-arm.c", |
| 531 | "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-acc2-x86.c", |
| 532 | "src/f32-dwconv/gen/up4x25-minmax-wasmsimd-x86.c", |
| 533 | "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-acc2-x86.c", |
| 534 | "src/f32-dwconv/gen/up4x4-minmax-wasmsimd-x86.c", |
| 535 | "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-acc2-x86.c", |
| 536 | "src/f32-dwconv/gen/up4x9-minmax-wasmsimd-x86.c", |
| 537 | "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-acc2-x86.c", |
| 538 | "src/f32-dwconv/gen/up8x25-minmax-wasmsimd-x86.c", |
| 539 | "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-acc2-x86.c", |
| 540 | "src/f32-dwconv/gen/up8x4-minmax-wasmsimd-x86.c", |
| 541 | "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-acc2-x86.c", |
| 542 | "src/f32-dwconv/gen/up8x9-minmax-wasmsimd-x86.c", |
Marat Dukhan | 802808c | 2020-06-16 11:01:17 -0700 | [diff] [blame] | 543 | "src/f32-gemm/gen/1x8-wasmsimd-splat.c", |
| 544 | "src/f32-gemm/gen/4x8-wasmsimd-splat.c", |
| 545 | "src/f32-gemm/gen/5x8-wasmsimd-splat.c", |
Marat Dukhan | e39e646 | 2020-07-09 01:33:36 -0700 | [diff] [blame] | 546 | "src/f32-gemm/gen/4x2c4-wasmsimd.c", |
Marat Dukhan | 802808c | 2020-06-16 11:01:17 -0700 | [diff] [blame] | 547 | "src/f32-gemm/gen/1x8-relu-wasmsimd-splat-arm.c", |
| 548 | "src/f32-gemm/gen/5x8-relu-wasmsimd-splat-arm.c", |
| 549 | "src/f32-gemm/gen/1x8-relu-wasmsimd-splat-x86.c", |
| 550 | "src/f32-gemm/gen/4x8-relu-wasmsimd-splat-x86.c", |
Marat Dukhan | e39e646 | 2020-07-09 01:33:36 -0700 | [diff] [blame] | 551 | "src/f32-gemm/gen/4x2c4-relu-wasmsimd-arm.c", |
| 552 | "src/f32-gemm/gen/4x2c4-relu-wasmsimd-x86.c", |
Marat Dukhan | 1bbf96b | 2020-06-15 23:01:20 -0700 | [diff] [blame] | 553 | "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c", |
| 554 | "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-arm.c", |
| 555 | "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-arm.c", |
| 556 | "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c", |
| 557 | "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-arm.c", |
| 558 | "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-arm.c", |
| 559 | "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c", |
| 560 | "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-arm.c", |
| 561 | "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-arm.c", |
| 562 | "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c", |
| 563 | "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-arm.c", |
| 564 | "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-arm.c", |
| 565 | "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c", |
| 566 | "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-arm.c", |
| 567 | "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-arm.c", |
| 568 | "src/f32-gemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c", |
| 569 | "src/f32-gemm/gen/1x8-minmax-wasmsimd-splat-x86.c", |
| 570 | "src/f32-gemm/gen/1x8s4-minmax-wasmsimd-x86.c", |
| 571 | "src/f32-gemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c", |
| 572 | "src/f32-gemm/gen/3x8-minmax-wasmsimd-splat-x86.c", |
| 573 | "src/f32-gemm/gen/3x8s4-minmax-wasmsimd-x86.c", |
| 574 | "src/f32-gemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c", |
| 575 | "src/f32-gemm/gen/4x8-minmax-wasmsimd-splat-x86.c", |
| 576 | "src/f32-gemm/gen/4x8s4-minmax-wasmsimd-x86.c", |
| 577 | "src/f32-gemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c", |
| 578 | "src/f32-gemm/gen/5x8-minmax-wasmsimd-splat-x86.c", |
| 579 | "src/f32-gemm/gen/5x8s4-minmax-wasmsimd-x86.c", |
| 580 | "src/f32-gemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c", |
| 581 | "src/f32-gemm/gen/6x8-minmax-wasmsimd-splat-x86.c", |
| 582 | "src/f32-gemm/gen/6x8s4-minmax-wasmsimd-x86.c", |
Marat Dukhan | e39e646 | 2020-07-09 01:33:36 -0700 | [diff] [blame] | 583 | "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-arm.c", |
| 584 | "src/f32-gemm/gen/4x2c4-minmax-wasmsimd-x86.c", |
Marat Dukhan | 1bbf96b | 2020-06-15 23:01:20 -0700 | [diff] [blame] | 585 | "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-arm.c", |
| 586 | "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-arm.c", |
| 587 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-arm.c", |
| 588 | "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-arm.c", |
| 589 | "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-arm.c", |
| 590 | "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-arm.c", |
| 591 | "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-arm.c", |
| 592 | "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-arm.c", |
| 593 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-arm.c", |
| 594 | "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-arm.c", |
| 595 | "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-arm.c", |
| 596 | "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-arm.c", |
| 597 | "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-arm.c", |
| 598 | "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-arm.c", |
| 599 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-arm.c", |
| 600 | "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-loadsplat-x86.c", |
| 601 | "src/f32-gemm/gen-inc/1x8inc-minmax-wasmsimd-splat-x86.c", |
| 602 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-wasmsimd-x86.c", |
| 603 | "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-loadsplat-x86.c", |
| 604 | "src/f32-gemm/gen-inc/3x8inc-minmax-wasmsimd-splat-x86.c", |
| 605 | "src/f32-gemm/gen-inc/3x8s4inc-minmax-wasmsimd-x86.c", |
| 606 | "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-loadsplat-x86.c", |
| 607 | "src/f32-gemm/gen-inc/4x8inc-minmax-wasmsimd-splat-x86.c", |
| 608 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-wasmsimd-x86.c", |
| 609 | "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-loadsplat-x86.c", |
| 610 | "src/f32-gemm/gen-inc/5x8inc-minmax-wasmsimd-splat-x86.c", |
| 611 | "src/f32-gemm/gen-inc/5x8s4inc-minmax-wasmsimd-x86.c", |
| 612 | "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-loadsplat-x86.c", |
| 613 | "src/f32-gemm/gen-inc/6x8inc-minmax-wasmsimd-splat-x86.c", |
| 614 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-wasmsimd-x86.c", |
Marat Dukhan | 00d1d6e | 2020-07-09 01:37:27 -0700 | [diff] [blame] | 615 | "src/f32-ibilinear/gen/wasmsimd-c4.c", |
| 616 | "src/f32-ibilinear/gen/wasmsimd-c8.c", |
Marat Dukhan | 802808c | 2020-06-16 11:01:17 -0700 | [diff] [blame] | 617 | "src/f32-igemm/gen/1x8-wasmsimd-splat.c", |
| 618 | "src/f32-igemm/gen/4x8-wasmsimd-splat.c", |
| 619 | "src/f32-igemm/gen/5x8-wasmsimd-splat.c", |
Marat Dukhan | e39e646 | 2020-07-09 01:33:36 -0700 | [diff] [blame] | 620 | "src/f32-igemm/gen/4x2c4-wasmsimd.c", |
Marat Dukhan | 802808c | 2020-06-16 11:01:17 -0700 | [diff] [blame] | 621 | "src/f32-igemm/gen/1x8-relu-wasmsimd-splat-arm.c", |
| 622 | "src/f32-igemm/gen/5x8-relu-wasmsimd-splat-arm.c", |
| 623 | "src/f32-igemm/gen/1x8-relu-wasmsimd-splat-x86.c", |
| 624 | "src/f32-igemm/gen/4x8-relu-wasmsimd-splat-x86.c", |
Marat Dukhan | e39e646 | 2020-07-09 01:33:36 -0700 | [diff] [blame] | 625 | "src/f32-igemm/gen/4x2c4-relu-wasmsimd-arm.c", |
| 626 | "src/f32-igemm/gen/4x2c4-relu-wasmsimd-x86.c", |
Marat Dukhan | 1bbf96b | 2020-06-15 23:01:20 -0700 | [diff] [blame] | 627 | "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-arm.c", |
| 628 | "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-arm.c", |
| 629 | "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-arm.c", |
| 630 | "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-arm.c", |
| 631 | "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-arm.c", |
| 632 | "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-arm.c", |
| 633 | "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-arm.c", |
| 634 | "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-arm.c", |
| 635 | "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-arm.c", |
| 636 | "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-arm.c", |
| 637 | "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-arm.c", |
| 638 | "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-arm.c", |
| 639 | "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-arm.c", |
| 640 | "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-arm.c", |
| 641 | "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-arm.c", |
| 642 | "src/f32-igemm/gen/1x8-minmax-wasmsimd-loadsplat-x86.c", |
| 643 | "src/f32-igemm/gen/1x8-minmax-wasmsimd-splat-x86.c", |
| 644 | "src/f32-igemm/gen/1x8s4-minmax-wasmsimd-x86.c", |
| 645 | "src/f32-igemm/gen/3x8-minmax-wasmsimd-loadsplat-x86.c", |
| 646 | "src/f32-igemm/gen/3x8-minmax-wasmsimd-splat-x86.c", |
| 647 | "src/f32-igemm/gen/3x8s4-minmax-wasmsimd-x86.c", |
| 648 | "src/f32-igemm/gen/4x8-minmax-wasmsimd-loadsplat-x86.c", |
| 649 | "src/f32-igemm/gen/4x8-minmax-wasmsimd-splat-x86.c", |
| 650 | "src/f32-igemm/gen/4x8s4-minmax-wasmsimd-x86.c", |
| 651 | "src/f32-igemm/gen/5x8-minmax-wasmsimd-loadsplat-x86.c", |
| 652 | "src/f32-igemm/gen/5x8-minmax-wasmsimd-splat-x86.c", |
| 653 | "src/f32-igemm/gen/5x8s4-minmax-wasmsimd-x86.c", |
| 654 | "src/f32-igemm/gen/6x8-minmax-wasmsimd-loadsplat-x86.c", |
| 655 | "src/f32-igemm/gen/6x8-minmax-wasmsimd-splat-x86.c", |
| 656 | "src/f32-igemm/gen/6x8s4-minmax-wasmsimd-x86.c", |
Marat Dukhan | e39e646 | 2020-07-09 01:33:36 -0700 | [diff] [blame] | 657 | "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-arm.c", |
| 658 | "src/f32-igemm/gen/4x2c4-minmax-wasmsimd-x86.c", |
Marat Dukhan | 9baec80 | 2020-06-25 21:34:35 -0700 | [diff] [blame] | 659 | "src/f32-hswish/gen/wasmsimd-arm-x4.c", |
| 660 | "src/f32-hswish/gen/wasmsimd-arm-x8.c", |
Marat Dukhan | c303fe6 | 2020-06-26 10:09:25 -0700 | [diff] [blame] | 661 | "src/f32-hswish/gen/wasmsimd-arm-x16.c", |
Marat Dukhan | 9baec80 | 2020-06-25 21:34:35 -0700 | [diff] [blame] | 662 | "src/f32-hswish/gen/wasmsimd-x86-x4.c", |
| 663 | "src/f32-hswish/gen/wasmsimd-x86-x8.c", |
Marat Dukhan | c303fe6 | 2020-06-26 10:09:25 -0700 | [diff] [blame] | 664 | "src/f32-hswish/gen/wasmsimd-x86-x16.c", |
Marat Dukhan | f6e2480 | 2020-07-08 22:20:40 -0700 | [diff] [blame] | 665 | "src/f32-maxpool/9p8x-minmax-wasmsimd-arm-c4.c", |
| 666 | "src/f32-maxpool/9p8x-minmax-wasmsimd-x86-c4.c", |
Marat Dukhan | 195f8eb | 2020-06-25 12:50:57 -0700 | [diff] [blame] | 667 | "src/f32-prelu/gen/wasmsimd-bitselect-2x4.c", |
| 668 | "src/f32-prelu/gen/wasmsimd-bitselect-2x8.c", |
| 669 | "src/f32-prelu/gen/wasmsimd-minmax-2x4.c", |
| 670 | "src/f32-prelu/gen/wasmsimd-minmax-2x8.c", |
Marat Dukhan | 8c41796 | 2020-07-08 12:27:50 -0700 | [diff] [blame] | 671 | "src/f32-rmax/wasmsimd-arm.c", |
| 672 | "src/f32-rmax/wasmsimd-x86.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 673 | "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x4.c", |
| 674 | "src/f32-vbinary/gen/vadd-minmax-wasmsimd-arm-x8.c", |
| 675 | "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x4.c", |
| 676 | "src/f32-vbinary/gen/vadd-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 677 | "src/f32-vbinary/gen/vadd-wasmsimd-x4.c", |
| 678 | "src/f32-vbinary/gen/vadd-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 679 | "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x4.c", |
| 680 | "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-arm-x8.c", |
| 681 | "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x4.c", |
| 682 | "src/f32-vbinary/gen/vaddc-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 683 | "src/f32-vbinary/gen/vaddc-wasmsimd-x4.c", |
| 684 | "src/f32-vbinary/gen/vaddc-wasmsimd-x8.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 685 | "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x4.c", |
| 686 | "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-arm-x8.c", |
| 687 | "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x4.c", |
| 688 | "src/f32-vbinary/gen/vdiv-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 689 | "src/f32-vbinary/gen/vdiv-wasmsimd-x4.c", |
| 690 | "src/f32-vbinary/gen/vdiv-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 691 | "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x4.c", |
| 692 | "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-arm-x8.c", |
| 693 | "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x4.c", |
| 694 | "src/f32-vbinary/gen/vdivc-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 695 | "src/f32-vbinary/gen/vdivc-wasmsimd-x4.c", |
| 696 | "src/f32-vbinary/gen/vdivc-wasmsimd-x8.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 697 | "src/f32-vbinary/gen/vmax-wasmsimd-arm-x4.c", |
| 698 | "src/f32-vbinary/gen/vmax-wasmsimd-arm-x8.c", |
| 699 | "src/f32-vbinary/gen/vmax-wasmsimd-x86-x4.c", |
| 700 | "src/f32-vbinary/gen/vmax-wasmsimd-x86-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 701 | "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x4.c", |
| 702 | "src/f32-vbinary/gen/vmaxc-wasmsimd-arm-x8.c", |
| 703 | "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x4.c", |
| 704 | "src/f32-vbinary/gen/vmaxc-wasmsimd-x86-x8.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 705 | "src/f32-vbinary/gen/vmin-wasmsimd-arm-x4.c", |
| 706 | "src/f32-vbinary/gen/vmin-wasmsimd-arm-x8.c", |
| 707 | "src/f32-vbinary/gen/vmin-wasmsimd-x86-x4.c", |
| 708 | "src/f32-vbinary/gen/vmin-wasmsimd-x86-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 709 | "src/f32-vbinary/gen/vminc-wasmsimd-arm-x4.c", |
| 710 | "src/f32-vbinary/gen/vminc-wasmsimd-arm-x8.c", |
| 711 | "src/f32-vbinary/gen/vminc-wasmsimd-x86-x4.c", |
| 712 | "src/f32-vbinary/gen/vminc-wasmsimd-x86-x8.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 713 | "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x4.c", |
| 714 | "src/f32-vbinary/gen/vmul-minmax-wasmsimd-arm-x8.c", |
| 715 | "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x4.c", |
| 716 | "src/f32-vbinary/gen/vmul-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 717 | "src/f32-vbinary/gen/vmul-wasmsimd-x4.c", |
| 718 | "src/f32-vbinary/gen/vmul-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 719 | "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x4.c", |
| 720 | "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-arm-x8.c", |
| 721 | "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x4.c", |
| 722 | "src/f32-vbinary/gen/vmulc-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 723 | "src/f32-vbinary/gen/vmulc-wasmsimd-x4.c", |
| 724 | "src/f32-vbinary/gen/vmulc-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 725 | "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x4.c", |
| 726 | "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-arm-x8.c", |
| 727 | "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x4.c", |
| 728 | "src/f32-vbinary/gen/vrdivc-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 729 | "src/f32-vbinary/gen/vrdivc-wasmsimd-x4.c", |
| 730 | "src/f32-vbinary/gen/vrdivc-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 731 | "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x4.c", |
| 732 | "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-arm-x8.c", |
| 733 | "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x4.c", |
| 734 | "src/f32-vbinary/gen/vrsubc-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 735 | "src/f32-vbinary/gen/vrsubc-wasmsimd-x4.c", |
| 736 | "src/f32-vbinary/gen/vrsubc-wasmsimd-x8.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 737 | "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x4.c", |
| 738 | "src/f32-vbinary/gen/vsqrdiff-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 739 | "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x4.c", |
| 740 | "src/f32-vbinary/gen/vsqrdiffc-wasmsimd-x8.c", |
Marat Dukhan | 93d1ba1 | 2020-06-26 12:33:35 -0700 | [diff] [blame] | 741 | "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x4.c", |
| 742 | "src/f32-vbinary/gen/vsub-minmax-wasmsimd-arm-x8.c", |
| 743 | "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x4.c", |
| 744 | "src/f32-vbinary/gen/vsub-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 745 | "src/f32-vbinary/gen/vsub-wasmsimd-x4.c", |
| 746 | "src/f32-vbinary/gen/vsub-wasmsimd-x8.c", |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 747 | "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x4.c", |
| 748 | "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-arm-x8.c", |
| 749 | "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x4.c", |
| 750 | "src/f32-vbinary/gen/vsubc-minmax-wasmsimd-x86-x8.c", |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 751 | "src/f32-vbinary/gen/vsubc-wasmsimd-x4.c", |
| 752 | "src/f32-vbinary/gen/vsubc-wasmsimd-x8.c", |
Marat Dukhan | 72b399a | 2020-06-28 22:41:38 -0700 | [diff] [blame] | 753 | "src/f32-vrnd/gen/vrndne-wasmsimd-x4.c", |
| 754 | "src/f32-vrnd/gen/vrndne-wasmsimd-x8.c", |
| 755 | "src/f32-vrnd/gen/vrndz-wasmsimd-x4.c", |
| 756 | "src/f32-vrnd/gen/vrndz-wasmsimd-x8.c", |
| 757 | "src/f32-vrnd/gen/vrndu-wasmsimd-x4.c", |
| 758 | "src/f32-vrnd/gen/vrndu-wasmsimd-x8.c", |
| 759 | "src/f32-vrnd/gen/vrndd-wasmsimd-x4.c", |
| 760 | "src/f32-vrnd/gen/vrndd-wasmsimd-x8.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 761 | "src/f32-vsqrt/gen/wasmsimd-sqrt-x4.c", |
| 762 | "src/f32-vsqrt/gen/wasmsimd-sqrt-x8.c", |
Marat Dukhan | 37c8351 | 2020-06-29 13:25:53 -0700 | [diff] [blame] | 763 | "src/f32-vunary/gen/vabs-wasmsimd-x4.c", |
| 764 | "src/f32-vunary/gen/vabs-wasmsimd-x8.c", |
| 765 | "src/f32-vunary/gen/vneg-wasmsimd-x4.c", |
| 766 | "src/f32-vunary/gen/vneg-wasmsimd-x8.c", |
| 767 | "src/f32-vunary/gen/vsqr-wasmsimd-x4.c", |
| 768 | "src/f32-vunary/gen/vsqr-wasmsimd-x8.c", |
Marat Dukhan | d3f3d87 | 2020-06-24 13:08:25 -0700 | [diff] [blame] | 769 | "src/math/roundne-wasmsimd-addsub.c", |
| 770 | "src/math/roundd-wasmsimd-addsub.c", |
| 771 | "src/math/roundu-wasmsimd-addsub.c", |
| 772 | "src/math/roundz-wasmsimd-addsub.c", |
Marat Dukhan | 290055c | 2020-06-09 12:24:29 -0700 | [diff] [blame] | 773 | "src/requantization/fp32-wasmsimd.c", |
| 774 | ] |
| 775 | |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 776 | PSIMD_FASTMATH_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 777 | "src/f32-argmaxpool/4x-psimd-c4.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 778 | "src/f32-argmaxpool/9p8x-psimd-c4.c", |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 779 | "src/f32-argmaxpool/9x-psimd-c4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 780 | "src/f32-avgpool/9p8x-minmax-psimd-c4.c", |
| 781 | "src/f32-avgpool/9x-minmax-psimd-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 782 | "src/f32-clamp/gen/psimd-x4.c", |
| 783 | "src/f32-clamp/gen/psimd-x8.c", |
Erich Elsen | 0a1970e | 2020-06-10 09:24:59 -0700 | [diff] [blame] | 784 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-psimd-2x2.c", |
Erich Elsen | e6214af | 2020-06-10 22:17:22 -0700 | [diff] [blame] | 785 | "src/f32-dwconv-chw/3x3p1-psimd.c", |
Erich Elsen | fd7a6e3 | 2020-06-11 12:04:44 -0700 | [diff] [blame] | 786 | "src/f32-dwconv-chw/3x3s2p1-psimd.c", |
Erich Elsen | 2892889 | 2020-06-12 08:08:19 -0700 | [diff] [blame] | 787 | "src/f32-dwconv-chw/5x5p2-psimd.c", |
Erich Elsen | 7465a89 | 2020-06-13 14:02:04 -0700 | [diff] [blame] | 788 | "src/f32-dwconv-chw/5x5s2p2-psimd.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 789 | "src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c", |
| 790 | "src/f32-dwconv/gen/up4x25-minmax-psimd.c", |
| 791 | "src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c", |
| 792 | "src/f32-dwconv/gen/up4x4-minmax-psimd.c", |
| 793 | "src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c", |
| 794 | "src/f32-dwconv/gen/up4x9-minmax-psimd.c", |
| 795 | "src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c", |
| 796 | "src/f32-dwconv/gen/up8x25-minmax-psimd.c", |
| 797 | "src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c", |
| 798 | "src/f32-dwconv/gen/up8x4-minmax-psimd.c", |
| 799 | "src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c", |
| 800 | "src/f32-dwconv/gen/up8x9-minmax-psimd.c", |
Erich Elsen | 6f278b5 | 2020-06-10 16:13:11 -0700 | [diff] [blame] | 801 | "src/f32-gavgpool-cw/psimd-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 802 | "src/f32-gavgpool/7p7x-minmax-psimd-c4.c", |
| 803 | "src/f32-gavgpool/7x-minmax-psimd-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 804 | "src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c", |
| 805 | "src/f32-gemm/gen/1x8-minmax-psimd-splat.c", |
| 806 | "src/f32-gemm/gen/1x8s4-minmax-psimd.c", |
| 807 | "src/f32-gemm/gen/4x2c4-minmax-psimd.c", |
| 808 | "src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c", |
| 809 | "src/f32-gemm/gen/4x8-minmax-psimd-splat.c", |
| 810 | "src/f32-gemm/gen/4x8s4-minmax-psimd.c", |
| 811 | "src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c", |
| 812 | "src/f32-gemm/gen/6x8-minmax-psimd-splat.c", |
| 813 | "src/f32-gemm/gen/6x8s4-minmax-psimd.c", |
| 814 | "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c", |
| 815 | "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c", |
| 816 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c", |
| 817 | "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c", |
| 818 | "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c", |
| 819 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c", |
| 820 | "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c", |
| 821 | "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c", |
| 822 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 823 | "src/f32-hswish/gen/psimd-x4.c", |
| 824 | "src/f32-hswish/gen/psimd-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 825 | "src/f32-ibilinear/gen/psimd-c4.c", |
| 826 | "src/f32-ibilinear/gen/psimd-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 827 | "src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c", |
| 828 | "src/f32-igemm/gen/1x8-minmax-psimd-splat.c", |
| 829 | "src/f32-igemm/gen/1x8s4-minmax-psimd.c", |
| 830 | "src/f32-igemm/gen/4x2c4-minmax-psimd.c", |
| 831 | "src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c", |
| 832 | "src/f32-igemm/gen/4x8-minmax-psimd-splat.c", |
| 833 | "src/f32-igemm/gen/4x8s4-minmax-psimd.c", |
| 834 | "src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c", |
| 835 | "src/f32-igemm/gen/6x8-minmax-psimd-splat.c", |
| 836 | "src/f32-igemm/gen/6x8s4-minmax-psimd.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 837 | "src/f32-maxpool/9p8x-minmax-psimd-c4.c", |
Erich Elsen | 6e80fdc | 2020-06-09 15:35:37 -0700 | [diff] [blame] | 838 | "src/f32-spmm/gen/4x1-minmax-psimd.c", |
| 839 | "src/f32-spmm/gen/8x1-minmax-psimd.c", |
| 840 | "src/f32-spmm/gen/16x1-minmax-psimd.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 841 | "src/f32-pavgpool/9p8x-minmax-psimd-c4.c", |
| 842 | "src/f32-pavgpool/9x-minmax-psimd-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 843 | "src/f32-ppmm/gen/4x8-minmax-psimd.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 844 | "src/f32-prelu/gen/psimd-2x4.c", |
| 845 | "src/f32-prelu/gen/psimd-2x8.c", |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 846 | "src/f32-rmax/psimd.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 847 | "src/f32-vbinary/gen/vadd-minmax-psimd-x4.c", |
| 848 | "src/f32-vbinary/gen/vadd-minmax-psimd-x8.c", |
| 849 | "src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c", |
| 850 | "src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c", |
| 851 | "src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c", |
| 852 | "src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c", |
| 853 | "src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c", |
| 854 | "src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 855 | "src/f32-vbinary/gen/vmax-psimd-x4.c", |
| 856 | "src/f32-vbinary/gen/vmax-psimd-x8.c", |
| 857 | "src/f32-vbinary/gen/vmaxc-psimd-x4.c", |
| 858 | "src/f32-vbinary/gen/vmaxc-psimd-x8.c", |
| 859 | "src/f32-vbinary/gen/vmin-psimd-x4.c", |
| 860 | "src/f32-vbinary/gen/vmin-psimd-x8.c", |
| 861 | "src/f32-vbinary/gen/vminc-psimd-x4.c", |
| 862 | "src/f32-vbinary/gen/vminc-psimd-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 863 | "src/f32-vbinary/gen/vmul-minmax-psimd-x4.c", |
| 864 | "src/f32-vbinary/gen/vmul-minmax-psimd-x8.c", |
| 865 | "src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c", |
| 866 | "src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c", |
| 867 | "src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c", |
| 868 | "src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c", |
| 869 | "src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c", |
| 870 | "src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c", |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 871 | "src/f32-vbinary/gen/vsqrdiff-psimd-x4.c", |
| 872 | "src/f32-vbinary/gen/vsqrdiff-psimd-x8.c", |
| 873 | "src/f32-vbinary/gen/vsqrdiffc-psimd-x4.c", |
| 874 | "src/f32-vbinary/gen/vsqrdiffc-psimd-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 875 | "src/f32-vbinary/gen/vsub-minmax-psimd-x4.c", |
| 876 | "src/f32-vbinary/gen/vsub-minmax-psimd-x8.c", |
| 877 | "src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c", |
| 878 | "src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 879 | "src/f32-vlrelu/gen/psimd-x4.c", |
| 880 | "src/f32-vlrelu/gen/psimd-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 881 | "src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c", |
| 882 | "src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c", |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 883 | "src/f32-vunary/gen/vabs-psimd-x4.c", |
| 884 | "src/f32-vunary/gen/vabs-psimd-x8.c", |
| 885 | "src/f32-vunary/gen/vneg-psimd-x4.c", |
| 886 | "src/f32-vunary/gen/vneg-psimd-x8.c", |
| 887 | "src/f32-vunary/gen/vsqr-psimd-x4.c", |
| 888 | "src/f32-vunary/gen/vsqr-psimd-x8.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 889 | "src/x32-fill/psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 890 | "src/x32-packx/x4-psimd.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 891 | "src/x32-pad/psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 892 | "src/x32-unpool/psimd.c", |
| 893 | "src/x32-zip/x2-psimd.c", |
| 894 | "src/x32-zip/x3-psimd.c", |
| 895 | "src/x32-zip/x4-psimd.c", |
| 896 | "src/x32-zip/xm-psimd.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 897 | "src/requantization/precise-psimd.c", |
| 898 | "src/requantization/fp32-psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 899 | ] |
| 900 | |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 901 | PSIMD_ACCMATH_UKERNELS = [ |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 902 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c", |
| 903 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c", |
| 904 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c", |
| 905 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c", |
| 906 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c", |
| 907 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c", |
| 908 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c", |
| 909 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c", |
| 910 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c", |
| 911 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c", |
| 912 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c", |
| 913 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 914 | "src/f32-sigmoid/gen/psimd-p5-div-x4.c", |
| 915 | "src/f32-sigmoid/gen/psimd-p5-div-x8.c", |
| 916 | "src/f32-sigmoid/gen/psimd-p5-div-x12.c", |
| 917 | "src/f32-sigmoid/gen/psimd-p5-div-x16.c", |
| 918 | "src/f32-sigmoid/gen/psimd-p5-div-x20.c", |
| 919 | "src/f32-sigmoid/gen/psimd-p5-div-x24.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 920 | "src/f32-vrnd/gen/vrndne-psimd-x4.c", |
| 921 | "src/f32-vrnd/gen/vrndne-psimd-x8.c", |
| 922 | "src/f32-vrnd/gen/vrndz-psimd-x4.c", |
| 923 | "src/f32-vrnd/gen/vrndz-psimd-x8.c", |
| 924 | "src/f32-vrnd/gen/vrndu-psimd-x4.c", |
| 925 | "src/f32-vrnd/gen/vrndu-psimd-x8.c", |
| 926 | "src/f32-vrnd/gen/vrndd-psimd-x4.c", |
| 927 | "src/f32-vrnd/gen/vrndd-psimd-x8.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 928 | "src/math/roundne-psimd-addsub.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 929 | "src/math/roundd-psimd-addsub.c", |
| 930 | "src/math/roundu-psimd-addsub.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 931 | "src/math/roundz-psimd-addsub.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 932 | "src/math/sigmoid-psimd-p5-div.c", |
| 933 | ] |
| 934 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 935 | # ISA-specific micro-kernels |
| 936 | NEON_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 937 | "src/f32-avgpool/9p8x-minmax-neon-c4.c", |
| 938 | "src/f32-avgpool/9x-minmax-neon-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 939 | "src/f32-clamp/gen/neon-x4.c", |
| 940 | "src/f32-clamp/gen/neon-x8.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 941 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c", |
| 942 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 943 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c", |
| 944 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 945 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c", |
| 946 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 947 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c", |
| 948 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 949 | "src/f32-dwconv/gen/up4x4-minmax-neon.c", |
| 950 | "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c", |
| 951 | "src/f32-dwconv/gen/up8x4-minmax-neon.c", |
| 952 | "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 953 | "src/f32-dwconv/gen/up4x9-minmax-neon.c", |
| 954 | "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c", |
| 955 | "src/f32-dwconv/gen/up8x9-minmax-neon.c", |
| 956 | "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 957 | "src/f32-dwconv/gen/up4x25-minmax-neon.c", |
| 958 | "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c", |
| 959 | "src/f32-dwconv/gen/up8x25-minmax-neon.c", |
| 960 | "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 961 | "src/f32-gavgpool-cw/neon-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 962 | "src/f32-gavgpool/7p7x-minmax-neon-c4.c", |
| 963 | "src/f32-gavgpool/7x-minmax-neon-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 964 | "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c", |
| 965 | "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c", |
| 966 | "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c", |
| 967 | "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c", |
| 968 | "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c", |
| 969 | "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c", |
| 970 | "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c", |
| 971 | "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c", |
| 972 | "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c", |
| 973 | "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c", |
| 974 | "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c", |
| 975 | "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c", |
| 976 | "src/f32-gemm/gen/1x8s4-minmax-neon.c", |
| 977 | "src/f32-gemm/gen/4x8s4-minmax-neon.c", |
| 978 | "src/f32-gemm/gen/6x8s4-minmax-neon.c", |
| 979 | "src/f32-gemm/gen/8x8s4-minmax-neon.c", |
| 980 | "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c", |
| 981 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c", |
| 982 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c", |
| 983 | "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c", |
| 984 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c", |
| 985 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c", |
| 986 | "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c", |
| 987 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c", |
| 988 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c", |
| 989 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c", |
| 990 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c", |
| 991 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c", |
| 992 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c", |
| 993 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c", |
| 994 | "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 995 | "src/f32-hswish/gen/neon-x4.c", |
| 996 | "src/f32-hswish/gen/neon-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 997 | "src/f32-ibilinear/gen/neon-c4.c", |
| 998 | "src/f32-ibilinear/gen/neon-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 999 | "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c", |
| 1000 | "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c", |
| 1001 | "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c", |
| 1002 | "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c", |
| 1003 | "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c", |
| 1004 | "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c", |
| 1005 | "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c", |
| 1006 | "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c", |
| 1007 | "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c", |
| 1008 | "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c", |
| 1009 | "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c", |
| 1010 | "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c", |
| 1011 | "src/f32-igemm/gen/1x8s4-minmax-neon.c", |
| 1012 | "src/f32-igemm/gen/4x8s4-minmax-neon.c", |
| 1013 | "src/f32-igemm/gen/6x8s4-minmax-neon.c", |
| 1014 | "src/f32-igemm/gen/8x8s4-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1015 | "src/f32-maxpool/9p8x-minmax-neon-c4.c", |
| 1016 | "src/f32-pavgpool/9p8x-minmax-neon-c4.c", |
| 1017 | "src/f32-pavgpool/9x-minmax-neon-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1018 | "src/f32-ppmm/gen/4x8-minmax-neon.c", |
| 1019 | "src/f32-ppmm/gen/8x8-minmax-neon.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1020 | "src/f32-prelu/gen/neon-2x4.c", |
| 1021 | "src/f32-prelu/gen/neon-2x8.c", |
Marat Dukhan | 8137e4c | 2020-01-25 12:56:58 -0800 | [diff] [blame] | 1022 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c", |
| 1023 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c", |
| 1024 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c", |
| 1025 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c", |
| 1026 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c", |
| 1027 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c", |
| 1028 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c", |
| 1029 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c", |
| 1030 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c", |
| 1031 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c", |
| 1032 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c", |
| 1033 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c", |
| 1034 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c", |
| 1035 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c", |
| 1036 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c", |
| 1037 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c", |
| 1038 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c", |
| 1039 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c", |
| 1040 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c", |
| 1041 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c", |
| 1042 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c", |
| 1043 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c", |
| 1044 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c", |
| 1045 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1046 | "src/f32-rmax/neon.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1047 | "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 1048 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c", |
| 1049 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c", |
| 1050 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c", |
| 1051 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c", |
| 1052 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c", |
| 1053 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c", |
| 1054 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c", |
| 1055 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c", |
| 1056 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c", |
| 1057 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c", |
| 1058 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c", |
| 1059 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c", |
| 1060 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c", |
| 1061 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c", |
| 1062 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c", |
| 1063 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c", |
| 1064 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c", |
| 1065 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1066 | "src/f32-vbinary/gen/vadd-minmax-neon-x4.c", |
| 1067 | "src/f32-vbinary/gen/vadd-minmax-neon-x8.c", |
| 1068 | "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c", |
| 1069 | "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 1070 | "src/f32-vbinary/gen/vmax-neon-x4.c", |
| 1071 | "src/f32-vbinary/gen/vmax-neon-x8.c", |
| 1072 | "src/f32-vbinary/gen/vmaxc-neon-x4.c", |
| 1073 | "src/f32-vbinary/gen/vmaxc-neon-x8.c", |
| 1074 | "src/f32-vbinary/gen/vmin-neon-x4.c", |
| 1075 | "src/f32-vbinary/gen/vmin-neon-x8.c", |
| 1076 | "src/f32-vbinary/gen/vminc-neon-x4.c", |
| 1077 | "src/f32-vbinary/gen/vminc-neon-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1078 | "src/f32-vbinary/gen/vmul-minmax-neon-x4.c", |
| 1079 | "src/f32-vbinary/gen/vmul-minmax-neon-x8.c", |
| 1080 | "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c", |
| 1081 | "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c", |
| 1082 | "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c", |
| 1083 | "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c", |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 1084 | "src/f32-vbinary/gen/vsqrdiff-neon-x4.c", |
| 1085 | "src/f32-vbinary/gen/vsqrdiff-neon-x8.c", |
| 1086 | "src/f32-vbinary/gen/vsqrdiffc-neon-x4.c", |
| 1087 | "src/f32-vbinary/gen/vsqrdiffc-neon-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1088 | "src/f32-vbinary/gen/vsub-minmax-neon-x4.c", |
| 1089 | "src/f32-vbinary/gen/vsub-minmax-neon-x8.c", |
| 1090 | "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c", |
| 1091 | "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 1092 | "src/f32-vlrelu/gen/neon-x4.c", |
| 1093 | "src/f32-vlrelu/gen/neon-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1094 | "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c", |
| 1095 | "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 1096 | "src/f32-vrnd/gen/vrndne-neon-x4.c", |
| 1097 | "src/f32-vrnd/gen/vrndne-neon-x8.c", |
| 1098 | "src/f32-vrnd/gen/vrndz-neon-x4.c", |
| 1099 | "src/f32-vrnd/gen/vrndz-neon-x8.c", |
| 1100 | "src/f32-vrnd/gen/vrndu-neon-x4.c", |
| 1101 | "src/f32-vrnd/gen/vrndu-neon-x8.c", |
| 1102 | "src/f32-vrnd/gen/vrndd-neon-x4.c", |
| 1103 | "src/f32-vrnd/gen/vrndd-neon-x8.c", |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 1104 | "src/f32-vunary/gen/vabs-neon-x4.c", |
| 1105 | "src/f32-vunary/gen/vabs-neon-x8.c", |
| 1106 | "src/f32-vunary/gen/vneg-neon-x4.c", |
| 1107 | "src/f32-vunary/gen/vneg-neon-x8.c", |
| 1108 | "src/f32-vunary/gen/vsqr-neon-x4.c", |
| 1109 | "src/f32-vunary/gen/vsqr-neon-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1110 | "src/q8-avgpool/9p8x-minmax-neon-c8.c", |
| 1111 | "src/q8-avgpool/9x-minmax-neon-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1112 | "src/q8-dwconv/up8x9-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1113 | "src/q8-gavgpool/7p7x-minmax-neon-c8.c", |
| 1114 | "src/q8-gavgpool/7x-minmax-neon-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1115 | "src/q8-gemm/4x8-minmax-neon.c", |
| 1116 | "src/q8-gemm/8x8-minmax-neon.c", |
| 1117 | "src/q8-igemm/4x8-minmax-neon.c", |
| 1118 | "src/q8-igemm/8x8-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1119 | "src/q8-vadd/minmax-neon.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1120 | "src/u8-clamp/neon-x64.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1121 | "src/u8-maxpool/9p8x-minmax-neon-c16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1122 | "src/u8-rmax/neon.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 1123 | "src/x32-fill/neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1124 | "src/x32-packx/x4-neon-st4.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 1125 | "src/x32-pad/neon.c", |
Marat Dukhan | 57dccd8 | 2020-04-14 00:53:10 -0700 | [diff] [blame] | 1126 | "src/x32-unpool/neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1127 | "src/x32-zip/x2-neon.c", |
| 1128 | "src/x32-zip/x3-neon.c", |
| 1129 | "src/x32-zip/x4-neon.c", |
| 1130 | "src/x32-zip/xm-neon.c", |
| 1131 | "src/x8-zip/x2-neon.c", |
| 1132 | "src/x8-zip/x3-neon.c", |
| 1133 | "src/x8-zip/x4-neon.c", |
| 1134 | "src/x8-zip/xm-neon.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 1135 | "src/math/roundne-neon-addsub.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1136 | "src/math/roundd-neon-addsub.c", |
| 1137 | "src/math/roundd-neon-cvt.c", |
| 1138 | "src/math/roundu-neon-addsub.c", |
| 1139 | "src/math/roundu-neon-cvt.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1140 | "src/math/roundz-neon-addsub.c", |
| 1141 | "src/math/roundz-neon-cvt.c", |
Marat Dukhan | 68b3b45 | 2020-01-02 10:11:15 -0800 | [diff] [blame] | 1142 | "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 1143 | "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c", |
| 1144 | "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c", |
| 1145 | "src/math/sigmoid-neon-rr1-p5-nr2recps.c", |
| 1146 | "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c", |
| 1147 | "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c", |
| 1148 | "src/math/sigmoid-neon-rr2-p5-nr2recps.c", |
Marat Dukhan | 8400076 | 2020-06-29 18:38:43 -0700 | [diff] [blame] | 1149 | "src/math/sqrt-neon-nr1rsqrts.c", |
| 1150 | "src/math/sqrt-neon-nr2rsqrts.c", |
| 1151 | "src/math/sqrt-neon-nr3rsqrts.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1152 | "src/requantization/precise-neon.c", |
| 1153 | "src/requantization/fp32-neon.c", |
| 1154 | "src/requantization/q31-neon.c", |
| 1155 | "src/requantization/gemmlowp-neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1156 | ] |
| 1157 | |
| 1158 | NEONFMA_UKERNELS = [ |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 1159 | "src/f32-ibilinear/gen/neonfma-c4.c", |
| 1160 | "src/f32-ibilinear/gen/neonfma-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1161 | "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c", |
| 1162 | "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c", |
| 1163 | "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c", |
| 1164 | "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c", |
| 1165 | "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c", |
| 1166 | "src/f32-igemm/gen/1x8s4-minmax-neonfma.c", |
| 1167 | "src/f32-igemm/gen/4x8s4-minmax-neonfma.c", |
| 1168 | "src/f32-igemm/gen/6x8s4-minmax-neonfma.c", |
| 1169 | "src/f32-igemm/gen/8x8s4-minmax-neonfma.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 1170 | "src/f32-dwconv/gen/up4x4-minmax-neonfma.c", |
| 1171 | "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c", |
| 1172 | "src/f32-dwconv/gen/up8x4-minmax-neonfma.c", |
| 1173 | "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1174 | "src/f32-dwconv/gen/up4x9-minmax-neonfma.c", |
| 1175 | "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c", |
| 1176 | "src/f32-dwconv/gen/up8x9-minmax-neonfma.c", |
| 1177 | "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 1178 | "src/f32-dwconv/gen/up4x25-minmax-neonfma.c", |
| 1179 | "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c", |
| 1180 | "src/f32-dwconv/gen/up8x25-minmax-neonfma.c", |
| 1181 | "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1182 | "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c", |
| 1183 | "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c", |
| 1184 | "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c", |
| 1185 | "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c", |
| 1186 | "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c", |
| 1187 | "src/f32-gemm/gen/1x8s4-minmax-neonfma.c", |
| 1188 | "src/f32-gemm/gen/4x8s4-minmax-neonfma.c", |
| 1189 | "src/f32-gemm/gen/6x8s4-minmax-neonfma.c", |
| 1190 | "src/f32-gemm/gen/8x8s4-minmax-neonfma.c", |
| 1191 | "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c", |
| 1192 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c", |
| 1193 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c", |
| 1194 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c", |
| 1195 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c", |
| 1196 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c", |
| 1197 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c", |
| 1198 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c", |
| 1199 | "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1200 | "src/f32-hswish/gen/neonfma-x4.c", |
| 1201 | "src/f32-hswish/gen/neonfma-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1202 | "src/f32-ppmm/gen/4x8-minmax-neonfma.c", |
| 1203 | "src/f32-ppmm/gen/8x8-minmax-neonfma.c", |
Marat Dukhan | 8137e4c | 2020-01-25 12:56:58 -0800 | [diff] [blame] | 1204 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c", |
| 1205 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c", |
| 1206 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c", |
| 1207 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c", |
| 1208 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c", |
| 1209 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c", |
| 1210 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c", |
| 1211 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c", |
| 1212 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c", |
| 1213 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c", |
| 1214 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c", |
| 1215 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c", |
| 1216 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c", |
| 1217 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c", |
| 1218 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c", |
| 1219 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c", |
| 1220 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c", |
| 1221 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c", |
| 1222 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c", |
| 1223 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c", |
| 1224 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c", |
| 1225 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c", |
| 1226 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c", |
| 1227 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 1228 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c", |
| 1229 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c", |
| 1230 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c", |
| 1231 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c", |
| 1232 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c", |
| 1233 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c", |
| 1234 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c", |
| 1235 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c", |
| 1236 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c", |
| 1237 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c", |
| 1238 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c", |
| 1239 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c", |
| 1240 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c", |
| 1241 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c", |
| 1242 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c", |
| 1243 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c", |
| 1244 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c", |
| 1245 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c", |
| 1246 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c", |
| 1247 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c", |
| 1248 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c", |
| 1249 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c", |
| 1250 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c", |
| 1251 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c", |
| 1252 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c", |
| 1253 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c", |
| 1254 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c", |
| 1255 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c", |
| 1256 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c", |
| 1257 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c", |
| 1258 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c", |
| 1259 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c", |
| 1260 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c", |
| 1261 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c", |
| 1262 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c", |
| 1263 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c", |
| 1264 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c", |
| 1265 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c", |
| 1266 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c", |
| 1267 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c", |
| 1268 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c", |
| 1269 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c", |
| 1270 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c", |
| 1271 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c", |
| 1272 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c", |
| 1273 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c", |
| 1274 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c", |
| 1275 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c", |
| 1276 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c", |
| 1277 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c", |
| 1278 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c", |
| 1279 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c", |
| 1280 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c", |
| 1281 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1282 | "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c", |
| 1283 | "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 1284 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x4.c", |
| 1285 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x8.c", |
| 1286 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x12.c", |
| 1287 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x16.c", |
| 1288 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x20.c", |
| 1289 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x24.c", |
| 1290 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x28.c", |
| 1291 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x32.c", |
| 1292 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x36.c", |
| 1293 | "src/f32-vsqrt/gen/neonfma-nr1rsqrts1fma1adj-x40.c", |
| 1294 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x4.c", |
| 1295 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x8.c", |
| 1296 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x12.c", |
| 1297 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x16.c", |
| 1298 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x20.c", |
| 1299 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x24.c", |
| 1300 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x28.c", |
| 1301 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x32.c", |
| 1302 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x36.c", |
| 1303 | "src/f32-vsqrt/gen/neonfma-nr2fma1adj-x40.c", |
Marat Dukhan | 797a8fe | 2019-11-14 20:21:57 -0800 | [diff] [blame] | 1304 | "src/math/exp-neonfma-lut64-p2.c", |
| 1305 | "src/math/exp-neonfma-p5.c", |
Marat Dukhan | 189ae80 | 2019-11-26 11:28:44 -0800 | [diff] [blame] | 1306 | "src/math/expminus-neonfma-lut2048-p1.c", |
| 1307 | "src/math/expminus-neonfma-lut64-p2.c", |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 1308 | "src/math/expminus-neonfma-p5.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 1309 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c", |
| 1310 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c", |
| 1311 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c", |
| 1312 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c", |
| 1313 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c", |
| 1314 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c", |
| 1315 | "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c", |
| 1316 | "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c", |
| 1317 | "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c", |
| 1318 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c", |
| 1319 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c", |
| 1320 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c", |
| 1321 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c", |
| 1322 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c", |
| 1323 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c", |
| 1324 | "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c", |
| 1325 | "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c", |
| 1326 | "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c", |
Marat Dukhan | 8400076 | 2020-06-29 18:38:43 -0700 | [diff] [blame] | 1327 | "src/math/sqrt-neonfma-nr1fma.c", |
| 1328 | "src/math/sqrt-neonfma-nr2fma.c", |
| 1329 | "src/math/sqrt-neonfma-nr3fma.c", |
| 1330 | "src/math/sqrt-neonfma-nr2fma1adj.c", |
| 1331 | "src/math/sqrt-neonfma-nr1rsqrts1fma1adj.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1332 | ] |
| 1333 | |
| 1334 | AARCH64_NEONFMA_UKERNELS = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1335 | "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c", |
| 1336 | "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c", |
| 1337 | "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c", |
| 1338 | "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c", |
| 1339 | "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c", |
| 1340 | "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1341 | "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c", |
| 1342 | "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c", |
| 1343 | "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c", |
| 1344 | "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c", |
| 1345 | "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c", |
| 1346 | "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c", |
| 1347 | "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c", |
| 1348 | "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c", |
| 1349 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c", |
| 1350 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c", |
| 1351 | "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c", |
| 1352 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c", |
| 1353 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c", |
| 1354 | "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c", |
| 1355 | "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c", |
| 1356 | "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c", |
| 1357 | "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c", |
| 1358 | "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c", |
| 1359 | "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c", |
| 1360 | "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 1361 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c", |
| 1362 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 1363 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c", |
| 1364 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 1365 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c", |
| 1366 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 1367 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c", |
| 1368 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 1369 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c", |
| 1370 | "src/f32-dwconv-chw/3x3p1-neonfma.c", |
| 1371 | "src/f32-dwconv-chw/5x5p2-neonfma.c", |
| 1372 | "src/f32-dwconv-chw/3x3s2p1-neonfma.c", |
| 1373 | "src/f32-dwconv-chw/5x5s2p2-neonfma.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 1374 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c", |
| 1375 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c", |
| 1376 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c", |
| 1377 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c", |
| 1378 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c", |
| 1379 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c", |
| 1380 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c", |
| 1381 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c", |
| 1382 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c", |
| 1383 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c", |
| 1384 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c", |
| 1385 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c", |
| 1386 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c", |
| 1387 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c", |
| 1388 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c", |
| 1389 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c", |
| 1390 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c", |
| 1391 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 1392 | "src/f32-spmm/gen/12x1-minmax-neonfma.c", |
| 1393 | "src/f32-spmm/gen/12x2-minmax-neonfma.c", |
| 1394 | "src/f32-spmm/gen/12x4-minmax-neonfma.c", |
| 1395 | "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c", |
| 1396 | "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c", |
| 1397 | "src/f32-spmm/gen/16x1-minmax-neonfma.c", |
| 1398 | "src/f32-spmm/gen/16x2-minmax-neonfma.c", |
| 1399 | "src/f32-spmm/gen/16x4-minmax-neonfma.c", |
| 1400 | "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c", |
| 1401 | "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c", |
| 1402 | "src/f32-spmm/gen/4x1-minmax-neonfma.c", |
| 1403 | "src/f32-spmm/gen/4x2-minmax-neonfma.c", |
| 1404 | "src/f32-spmm/gen/4x4-minmax-neonfma.c", |
| 1405 | "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c", |
| 1406 | "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c", |
| 1407 | "src/f32-spmm/gen/8x1-minmax-neonfma.c", |
| 1408 | "src/f32-spmm/gen/8x2-minmax-neonfma.c", |
| 1409 | "src/f32-spmm/gen/8x4-minmax-neonfma.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 1410 | "src/f32-vsqrt/gen/neon-sqrt-x4.c", |
| 1411 | "src/f32-vsqrt/gen/neon-sqrt-x8.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 1412 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c", |
| 1413 | "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c", |
| 1414 | "src/math/sigmoid-neonfma-rr1-p5-div.c", |
| 1415 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c", |
| 1416 | "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c", |
| 1417 | "src/math/sigmoid-neonfma-rr2-p5-div.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1418 | ] |
| 1419 | |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 1420 | NEONV8_UKERNELS = [ |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 1421 | "src/f32-vrnd/gen/vrndne-neonv8-x4.c", |
| 1422 | "src/f32-vrnd/gen/vrndne-neonv8-x8.c", |
| 1423 | "src/f32-vrnd/gen/vrndz-neonv8-x4.c", |
| 1424 | "src/f32-vrnd/gen/vrndz-neonv8-x8.c", |
| 1425 | "src/f32-vrnd/gen/vrndu-neonv8-x4.c", |
| 1426 | "src/f32-vrnd/gen/vrndu-neonv8-x8.c", |
| 1427 | "src/f32-vrnd/gen/vrndd-neonv8-x4.c", |
| 1428 | "src/f32-vrnd/gen/vrndd-neonv8-x8.c", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 1429 | "src/math/roundne-neonv8.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1430 | "src/math/roundd-neonv8.c", |
| 1431 | "src/math/roundu-neonv8.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1432 | "src/math/roundz-neonv8.c", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 1433 | ] |
| 1434 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1435 | AARCH64_NEONFP16ARITH_UKERNELS = [ |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 1436 | "src/f16-clamp/gen/neonfp16arith-x16.c", |
| 1437 | "src/f16-clamp/gen/neonfp16arith-x8.c", |
Frank Barchard | 5a599a6 | 2020-06-04 20:12:44 -0700 | [diff] [blame] | 1438 | "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith-acc2.c", |
| 1439 | "src/f16-dwconv/gen/up16x25-minmax-neonfp16arith.c", |
| 1440 | "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith-acc2.c", |
| 1441 | "src/f16-dwconv/gen/up16x4-minmax-neonfp16arith.c", |
| 1442 | "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith-acc2.c", |
| 1443 | "src/f16-dwconv/gen/up16x9-minmax-neonfp16arith.c", |
| 1444 | "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith-acc2.c", |
| 1445 | "src/f16-dwconv/gen/up8x25-minmax-neonfp16arith.c", |
| 1446 | "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith-acc2.c", |
| 1447 | "src/f16-dwconv/gen/up8x4-minmax-neonfp16arith.c", |
| 1448 | "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith-acc2.c", |
| 1449 | "src/f16-dwconv/gen/up8x9-minmax-neonfp16arith.c", |
Frank Barchard | 0bb49a7 | 2020-06-04 11:35:11 -0700 | [diff] [blame] | 1450 | "src/f16-gavgpool/7p7x-minmax-neonfp16arith-c8.c", |
| 1451 | "src/f16-gavgpool/7x-minmax-neonfp16arith-c8.c", |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 1452 | "src/f16-hswish/gen/neonfp16arith-x16.c", |
| 1453 | "src/f16-hswish/gen/neonfp16arith-x8.c", |
| 1454 | "src/f16-prelu/gen/neonfp16arith-2x16.c", |
| 1455 | "src/f16-prelu/gen/neonfp16arith-2x8.c", |
Frank Barchard | d793f6c | 2020-05-08 13:37:43 -0700 | [diff] [blame] | 1456 | "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c", |
| 1457 | "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c", |
| 1458 | "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c", |
| 1459 | "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c", |
| 1460 | "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c", |
| 1461 | "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c", |
| 1462 | "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c", |
| 1463 | "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c", |
| 1464 | "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c", |
| 1465 | "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c", |
| 1466 | "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c", |
| 1467 | "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c", |
| 1468 | "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c", |
| 1469 | "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c", |
| 1470 | "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c", |
| 1471 | "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c", |
| 1472 | "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c", |
| 1473 | "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c", |
| 1474 | "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c", |
| 1475 | "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c", |
| 1476 | "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c", |
| 1477 | "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c", |
| 1478 | "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c", |
| 1479 | "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c", |
| 1480 | "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c", |
| 1481 | "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c", |
| 1482 | "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c", |
| 1483 | "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c", |
Frank Barchard | 2a1049c | 2020-06-03 02:31:27 -0700 | [diff] [blame] | 1484 | "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c", |
| 1485 | "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c", |
Frank Barchard | 83ea939 | 2020-04-20 20:15:14 -0700 | [diff] [blame] | 1486 | "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c", |
| 1487 | "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c", |
| 1488 | "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c", |
| 1489 | "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c", |
| 1490 | "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c", |
| 1491 | "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c", |
| 1492 | "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c", |
| 1493 | "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c", |
Frank Barchard | b0e4fae | 2020-05-04 15:27:51 -0700 | [diff] [blame] | 1494 | "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c", |
| 1495 | "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c", |
| 1496 | "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c", |
| 1497 | "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c", |
Frank Barchard | 3f9f99f | 2020-05-06 01:12:04 -0700 | [diff] [blame] | 1498 | "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c", |
| 1499 | "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c", |
| 1500 | "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c", |
| 1501 | "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c", |
| 1502 | "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c", |
| 1503 | "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c", |
| 1504 | "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c", |
| 1505 | "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c", |
| 1506 | "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c", |
| 1507 | "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c", |
| 1508 | "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c", |
| 1509 | "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 1510 | "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c", |
| 1511 | "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c", |
| 1512 | "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c", |
| 1513 | "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c", |
| 1514 | "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c", |
| 1515 | "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c", |
| 1516 | "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c", |
| 1517 | "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1518 | ] |
| 1519 | |
| 1520 | SSE_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1521 | "src/f32-avgpool/9p8x-minmax-sse-c4.c", |
| 1522 | "src/f32-avgpool/9x-minmax-sse-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1523 | "src/f32-clamp/gen/sse-x4.c", |
| 1524 | "src/f32-clamp/gen/sse-x8.c", |
Erich Elsen | b123340 | 2020-06-08 15:53:15 -0700 | [diff] [blame] | 1525 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-1x1.c", |
| 1526 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-sse-2x2.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 1527 | "src/f32-dwconv-chw/3x3p1-sse.c", |
| 1528 | "src/f32-dwconv-chw/3x3s2p1-sse.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1529 | "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c", |
| 1530 | "src/f32-dwconv/gen/up4x25-minmax-sse.c", |
| 1531 | "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c", |
| 1532 | "src/f32-dwconv/gen/up4x4-minmax-sse.c", |
| 1533 | "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c", |
| 1534 | "src/f32-dwconv/gen/up4x9-minmax-sse.c", |
| 1535 | "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c", |
| 1536 | "src/f32-dwconv/gen/up8x25-minmax-sse.c", |
| 1537 | "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c", |
| 1538 | "src/f32-dwconv/gen/up8x4-minmax-sse.c", |
| 1539 | "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c", |
| 1540 | "src/f32-dwconv/gen/up8x9-minmax-sse.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 1541 | "src/f32-gavgpool-cw/sse-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1542 | "src/f32-gavgpool/7p7x-minmax-sse-c4.c", |
| 1543 | "src/f32-gavgpool/7x-minmax-sse-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1544 | "src/f32-gemm/gen/1x8-minmax-sse-dup.c", |
| 1545 | "src/f32-gemm/gen/1x8-minmax-sse-load1.c", |
| 1546 | "src/f32-gemm/gen/1x8s4-minmax-sse.c", |
| 1547 | "src/f32-gemm/gen/4x2c4-minmax-sse.c", |
| 1548 | "src/f32-gemm/gen/4x8-minmax-sse-dup.c", |
| 1549 | "src/f32-gemm/gen/4x8-minmax-sse-load1.c", |
| 1550 | "src/f32-gemm/gen/4x8s4-minmax-sse.c", |
| 1551 | "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c", |
| 1552 | "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c", |
| 1553 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c", |
| 1554 | "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c", |
| 1555 | "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c", |
| 1556 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1557 | "src/f32-hswish/gen/sse-x4.c", |
| 1558 | "src/f32-hswish/gen/sse-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 1559 | "src/f32-ibilinear/gen/sse-c4.c", |
| 1560 | "src/f32-ibilinear/gen/sse-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1561 | "src/f32-igemm/gen/1x8-minmax-sse-dup.c", |
| 1562 | "src/f32-igemm/gen/1x8-minmax-sse-load1.c", |
| 1563 | "src/f32-igemm/gen/1x8s4-minmax-sse.c", |
| 1564 | "src/f32-igemm/gen/4x2c4-minmax-sse.c", |
| 1565 | "src/f32-igemm/gen/4x8-minmax-sse-dup.c", |
| 1566 | "src/f32-igemm/gen/4x8-minmax-sse-load1.c", |
| 1567 | "src/f32-igemm/gen/4x8s4-minmax-sse.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1568 | "src/f32-maxpool/9p8x-minmax-sse-c4.c", |
| 1569 | "src/f32-pavgpool/9p8x-minmax-sse-c4.c", |
| 1570 | "src/f32-pavgpool/9x-minmax-sse-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1571 | "src/f32-ppmm/gen/4x8-minmax-sse.c", |
Marat Dukhan | 39b5e94 | 2020-06-24 15:03:48 -0700 | [diff] [blame] | 1572 | "src/f32-prelu/gen/sse-2x4.c", |
| 1573 | "src/f32-prelu/gen/sse-2x8.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1574 | "src/f32-rmax/sse.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 1575 | "src/f32-spmm/gen/4x1-minmax-sse.c", |
| 1576 | "src/f32-spmm/gen/8x1-minmax-sse.c", |
Erich Elsen | 6e80fdc | 2020-06-09 15:35:37 -0700 | [diff] [blame] | 1577 | "src/f32-spmm/gen/16x1-minmax-sse.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1578 | "src/f32-vbinary/gen/vadd-minmax-sse-x4.c", |
| 1579 | "src/f32-vbinary/gen/vadd-minmax-sse-x8.c", |
| 1580 | "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c", |
| 1581 | "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c", |
| 1582 | "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c", |
| 1583 | "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c", |
| 1584 | "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c", |
| 1585 | "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 1586 | "src/f32-vbinary/gen/vmax-sse-x4.c", |
| 1587 | "src/f32-vbinary/gen/vmax-sse-x8.c", |
| 1588 | "src/f32-vbinary/gen/vmaxc-sse-x4.c", |
| 1589 | "src/f32-vbinary/gen/vmaxc-sse-x8.c", |
| 1590 | "src/f32-vbinary/gen/vmin-sse-x4.c", |
| 1591 | "src/f32-vbinary/gen/vmin-sse-x8.c", |
| 1592 | "src/f32-vbinary/gen/vminc-sse-x4.c", |
| 1593 | "src/f32-vbinary/gen/vminc-sse-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1594 | "src/f32-vbinary/gen/vmul-minmax-sse-x4.c", |
| 1595 | "src/f32-vbinary/gen/vmul-minmax-sse-x8.c", |
| 1596 | "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c", |
| 1597 | "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c", |
| 1598 | "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c", |
| 1599 | "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c", |
| 1600 | "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c", |
| 1601 | "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c", |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 1602 | "src/f32-vbinary/gen/vsqrdiff-sse-x4.c", |
| 1603 | "src/f32-vbinary/gen/vsqrdiff-sse-x8.c", |
| 1604 | "src/f32-vbinary/gen/vsqrdiffc-sse-x4.c", |
| 1605 | "src/f32-vbinary/gen/vsqrdiffc-sse-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1606 | "src/f32-vbinary/gen/vsub-minmax-sse-x4.c", |
| 1607 | "src/f32-vbinary/gen/vsub-minmax-sse-x8.c", |
| 1608 | "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c", |
| 1609 | "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 1610 | "src/f32-vlrelu/gen/sse-x4.c", |
| 1611 | "src/f32-vlrelu/gen/sse-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1612 | "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c", |
| 1613 | "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 1614 | "src/f32-vsqrt/gen/sse-sqrt-x4.c", |
| 1615 | "src/f32-vsqrt/gen/sse-sqrt-x8.c", |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 1616 | "src/f32-vunary/gen/vabs-sse-x4.c", |
| 1617 | "src/f32-vunary/gen/vabs-sse-x8.c", |
| 1618 | "src/f32-vunary/gen/vneg-sse-x4.c", |
| 1619 | "src/f32-vunary/gen/vneg-sse-x8.c", |
| 1620 | "src/f32-vunary/gen/vsqr-sse-x4.c", |
| 1621 | "src/f32-vunary/gen/vsqr-sse-x8.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 1622 | "src/x32-fill/sse.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1623 | "src/x32-packx/x4-sse.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 1624 | "src/x32-pad/sse.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 1625 | "src/math/roundne-sse-addsub.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1626 | "src/math/roundd-sse-addsub.c", |
| 1627 | "src/math/roundu-sse-addsub.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1628 | "src/math/roundz-sse-addsub.c", |
Marat Dukhan | 8400076 | 2020-06-29 18:38:43 -0700 | [diff] [blame] | 1629 | "src/math/sqrt-sse-hh1mac.c", |
| 1630 | "src/math/sqrt-sse-nr1mac.c", |
| 1631 | "src/math/sqrt-sse-nr2mac.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1632 | ] |
| 1633 | |
| 1634 | SSE2_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 1635 | "src/f32-argmaxpool/9p8x-sse2-c4.c", |
| 1636 | "src/f32-argmaxpool/4x-sse2-c4.c", |
| 1637 | "src/f32-argmaxpool/9x-sse2-c4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1638 | "src/f32-prelu/gen/sse2-2x4.c", |
| 1639 | "src/f32-prelu/gen/sse2-2x8.c", |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 1640 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c", |
| 1641 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c", |
| 1642 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c", |
| 1643 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c", |
| 1644 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c", |
| 1645 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c", |
| 1646 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c", |
| 1647 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c", |
| 1648 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c", |
| 1649 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c", |
| 1650 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c", |
| 1651 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1652 | "src/f32-sigmoid/gen/sse2-p5-div-x4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1653 | "src/f32-sigmoid/gen/sse2-p5-div-x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1654 | "src/f32-sigmoid/gen/sse2-p5-div-x12.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1655 | "src/f32-sigmoid/gen/sse2-p5-div-x16.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1656 | "src/f32-sigmoid/gen/sse2-p5-div-x20.c", |
| 1657 | "src/f32-sigmoid/gen/sse2-p5-div-x24.c", |
Marat Dukhan | 0d3f467 | 2020-06-25 16:42:58 -0700 | [diff] [blame] | 1658 | "src/f32-vlrelu/gen/sse2-x4.c", |
| 1659 | "src/f32-vlrelu/gen/sse2-x8.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 1660 | "src/f32-vrnd/gen/vrndne-sse2-x4.c", |
| 1661 | "src/f32-vrnd/gen/vrndne-sse2-x8.c", |
| 1662 | "src/f32-vrnd/gen/vrndz-sse2-x4.c", |
| 1663 | "src/f32-vrnd/gen/vrndz-sse2-x8.c", |
| 1664 | "src/f32-vrnd/gen/vrndu-sse2-x4.c", |
| 1665 | "src/f32-vrnd/gen/vrndu-sse2-x8.c", |
| 1666 | "src/f32-vrnd/gen/vrndd-sse2-x4.c", |
| 1667 | "src/f32-vrnd/gen/vrndd-sse2-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1668 | "src/q8-avgpool/9p8x-minmax-sse2-c8.c", |
| 1669 | "src/q8-avgpool/9x-minmax-sse2-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1670 | "src/q8-igemm/4x4c2-minmax-sse2.c", |
| 1671 | "src/q8-dwconv/up8x9-minmax-sse2.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1672 | "src/q8-gavgpool/7p7x-minmax-sse2-c8.c", |
| 1673 | "src/q8-gavgpool/7x-minmax-sse2-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1674 | "src/q8-gemm/2x4c8-minmax-sse2.c", |
| 1675 | "src/q8-gemm/4x4c2-minmax-sse2.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1676 | "src/q8-vadd/minmax-sse2.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1677 | "src/u8-clamp/sse2-x64.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1678 | "src/u8-maxpool/9p8x-minmax-sse2-c16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1679 | "src/u8-rmax/sse2.c", |
Marat Dukhan | 57dccd8 | 2020-04-14 00:53:10 -0700 | [diff] [blame] | 1680 | "src/x32-unpool/sse2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1681 | "src/x32-zip/x2-sse2.c", |
| 1682 | "src/x32-zip/x3-sse2.c", |
| 1683 | "src/x32-zip/x4-sse2.c", |
| 1684 | "src/x32-zip/xm-sse2.c", |
| 1685 | "src/x8-zip/x2-sse2.c", |
| 1686 | "src/x8-zip/x3-sse2.c", |
| 1687 | "src/x8-zip/x4-sse2.c", |
| 1688 | "src/x8-zip/xm-sse2.c", |
Marat Dukhan | ffd6840 | 2019-11-15 15:19:11 -0800 | [diff] [blame] | 1689 | "src/math/exp-sse2-p5.c", |
| 1690 | "src/math/expminus-sse2-p5.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 1691 | "src/math/roundne-sse2-cvt.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1692 | "src/math/roundd-sse2-cvt.c", |
| 1693 | "src/math/roundu-sse2-cvt.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1694 | "src/math/roundz-sse2-cvt.c", |
Marat Dukhan | 80bafd2 | 2019-11-18 10:16:01 -0800 | [diff] [blame] | 1695 | "src/math/sigmoid-sse2-p5-div.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1696 | "src/requantization/precise-sse2.c", |
| 1697 | "src/requantization/fp32-sse2.c", |
| 1698 | "src/requantization/q31-sse2.c", |
| 1699 | "src/requantization/gemmlowp-sse2.c", |
| 1700 | ] |
| 1701 | |
| 1702 | SSSE3_UKERNELS = [ |
| 1703 | "src/requantization/precise-ssse3.c", |
| 1704 | "src/requantization/q31-ssse3.c", |
| 1705 | "src/requantization/gemmlowp-ssse3.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1706 | ] |
| 1707 | |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1708 | SSE41_UKERNELS = [ |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1709 | "src/f32-prelu/gen/sse41-2x4.c", |
| 1710 | "src/f32-prelu/gen/sse41-2x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1711 | "src/f32-sigmoid/gen/sse41-p5-div-x4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1712 | "src/f32-sigmoid/gen/sse41-p5-div-x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1713 | "src/f32-sigmoid/gen/sse41-p5-div-x12.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1714 | "src/f32-sigmoid/gen/sse41-p5-div-x16.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1715 | "src/f32-sigmoid/gen/sse41-p5-div-x20.c", |
| 1716 | "src/f32-sigmoid/gen/sse41-p5-div-x24.c", |
Marat Dukhan | 0d3f467 | 2020-06-25 16:42:58 -0700 | [diff] [blame] | 1717 | "src/f32-vlrelu/gen/sse41-x4.c", |
| 1718 | "src/f32-vlrelu/gen/sse41-x8.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 1719 | "src/f32-vrnd/gen/vrndne-sse41-x4.c", |
| 1720 | "src/f32-vrnd/gen/vrndne-sse41-x8.c", |
| 1721 | "src/f32-vrnd/gen/vrndz-sse41-x4.c", |
| 1722 | "src/f32-vrnd/gen/vrndz-sse41-x8.c", |
| 1723 | "src/f32-vrnd/gen/vrndu-sse41-x4.c", |
| 1724 | "src/f32-vrnd/gen/vrndu-sse41-x8.c", |
| 1725 | "src/f32-vrnd/gen/vrndd-sse41-x4.c", |
| 1726 | "src/f32-vrnd/gen/vrndd-sse41-x8.c", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 1727 | "src/math/roundne-sse41.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1728 | "src/math/roundd-sse41.c", |
| 1729 | "src/math/roundu-sse41.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1730 | "src/math/roundz-sse41.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1731 | "src/requantization/precise-sse4.c", |
| 1732 | "src/requantization/q31-sse4.c", |
| 1733 | "src/requantization/gemmlowp-sse4.c", |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1734 | ] |
| 1735 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1736 | AVX_UKERNELS = [ |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1737 | "src/f32-clamp/gen/avx-x8.c", |
| 1738 | "src/f32-clamp/gen/avx-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1739 | "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c", |
| 1740 | "src/f32-dwconv/gen/up16x4-minmax-avx.c", |
| 1741 | "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c", |
| 1742 | "src/f32-dwconv/gen/up8x4-minmax-avx.c", |
| 1743 | "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c", |
| 1744 | "src/f32-dwconv/gen/up16x9-minmax-avx.c", |
| 1745 | "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c", |
| 1746 | "src/f32-dwconv/gen/up8x9-minmax-avx.c", |
| 1747 | "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c", |
| 1748 | "src/f32-dwconv/gen/up16x25-minmax-avx.c", |
| 1749 | "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c", |
| 1750 | "src/f32-dwconv/gen/up8x25-minmax-avx.c", |
| 1751 | "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c", |
| 1752 | "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c", |
| 1753 | "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c", |
| 1754 | "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c", |
| 1755 | "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c", |
| 1756 | "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c", |
| 1757 | "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c", |
| 1758 | "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c", |
| 1759 | "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c", |
| 1760 | "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c", |
| 1761 | "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c", |
| 1762 | "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c", |
| 1763 | "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c", |
| 1764 | "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c", |
| 1765 | "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c", |
| 1766 | "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c", |
| 1767 | "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c", |
| 1768 | "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1769 | "src/f32-hswish/gen/avx-x8.c", |
| 1770 | "src/f32-hswish/gen/avx-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1771 | "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c", |
| 1772 | "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c", |
| 1773 | "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c", |
| 1774 | "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c", |
| 1775 | "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c", |
| 1776 | "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c", |
| 1777 | "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c", |
| 1778 | "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c", |
| 1779 | "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c", |
Marat Dukhan | 90eca0a | 2020-03-11 00:52:23 -0700 | [diff] [blame] | 1780 | "src/f32-prelu/gen/avx-2x8.c", |
| 1781 | "src/f32-prelu/gen/avx-2x16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1782 | "src/f32-rmax/avx.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1783 | "src/f32-vbinary/gen/vadd-minmax-avx-x8.c", |
| 1784 | "src/f32-vbinary/gen/vadd-minmax-avx-x16.c", |
| 1785 | "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c", |
| 1786 | "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c", |
| 1787 | "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c", |
| 1788 | "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c", |
| 1789 | "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c", |
| 1790 | "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c", |
Marat Dukhan | 9a88efe | 2019-12-10 15:54:24 -0800 | [diff] [blame] | 1791 | "src/f32-vbinary/gen/vmax-avx-x8.c", |
| 1792 | "src/f32-vbinary/gen/vmax-avx-x16.c", |
| 1793 | "src/f32-vbinary/gen/vmaxc-avx-x8.c", |
| 1794 | "src/f32-vbinary/gen/vmaxc-avx-x16.c", |
| 1795 | "src/f32-vbinary/gen/vmin-avx-x8.c", |
| 1796 | "src/f32-vbinary/gen/vmin-avx-x16.c", |
| 1797 | "src/f32-vbinary/gen/vminc-avx-x8.c", |
| 1798 | "src/f32-vbinary/gen/vminc-avx-x16.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1799 | "src/f32-vbinary/gen/vmul-minmax-avx-x8.c", |
| 1800 | "src/f32-vbinary/gen/vmul-minmax-avx-x16.c", |
| 1801 | "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c", |
| 1802 | "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c", |
| 1803 | "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c", |
| 1804 | "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c", |
| 1805 | "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c", |
| 1806 | "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c", |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 1807 | "src/f32-vbinary/gen/vsqrdiff-avx-x8.c", |
| 1808 | "src/f32-vbinary/gen/vsqrdiff-avx-x16.c", |
| 1809 | "src/f32-vbinary/gen/vsqrdiffc-avx-x8.c", |
| 1810 | "src/f32-vbinary/gen/vsqrdiffc-avx-x16.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1811 | "src/f32-vbinary/gen/vsub-minmax-avx-x8.c", |
| 1812 | "src/f32-vbinary/gen/vsub-minmax-avx-x16.c", |
| 1813 | "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c", |
| 1814 | "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 1815 | "src/f32-vlrelu/gen/avx-x8.c", |
| 1816 | "src/f32-vlrelu/gen/avx-x16.c", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1817 | "src/f32-vscale/avx-unroll32.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 1818 | "src/f32-vrnd/gen/vrndne-avx-x8.c", |
| 1819 | "src/f32-vrnd/gen/vrndne-avx-x16.c", |
| 1820 | "src/f32-vrnd/gen/vrndz-avx-x8.c", |
| 1821 | "src/f32-vrnd/gen/vrndz-avx-x16.c", |
| 1822 | "src/f32-vrnd/gen/vrndu-avx-x8.c", |
| 1823 | "src/f32-vrnd/gen/vrndu-avx-x16.c", |
| 1824 | "src/f32-vrnd/gen/vrndd-avx-x8.c", |
| 1825 | "src/f32-vrnd/gen/vrndd-avx-x16.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 1826 | "src/f32-vsqrt/gen/avx-sqrt-x8.c", |
| 1827 | "src/f32-vsqrt/gen/avx-sqrt-x16.c", |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 1828 | "src/f32-vunary/gen/vabs-avx-x8.c", |
| 1829 | "src/f32-vunary/gen/vabs-avx-x16.c", |
| 1830 | "src/f32-vunary/gen/vneg-avx-x8.c", |
| 1831 | "src/f32-vunary/gen/vneg-avx-x16.c", |
| 1832 | "src/f32-vunary/gen/vsqr-avx-x8.c", |
| 1833 | "src/f32-vunary/gen/vsqr-avx-x16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1834 | ] |
| 1835 | |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1836 | FMA3_UKERNELS = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1837 | "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c", |
| 1838 | "src/f32-dwconv/gen/up16x4-minmax-fma3.c", |
| 1839 | "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c", |
| 1840 | "src/f32-dwconv/gen/up8x4-minmax-fma3.c", |
| 1841 | "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c", |
| 1842 | "src/f32-dwconv/gen/up16x9-minmax-fma3.c", |
| 1843 | "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c", |
| 1844 | "src/f32-dwconv/gen/up8x9-minmax-fma3.c", |
| 1845 | "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c", |
| 1846 | "src/f32-dwconv/gen/up16x25-minmax-fma3.c", |
| 1847 | "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c", |
| 1848 | "src/f32-dwconv/gen/up8x25-minmax-fma3.c", |
| 1849 | "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c", |
| 1850 | "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c", |
| 1851 | "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c", |
| 1852 | "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c", |
| 1853 | "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c", |
| 1854 | "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c", |
| 1855 | "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c", |
| 1856 | "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c", |
| 1857 | "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c", |
| 1858 | "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c", |
| 1859 | "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c", |
| 1860 | "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c", |
| 1861 | "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c", |
| 1862 | "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c", |
| 1863 | "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c", |
| 1864 | "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c", |
| 1865 | "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c", |
| 1866 | "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c", |
| 1867 | "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c", |
| 1868 | "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c", |
| 1869 | "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c", |
| 1870 | "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c", |
| 1871 | "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c", |
| 1872 | "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c", |
| 1873 | "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c", |
| 1874 | "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c", |
| 1875 | "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c", |
| 1876 | "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1877 | "src/f32-hswish/gen/fma3-x8.c", |
| 1878 | "src/f32-hswish/gen/fma3-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1879 | "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c", |
| 1880 | "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c", |
| 1881 | "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c", |
| 1882 | "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c", |
| 1883 | "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c", |
| 1884 | "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c", |
| 1885 | "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c", |
| 1886 | "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c", |
| 1887 | "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c", |
| 1888 | "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c", |
| 1889 | "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c", |
| 1890 | "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c", |
| 1891 | "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c", |
| 1892 | "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 1893 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x8.c", |
| 1894 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x16.c", |
| 1895 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x24.c", |
| 1896 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x32.c", |
| 1897 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x40.c", |
| 1898 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x48.c", |
| 1899 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x56.c", |
| 1900 | "src/f32-vsqrt/gen/fma3-nr1fma1adj-x64.c", |
Marat Dukhan | 8400076 | 2020-06-29 18:38:43 -0700 | [diff] [blame] | 1901 | "src/math/sqrt-fma3-nr1fma.c", |
| 1902 | "src/math/sqrt-fma3-nr2fma.c", |
| 1903 | "src/math/sqrt-fma3-nr1fma1adj.c", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1904 | ] |
| 1905 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1906 | AVX2_UKERNELS = [ |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1907 | "src/f32-raddexpminusmax/gen/avx2-p5-x64.c", |
| 1908 | "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c", |
| 1909 | "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c", |
| 1910 | "src/f32-raddexpminusmax/gen/avx2-p5-x72.c", |
| 1911 | "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c", |
| 1912 | "src/f32-raddexpminusmax/gen/avx2-p5-x80.c", |
| 1913 | "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c", |
| 1914 | "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c", |
| 1915 | "src/f32-raddexpminusmax/gen/avx2-p5-x96.c", |
| 1916 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c", |
| 1917 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c", |
| 1918 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c", |
| 1919 | "src/f32-raddextexp/gen/avx2-p5-x64.c", |
| 1920 | "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c", |
| 1921 | "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c", |
| 1922 | "src/f32-raddextexp/gen/avx2-p5-x72.c", |
| 1923 | "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c", |
| 1924 | "src/f32-raddextexp/gen/avx2-p5-x80.c", |
| 1925 | "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c", |
| 1926 | "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c", |
| 1927 | "src/f32-raddextexp/gen/avx2-p5-x96.c", |
| 1928 | "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c", |
| 1929 | "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c", |
| 1930 | "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c", |
| 1931 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c", |
| 1932 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c", |
| 1933 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c", |
| 1934 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c", |
| 1935 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c", |
| 1936 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c", |
| 1937 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c", |
| 1938 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c", |
| 1939 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c", |
| 1940 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c", |
| 1941 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c", |
| 1942 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c", |
Marat Dukhan | fa0a432 | 2020-01-06 16:14:29 -0800 | [diff] [blame] | 1943 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c", |
| 1944 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c", |
| 1945 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c", |
| 1946 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c", |
| 1947 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c", |
| 1948 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c", |
| 1949 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c", |
| 1950 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c", |
| 1951 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c", |
| 1952 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c", |
| 1953 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c", |
| 1954 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c", |
| 1955 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c", |
| 1956 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c", |
| 1957 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c", |
| 1958 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c", |
| 1959 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c", |
| 1960 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c", |
| 1961 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c", |
| 1962 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c", |
| 1963 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c", |
| 1964 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c", |
| 1965 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c", |
| 1966 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c", |
| 1967 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c", |
| 1968 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c", |
| 1969 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c", |
| 1970 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c", |
| 1971 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c", |
| 1972 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1973 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c", |
| 1974 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c", |
| 1975 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c", |
| 1976 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c", |
| 1977 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c", |
| 1978 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c", |
| 1979 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c", |
| 1980 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c", |
| 1981 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c", |
| 1982 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c", |
| 1983 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c", |
| 1984 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c", |
| 1985 | "src/f32-vscaleextexp/gen/avx2-p5-x8.c", |
| 1986 | "src/f32-vscaleextexp/gen/avx2-p5-x16.c", |
| 1987 | "src/f32-vscaleextexp/gen/avx2-p5-x24.c", |
| 1988 | "src/f32-vscaleextexp/gen/avx2-p5-x32.c", |
| 1989 | "src/f32-vscaleextexp/gen/avx2-p5-x40.c", |
| 1990 | "src/f32-vscaleextexp/gen/avx2-p5-x48.c", |
| 1991 | "src/f32-vscaleextexp/gen/avx2-p5-x56.c", |
| 1992 | "src/f32-vscaleextexp/gen/avx2-p5-x64.c", |
| 1993 | "src/f32-vscaleextexp/gen/avx2-p5-x72.c", |
| 1994 | "src/f32-vscaleextexp/gen/avx2-p5-x80.c", |
| 1995 | "src/f32-vscaleextexp/gen/avx2-p5-x88.c", |
| 1996 | "src/f32-vscaleextexp/gen/avx2-p5-x96.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1997 | "src/math/exp-avx2-p5.c", |
| 1998 | "src/math/exp-avx2-perm-p3.c", |
| 1999 | "src/math/exp-avx2-perm-p4.c", |
Marat Dukhan | 515c977 | 2019-10-17 18:07:57 -0700 | [diff] [blame] | 2000 | "src/math/expminus-avx2-p5.c", |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 2001 | "src/math/extexp-avx2-p5.c", |
Marat Dukhan | 7241600 | 2020-01-05 21:53:19 -0800 | [diff] [blame] | 2002 | "src/math/sigmoid-avx2-rr2-p5-div.c", |
| 2003 | "src/math/sigmoid-avx2-rr1-p5-div.c", |
| 2004 | "src/math/sigmoid-avx2-rr2-p5-nr2fma.c", |
| 2005 | "src/math/sigmoid-avx2-rr1-p5-nr2fma.c", |
| 2006 | "src/math/sigmoid-avx2-rr2-p5-nr1fma.c", |
| 2007 | "src/math/sigmoid-avx2-rr1-p5-nr1fma.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2008 | ] |
| 2009 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2010 | AVX512F_UKERNELS = [ |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 2011 | "src/f32-clamp/gen/avx512f-x16.c", |
| 2012 | "src/f32-clamp/gen/avx512f-x32.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2013 | "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c", |
| 2014 | "src/f32-dwconv/gen/up32x4-minmax-avx512f.c", |
| 2015 | "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c", |
| 2016 | "src/f32-dwconv/gen/up16x4-minmax-avx512f.c", |
| 2017 | "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c", |
| 2018 | "src/f32-dwconv/gen/up32x9-minmax-avx512f.c", |
| 2019 | "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c", |
| 2020 | "src/f32-dwconv/gen/up16x9-minmax-avx512f.c", |
| 2021 | "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c", |
| 2022 | "src/f32-dwconv/gen/up32x25-minmax-avx512f.c", |
| 2023 | "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c", |
| 2024 | "src/f32-dwconv/gen/up16x25-minmax-avx512f.c", |
| 2025 | "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c", |
| 2026 | "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c", |
| 2027 | "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c", |
| 2028 | "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c", |
| 2029 | "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c", |
| 2030 | "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c", |
| 2031 | "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c", |
| 2032 | "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c", |
| 2033 | "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c", |
| 2034 | "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c", |
| 2035 | "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c", |
| 2036 | "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 2037 | "src/f32-hswish/gen/avx512f-x16.c", |
| 2038 | "src/f32-hswish/gen/avx512f-x32.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2039 | "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c", |
| 2040 | "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c", |
| 2041 | "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c", |
| 2042 | "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c", |
| 2043 | "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c", |
| 2044 | "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c", |
Marat Dukhan | 90eca0a | 2020-03-11 00:52:23 -0700 | [diff] [blame] | 2045 | "src/f32-prelu/gen/avx512f-2x16.c", |
| 2046 | "src/f32-prelu/gen/avx512f-2x32.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 2047 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 2048 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c", |
| 2049 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c", |
| 2050 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 2051 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c", |
| 2052 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 2053 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c", |
| 2054 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c", |
| 2055 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 2056 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c", |
| 2057 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c", |
| 2058 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c", |
| 2059 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c", |
| 2060 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c", |
| 2061 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c", |
| 2062 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c", |
| 2063 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c", |
| 2064 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c", |
| 2065 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c", |
| 2066 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c", |
| 2067 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c", |
| 2068 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c", |
| 2069 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c", |
| 2070 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c", |
| 2071 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 2072 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c", |
| 2073 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c", |
| 2074 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 2075 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c", |
| 2076 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 2077 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c", |
| 2078 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c", |
| 2079 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 2080 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c", |
| 2081 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c", |
| 2082 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2083 | "src/f32-rmax/avx512f.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2084 | "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c", |
| 2085 | "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c", |
| 2086 | "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c", |
| 2087 | "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c", |
| 2088 | "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c", |
| 2089 | "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c", |
| 2090 | "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c", |
| 2091 | "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c", |
Marat Dukhan | 9a88efe | 2019-12-10 15:54:24 -0800 | [diff] [blame] | 2092 | "src/f32-vbinary/gen/vmax-avx512f-x16.c", |
| 2093 | "src/f32-vbinary/gen/vmax-avx512f-x32.c", |
| 2094 | "src/f32-vbinary/gen/vmaxc-avx512f-x16.c", |
| 2095 | "src/f32-vbinary/gen/vmaxc-avx512f-x32.c", |
| 2096 | "src/f32-vbinary/gen/vmin-avx512f-x16.c", |
| 2097 | "src/f32-vbinary/gen/vmin-avx512f-x32.c", |
| 2098 | "src/f32-vbinary/gen/vminc-avx512f-x16.c", |
| 2099 | "src/f32-vbinary/gen/vminc-avx512f-x32.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2100 | "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c", |
| 2101 | "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c", |
| 2102 | "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c", |
| 2103 | "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c", |
| 2104 | "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c", |
| 2105 | "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c", |
| 2106 | "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c", |
| 2107 | "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c", |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 2108 | "src/f32-vbinary/gen/vsqrdiff-avx512f-x16.c", |
| 2109 | "src/f32-vbinary/gen/vsqrdiff-avx512f-x32.c", |
| 2110 | "src/f32-vbinary/gen/vsqrdiffc-avx512f-x16.c", |
| 2111 | "src/f32-vbinary/gen/vsqrdiffc-avx512f-x32.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2112 | "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c", |
| 2113 | "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c", |
| 2114 | "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c", |
| 2115 | "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c", |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 2116 | "src/f32-vlrelu/gen/avx512f-x16.c", |
| 2117 | "src/f32-vlrelu/gen/avx512f-x32.c", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 2118 | "src/f32-vscale/avx512f-unroll64.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 2119 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c", |
| 2120 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c", |
| 2121 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c", |
| 2122 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c", |
| 2123 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c", |
| 2124 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c", |
| 2125 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c", |
| 2126 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 2127 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 2128 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 2129 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c", |
| 2130 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 2131 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c", |
| 2132 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c", |
| 2133 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c", |
| 2134 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c", |
| 2135 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c", |
| 2136 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c", |
| 2137 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c", |
| 2138 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c", |
| 2139 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c", |
| 2140 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c", |
| 2141 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c", |
| 2142 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c", |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 2143 | "src/f32-vrnd/gen/vrndne-avx512f-x16.c", |
| 2144 | "src/f32-vrnd/gen/vrndne-avx512f-x32.c", |
| 2145 | "src/f32-vrnd/gen/vrndz-avx512f-x16.c", |
| 2146 | "src/f32-vrnd/gen/vrndz-avx512f-x32.c", |
| 2147 | "src/f32-vrnd/gen/vrndu-avx512f-x16.c", |
| 2148 | "src/f32-vrnd/gen/vrndu-avx512f-x32.c", |
| 2149 | "src/f32-vrnd/gen/vrndd-avx512f-x16.c", |
| 2150 | "src/f32-vrnd/gen/vrndd-avx512f-x32.c", |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 2151 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x16.c", |
| 2152 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x32.c", |
| 2153 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x48.c", |
| 2154 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x64.c", |
| 2155 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x80.c", |
| 2156 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x96.c", |
| 2157 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x112.c", |
| 2158 | "src/f32-vsqrt/gen/avx512f-nr1fma1adj-x128.c", |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 2159 | "src/f32-vunary/gen/vabs-avx512f-x16.c", |
| 2160 | "src/f32-vunary/gen/vabs-avx512f-x32.c", |
| 2161 | "src/f32-vunary/gen/vneg-avx512f-x16.c", |
| 2162 | "src/f32-vunary/gen/vneg-avx512f-x32.c", |
| 2163 | "src/f32-vunary/gen/vsqr-avx512f-x16.c", |
| 2164 | "src/f32-vunary/gen/vsqr-avx512f-x32.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2165 | "src/math/exp-avx512f-p5-scalef.c", |
| 2166 | "src/math/exp-avx512f-p5.c", |
| 2167 | "src/math/exp-avx512f-perm-p3.c", |
Marat Dukhan | feb4923 | 2019-10-28 11:03:31 -0700 | [diff] [blame] | 2168 | "src/math/exp-avx512f-perm2-p2.c", |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 2169 | "src/math/extexp-avx512f-p5.c", |
Marat Dukhan | 8400076 | 2020-06-29 18:38:43 -0700 | [diff] [blame] | 2170 | "src/math/sqrt-avx512f-nr1fma.c", |
| 2171 | "src/math/sqrt-avx512f-nr2fma.c", |
| 2172 | "src/math/sqrt-avx512f-nr1fma1adj.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2173 | ] |
| 2174 | |
| 2175 | AARCH32_ASM_UKERNELS = [ |
Marat Dukhan | 32f9381 | 2020-05-17 20:31:21 -0700 | [diff] [blame] | 2176 | "src/f32-gemm/4x4-aarch32-vfp-ld64.S", |
Marat Dukhan | 3b98f6b | 2020-05-17 10:09:22 -0700 | [diff] [blame] | 2177 | "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2178 | "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S", |
| 2179 | "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S", |
| 2180 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S", |
| 2181 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S", |
Frank Barchard | 569561d | 2020-06-17 13:11:12 -0700 | [diff] [blame] | 2182 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-ld64.S", |
| 2183 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-ld64.S", |
| 2184 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-ld64.S", |
| 2185 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2186 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S", |
| 2187 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S", |
| 2188 | "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S", |
| 2189 | "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2190 | ] |
| 2191 | |
| 2192 | AARCH64_ASM_UKERNELS = [ |
Frank Barchard | 36b76b6 | 2020-04-10 12:39:17 -0700 | [diff] [blame] | 2193 | "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 2194 | "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S", |
| 2195 | "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 36b76b6 | 2020-04-10 12:39:17 -0700 | [diff] [blame] | 2196 | "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 2197 | "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
| 2198 | "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | bddfbcd | 2020-04-15 12:32:41 -0700 | [diff] [blame] | 2199 | "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S", |
| 2200 | "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S", |
| 2201 | "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | 3b8e566 | 2020-04-20 12:12:53 -0700 | [diff] [blame] | 2202 | "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | bddfbcd | 2020-04-15 12:32:41 -0700 | [diff] [blame] | 2203 | "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
| 2204 | "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
| 2205 | "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | 3b8e566 | 2020-04-20 12:12:53 -0700 | [diff] [blame] | 2206 | "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2207 | "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S", |
| 2208 | "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S", |
Frank Barchard | 3cb54f9 | 2020-04-10 10:46:08 -0700 | [diff] [blame] | 2209 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2210 | "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 2211 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 2212 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2213 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 2214 | "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 2215 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 2216 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 2217 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2218 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 2219 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S", |
| 2220 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S", |
| 2221 | "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2222 | "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 2223 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 2224 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 2225 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S", |
| 2226 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2227 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2228 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S", |
| 2229 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S", |
Frank Barchard | 3cb54f9 | 2020-04-10 10:46:08 -0700 | [diff] [blame] | 2230 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2231 | "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 2232 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 2233 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 2234 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 2235 | "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 2236 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 2237 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S", |
| 2238 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 2239 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 2240 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S", |
| 2241 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S", |
| 2242 | "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 2243 | "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 2244 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 2245 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S", |
| 2246 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S", |
| 2247 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 2248 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2249 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S", |
| 2250 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S", |
| 2251 | "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 2252 | "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 2253 | "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2254 | "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 2255 | "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 2256 | "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 2257 | "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 2258 | "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2259 | "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 2260 | "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2261 | "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 2262 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 2263 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 2264 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S", |
| 2265 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 2266 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2267 | ] |
| 2268 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2269 | INTERNAL_MICROKERNEL_HDRS = [ |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2270 | "src/requantization/gemmlowp-requantization.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2271 | "src/xnnpack/argmaxpool.h", |
| 2272 | "src/xnnpack/avgpool.h", |
| 2273 | "src/xnnpack/clamp.h", |
| 2274 | "src/xnnpack/common.h", |
| 2275 | "src/xnnpack/conv.h", |
| 2276 | "src/xnnpack/dwconv.h", |
| 2277 | "src/xnnpack/gavgpool.h", |
| 2278 | "src/xnnpack/gemm.h", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 2279 | "src/xnnpack/fill.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2280 | "src/xnnpack/hswish.h", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 2281 | "src/xnnpack/ibilinear.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2282 | "src/xnnpack/igemm.h", |
Marat Dukhan | cfb3134 | 2019-12-05 10:42:57 -0800 | [diff] [blame] | 2283 | "src/xnnpack/intrinsics-polyfill.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2284 | "src/xnnpack/lut.h", |
| 2285 | "src/xnnpack/math.h", |
| 2286 | "src/xnnpack/maxpool.h", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2287 | "src/xnnpack/memory.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2288 | "src/xnnpack/packx.h", |
| 2289 | "src/xnnpack/pad.h", |
| 2290 | "src/xnnpack/params.h", |
| 2291 | "src/xnnpack/pavgpool.h", |
| 2292 | "src/xnnpack/ppmm.h", |
| 2293 | "src/xnnpack/prelu.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2294 | "src/xnnpack/raddexpminusmax.h", |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 2295 | "src/xnnpack/raddextexp.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2296 | "src/xnnpack/raddstoreexpminusmax.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2297 | "src/xnnpack/rmax.h", |
| 2298 | "src/xnnpack/scalar-utils.h", |
| 2299 | "src/xnnpack/spmm.h", |
| 2300 | "src/xnnpack/unpool.h", |
| 2301 | "src/xnnpack/vadd.h", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2302 | "src/xnnpack/vbinary.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2303 | "src/xnnpack/vmulcaddc.h", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 2304 | "src/xnnpack/vscale.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2305 | "src/xnnpack/vscaleexpminusmax.h", |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 2306 | "src/xnnpack/vscaleextexp.h", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2307 | "src/xnnpack/vunary.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2308 | "src/xnnpack/zip.h", |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2309 | ] |
| 2310 | |
| 2311 | INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2312 | "include/xnnpack.h", |
| 2313 | "src/xnnpack/allocator.h", |
| 2314 | "src/xnnpack/compute.h", |
| 2315 | "src/xnnpack/im2col.h", |
| 2316 | "src/xnnpack/indirection.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2317 | "src/xnnpack/math-stubs.h", |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 2318 | "src/xnnpack/memory-planner.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2319 | "src/xnnpack/operator.h", |
| 2320 | "src/xnnpack/pack.h", |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 2321 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2322 | "src/xnnpack/requantization-stubs.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2323 | "src/xnnpack/requantization.h", |
Marat Dukhan | 1d75a54 | 2020-02-03 12:23:01 -0800 | [diff] [blame] | 2324 | "src/xnnpack/subgraph.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2325 | ] |
| 2326 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2327 | ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2328 | "src/xnnpack/math-stubs.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2329 | ] |
| 2330 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2331 | MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 2332 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2333 | "include/xnnpack.h", |
| 2334 | ] |
| 2335 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2336 | MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2337 | "src/xnnpack/isa-checks.h", |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 2338 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2339 | "src/xnnpack/requantization.h", |
| 2340 | "include/xnnpack.h", |
| 2341 | ] |
| 2342 | |
| 2343 | OPERATOR_TEST_PARAMS_HDRS = [ |
| 2344 | "src/xnnpack/params.h", |
| 2345 | "src/xnnpack/common.h", |
| 2346 | ] |
| 2347 | |
| 2348 | WEIGHTS_PACK_HDRS = [ |
| 2349 | "src/xnnpack/pack.h", |
| 2350 | "src/xnnpack/operator.h", |
| 2351 | "src/xnnpack/compute.h", |
| 2352 | ] |
| 2353 | |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 2354 | LOGGING_COPTS = select({ |
| 2355 | # No logging in optimized mode |
| 2356 | ":optimized_build": ["-DXNN_LOG_LEVEL=0"], |
| 2357 | # Full logging in debug mode |
| 2358 | ":debug_build": ["-DXNN_LOG_LEVEL=5"], |
| 2359 | # Error-only logging in default (fastbuild) mode |
| 2360 | "//conditions:default": ["-DXNN_LOG_LEVEL=2"], |
| 2361 | }) |
| 2362 | |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 2363 | LOGGING_SRCS = select({ |
| 2364 | # No logging in optimized mode |
| 2365 | ":optimized_build": [], |
| 2366 | "//conditions:default": [ |
| 2367 | "src/operator-strings.c", |
| 2368 | "src/subgraph-strings.c", |
| 2369 | ], |
| 2370 | }) |
| 2371 | |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 2372 | LOGGING_HDRS = [ |
| 2373 | "src/xnnpack/log.h", |
| 2374 | ] |
| 2375 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2376 | xnnpack_cc_library( |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2377 | name = "tables", |
| 2378 | srcs = TABLE_SRCS, |
| 2379 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2380 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2381 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2382 | ) |
| 2383 | |
| 2384 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2385 | name = "scalar_ukernels", |
| 2386 | srcs = SCALAR_UKERNELS, |
| 2387 | hdrs = INTERNAL_HDRS, |
| 2388 | aarch32_copts = ["-marm"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2389 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2390 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2391 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2392 | ":tables", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2393 | "@FP16", |
| 2394 | "@FXdiv", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2395 | "@pthreadpool", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2396 | ], |
| 2397 | ) |
| 2398 | |
| 2399 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2400 | name = "scalar_ukernels_test_mode", |
| 2401 | srcs = SCALAR_UKERNELS, |
| 2402 | hdrs = INTERNAL_HDRS, |
| 2403 | aarch32_copts = ["-marm"], |
| 2404 | copts = [ |
| 2405 | "-UNDEBUG", |
| 2406 | "-DXNN_TEST_MODE=1", |
| 2407 | ], |
| 2408 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2409 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2410 | deps = [ |
| 2411 | ":tables", |
| 2412 | "@FP16", |
| 2413 | "@FXdiv", |
| 2414 | "@pthreadpool", |
| 2415 | ], |
| 2416 | ) |
| 2417 | |
| 2418 | xnnpack_cc_library( |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 2419 | name = "wasm_ukernels", |
| 2420 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2421 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2422 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 2423 | wasm_srcs = WASM_UKERNELS, |
Marat Dukhan | 1c6e389 | 2020-06-25 23:56:10 -0700 | [diff] [blame] | 2424 | wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS, |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 2425 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2426 | ":tables", |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 2427 | "@FP16", |
| 2428 | "@FXdiv", |
| 2429 | "@pthreadpool", |
| 2430 | ], |
| 2431 | ) |
| 2432 | |
| 2433 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2434 | name = "wasm_ukernels_test_mode", |
| 2435 | hdrs = INTERNAL_HDRS, |
| 2436 | copts = [ |
| 2437 | "-UNDEBUG", |
| 2438 | "-DXNN_TEST_MODE=1", |
| 2439 | ], |
| 2440 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2441 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2442 | wasm_srcs = WASM_UKERNELS, |
Marat Dukhan | 0e97d6f | 2020-06-26 19:35:09 -0700 | [diff] [blame] | 2443 | wasmsimd_srcs = WASM_UKERNELS + WASMSIMD_UKERNELS, |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2444 | deps = [ |
| 2445 | ":tables", |
| 2446 | "@FP16", |
| 2447 | "@FXdiv", |
| 2448 | "@pthreadpool", |
| 2449 | ], |
| 2450 | ) |
| 2451 | |
| 2452 | xnnpack_cc_library( |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 2453 | name = "psimd_fastmath_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2454 | hdrs = INTERNAL_HDRS, |
| 2455 | aarch32_copts = [ |
| 2456 | "-marm", |
| 2457 | "-mfpu=neon", |
| 2458 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2459 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2460 | gcc_x86_copts = ["-msse2"], |
| 2461 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2462 | optimized_copts = [ |
| 2463 | "-O3", |
| 2464 | "-ffast-math", |
| 2465 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 2466 | psimd_srcs = PSIMD_FASTMATH_UKERNELS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2467 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2468 | ":tables", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2469 | "@FP16", |
| 2470 | "@psimd", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2471 | "@pthreadpool", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2472 | ], |
| 2473 | ) |
| 2474 | |
| 2475 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2476 | name = "psimd_fastmath_ukernels_test_mode", |
| 2477 | hdrs = INTERNAL_HDRS, |
| 2478 | aarch32_copts = [ |
| 2479 | "-marm", |
| 2480 | "-mfpu=neon", |
| 2481 | ], |
| 2482 | copts = [ |
| 2483 | "-UNDEBUG", |
| 2484 | "-DXNN_TEST_MODE=1", |
| 2485 | ], |
| 2486 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2487 | gcc_x86_copts = ["-msse2"], |
| 2488 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2489 | optimized_copts = [ |
| 2490 | "-O3", |
| 2491 | "-ffast-math", |
| 2492 | ], |
| 2493 | psimd_srcs = PSIMD_FASTMATH_UKERNELS, |
| 2494 | deps = [ |
| 2495 | ":tables", |
| 2496 | "@FP16", |
| 2497 | "@psimd", |
| 2498 | "@pthreadpool", |
| 2499 | ], |
| 2500 | ) |
| 2501 | |
| 2502 | xnnpack_cc_library( |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 2503 | name = "psimd_accmath_ukernels", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 2504 | hdrs = INTERNAL_HDRS, |
| 2505 | aarch32_copts = [ |
| 2506 | "-marm", |
| 2507 | "-mfpu=neon", |
| 2508 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2509 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2510 | gcc_x86_copts = ["-msse2"], |
| 2511 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 2512 | optimized_copts = [ |
| 2513 | "-O3", |
| 2514 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 2515 | psimd_srcs = PSIMD_ACCMATH_UKERNELS, |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 2516 | deps = [ |
| 2517 | ":tables", |
| 2518 | "@FP16", |
| 2519 | "@psimd", |
| 2520 | "@pthreadpool", |
| 2521 | ], |
| 2522 | ) |
| 2523 | |
| 2524 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2525 | name = "psimd_accmath_ukernels_test_mode", |
| 2526 | hdrs = INTERNAL_HDRS, |
| 2527 | aarch32_copts = [ |
| 2528 | "-marm", |
| 2529 | "-mfpu=neon", |
| 2530 | ], |
| 2531 | copts = [ |
| 2532 | "-UNDEBUG", |
| 2533 | "-DXNN_TEST_MODE=1", |
| 2534 | ], |
| 2535 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2536 | gcc_x86_copts = ["-msse2"], |
| 2537 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2538 | optimized_copts = [ |
| 2539 | "-O3", |
| 2540 | ], |
| 2541 | psimd_srcs = PSIMD_ACCMATH_UKERNELS, |
| 2542 | deps = [ |
| 2543 | ":tables", |
| 2544 | "@FP16", |
| 2545 | "@psimd", |
| 2546 | "@pthreadpool", |
| 2547 | ], |
| 2548 | ) |
| 2549 | |
| 2550 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2551 | name = "neon_ukernels", |
| 2552 | hdrs = INTERNAL_HDRS, |
| 2553 | aarch32_copts = [ |
| 2554 | "-marm", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2555 | "-march=armv7-a", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2556 | "-mfpu=neon", |
| 2557 | ], |
| 2558 | aarch32_srcs = NEON_UKERNELS, |
| 2559 | aarch64_srcs = NEON_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2560 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2561 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2562 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2563 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2564 | "@FP16", |
| 2565 | "@pthreadpool", |
| 2566 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2567 | ) |
| 2568 | |
| 2569 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2570 | name = "neon_ukernels_test_mode", |
| 2571 | hdrs = INTERNAL_HDRS, |
| 2572 | aarch32_copts = [ |
| 2573 | "-marm", |
| 2574 | "-march=armv7-a", |
| 2575 | "-mfpu=neon", |
| 2576 | ], |
| 2577 | aarch32_srcs = NEON_UKERNELS, |
| 2578 | aarch64_srcs = NEON_UKERNELS, |
| 2579 | copts = [ |
| 2580 | "-UNDEBUG", |
| 2581 | "-DXNN_TEST_MODE=1", |
| 2582 | ], |
| 2583 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2584 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2585 | deps = [ |
| 2586 | ":tables", |
| 2587 | "@FP16", |
| 2588 | "@pthreadpool", |
| 2589 | ], |
| 2590 | ) |
| 2591 | |
| 2592 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2593 | name = "neonfma_ukernels", |
| 2594 | hdrs = INTERNAL_HDRS, |
| 2595 | aarch32_copts = [ |
| 2596 | "-marm", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2597 | "-march=armv7-a", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2598 | "-mfpu=neon-vfpv4", |
| 2599 | ], |
| 2600 | aarch32_srcs = NEONFMA_UKERNELS, |
| 2601 | aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS, |
Marat Dukhan | bc69ed6 | 2020-06-09 21:34:56 -0700 | [diff] [blame] | 2602 | apple_aarch32_copts = [ |
| 2603 | "-mcpu=swift", |
| 2604 | "-mtune=generic", |
| 2605 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2606 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2607 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2608 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2609 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2610 | "@FP16", |
| 2611 | "@pthreadpool", |
| 2612 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2613 | ) |
| 2614 | |
| 2615 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2616 | name = "neonfma_ukernels_test_mode", |
| 2617 | hdrs = INTERNAL_HDRS, |
| 2618 | aarch32_copts = [ |
| 2619 | "-marm", |
| 2620 | "-march=armv7-a", |
| 2621 | "-mfpu=neon-vfpv4", |
| 2622 | ], |
| 2623 | aarch32_srcs = NEONFMA_UKERNELS, |
| 2624 | aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS, |
Marat Dukhan | bc69ed6 | 2020-06-09 21:34:56 -0700 | [diff] [blame] | 2625 | apple_aarch32_copts = [ |
| 2626 | "-mcpu=swift", |
| 2627 | "-mtune=generic", |
| 2628 | ], |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2629 | copts = [ |
| 2630 | "-UNDEBUG", |
| 2631 | "-DXNN_TEST_MODE=1", |
| 2632 | ], |
| 2633 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2634 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2635 | deps = [ |
| 2636 | ":tables", |
| 2637 | "@FP16", |
| 2638 | "@pthreadpool", |
| 2639 | ], |
| 2640 | ) |
| 2641 | |
| 2642 | xnnpack_cc_library( |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2643 | name = "neonv8_ukernels", |
| 2644 | hdrs = INTERNAL_HDRS, |
| 2645 | aarch32_copts = [ |
| 2646 | "-marm", |
| 2647 | "-march=armv8-a", |
| 2648 | "-mfpu=neon-fp-armv8", |
| 2649 | ], |
| 2650 | aarch32_srcs = NEONV8_UKERNELS, |
| 2651 | aarch64_srcs = NEONV8_UKERNELS, |
Marat Dukhan | bc69ed6 | 2020-06-09 21:34:56 -0700 | [diff] [blame] | 2652 | apple_aarch32_copts = [ |
| 2653 | "-mcpu=cyclone", |
| 2654 | "-mtune=generic", |
| 2655 | ], |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2656 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2657 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2658 | deps = [ |
| 2659 | ":tables", |
| 2660 | "@FP16", |
| 2661 | "@pthreadpool", |
| 2662 | ], |
| 2663 | ) |
| 2664 | |
| 2665 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2666 | name = "neonv8_ukernels_test_mode", |
| 2667 | hdrs = INTERNAL_HDRS, |
| 2668 | aarch32_copts = [ |
| 2669 | "-marm", |
| 2670 | "-march=armv8-a", |
| 2671 | "-mfpu=neon-fp-armv8", |
| 2672 | ], |
| 2673 | aarch32_srcs = NEONV8_UKERNELS, |
| 2674 | aarch64_srcs = NEONV8_UKERNELS, |
Marat Dukhan | bc69ed6 | 2020-06-09 21:34:56 -0700 | [diff] [blame] | 2675 | apple_aarch32_copts = [ |
| 2676 | "-mcpu=cyclone", |
| 2677 | "-mtune=generic", |
| 2678 | ], |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2679 | copts = [ |
| 2680 | "-UNDEBUG", |
| 2681 | "-DXNN_TEST_MODE=1", |
| 2682 | ], |
| 2683 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2684 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2685 | deps = [ |
| 2686 | ":tables", |
| 2687 | "@FP16", |
| 2688 | "@pthreadpool", |
| 2689 | ], |
| 2690 | ) |
| 2691 | |
| 2692 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2693 | name = "neonfp16arith_ukernels", |
| 2694 | hdrs = INTERNAL_HDRS, |
| 2695 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
| 2696 | aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2697 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2698 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2699 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2700 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2701 | "@FP16", |
| 2702 | "@pthreadpool", |
| 2703 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2704 | ) |
| 2705 | |
| 2706 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2707 | name = "neonfp16arith_ukernels_test_mode", |
| 2708 | hdrs = INTERNAL_HDRS, |
| 2709 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
| 2710 | aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS, |
| 2711 | copts = [ |
| 2712 | "-UNDEBUG", |
| 2713 | "-DXNN_TEST_MODE=1", |
| 2714 | ], |
| 2715 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2716 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2717 | deps = [ |
| 2718 | ":tables", |
| 2719 | "@FP16", |
| 2720 | "@pthreadpool", |
| 2721 | ], |
| 2722 | ) |
| 2723 | |
| 2724 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2725 | name = "sse2_ukernels", |
| 2726 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2727 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2728 | gcc_x86_copts = ["-msse2"], |
| 2729 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2730 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2731 | x86_srcs = SSE_UKERNELS + SSE2_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2732 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2733 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2734 | "@FP16", |
| 2735 | "@pthreadpool", |
| 2736 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2737 | ) |
| 2738 | |
| 2739 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2740 | name = "sse2_ukernels_test_mode", |
| 2741 | hdrs = INTERNAL_HDRS, |
| 2742 | copts = [ |
| 2743 | "-UNDEBUG", |
| 2744 | "-DXNN_TEST_MODE=1", |
| 2745 | ], |
| 2746 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2747 | gcc_x86_copts = ["-msse2"], |
| 2748 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2749 | msvc_x86_32_copts = ["/arch:SSE2"], |
| 2750 | x86_srcs = SSE_UKERNELS + SSE2_UKERNELS, |
| 2751 | deps = [ |
| 2752 | ":tables", |
| 2753 | "@FP16", |
| 2754 | "@pthreadpool", |
| 2755 | ], |
| 2756 | ) |
| 2757 | |
| 2758 | xnnpack_cc_library( |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2759 | name = "ssse3_ukernels", |
| 2760 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2761 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2762 | gcc_x86_copts = ["-mssse3"], |
| 2763 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2764 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2765 | x86_srcs = SSSE3_UKERNELS, |
| 2766 | deps = [ |
| 2767 | ":tables", |
| 2768 | "@FP16", |
| 2769 | "@pthreadpool", |
| 2770 | ], |
| 2771 | ) |
| 2772 | |
| 2773 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2774 | name = "ssse3_ukernels_test_mode", |
| 2775 | hdrs = INTERNAL_HDRS, |
| 2776 | copts = [ |
| 2777 | "-UNDEBUG", |
| 2778 | "-DXNN_TEST_MODE=1", |
| 2779 | ], |
| 2780 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2781 | gcc_x86_copts = ["-mssse3"], |
| 2782 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2783 | msvc_x86_32_copts = ["/arch:SSE2"], |
| 2784 | x86_srcs = SSSE3_UKERNELS, |
| 2785 | deps = [ |
| 2786 | ":tables", |
| 2787 | "@FP16", |
| 2788 | "@pthreadpool", |
| 2789 | ], |
| 2790 | ) |
| 2791 | |
| 2792 | xnnpack_cc_library( |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2793 | name = "sse41_ukernels", |
| 2794 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2795 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2796 | gcc_x86_copts = ["-msse4.1"], |
| 2797 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2798 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2799 | x86_srcs = SSE41_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2800 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2801 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2802 | "@FP16", |
| 2803 | "@pthreadpool", |
| 2804 | ], |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2805 | ) |
| 2806 | |
| 2807 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2808 | name = "sse41_ukernels_test_mode", |
| 2809 | hdrs = INTERNAL_HDRS, |
| 2810 | copts = [ |
| 2811 | "-UNDEBUG", |
| 2812 | "-DXNN_TEST_MODE=1", |
| 2813 | ], |
| 2814 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2815 | gcc_x86_copts = ["-msse4.1"], |
| 2816 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2817 | msvc_x86_32_copts = ["/arch:SSE2"], |
| 2818 | x86_srcs = SSE41_UKERNELS, |
| 2819 | deps = [ |
| 2820 | ":tables", |
| 2821 | "@FP16", |
| 2822 | "@pthreadpool", |
| 2823 | ], |
| 2824 | ) |
| 2825 | |
| 2826 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2827 | name = "avx_ukernels", |
| 2828 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2829 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2830 | gcc_x86_copts = ["-mavx"], |
| 2831 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2832 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2833 | msvc_x86_64_copts = ["/arch:AVX"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2834 | x86_srcs = AVX_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2835 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2836 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2837 | "@FP16", |
| 2838 | "@pthreadpool", |
| 2839 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2840 | ) |
| 2841 | |
| 2842 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2843 | name = "avx_ukernels_test_mode", |
| 2844 | hdrs = INTERNAL_HDRS, |
| 2845 | copts = [ |
| 2846 | "-UNDEBUG", |
| 2847 | "-DXNN_TEST_MODE=1", |
| 2848 | ], |
| 2849 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2850 | gcc_x86_copts = ["-mavx"], |
| 2851 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2852 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2853 | msvc_x86_64_copts = ["/arch:AVX"], |
| 2854 | x86_srcs = AVX_UKERNELS, |
| 2855 | deps = [ |
| 2856 | ":tables", |
| 2857 | "@FP16", |
| 2858 | "@pthreadpool", |
| 2859 | ], |
| 2860 | ) |
| 2861 | |
| 2862 | xnnpack_cc_library( |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2863 | name = "fma3_ukernels", |
| 2864 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2865 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2866 | gcc_x86_copts = ["-mfma"], |
| 2867 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2868 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2869 | msvc_x86_64_copts = ["/arch:AVX"], |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2870 | x86_srcs = FMA3_UKERNELS, |
| 2871 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2872 | ":tables", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2873 | "@FP16", |
| 2874 | "@pthreadpool", |
| 2875 | ], |
| 2876 | ) |
| 2877 | |
| 2878 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2879 | name = "fma3_ukernels_test_mode", |
| 2880 | hdrs = INTERNAL_HDRS, |
| 2881 | copts = [ |
| 2882 | "-UNDEBUG", |
| 2883 | "-DXNN_TEST_MODE=1", |
| 2884 | ], |
| 2885 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2886 | gcc_x86_copts = ["-mfma"], |
| 2887 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2888 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2889 | msvc_x86_64_copts = ["/arch:AVX"], |
| 2890 | x86_srcs = FMA3_UKERNELS, |
| 2891 | deps = [ |
| 2892 | ":tables", |
| 2893 | "@FP16", |
| 2894 | "@pthreadpool", |
| 2895 | ], |
| 2896 | ) |
| 2897 | |
| 2898 | xnnpack_cc_library( |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2899 | name = "avx2_ukernels", |
| 2900 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2901 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2902 | gcc_x86_copts = [ |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2903 | "-mfma", |
| 2904 | "-mavx2", |
| 2905 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2906 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2907 | msvc_x86_32_copts = ["/arch:AVX2"], |
| 2908 | msvc_x86_64_copts = ["/arch:AVX2"], |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2909 | x86_srcs = AVX2_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2910 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2911 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2912 | "@FP16", |
| 2913 | "@pthreadpool", |
| 2914 | ], |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2915 | ) |
| 2916 | |
| 2917 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2918 | name = "avx2_ukernels_test_mode", |
| 2919 | hdrs = INTERNAL_HDRS, |
| 2920 | copts = [ |
| 2921 | "-UNDEBUG", |
| 2922 | "-DXNN_TEST_MODE=1", |
| 2923 | ], |
| 2924 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2925 | gcc_x86_copts = [ |
| 2926 | "-mfma", |
| 2927 | "-mavx2", |
| 2928 | ], |
| 2929 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2930 | msvc_x86_32_copts = ["/arch:AVX2"], |
| 2931 | msvc_x86_64_copts = ["/arch:AVX2"], |
| 2932 | x86_srcs = AVX2_UKERNELS, |
| 2933 | deps = [ |
| 2934 | ":tables", |
| 2935 | "@FP16", |
| 2936 | "@pthreadpool", |
| 2937 | ], |
| 2938 | ) |
| 2939 | |
| 2940 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2941 | name = "avx512f_ukernels", |
| 2942 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2943 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2944 | gcc_x86_copts = ["-mavx512f"], |
| 2945 | mingw_copts = ["-fno-asynchronous-unwind-tables"], |
| 2946 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2947 | msvc_x86_32_copts = ["/arch:AVX512"], |
| 2948 | msvc_x86_64_copts = ["/arch:AVX512"], |
| 2949 | msys_copts = ["-fno-asynchronous-unwind-tables"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2950 | x86_srcs = AVX512F_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2951 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2952 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2953 | "@FP16", |
| 2954 | "@pthreadpool", |
| 2955 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2956 | ) |
| 2957 | |
| 2958 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2959 | name = "avx512f_ukernels_test_mode", |
| 2960 | hdrs = INTERNAL_HDRS, |
| 2961 | copts = [ |
| 2962 | "-UNDEBUG", |
| 2963 | "-DXNN_TEST_MODE=1", |
| 2964 | ], |
| 2965 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2966 | gcc_x86_copts = ["-mavx512f"], |
| 2967 | mingw_copts = ["-fno-asynchronous-unwind-tables"], |
| 2968 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2969 | msvc_x86_32_copts = ["/arch:AVX512"], |
| 2970 | msvc_x86_64_copts = ["/arch:AVX512"], |
| 2971 | msys_copts = ["-fno-asynchronous-unwind-tables"], |
| 2972 | x86_srcs = AVX512F_UKERNELS, |
| 2973 | deps = [ |
| 2974 | ":tables", |
| 2975 | "@FP16", |
| 2976 | "@pthreadpool", |
| 2977 | ], |
| 2978 | ) |
| 2979 | |
| 2980 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2981 | name = "asm_ukernels", |
| 2982 | hdrs = ["src/xnnpack/assembly.h"], |
| 2983 | aarch32_srcs = AARCH32_ASM_UKERNELS, |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 2984 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2985 | aarch64_srcs = AARCH64_ASM_UKERNELS, |
| 2986 | ) |
| 2987 | |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 2988 | xnnpack_cc_library( |
| 2989 | name = "logging_utils", |
| 2990 | srcs = LOGGING_SRCS, |
| 2991 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
| 2992 | copts = LOGGING_COPTS + [ |
| 2993 | "-Isrc", |
| 2994 | "-Iinclude", |
| 2995 | ] + select({ |
| 2996 | ":debug_build": [], |
| 2997 | "//conditions:default": xnnpack_min_size_copts(), |
| 2998 | }), |
| 2999 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3000 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3001 | visibility = xnnpack_visibility(), |
| 3002 | deps = [ |
| 3003 | "@FP16", |
| 3004 | "@clog", |
| 3005 | "@pthreadpool", |
| 3006 | ], |
| 3007 | ) |
| 3008 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3009 | xnnpack_aggregate_library( |
| 3010 | name = "ukernels", |
| 3011 | aarch32_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3012 | ":neon_ukernels", |
| 3013 | ":neonfma_ukernels", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 3014 | ":neonv8_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3015 | ":asm_ukernels", |
| 3016 | ], |
| 3017 | aarch64_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3018 | ":neon_ukernels", |
| 3019 | ":neonfma_ukernels", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 3020 | ":neonv8_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3021 | ":neonfp16arith_ukernels", |
| 3022 | ":asm_ukernels", |
| 3023 | ], |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3024 | generic_deps = [ |
| 3025 | ":scalar_ukernels", |
| 3026 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 3027 | psimd_deps = [ |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 3028 | ":psimd_fastmath_ukernels", |
| 3029 | ":psimd_accmath_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3030 | ], |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3031 | wasm_deps = [ |
| 3032 | ":wasm_ukernels", |
| 3033 | ], |
| 3034 | wasmsimd_deps = [ |
| 3035 | ":wasm_ukernels", |
| 3036 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3037 | x86_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3038 | ":sse2_ukernels", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 3039 | ":ssse3_ukernels", |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 3040 | ":sse41_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3041 | ":avx_ukernels", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 3042 | ":fma3_ukernels", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 3043 | ":avx2_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3044 | ":avx512f_ukernels", |
| 3045 | ], |
| 3046 | ) |
| 3047 | |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3048 | xnnpack_aggregate_library( |
| 3049 | name = "ukernels_test_mode", |
| 3050 | aarch32_deps = [ |
| 3051 | ":neon_ukernels_test_mode", |
| 3052 | ":neonfma_ukernels_test_mode", |
| 3053 | ":neonv8_ukernels_test_mode", |
| 3054 | ":asm_ukernels", |
| 3055 | ], |
| 3056 | aarch64_deps = [ |
| 3057 | ":neon_ukernels_test_mode", |
| 3058 | ":neonfma_ukernels_test_mode", |
| 3059 | ":neonv8_ukernels_test_mode", |
| 3060 | ":neonfp16arith_ukernels_test_mode", |
| 3061 | ":asm_ukernels", |
| 3062 | ], |
| 3063 | generic_deps = [ |
| 3064 | ":scalar_ukernels_test_mode", |
| 3065 | ], |
| 3066 | psimd_deps = [ |
| 3067 | ":psimd_fastmath_ukernels_test_mode", |
| 3068 | ":psimd_accmath_ukernels_test_mode", |
| 3069 | ], |
| 3070 | wasm_deps = [ |
| 3071 | ":wasm_ukernels_test_mode", |
| 3072 | ], |
| 3073 | wasmsimd_deps = [ |
| 3074 | ":wasm_ukernels_test_mode", |
| 3075 | ], |
| 3076 | x86_deps = [ |
| 3077 | ":sse2_ukernels_test_mode", |
| 3078 | ":ssse3_ukernels_test_mode", |
| 3079 | ":sse41_ukernels_test_mode", |
| 3080 | ":avx_ukernels_test_mode", |
| 3081 | ":fma3_ukernels_test_mode", |
| 3082 | ":avx2_ukernels_test_mode", |
| 3083 | ":avx512f_ukernels_test_mode", |
| 3084 | ], |
| 3085 | ) |
| 3086 | |
Marat Dukhan | 86df384 | 2020-06-17 14:03:31 -0700 | [diff] [blame] | 3087 | # This target must be compatible with Android NDK r17 and compile with Clang 6. |
| 3088 | # It is similar to :ukernels target, but excludes microkernels which require |
| 3089 | # NEON FP16 arithmetics, NEON Dot Product, and newer intrinsics. |
Marat Dukhan | ae046f5 | 2020-06-15 13:16:14 -0700 | [diff] [blame] | 3090 | xnnpack_aggregate_library( |
Marat Dukhan | 86df384 | 2020-06-17 14:03:31 -0700 | [diff] [blame] | 3091 | name = "ukernels_max_compatibility", |
Marat Dukhan | ae046f5 | 2020-06-15 13:16:14 -0700 | [diff] [blame] | 3092 | aarch32_deps = [ |
| 3093 | ":neon_ukernels", |
| 3094 | ":neonfma_ukernels", |
| 3095 | ":neonv8_ukernels", |
| 3096 | ":asm_ukernels", |
| 3097 | ], |
| 3098 | aarch64_deps = [ |
| 3099 | ":neon_ukernels", |
| 3100 | ":neonfma_ukernels", |
| 3101 | ":neonv8_ukernels", |
| 3102 | ":asm_ukernels", |
| 3103 | ], |
| 3104 | generic_deps = [ |
| 3105 | ":scalar_ukernels", |
| 3106 | ], |
| 3107 | psimd_deps = [ |
| 3108 | ":psimd_fastmath_ukernels", |
| 3109 | ":psimd_accmath_ukernels", |
| 3110 | ], |
| 3111 | wasm_deps = [ |
| 3112 | ":wasm_ukernels", |
| 3113 | ], |
| 3114 | wasmsimd_deps = [ |
| 3115 | ":wasm_ukernels", |
| 3116 | ], |
| 3117 | x86_deps = [ |
| 3118 | ":sse2_ukernels", |
| 3119 | ":ssse3_ukernels", |
| 3120 | ":sse41_ukernels", |
| 3121 | ":avx_ukernels", |
| 3122 | ":fma3_ukernels", |
| 3123 | ":avx2_ukernels", |
| 3124 | ":avx512f_ukernels", |
| 3125 | ], |
| 3126 | ) |
| 3127 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3128 | xnnpack_cc_library( |
| 3129 | name = "im2col", |
| 3130 | srcs = ["src/im2col.c"], |
| 3131 | hdrs = [ |
| 3132 | "src/xnnpack/common.h", |
| 3133 | "src/xnnpack/im2col.h", |
| 3134 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3135 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3136 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3137 | ) |
| 3138 | |
| 3139 | xnnpack_cc_library( |
| 3140 | name = "indirection", |
| 3141 | srcs = ["src/indirection.c"], |
| 3142 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3143 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3144 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3145 | deps = [ |
| 3146 | "@FP16", |
| 3147 | "@FXdiv", |
| 3148 | "@pthreadpool", |
| 3149 | ], |
| 3150 | ) |
| 3151 | |
| 3152 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3153 | name = "indirection_test_mode", |
| 3154 | srcs = ["src/indirection.c"], |
| 3155 | hdrs = INTERNAL_HDRS, |
| 3156 | copts = [ |
| 3157 | "-UNDEBUG", |
| 3158 | "-DXNN_TEST_MODE=1", |
| 3159 | ], |
| 3160 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3161 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3162 | deps = [ |
| 3163 | "@FP16", |
| 3164 | "@FXdiv", |
| 3165 | "@pthreadpool", |
| 3166 | ], |
| 3167 | ) |
| 3168 | |
| 3169 | xnnpack_cc_library( |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3170 | name = "packing", |
| 3171 | srcs = ["src/packing.c"], |
| 3172 | hdrs = INTERNAL_HDRS, |
| 3173 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3174 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3175 | deps = [ |
| 3176 | "@FP16", |
| 3177 | "@FXdiv", |
| 3178 | "@pthreadpool", |
| 3179 | ], |
| 3180 | ) |
| 3181 | |
| 3182 | xnnpack_cc_library( |
| 3183 | name = "packing_test_mode", |
| 3184 | srcs = ["src/packing.c"], |
| 3185 | hdrs = INTERNAL_HDRS, |
| 3186 | copts = [ |
| 3187 | "-UNDEBUG", |
| 3188 | "-DXNN_TEST_MODE=1", |
| 3189 | ], |
| 3190 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3191 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3192 | deps = [ |
| 3193 | "@FP16", |
| 3194 | "@FXdiv", |
| 3195 | "@pthreadpool", |
| 3196 | ], |
| 3197 | ) |
| 3198 | |
| 3199 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3200 | name = "operator_run", |
| 3201 | srcs = ["src/operator-run.c"], |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 3202 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3203 | copts = LOGGING_COPTS + select({ |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 3204 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3205 | "//conditions:default": [], |
| 3206 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3207 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3208 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3209 | deps = [ |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3210 | ":logging_utils", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3211 | "@FP16", |
| 3212 | "@FXdiv", |
| 3213 | "@clog", |
| 3214 | "@pthreadpool", |
| 3215 | ], |
| 3216 | ) |
| 3217 | |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 3218 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3219 | name = "operator_run_test_mode", |
| 3220 | srcs = ["src/operator-run.c"], |
| 3221 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
| 3222 | copts = LOGGING_COPTS + [ |
| 3223 | "-UNDEBUG", |
| 3224 | "-DXNN_TEST_MODE=1", |
| 3225 | ] + select({ |
| 3226 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3227 | "//conditions:default": [], |
| 3228 | }), |
| 3229 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3230 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3231 | deps = [ |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3232 | ":logging_utils", |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3233 | "@FP16", |
| 3234 | "@FXdiv", |
| 3235 | "@clog", |
| 3236 | "@pthreadpool", |
| 3237 | ], |
| 3238 | ) |
| 3239 | |
| 3240 | xnnpack_cc_library( |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 3241 | name = "memory_planner", |
| 3242 | srcs = ["src/memory-planner.c"], |
| 3243 | hdrs = INTERNAL_HDRS, |
| 3244 | defines = select({ |
| 3245 | ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"], |
| 3246 | ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"], |
| 3247 | "//conditions:default": ["XNN_ENABLE_MEMOPT=1"], |
| 3248 | }), |
| 3249 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3250 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3251 | deps = [ |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3252 | ":logging_utils", |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 3253 | "@pthreadpool", |
| 3254 | ], |
| 3255 | ) |
| 3256 | |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3257 | xnnpack_cc_library( |
| 3258 | name = "memory_planner_test_mode", |
| 3259 | srcs = ["src/memory-planner.c"], |
| 3260 | hdrs = INTERNAL_HDRS, |
| 3261 | copts = [ |
| 3262 | "-UNDEBUG", |
| 3263 | "-DXNN_TEST_MODE=1", |
| 3264 | ], |
| 3265 | defines = select({ |
| 3266 | ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"], |
| 3267 | ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"], |
| 3268 | "//conditions:default": ["XNN_ENABLE_MEMOPT=1"], |
| 3269 | }), |
| 3270 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3271 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3272 | deps = [ |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3273 | ":logging_utils", |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3274 | "@pthreadpool", |
| 3275 | ], |
| 3276 | ) |
| 3277 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3278 | cc_library( |
| 3279 | name = "enable_assembly", |
| 3280 | defines = select({ |
| 3281 | ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"], |
| 3282 | ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"], |
Frank Barchard | 810171d | 2019-10-10 10:34:51 -0700 | [diff] [blame] | 3283 | "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3284 | }), |
| 3285 | ) |
| 3286 | |
Marat Dukhan | 9de90e0 | 2020-06-18 16:04:12 -0700 | [diff] [blame] | 3287 | cc_library( |
| 3288 | name = "enable_sparse", |
| 3289 | defines = select({ |
| 3290 | ":xnn_enable_sparse_explicit_true": ["XNN_ENABLE_SPARSE=1"], |
| 3291 | ":xnn_enable_sparse_explicit_false": ["XNN_ENABLE_SPARSE=0"], |
Marat Dukhan | 8b283aa | 2020-06-18 16:48:57 -0700 | [diff] [blame] | 3292 | "//conditions:default": ["XNN_ENABLE_SPARSE=0"], |
Marat Dukhan | 9de90e0 | 2020-06-18 16:04:12 -0700 | [diff] [blame] | 3293 | }), |
| 3294 | ) |
| 3295 | |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 3296 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3297 | name = "operators", |
| 3298 | srcs = OPERATOR_SRCS + [ |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 3299 | "src/memory.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3300 | "src/operator-delete.c", |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 3301 | ], |
| 3302 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3303 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3304 | "-Isrc", |
| 3305 | "-Iinclude", |
| 3306 | ] + select({ |
| 3307 | ":debug_build": [], |
| 3308 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 3309 | }) + select({ |
| 3310 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3311 | "//conditions:default": [], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3312 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3313 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3314 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3315 | deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3316 | ":indirection", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3317 | ":logging_utils", |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3318 | ":packing", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3319 | "@FP16", |
| 3320 | "@FXdiv", |
| 3321 | "@clog", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3322 | "@pthreadpool", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3323 | ], |
| 3324 | ) |
| 3325 | |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3326 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3327 | name = "operators_test_mode", |
| 3328 | srcs = OPERATOR_SRCS + [ |
| 3329 | "src/memory.c", |
| 3330 | "src/operator-delete.c", |
| 3331 | ], |
| 3332 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
| 3333 | copts = LOGGING_COPTS + [ |
| 3334 | "-Isrc", |
| 3335 | "-Iinclude", |
| 3336 | "-UNDEBUG", |
| 3337 | "-DXNN_TEST_MODE=1", |
| 3338 | ] + select({ |
| 3339 | ":debug_build": [], |
| 3340 | "//conditions:default": xnnpack_min_size_copts(), |
| 3341 | }) + select({ |
| 3342 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3343 | "//conditions:default": [], |
| 3344 | }), |
| 3345 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3346 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3347 | deps = [ |
| 3348 | ":indirection_test_mode", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3349 | ":logging_utils", |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3350 | ":packing_test_mode", |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3351 | "@FP16", |
| 3352 | "@FXdiv", |
| 3353 | "@clog", |
| 3354 | "@pthreadpool", |
| 3355 | ], |
| 3356 | ) |
| 3357 | |
| 3358 | xnnpack_cc_library( |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3359 | name = "XNNPACK", |
| 3360 | srcs = [ |
| 3361 | "src/init.c", |
Marat Dukhan | ccfdbd1 | 2020-02-03 14:27:45 -0800 | [diff] [blame] | 3362 | "src/runtime.c", |
| 3363 | "src/subgraph.c", |
| 3364 | "src/tensor.c", |
Marat Dukhan | f03da0d | 2020-06-10 16:00:20 -0700 | [diff] [blame] | 3365 | ] + SUBGRAPH_SRCS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3366 | hdrs = ["include/xnnpack.h"], |
| 3367 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3368 | "-Isrc", |
| 3369 | "-Iinclude", |
| 3370 | ] + select({ |
| 3371 | ":debug_build": [], |
| 3372 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 3373 | }) + select({ |
| 3374 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3375 | "//conditions:default": [], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3376 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3377 | gcc_copts = xnnpack_gcc_std_copts(), |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3378 | includes = ["include"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3379 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3380 | visibility = xnnpack_visibility(), |
| 3381 | deps = [ |
| 3382 | ":enable_assembly", |
Marat Dukhan | 9de90e0 | 2020-06-18 16:04:12 -0700 | [diff] [blame] | 3383 | ":enable_sparse", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3384 | ":logging_utils", |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 3385 | ":memory_planner", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3386 | ":operator_run", |
| 3387 | ":operators", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3388 | ":ukernels", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3389 | "@clog", |
Marat Dukhan | ab2946c | 2020-05-21 20:04:13 -0700 | [diff] [blame] | 3390 | "@FP16", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3391 | "@pthreadpool", |
Marat Dukhan | d343c22 | 2019-10-07 09:22:14 -0700 | [diff] [blame] | 3392 | ] + select({ |
| 3393 | ":emscripten": [], |
| 3394 | "//conditions:default": ["@cpuinfo"], |
| 3395 | }), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3396 | ) |
| 3397 | |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3398 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3399 | name = "XNNPACK_test_mode", |
| 3400 | srcs = [ |
| 3401 | "src/init.c", |
| 3402 | "src/runtime.c", |
| 3403 | "src/subgraph.c", |
| 3404 | "src/tensor.c", |
Marat Dukhan | f03da0d | 2020-06-10 16:00:20 -0700 | [diff] [blame] | 3405 | ] + SUBGRAPH_SRCS, |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3406 | hdrs = ["include/xnnpack.h"], |
| 3407 | copts = LOGGING_COPTS + [ |
| 3408 | "-Isrc", |
| 3409 | "-Iinclude", |
| 3410 | "-UNDEBUG", |
| 3411 | "-DXNN_TEST_MODE=1", |
| 3412 | ] + select({ |
| 3413 | ":debug_build": [], |
| 3414 | "//conditions:default": xnnpack_min_size_copts(), |
| 3415 | }) + select({ |
| 3416 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3417 | "//conditions:default": [], |
| 3418 | }), |
| 3419 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3420 | includes = ["include"], |
| 3421 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3422 | visibility = xnnpack_visibility(), |
| 3423 | deps = [ |
| 3424 | ":enable_assembly", |
Marat Dukhan | 9de90e0 | 2020-06-18 16:04:12 -0700 | [diff] [blame] | 3425 | ":enable_sparse", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3426 | ":logging_utils", |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3427 | ":memory_planner_test_mode", |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3428 | ":operator_run_test_mode", |
| 3429 | ":operators_test_mode", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3430 | ":ukernels_test_mode", |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 3431 | "@clog", |
| 3432 | "@FP16", |
| 3433 | "@pthreadpool", |
| 3434 | ] + select({ |
| 3435 | ":emscripten": [], |
| 3436 | "//conditions:default": ["@cpuinfo"], |
| 3437 | }), |
| 3438 | ) |
| 3439 | |
| 3440 | xnnpack_cc_library( |
Marat Dukhan | ae046f5 | 2020-06-15 13:16:14 -0700 | [diff] [blame] | 3441 | name = "xnnpack_f32", |
| 3442 | srcs = [ |
| 3443 | "src/init.c", |
| 3444 | "src/runtime.c", |
| 3445 | "src/subgraph.c", |
| 3446 | "src/tensor.c", |
| 3447 | ] + SUBGRAPH_SRCS, |
| 3448 | hdrs = ["include/xnnpack.h"], |
| 3449 | copts = LOGGING_COPTS + [ |
| 3450 | "-Isrc", |
| 3451 | "-Iinclude", |
| 3452 | ] + select({ |
| 3453 | ":debug_build": [], |
| 3454 | "//conditions:default": xnnpack_min_size_copts(), |
| 3455 | }) + select({ |
| 3456 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3457 | "//conditions:default": [], |
| 3458 | }), |
| 3459 | defines = [ |
| 3460 | "XNN_NO_Q8_OPERATORS", |
| 3461 | "XNN_NO_U8_OPERATORS", |
| 3462 | "XNN_NO_X8_OPERATORS", |
| 3463 | "XNN_NO_F16_OPERATORS", |
| 3464 | "XNN_NO_X16_OPERATORS", |
| 3465 | ], |
| 3466 | gcc_copts = xnnpack_gcc_std_copts(), |
| 3467 | includes = ["include"], |
| 3468 | msvc_copts = xnnpack_msvc_std_copts(), |
| 3469 | visibility = xnnpack_visibility(), |
| 3470 | deps = [ |
| 3471 | ":enable_assembly", |
Marat Dukhan | 9de90e0 | 2020-06-18 16:04:12 -0700 | [diff] [blame] | 3472 | ":enable_sparse", |
Marat Dukhan | ae046f5 | 2020-06-15 13:16:14 -0700 | [diff] [blame] | 3473 | ":logging_utils", |
| 3474 | ":memory_planner", |
| 3475 | ":operator_run", |
| 3476 | ":operators", |
Marat Dukhan | 86df384 | 2020-06-17 14:03:31 -0700 | [diff] [blame] | 3477 | ":ukernels_max_compatibility", |
Marat Dukhan | ae046f5 | 2020-06-15 13:16:14 -0700 | [diff] [blame] | 3478 | "@clog", |
| 3479 | "@FP16", |
| 3480 | "@pthreadpool", |
| 3481 | ] + select({ |
| 3482 | ":emscripten": [], |
| 3483 | "//conditions:default": ["@cpuinfo"], |
| 3484 | }), |
| 3485 | ) |
| 3486 | |
| 3487 | xnnpack_cc_library( |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3488 | name = "xnnpack_operators_nhwc_f32", |
| 3489 | srcs = [ |
| 3490 | "src/init.c", |
| 3491 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3492 | hdrs = ["include/xnnpack.h"], |
| 3493 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3494 | "-Isrc", |
| 3495 | "-Iinclude", |
| 3496 | ] + select({ |
| 3497 | ":debug_build": [], |
| 3498 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 3499 | }) + select({ |
| 3500 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 3501 | "//conditions:default": [], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3502 | }), |
| 3503 | defines = [ |
| 3504 | "XNN_NO_Q8_OPERATORS", |
| 3505 | "XNN_NO_U8_OPERATORS", |
| 3506 | "XNN_NO_X8_OPERATORS", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3507 | "XNN_NO_NCHW_OPERATORS", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3508 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3509 | gcc_copts = xnnpack_gcc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3510 | includes = ["include"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3511 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3512 | visibility = xnnpack_visibility(), |
| 3513 | deps = [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3514 | ":enable_assembly", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3515 | ":logging_utils", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3516 | ":operator_run", |
| 3517 | ":operators", |
Marat Dukhan | 3b59de2 | 2020-06-03 20:15:19 -0700 | [diff] [blame] | 3518 | ":ukernels", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3519 | "@clog", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3520 | "@pthreadpool", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3521 | ] + select({ |
| 3522 | ":emscripten": [], |
| 3523 | "//conditions:default": ["@cpuinfo"], |
| 3524 | }), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3525 | ) |
| 3526 | |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 3527 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3528 | name = "bench_utils", |
| 3529 | srcs = ["bench/utils.cc"], |
| 3530 | hdrs = ["bench/utils.h"], |
Marat Dukhan | bad48fe | 2019-11-04 10:35:22 -0800 | [diff] [blame] | 3531 | deps = [ |
| 3532 | "@com_google_benchmark//:benchmark", |
| 3533 | "@cpuinfo", |
| 3534 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3535 | ) |
| 3536 | |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 3537 | ######################### Benchmarks for micro-kernels ######################### |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3538 | |
| 3539 | xnnpack_benchmark( |
| 3540 | name = "q8_gemm_bench", |
| 3541 | srcs = [ |
| 3542 | "bench/gemm.h", |
| 3543 | "bench/q8-gemm.cc", |
| 3544 | "src/xnnpack/AlignedAllocator.h", |
| 3545 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3546 | copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(), |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3547 | deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3548 | ) |
| 3549 | |
| 3550 | xnnpack_benchmark( |
Frank Barchard | 40d20fe | 2020-05-05 00:37:45 -0700 | [diff] [blame] | 3551 | name = "f16_igemm_bench", |
| 3552 | srcs = [ |
| 3553 | "bench/f16-igemm.cc", |
| 3554 | "bench/conv.h", |
| 3555 | "bench/google/conv.h", |
| 3556 | "src/xnnpack/AlignedAllocator.h", |
| 3557 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3558 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3559 | ":indirection", |
| 3560 | ":packing", |
| 3561 | ], |
Frank Barchard | 40d20fe | 2020-05-05 00:37:45 -0700 | [diff] [blame] | 3562 | ) |
| 3563 | |
| 3564 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3565 | name = "f16_gemm_bench", |
| 3566 | srcs = [ |
| 3567 | "bench/f16-gemm.cc", |
| 3568 | "bench/gemm.h", |
| 3569 | "src/xnnpack/AlignedAllocator.h", |
| 3570 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3571 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3572 | ":packing", |
| 3573 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3574 | ) |
| 3575 | |
| 3576 | xnnpack_benchmark( |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 3577 | name = "f16_spmm_bench", |
| 3578 | srcs = [ |
| 3579 | "bench/f16-spmm.cc", |
| 3580 | "bench/gemm.h", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 3581 | "src/xnnpack/AlignedAllocator.h", |
| 3582 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 3583 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3584 | ) |
| 3585 | |
| 3586 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3587 | name = "f32_igemm_bench", |
| 3588 | srcs = [ |
| 3589 | "bench/f32-igemm.cc", |
| 3590 | "bench/conv.h", |
| 3591 | "src/xnnpack/AlignedAllocator.h", |
| 3592 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3593 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3594 | ":indirection", |
| 3595 | ":packing", |
| 3596 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3597 | ) |
| 3598 | |
| 3599 | xnnpack_benchmark( |
| 3600 | name = "f32_conv_hwc_bench", |
| 3601 | srcs = [ |
| 3602 | "bench/f32-conv-hwc.cc", |
| 3603 | "bench/dconv.h", |
| 3604 | "src/xnnpack/AlignedAllocator.h", |
| 3605 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3606 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3607 | ":packing", |
| 3608 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3609 | ) |
| 3610 | |
| 3611 | xnnpack_benchmark( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3612 | name = "f32_conv_hwc2chw_bench", |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 3613 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3614 | "bench/f32-conv-hwc2chw.cc", |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 3615 | "bench/dconv.h", |
| 3616 | "src/xnnpack/AlignedAllocator.h", |
| 3617 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3618 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3619 | ":packing", |
| 3620 | ], |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 3621 | ) |
| 3622 | |
| 3623 | xnnpack_benchmark( |
Frank Barchard | 5a599a6 | 2020-06-04 20:12:44 -0700 | [diff] [blame] | 3624 | name = "f16_dwconv_bench", |
| 3625 | srcs = [ |
| 3626 | "bench/f16-dwconv.cc", |
| 3627 | "bench/dwconv.h", |
| 3628 | "bench/google/dwconv.h", |
| 3629 | "src/xnnpack/AlignedAllocator.h", |
| 3630 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3631 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3632 | ":indirection", |
| 3633 | ":packing", |
| 3634 | ], |
Frank Barchard | 5a599a6 | 2020-06-04 20:12:44 -0700 | [diff] [blame] | 3635 | ) |
| 3636 | |
| 3637 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3638 | name = "f32_dwconv_bench", |
| 3639 | srcs = [ |
| 3640 | "bench/f32-dwconv.cc", |
| 3641 | "bench/dwconv.h", |
| 3642 | "src/xnnpack/AlignedAllocator.h", |
| 3643 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3644 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3645 | ":indirection", |
| 3646 | ":packing", |
| 3647 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3648 | ) |
| 3649 | |
| 3650 | xnnpack_benchmark( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3651 | name = "f32_dwconv_chw_bench", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3652 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3653 | "bench/f32-dwconv-chw.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3654 | "bench/dwconv.h", |
| 3655 | "src/xnnpack/AlignedAllocator.h", |
| 3656 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3657 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3658 | ":indirection", |
| 3659 | ":packing", |
| 3660 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3661 | ) |
| 3662 | |
| 3663 | xnnpack_benchmark( |
| 3664 | name = "f32_gemm_bench", |
| 3665 | srcs = [ |
| 3666 | "bench/f32-gemm.cc", |
| 3667 | "bench/gemm.h", |
| 3668 | "src/xnnpack/AlignedAllocator.h", |
| 3669 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3670 | copts = xnnpack_optional_ruy_copts(), |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3671 | deps = MICROKERNEL_BENCHMARK_DEPS + [":packing"] + xnnpack_optional_ruy_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3672 | ) |
| 3673 | |
| 3674 | xnnpack_benchmark( |
Marat Dukhan | a11ca34 | 2020-06-25 23:45:07 -0700 | [diff] [blame] | 3675 | name = "f32_hswish_bench", |
| 3676 | srcs = [ |
| 3677 | "bench/f32-hswish.cc", |
| 3678 | "src/xnnpack/AlignedAllocator.h", |
| 3679 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3680 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3681 | ) |
| 3682 | |
| 3683 | xnnpack_benchmark( |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 3684 | name = "f32_raddexpminusmax_bench", |
| 3685 | srcs = [ |
| 3686 | "bench/f32-raddexpminusmax.cc", |
| 3687 | "src/xnnpack/AlignedAllocator.h", |
| 3688 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3689 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3690 | ) |
| 3691 | |
| 3692 | xnnpack_benchmark( |
| 3693 | name = "f32_raddextexp_bench", |
| 3694 | srcs = [ |
| 3695 | "bench/f32-raddextexp.cc", |
| 3696 | "src/xnnpack/AlignedAllocator.h", |
| 3697 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3698 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3699 | ) |
| 3700 | |
| 3701 | xnnpack_benchmark( |
| 3702 | name = "f32_raddstoreexpminusmax_bench", |
| 3703 | srcs = [ |
| 3704 | "bench/f32-raddstoreexpminusmax.cc", |
| 3705 | "src/xnnpack/AlignedAllocator.h", |
| 3706 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3707 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3708 | ) |
| 3709 | |
| 3710 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3711 | name = "f32_rmax_bench", |
| 3712 | srcs = [ |
| 3713 | "bench/f32-rmax.cc", |
| 3714 | "src/xnnpack/AlignedAllocator.h", |
| 3715 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3716 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3717 | ) |
| 3718 | |
| 3719 | xnnpack_benchmark( |
Marat Dukhan | 14bec50 | 2019-11-18 11:35:31 -0800 | [diff] [blame] | 3720 | name = "f32_sigmoid_bench", |
| 3721 | srcs = [ |
| 3722 | "bench/f32-sigmoid.cc", |
| 3723 | "src/xnnpack/AlignedAllocator.h", |
| 3724 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 14bec50 | 2019-11-18 11:35:31 -0800 | [diff] [blame] | 3725 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3726 | ) |
| 3727 | |
| 3728 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3729 | name = "f32_spmm_bench", |
| 3730 | srcs = [ |
| 3731 | "bench/f32-spmm.cc", |
| 3732 | "bench/gemm.h", |
| 3733 | "src/xnnpack/AlignedAllocator.h", |
| 3734 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3735 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3736 | ) |
| 3737 | |
| 3738 | xnnpack_benchmark( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 3739 | name = "f32_softmax_bench", |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 3740 | srcs = [ |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 3741 | "bench/f32-softmax.cc", |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 3742 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3743 | copts = xnnpack_optional_dnnl_copts(), |
Marat Dukhan | 8d3c693 | 2020-03-06 20:27:27 -0800 | [diff] [blame] | 3744 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(), |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 3745 | ) |
| 3746 | |
| 3747 | xnnpack_benchmark( |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 3748 | name = "f32_vscaleexpminusmax_bench", |
| 3749 | srcs = [ |
| 3750 | "bench/f32-vscaleexpminusmax.cc", |
| 3751 | "src/xnnpack/AlignedAllocator.h", |
| 3752 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3753 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3754 | ) |
| 3755 | |
| 3756 | xnnpack_benchmark( |
| 3757 | name = "f32_vscaleextexp_bench", |
| 3758 | srcs = [ |
| 3759 | "bench/f32-vscaleextexp.cc", |
| 3760 | "src/xnnpack/AlignedAllocator.h", |
| 3761 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3762 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3763 | ) |
| 3764 | |
| 3765 | xnnpack_benchmark( |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 3766 | name = "f32_vsqrt_bench", |
| 3767 | srcs = [ |
| 3768 | "bench/f32-vsqrt.cc", |
| 3769 | "src/xnnpack/AlignedAllocator.h", |
| 3770 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3771 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3772 | ) |
| 3773 | |
| 3774 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3775 | name = "f32_im2col_gemm_bench", |
| 3776 | srcs = [ |
| 3777 | "bench/f32-im2col-gemm.cc", |
| 3778 | "bench/conv.h", |
| 3779 | "src/xnnpack/AlignedAllocator.h", |
| 3780 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 3781 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3782 | ":im2col", |
| 3783 | ":packing", |
| 3784 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3785 | ) |
| 3786 | |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 3787 | xnnpack_benchmark( |
| 3788 | name = "requantization_bench", |
| 3789 | srcs = [ |
| 3790 | "bench/requantization.cc", |
| 3791 | "src/xnnpack/requantization-stubs.h", |
| 3792 | "src/xnnpack/AlignedAllocator.h", |
| 3793 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3794 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3795 | ) |
| 3796 | |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 3797 | xnnpack_benchmark( |
| 3798 | name = "rounding_bench", |
| 3799 | srcs = [ |
| 3800 | "bench/rounding.cc", |
| 3801 | "src/xnnpack/math-stubs.h", |
| 3802 | "src/xnnpack/AlignedAllocator.h", |
| 3803 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 3804 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 3805 | ) |
| 3806 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3807 | ########################### Benchmarks for operators ########################### |
| 3808 | |
| 3809 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3810 | name = "average_pooling_bench", |
| 3811 | srcs = ["bench/average-pooling.cc"], |
Marat Dukhan | 7a16d8b | 2020-03-11 04:22:44 -0700 | [diff] [blame] | 3812 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3813 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3814 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3815 | ) |
| 3816 | |
| 3817 | xnnpack_benchmark( |
Marat Dukhan | 8772714 | 2020-06-24 15:24:10 -0700 | [diff] [blame] | 3818 | name = "bankers_rounding_bench", |
| 3819 | srcs = ["bench/bankers-rounding.cc"], |
| 3820 | copts = xnnpack_optional_tflite_copts(), |
| 3821 | tags = ["nowin32"], |
| 3822 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
| 3823 | ) |
| 3824 | |
| 3825 | xnnpack_benchmark( |
| 3826 | name = "ceiling_bench", |
| 3827 | srcs = ["bench/ceiling.cc"], |
| 3828 | copts = xnnpack_optional_tflite_copts(), |
| 3829 | tags = ["nowin32"], |
| 3830 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
| 3831 | ) |
| 3832 | |
| 3833 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3834 | name = "channel_shuffle_bench", |
| 3835 | srcs = ["bench/channel-shuffle.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3836 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3837 | ) |
| 3838 | |
| 3839 | xnnpack_benchmark( |
| 3840 | name = "convolution_bench", |
| 3841 | srcs = ["bench/convolution.cc"], |
| 3842 | copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3843 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3844 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3845 | ) |
| 3846 | |
| 3847 | xnnpack_benchmark( |
| 3848 | name = "deconvolution_bench", |
| 3849 | srcs = ["bench/deconvolution.cc"], |
| 3850 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3851 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3852 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3853 | ) |
| 3854 | |
| 3855 | xnnpack_benchmark( |
Marat Dukhan | 8772714 | 2020-06-24 15:24:10 -0700 | [diff] [blame] | 3856 | name = "floor_bench", |
| 3857 | srcs = ["bench/floor.cc"], |
| 3858 | copts = xnnpack_optional_tflite_copts(), |
| 3859 | tags = ["nowin32"], |
| 3860 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
| 3861 | ) |
| 3862 | |
| 3863 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3864 | name = "global_average_pooling_bench", |
| 3865 | srcs = ["bench/global-average-pooling.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3866 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3867 | ) |
| 3868 | |
| 3869 | xnnpack_benchmark( |
Marat Dukhan | ad35260 | 2020-06-25 21:50:54 -0700 | [diff] [blame] | 3870 | name = "hardswish_bench", |
| 3871 | srcs = ["bench/hardswish.cc"], |
| 3872 | copts = xnnpack_optional_tflite_copts(), |
| 3873 | tags = ["nowin32"], |
| 3874 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
| 3875 | ) |
| 3876 | |
| 3877 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3878 | name = "max_pooling_bench", |
| 3879 | srcs = ["bench/max-pooling.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3880 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3881 | ) |
| 3882 | |
| 3883 | xnnpack_benchmark( |
| 3884 | name = "sigmoid_bench", |
| 3885 | srcs = ["bench/sigmoid.cc"], |
Marat Dukhan | c3b9e86 | 2019-11-17 13:18:54 -0800 | [diff] [blame] | 3886 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | ca2ba70 | 2020-04-24 01:31:47 -0700 | [diff] [blame] | 3887 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3888 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3889 | ) |
| 3890 | |
| 3891 | xnnpack_benchmark( |
Marat Dukhan | 95b2243 | 2019-10-30 16:30:14 -0700 | [diff] [blame] | 3892 | name = "prelu_bench", |
| 3893 | srcs = ["bench/prelu.cc"], |
| 3894 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3895 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3896 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 95b2243 | 2019-10-30 16:30:14 -0700 | [diff] [blame] | 3897 | ) |
| 3898 | |
| 3899 | xnnpack_benchmark( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 3900 | name = "softmax_bench", |
| 3901 | srcs = ["bench/softmax.cc"], |
Marat Dukhan | 9c0db96 | 2020-01-28 12:30:14 -0800 | [diff] [blame] | 3902 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | ca2ba70 | 2020-04-24 01:31:47 -0700 | [diff] [blame] | 3903 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3904 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3905 | ) |
| 3906 | |
Marat Dukhan | 8772714 | 2020-06-24 15:24:10 -0700 | [diff] [blame] | 3907 | xnnpack_benchmark( |
Marat Dukhan | 6804bbd | 2020-06-30 19:26:11 -0700 | [diff] [blame] | 3908 | name = "square_root_bench", |
| 3909 | srcs = ["bench/square-root.cc"], |
| 3910 | copts = xnnpack_optional_tflite_copts(), |
| 3911 | tags = ["nowin32"], |
| 3912 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
| 3913 | ) |
| 3914 | |
| 3915 | xnnpack_benchmark( |
Marat Dukhan | 8772714 | 2020-06-24 15:24:10 -0700 | [diff] [blame] | 3916 | name = "truncation_bench", |
| 3917 | srcs = ["bench/truncation.cc"], |
| 3918 | deps = OPERATOR_BENCHMARK_DEPS, |
| 3919 | ) |
| 3920 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3921 | ############################# End-to-end benchmarks ############################ |
| 3922 | |
| 3923 | cc_library( |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 3924 | name = "fp32_mobilenet_v1", |
| 3925 | srcs = ["models/fp32-mobilenet-v1.cc"], |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3926 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3927 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3928 | linkstatic = True, |
| 3929 | deps = [ |
| 3930 | ":XNNPACK", |
| 3931 | "@pthreadpool", |
| 3932 | ], |
| 3933 | ) |
| 3934 | |
| 3935 | cc_library( |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 3936 | name = "fp16_mobilenet_v1", |
| 3937 | srcs = ["models/fp16-mobilenet-v1.cc"], |
| 3938 | hdrs = ["models/models.h"], |
| 3939 | copts = xnnpack_std_cxxopts(), |
| 3940 | linkstatic = True, |
| 3941 | deps = [ |
| 3942 | ":XNNPACK", |
| 3943 | "@FP16", |
| 3944 | "@pthreadpool", |
| 3945 | ], |
| 3946 | ) |
| 3947 | |
| 3948 | cc_library( |
| 3949 | name = "fp32_mobilenet_v2", |
| 3950 | srcs = ["models/fp32-mobilenet-v2.cc"], |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3951 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3952 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3953 | linkstatic = True, |
| 3954 | deps = [ |
| 3955 | ":XNNPACK", |
| 3956 | "@pthreadpool", |
| 3957 | ], |
| 3958 | ) |
| 3959 | |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3960 | cc_library( |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 3961 | name = "fp16_mobilenet_v2", |
| 3962 | srcs = ["models/fp16-mobilenet-v2.cc"], |
| 3963 | hdrs = ["models/models.h"], |
| 3964 | copts = xnnpack_std_cxxopts(), |
| 3965 | linkstatic = True, |
| 3966 | deps = [ |
| 3967 | ":XNNPACK", |
| 3968 | "@FP16", |
| 3969 | "@pthreadpool", |
| 3970 | ], |
| 3971 | ) |
| 3972 | |
| 3973 | cc_library( |
| 3974 | name = "fp32_mobilenet_v3_large", |
| 3975 | srcs = ["models/fp32-mobilenet-v3-large.cc"], |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3976 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3977 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3978 | linkstatic = True, |
| 3979 | deps = [ |
| 3980 | ":XNNPACK", |
| 3981 | "@pthreadpool", |
| 3982 | ], |
| 3983 | ) |
| 3984 | |
| 3985 | cc_library( |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 3986 | name = "fp32_mobilenet_v3_small", |
| 3987 | srcs = ["models/fp32-mobilenet-v3-small.cc"], |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3988 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3989 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3990 | linkstatic = True, |
| 3991 | deps = [ |
| 3992 | ":XNNPACK", |
| 3993 | "@pthreadpool", |
| 3994 | ], |
| 3995 | ) |
| 3996 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3997 | xnnpack_benchmark( |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 3998 | name = "f32_dwconv_e2e_bench", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3999 | srcs = [ |
| 4000 | "bench/f32-dwconv-e2e.cc", |
| 4001 | "bench/end2end.h", |
| 4002 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 4003 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 4004 | ":XNNPACK", |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 4005 | ":fp32_mobilenet_v1", |
| 4006 | ":fp32_mobilenet_v2", |
| 4007 | ":fp32_mobilenet_v3_large", |
| 4008 | ":fp32_mobilenet_v3_small", |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 4009 | ], |
| 4010 | ) |
| 4011 | |
| 4012 | xnnpack_benchmark( |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 4013 | name = "f32_gemm_e2e_bench", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 4014 | srcs = [ |
| 4015 | "bench/f32-gemm-e2e.cc", |
| 4016 | "bench/end2end.h", |
| 4017 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 4018 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 4019 | ":XNNPACK", |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 4020 | ":fp32_mobilenet_v1", |
| 4021 | ":fp32_mobilenet_v2", |
| 4022 | ":fp32_mobilenet_v3_large", |
| 4023 | ":fp32_mobilenet_v3_small", |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 4024 | ], |
| 4025 | ) |
| 4026 | |
| 4027 | xnnpack_benchmark( |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 4028 | name = "end2end_bench", |
| 4029 | srcs = ["bench/end2end.cc"], |
| 4030 | deps = [ |
| 4031 | ":XNNPACK", |
Frank Barchard | c712fa4 | 2019-10-31 14:00:21 -0700 | [diff] [blame] | 4032 | ":bench_utils", |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 4033 | ":fp16_mobilenet_v1", |
| 4034 | ":fp16_mobilenet_v2", |
| 4035 | ":fp32_mobilenet_v1", |
| 4036 | ":fp32_mobilenet_v2", |
| 4037 | ":fp32_mobilenet_v3_large", |
| 4038 | ":fp32_mobilenet_v3_small", |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 4039 | "@pthreadpool", |
| 4040 | ], |
| 4041 | ) |
| 4042 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 4043 | #################### Accuracy evaluation for math functions #################### |
| 4044 | |
| 4045 | xnnpack_benchmark( |
| 4046 | name = "f32_exp_eval", |
| 4047 | srcs = [ |
| 4048 | "eval/f32-exp.cc", |
| 4049 | "src/xnnpack/AlignedAllocator.h", |
| 4050 | ] + ACCURACY_EVAL_HDRS, |
| 4051 | deps = ACCURACY_EVAL_DEPS, |
| 4052 | ) |
| 4053 | |
Marat Dukhan | 515c977 | 2019-10-17 18:07:57 -0700 | [diff] [blame] | 4054 | xnnpack_benchmark( |
| 4055 | name = "f32_expminus_eval", |
| 4056 | srcs = [ |
| 4057 | "eval/f32-expminus.cc", |
| 4058 | "src/xnnpack/AlignedAllocator.h", |
| 4059 | ] + ACCURACY_EVAL_HDRS, |
| 4060 | deps = ACCURACY_EVAL_DEPS, |
| 4061 | ) |
| 4062 | |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 4063 | xnnpack_benchmark( |
| 4064 | name = "f32_extexp_eval", |
| 4065 | srcs = [ |
| 4066 | "eval/f32-extexp.cc", |
| 4067 | "src/xnnpack/AlignedAllocator.h", |
| 4068 | ] + ACCURACY_EVAL_HDRS, |
| 4069 | deps = ACCURACY_EVAL_DEPS, |
| 4070 | ) |
| 4071 | |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 4072 | xnnpack_unit_test( |
| 4073 | name = "f32_roundne_eval", |
| 4074 | srcs = [ |
| 4075 | "eval/f32-roundne.cc", |
| 4076 | "src/xnnpack/AlignedAllocator.h", |
| 4077 | "src/xnnpack/math-stubs.h", |
| 4078 | ] + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | 22eed3d | 2020-05-11 20:13:37 -0700 | [diff] [blame] | 4079 | automatic = False, |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 4080 | deps = MICROKERNEL_TEST_DEPS, |
| 4081 | ) |
| 4082 | |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 4083 | xnnpack_unit_test( |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 4084 | name = "f32_roundd_eval", |
| 4085 | srcs = [ |
| 4086 | "eval/f32-roundd.cc", |
| 4087 | "src/xnnpack/AlignedAllocator.h", |
| 4088 | "src/xnnpack/math-stubs.h", |
| 4089 | ] + MICROKERNEL_TEST_HDRS, |
| 4090 | automatic = False, |
| 4091 | deps = MICROKERNEL_TEST_DEPS, |
| 4092 | ) |
| 4093 | |
| 4094 | xnnpack_unit_test( |
| 4095 | name = "f32_roundu_eval", |
| 4096 | srcs = [ |
| 4097 | "eval/f32-roundu.cc", |
| 4098 | "src/xnnpack/AlignedAllocator.h", |
| 4099 | "src/xnnpack/math-stubs.h", |
| 4100 | ] + MICROKERNEL_TEST_HDRS, |
| 4101 | automatic = False, |
| 4102 | deps = MICROKERNEL_TEST_DEPS, |
| 4103 | ) |
| 4104 | |
| 4105 | xnnpack_unit_test( |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 4106 | name = "f32_roundz_eval", |
| 4107 | srcs = [ |
| 4108 | "eval/f32-roundz.cc", |
| 4109 | "src/xnnpack/AlignedAllocator.h", |
| 4110 | "src/xnnpack/math-stubs.h", |
| 4111 | ] + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 4112 | automatic = False, |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 4113 | deps = MICROKERNEL_TEST_DEPS, |
| 4114 | ) |
| 4115 | |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 4116 | xnnpack_benchmark( |
| 4117 | name = "f32_sigmoid_eval", |
| 4118 | srcs = [ |
| 4119 | "eval/f32-sigmoid.cc", |
| 4120 | "src/xnnpack/AlignedAllocator.h", |
| 4121 | ] + ACCURACY_EVAL_HDRS, |
| 4122 | deps = ACCURACY_EVAL_DEPS, |
| 4123 | ) |
| 4124 | |
Marat Dukhan | 8400076 | 2020-06-29 18:38:43 -0700 | [diff] [blame] | 4125 | xnnpack_benchmark( |
| 4126 | name = "f32_sqrt_eval", |
| 4127 | srcs = [ |
| 4128 | "eval/f32-sqrt.cc", |
| 4129 | "src/xnnpack/AlignedAllocator.h", |
| 4130 | ] + ACCURACY_EVAL_HDRS, |
| 4131 | deps = ACCURACY_EVAL_DEPS + [ |
| 4132 | ":bench_utils", |
| 4133 | ], |
| 4134 | ) |
| 4135 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4136 | ######################### Unit tests for micro-kernels ######################### |
| 4137 | |
| 4138 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 4139 | name = "f16_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4140 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 4141 | "test/f16-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4142 | "test/gemm-microkernel-tester.h", |
| 4143 | "src/xnnpack/AlignedAllocator.h", |
| 4144 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4145 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4146 | ) |
| 4147 | |
| 4148 | xnnpack_unit_test( |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 4149 | name = "f16_spmm_minmax_test", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 4150 | srcs = [ |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 4151 | "test/f16-spmm-minmax.cc", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 4152 | "test/spmm-microkernel-tester.h", |
| 4153 | "src/xnnpack/AlignedAllocator.h", |
| 4154 | ] + MICROKERNEL_TEST_HDRS, |
| 4155 | deps = MICROKERNEL_TEST_DEPS, |
| 4156 | ) |
| 4157 | |
| 4158 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4159 | name = "f32_argmaxpool_test", |
| 4160 | srcs = [ |
| 4161 | "test/f32-argmaxpool.cc", |
| 4162 | "test/argmaxpool-microkernel-tester.h", |
| 4163 | "src/xnnpack/AlignedAllocator.h", |
| 4164 | ] + MICROKERNEL_TEST_HDRS, |
| 4165 | deps = MICROKERNEL_TEST_DEPS, |
| 4166 | ) |
| 4167 | |
| 4168 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4169 | name = "f32_avgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4170 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4171 | "test/f32-avgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4172 | "test/avgpool-microkernel-tester.h", |
| 4173 | "src/xnnpack/AlignedAllocator.h", |
| 4174 | ] + MICROKERNEL_TEST_HDRS, |
| 4175 | deps = MICROKERNEL_TEST_DEPS, |
| 4176 | ) |
| 4177 | |
| 4178 | xnnpack_unit_test( |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 4179 | name = "f32_ibilinear_test", |
Marat Dukhan | 35dacfb | 2019-11-07 19:18:16 -0800 | [diff] [blame] | 4180 | srcs = [ |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 4181 | "test/f32-ibilinear.cc", |
| 4182 | "test/ibilinear-microkernel-tester.h", |
Marat Dukhan | 35dacfb | 2019-11-07 19:18:16 -0800 | [diff] [blame] | 4183 | "src/xnnpack/AlignedAllocator.h", |
| 4184 | ] + MICROKERNEL_TEST_HDRS, |
| 4185 | deps = MICROKERNEL_TEST_DEPS, |
| 4186 | ) |
| 4187 | |
| 4188 | xnnpack_unit_test( |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 4189 | name = "f16_clamp_test", |
| 4190 | srcs = [ |
| 4191 | "test/f16-clamp.cc", |
| 4192 | "test/clamp-microkernel-tester.h", |
| 4193 | ] + MICROKERNEL_TEST_HDRS, |
| 4194 | deps = MICROKERNEL_TEST_DEPS, |
| 4195 | ) |
| 4196 | |
| 4197 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4198 | name = "f32_clamp_test", |
| 4199 | srcs = [ |
| 4200 | "test/f32-clamp.cc", |
| 4201 | "test/clamp-microkernel-tester.h", |
| 4202 | ] + MICROKERNEL_TEST_HDRS, |
| 4203 | deps = MICROKERNEL_TEST_DEPS, |
| 4204 | ) |
| 4205 | |
| 4206 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 4207 | name = "f32_igemm_test", |
| 4208 | srcs = [ |
| 4209 | "test/f32-igemm.cc", |
| 4210 | "test/gemm-microkernel-tester.h", |
| 4211 | "src/xnnpack/AlignedAllocator.h", |
| 4212 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4213 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 4214 | ) |
| 4215 | |
| 4216 | xnnpack_unit_test( |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 4217 | name = "f32_igemm_relu_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4218 | srcs = [ |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 4219 | "test/f32-igemm-relu.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4220 | "test/gemm-microkernel-tester.h", |
| 4221 | "src/xnnpack/AlignedAllocator.h", |
| 4222 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4223 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4224 | ) |
| 4225 | |
| 4226 | xnnpack_unit_test( |
Marat Dukhan | e207b7b | 2020-05-28 16:27:42 -0700 | [diff] [blame] | 4227 | name = "f32_igemm_minmax_test", |
| 4228 | srcs = [ |
| 4229 | "test/f32-igemm-minmax.cc", |
| 4230 | "test/gemm-microkernel-tester.h", |
| 4231 | "src/xnnpack/AlignedAllocator.h", |
| 4232 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4233 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | e207b7b | 2020-05-28 16:27:42 -0700 | [diff] [blame] | 4234 | ) |
| 4235 | |
| 4236 | xnnpack_unit_test( |
Frank Barchard | b0e4fae | 2020-05-04 15:27:51 -0700 | [diff] [blame] | 4237 | name = "f16_igemm_minmax_test", |
| 4238 | srcs = [ |
| 4239 | "test/f16-igemm-minmax.cc", |
| 4240 | "test/gemm-microkernel-tester.h", |
| 4241 | "src/xnnpack/AlignedAllocator.h", |
| 4242 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4243 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Frank Barchard | b0e4fae | 2020-05-04 15:27:51 -0700 | [diff] [blame] | 4244 | ) |
| 4245 | |
| 4246 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4247 | name = "f32_conv_hwc_test", |
| 4248 | srcs = [ |
| 4249 | "test/f32-conv-hwc.cc", |
| 4250 | "test/conv-hwc-microkernel-tester.h", |
| 4251 | "src/xnnpack/AlignedAllocator.h", |
| 4252 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4253 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4254 | ) |
| 4255 | |
| 4256 | xnnpack_unit_test( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 4257 | name = "f32_conv_hwc2chw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4258 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 4259 | "test/f32-conv-hwc2chw.cc", |
| 4260 | "test/conv-hwc2chw-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4261 | "src/xnnpack/AlignedAllocator.h", |
| 4262 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4263 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4264 | ) |
| 4265 | |
| 4266 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 4267 | name = "f32_dwconv_test", |
| 4268 | srcs = [ |
| 4269 | "test/f32-dwconv.cc", |
| 4270 | "test/dwconv-microkernel-tester.h", |
| 4271 | "src/xnnpack/AlignedAllocator.h", |
| 4272 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4273 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 4274 | ) |
| 4275 | |
| 4276 | xnnpack_unit_test( |
Frank Barchard | 5a599a6 | 2020-06-04 20:12:44 -0700 | [diff] [blame] | 4277 | name = "f16_dwconv_minmax_test", |
| 4278 | srcs = [ |
| 4279 | "test/f16-dwconv-minmax.cc", |
| 4280 | "test/dwconv-microkernel-tester.h", |
| 4281 | "src/xnnpack/AlignedAllocator.h", |
| 4282 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4283 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Frank Barchard | 5a599a6 | 2020-06-04 20:12:44 -0700 | [diff] [blame] | 4284 | ) |
| 4285 | |
| 4286 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4287 | name = "f32_dwconv_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4288 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4289 | "test/f32-dwconv-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4290 | "test/dwconv-microkernel-tester.h", |
| 4291 | "src/xnnpack/AlignedAllocator.h", |
| 4292 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4293 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4294 | ) |
| 4295 | |
| 4296 | xnnpack_unit_test( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 4297 | name = "f32_dwconv_chw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4298 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 4299 | "test/f32-dwconv-chw.cc", |
| 4300 | "test/dwconv-chw-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4301 | "src/xnnpack/AlignedAllocator.h", |
| 4302 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4303 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4304 | ) |
| 4305 | |
| 4306 | xnnpack_unit_test( |
Frank Barchard | 0bb49a7 | 2020-06-04 11:35:11 -0700 | [diff] [blame] | 4307 | name = "f16_gavgpool_minmax_test", |
| 4308 | srcs = [ |
| 4309 | "test/f16-gavgpool-minmax.cc", |
| 4310 | "test/gavgpool-microkernel-tester.h", |
| 4311 | "src/xnnpack/AlignedAllocator.h", |
| 4312 | ] + MICROKERNEL_TEST_HDRS, |
| 4313 | deps = MICROKERNEL_TEST_DEPS, |
| 4314 | ) |
| 4315 | |
| 4316 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4317 | name = "f32_gavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4318 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4319 | "test/f32-gavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4320 | "test/gavgpool-microkernel-tester.h", |
| 4321 | "src/xnnpack/AlignedAllocator.h", |
| 4322 | ] + MICROKERNEL_TEST_HDRS, |
| 4323 | deps = MICROKERNEL_TEST_DEPS, |
| 4324 | ) |
| 4325 | |
| 4326 | xnnpack_unit_test( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 4327 | name = "f32_gavgpool_cw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4328 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 4329 | "test/f32-gavgpool-cw.cc", |
| 4330 | "test/gavgpool-cw-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4331 | "src/xnnpack/AlignedAllocator.h", |
| 4332 | ] + MICROKERNEL_TEST_HDRS, |
| 4333 | deps = MICROKERNEL_TEST_DEPS, |
| 4334 | ) |
| 4335 | |
| 4336 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 4337 | name = "f32_gemm_test", |
| 4338 | srcs = [ |
| 4339 | "test/f32-gemm.cc", |
| 4340 | "test/gemm-microkernel-tester.h", |
| 4341 | "src/xnnpack/AlignedAllocator.h", |
| 4342 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4343 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 4344 | ) |
| 4345 | |
| 4346 | xnnpack_unit_test( |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 4347 | name = "f32_gemm_relu_test", |
| 4348 | srcs = [ |
| 4349 | "test/f32-gemm-relu.cc", |
| 4350 | "test/gemm-microkernel-tester.h", |
| 4351 | "src/xnnpack/AlignedAllocator.h", |
| 4352 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4353 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 4354 | ) |
| 4355 | |
| 4356 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4357 | name = "f32_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4358 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4359 | "test/f32-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4360 | "test/gemm-microkernel-tester.h", |
| 4361 | "src/xnnpack/AlignedAllocator.h", |
| 4362 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4363 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4364 | ) |
| 4365 | |
| 4366 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4367 | name = "f32_gemminc_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4368 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4369 | "test/f32-gemminc-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4370 | "test/gemm-microkernel-tester.h", |
| 4371 | "src/xnnpack/AlignedAllocator.h", |
| 4372 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4373 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4374 | ) |
| 4375 | |
| 4376 | xnnpack_unit_test( |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 4377 | name = "f16_hswish_test", |
| 4378 | srcs = [ |
| 4379 | "test/f16-hswish.cc", |
| 4380 | "test/hswish-microkernel-tester.h", |
| 4381 | ] + MICROKERNEL_TEST_HDRS, |
| 4382 | deps = MICROKERNEL_TEST_DEPS, |
| 4383 | ) |
| 4384 | |
| 4385 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4386 | name = "f32_hswish_test", |
| 4387 | srcs = [ |
| 4388 | "test/f32-hswish.cc", |
| 4389 | "test/hswish-microkernel-tester.h", |
| 4390 | ] + MICROKERNEL_TEST_HDRS, |
| 4391 | deps = MICROKERNEL_TEST_DEPS, |
| 4392 | ) |
| 4393 | |
| 4394 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4395 | name = "f32_maxpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4396 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4397 | "test/f32-maxpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4398 | "test/maxpool-microkernel-tester.h", |
| 4399 | ] + MICROKERNEL_TEST_HDRS, |
| 4400 | deps = MICROKERNEL_TEST_DEPS, |
| 4401 | ) |
| 4402 | |
| 4403 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4404 | name = "f32_pavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4405 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4406 | "test/f32-pavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4407 | "test/avgpool-microkernel-tester.h", |
| 4408 | "src/xnnpack/AlignedAllocator.h", |
| 4409 | ] + MICROKERNEL_TEST_HDRS, |
| 4410 | deps = MICROKERNEL_TEST_DEPS, |
| 4411 | ) |
| 4412 | |
| 4413 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4414 | name = "f32_ppmm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4415 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 4416 | "test/f32-ppmm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4417 | "test/gemm-microkernel-tester.h", |
| 4418 | "src/xnnpack/AlignedAllocator.h", |
| 4419 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4420 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4421 | ) |
| 4422 | |
| 4423 | xnnpack_unit_test( |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 4424 | name = "f16_prelu_test", |
| 4425 | srcs = [ |
| 4426 | "test/f16-prelu.cc", |
| 4427 | "test/prelu-microkernel-tester.h", |
| 4428 | "src/xnnpack/AlignedAllocator.h", |
| 4429 | ] + MICROKERNEL_TEST_HDRS, |
| 4430 | deps = MICROKERNEL_TEST_DEPS, |
| 4431 | ) |
| 4432 | |
| 4433 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4434 | name = "f32_prelu_test", |
| 4435 | srcs = [ |
| 4436 | "test/f32-prelu.cc", |
| 4437 | "test/prelu-microkernel-tester.h", |
| 4438 | "src/xnnpack/AlignedAllocator.h", |
| 4439 | ] + MICROKERNEL_TEST_HDRS, |
| 4440 | deps = MICROKERNEL_TEST_DEPS, |
| 4441 | ) |
| 4442 | |
| 4443 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 4444 | name = "f32_raddexpminusmax_test", |
| 4445 | srcs = [ |
| 4446 | "test/f32-raddexpminusmax.cc", |
| 4447 | "test/raddexpminusmax-microkernel-tester.h", |
| 4448 | ] + MICROKERNEL_TEST_HDRS, |
| 4449 | deps = MICROKERNEL_TEST_DEPS, |
| 4450 | ) |
| 4451 | |
| 4452 | xnnpack_unit_test( |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 4453 | name = "f32_raddextexp_test", |
| 4454 | srcs = [ |
| 4455 | "test/f32-raddextexp.cc", |
| 4456 | "test/raddextexp-microkernel-tester.h", |
| 4457 | ] + MICROKERNEL_TEST_HDRS, |
| 4458 | deps = MICROKERNEL_TEST_DEPS, |
| 4459 | ) |
| 4460 | |
| 4461 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 4462 | name = "f32_raddstoreexpminusmax_test", |
| 4463 | srcs = [ |
| 4464 | "test/f32-raddstoreexpminusmax.cc", |
| 4465 | "test/raddstoreexpminusmax-microkernel-tester.h", |
| 4466 | ] + MICROKERNEL_TEST_HDRS, |
| 4467 | deps = MICROKERNEL_TEST_DEPS, |
| 4468 | ) |
| 4469 | |
| 4470 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4471 | name = "f32_rmax_test", |
| 4472 | srcs = [ |
| 4473 | "test/f32-rmax.cc", |
| 4474 | "test/rmax-microkernel-tester.h", |
| 4475 | ] + MICROKERNEL_TEST_HDRS, |
| 4476 | deps = MICROKERNEL_TEST_DEPS, |
| 4477 | ) |
| 4478 | |
| 4479 | xnnpack_unit_test( |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 4480 | name = "f32_sigmoid_test", |
| 4481 | srcs = [ |
| 4482 | "test/f32-sigmoid.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4483 | "test/vunary-microkernel-tester.h", |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 4484 | ] + MICROKERNEL_TEST_HDRS, |
| 4485 | deps = MICROKERNEL_TEST_DEPS, |
| 4486 | ) |
| 4487 | |
| 4488 | xnnpack_unit_test( |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 4489 | name = "f32_spmm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4490 | srcs = [ |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 4491 | "test/f32-spmm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4492 | "test/spmm-microkernel-tester.h", |
| 4493 | "src/xnnpack/AlignedAllocator.h", |
| 4494 | ] + MICROKERNEL_TEST_HDRS, |
| 4495 | deps = MICROKERNEL_TEST_DEPS, |
| 4496 | ) |
| 4497 | |
| 4498 | xnnpack_unit_test( |
Frank Barchard | d793f6c | 2020-05-08 13:37:43 -0700 | [diff] [blame] | 4499 | name = "f16_vadd_minmax_test", |
| 4500 | srcs = [ |
| 4501 | "test/f16-vadd-minmax.cc", |
| 4502 | "test/vbinary-microkernel-tester.h", |
| 4503 | ] + MICROKERNEL_TEST_HDRS, |
| 4504 | deps = MICROKERNEL_TEST_DEPS, |
| 4505 | ) |
| 4506 | |
| 4507 | xnnpack_unit_test( |
| 4508 | name = "f16_vaddc_minmax_test", |
| 4509 | srcs = [ |
| 4510 | "test/f16-vaddc-minmax.cc", |
| 4511 | "test/vbinaryc-microkernel-tester.h", |
| 4512 | ] + MICROKERNEL_TEST_HDRS, |
| 4513 | deps = MICROKERNEL_TEST_DEPS, |
| 4514 | ) |
| 4515 | |
| 4516 | xnnpack_unit_test( |
| 4517 | name = "f16_vdiv_minmax_test", |
| 4518 | srcs = [ |
| 4519 | "test/f16-vdiv-minmax.cc", |
| 4520 | "test/vbinary-microkernel-tester.h", |
| 4521 | ] + MICROKERNEL_TEST_HDRS, |
| 4522 | deps = MICROKERNEL_TEST_DEPS, |
| 4523 | ) |
| 4524 | |
| 4525 | xnnpack_unit_test( |
| 4526 | name = "f16_vdivc_minmax_test", |
| 4527 | srcs = [ |
| 4528 | "test/f16-vdivc-minmax.cc", |
| 4529 | "test/vbinaryc-microkernel-tester.h", |
| 4530 | ] + MICROKERNEL_TEST_HDRS, |
| 4531 | deps = MICROKERNEL_TEST_DEPS, |
| 4532 | ) |
| 4533 | |
| 4534 | xnnpack_unit_test( |
| 4535 | name = "f16_vrdivc_minmax_test", |
| 4536 | srcs = [ |
| 4537 | "test/f16-vrdivc-minmax.cc", |
| 4538 | "test/vbinaryc-microkernel-tester.h", |
| 4539 | ] + MICROKERNEL_TEST_HDRS, |
| 4540 | deps = MICROKERNEL_TEST_DEPS, |
| 4541 | ) |
| 4542 | |
| 4543 | xnnpack_unit_test( |
| 4544 | name = "f16_vmax_test", |
| 4545 | srcs = [ |
| 4546 | "test/f16-vmax.cc", |
| 4547 | "test/vbinary-microkernel-tester.h", |
| 4548 | ] + MICROKERNEL_TEST_HDRS, |
| 4549 | deps = MICROKERNEL_TEST_DEPS, |
| 4550 | ) |
| 4551 | |
| 4552 | xnnpack_unit_test( |
| 4553 | name = "f16_vmaxc_test", |
| 4554 | srcs = [ |
| 4555 | "test/f16-vmaxc.cc", |
| 4556 | "test/vbinaryc-microkernel-tester.h", |
| 4557 | ] + MICROKERNEL_TEST_HDRS, |
| 4558 | deps = MICROKERNEL_TEST_DEPS, |
| 4559 | ) |
| 4560 | |
| 4561 | xnnpack_unit_test( |
| 4562 | name = "f16_vmin_test", |
| 4563 | srcs = [ |
| 4564 | "test/f16-vmin.cc", |
| 4565 | "test/vbinary-microkernel-tester.h", |
| 4566 | ] + MICROKERNEL_TEST_HDRS, |
| 4567 | deps = MICROKERNEL_TEST_DEPS, |
| 4568 | ) |
| 4569 | |
| 4570 | xnnpack_unit_test( |
| 4571 | name = "f16_vminc_test", |
| 4572 | srcs = [ |
| 4573 | "test/f16-vminc.cc", |
| 4574 | "test/vbinaryc-microkernel-tester.h", |
| 4575 | ] + MICROKERNEL_TEST_HDRS, |
| 4576 | deps = MICROKERNEL_TEST_DEPS, |
| 4577 | ) |
| 4578 | |
| 4579 | xnnpack_unit_test( |
| 4580 | name = "f16_vmul_minmax_test", |
| 4581 | srcs = [ |
| 4582 | "test/f16-vmul-minmax.cc", |
| 4583 | "test/vbinary-microkernel-tester.h", |
| 4584 | ] + MICROKERNEL_TEST_HDRS, |
| 4585 | deps = MICROKERNEL_TEST_DEPS, |
| 4586 | ) |
| 4587 | |
| 4588 | xnnpack_unit_test( |
| 4589 | name = "f16_vmulc_minmax_test", |
| 4590 | srcs = [ |
| 4591 | "test/f16-vmulc-minmax.cc", |
| 4592 | "test/vbinaryc-microkernel-tester.h", |
| 4593 | ] + MICROKERNEL_TEST_HDRS, |
| 4594 | deps = MICROKERNEL_TEST_DEPS, |
| 4595 | ) |
| 4596 | |
| 4597 | xnnpack_unit_test( |
| 4598 | name = "f16_vsub_minmax_test", |
| 4599 | srcs = [ |
| 4600 | "test/f16-vsub-minmax.cc", |
| 4601 | "test/vbinary-microkernel-tester.h", |
| 4602 | ] + MICROKERNEL_TEST_HDRS, |
| 4603 | deps = MICROKERNEL_TEST_DEPS, |
| 4604 | ) |
| 4605 | |
| 4606 | xnnpack_unit_test( |
| 4607 | name = "f16_vsubc_minmax_test", |
| 4608 | srcs = [ |
| 4609 | "test/f16-vsubc-minmax.cc", |
| 4610 | "test/vbinaryc-microkernel-tester.h", |
| 4611 | ] + MICROKERNEL_TEST_HDRS, |
| 4612 | deps = MICROKERNEL_TEST_DEPS, |
| 4613 | ) |
| 4614 | |
| 4615 | xnnpack_unit_test( |
| 4616 | name = "f16_vrsubc_minmax_test", |
| 4617 | srcs = [ |
| 4618 | "test/f16-vrsubc-minmax.cc", |
| 4619 | "test/vbinaryc-microkernel-tester.h", |
| 4620 | ] + MICROKERNEL_TEST_HDRS, |
| 4621 | deps = MICROKERNEL_TEST_DEPS, |
| 4622 | ) |
| 4623 | |
| 4624 | xnnpack_unit_test( |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 4625 | name = "f32_vabs_test", |
| 4626 | srcs = [ |
| 4627 | "test/f32-vabs.cc", |
| 4628 | "test/vunary-microkernel-tester.h", |
| 4629 | ] + MICROKERNEL_TEST_HDRS, |
| 4630 | deps = MICROKERNEL_TEST_DEPS, |
| 4631 | ) |
| 4632 | |
| 4633 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4634 | name = "f32_vadd_test", |
| 4635 | srcs = [ |
| 4636 | "test/f32-vadd.cc", |
| 4637 | "test/vbinary-microkernel-tester.h", |
| 4638 | ] + MICROKERNEL_TEST_HDRS, |
| 4639 | deps = MICROKERNEL_TEST_DEPS, |
| 4640 | ) |
| 4641 | |
| 4642 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4643 | name = "f32_vadd_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4644 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4645 | "test/f32-vadd-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4646 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4647 | ] + MICROKERNEL_TEST_HDRS, |
| 4648 | deps = MICROKERNEL_TEST_DEPS, |
| 4649 | ) |
| 4650 | |
| 4651 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4652 | name = "f32_vaddc_test", |
| 4653 | srcs = [ |
| 4654 | "test/f32-vaddc.cc", |
| 4655 | "test/vbinaryc-microkernel-tester.h", |
| 4656 | ] + MICROKERNEL_TEST_HDRS, |
| 4657 | deps = MICROKERNEL_TEST_DEPS, |
| 4658 | ) |
| 4659 | |
| 4660 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4661 | name = "f32_vaddc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4662 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4663 | "test/f32-vaddc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4664 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4665 | ] + MICROKERNEL_TEST_HDRS, |
| 4666 | deps = MICROKERNEL_TEST_DEPS, |
| 4667 | ) |
| 4668 | |
| 4669 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4670 | name = "f32_vdiv_test", |
| 4671 | srcs = [ |
| 4672 | "test/f32-vdiv.cc", |
| 4673 | "test/vbinary-microkernel-tester.h", |
| 4674 | ] + MICROKERNEL_TEST_HDRS, |
| 4675 | deps = MICROKERNEL_TEST_DEPS, |
| 4676 | ) |
| 4677 | |
| 4678 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4679 | name = "f32_vdiv_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 4680 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4681 | "test/f32-vdiv-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 4682 | "test/vbinary-microkernel-tester.h", |
| 4683 | ] + MICROKERNEL_TEST_HDRS, |
| 4684 | deps = MICROKERNEL_TEST_DEPS, |
| 4685 | ) |
| 4686 | |
| 4687 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4688 | name = "f32_vdivc_test", |
| 4689 | srcs = [ |
| 4690 | "test/f32-vdivc.cc", |
| 4691 | "test/vbinaryc-microkernel-tester.h", |
| 4692 | ] + MICROKERNEL_TEST_HDRS, |
| 4693 | deps = MICROKERNEL_TEST_DEPS, |
| 4694 | ) |
| 4695 | |
| 4696 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4697 | name = "f32_vdivc_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 4698 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4699 | "test/f32-vdivc-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 4700 | "test/vbinaryc-microkernel-tester.h", |
| 4701 | ] + MICROKERNEL_TEST_HDRS, |
| 4702 | deps = MICROKERNEL_TEST_DEPS, |
| 4703 | ) |
| 4704 | |
| 4705 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4706 | name = "f32_vrdivc_test", |
| 4707 | srcs = [ |
| 4708 | "test/f32-vrdivc.cc", |
| 4709 | "test/vbinaryc-microkernel-tester.h", |
| 4710 | ] + MICROKERNEL_TEST_HDRS, |
| 4711 | deps = MICROKERNEL_TEST_DEPS, |
| 4712 | ) |
| 4713 | |
| 4714 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4715 | name = "f32_vrdivc_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 4716 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4717 | "test/f32-vrdivc-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 4718 | "test/vbinaryc-microkernel-tester.h", |
| 4719 | ] + MICROKERNEL_TEST_HDRS, |
| 4720 | deps = MICROKERNEL_TEST_DEPS, |
| 4721 | ) |
| 4722 | |
| 4723 | xnnpack_unit_test( |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 4724 | name = "f32_vmax_test", |
| 4725 | srcs = [ |
| 4726 | "test/f32-vmax.cc", |
| 4727 | "test/vbinary-microkernel-tester.h", |
| 4728 | ] + MICROKERNEL_TEST_HDRS, |
| 4729 | deps = MICROKERNEL_TEST_DEPS, |
| 4730 | ) |
| 4731 | |
| 4732 | xnnpack_unit_test( |
| 4733 | name = "f32_vmaxc_test", |
| 4734 | srcs = [ |
| 4735 | "test/f32-vmaxc.cc", |
| 4736 | "test/vbinaryc-microkernel-tester.h", |
| 4737 | ] + MICROKERNEL_TEST_HDRS, |
| 4738 | deps = MICROKERNEL_TEST_DEPS, |
| 4739 | ) |
| 4740 | |
| 4741 | xnnpack_unit_test( |
| 4742 | name = "f32_vmin_test", |
| 4743 | srcs = [ |
| 4744 | "test/f32-vmin.cc", |
| 4745 | "test/vbinary-microkernel-tester.h", |
| 4746 | ] + MICROKERNEL_TEST_HDRS, |
| 4747 | deps = MICROKERNEL_TEST_DEPS, |
| 4748 | ) |
| 4749 | |
| 4750 | xnnpack_unit_test( |
| 4751 | name = "f32_vminc_test", |
| 4752 | srcs = [ |
| 4753 | "test/f32-vminc.cc", |
| 4754 | "test/vbinaryc-microkernel-tester.h", |
| 4755 | ] + MICROKERNEL_TEST_HDRS, |
| 4756 | deps = MICROKERNEL_TEST_DEPS, |
| 4757 | ) |
| 4758 | |
| 4759 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4760 | name = "f32_vmul_test", |
| 4761 | srcs = [ |
| 4762 | "test/f32-vmul.cc", |
| 4763 | "test/vbinary-microkernel-tester.h", |
| 4764 | ] + MICROKERNEL_TEST_HDRS, |
| 4765 | deps = MICROKERNEL_TEST_DEPS, |
| 4766 | ) |
| 4767 | |
| 4768 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4769 | name = "f32_vmul_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4770 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4771 | "test/f32-vmul-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4772 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4773 | ] + MICROKERNEL_TEST_HDRS, |
| 4774 | deps = MICROKERNEL_TEST_DEPS, |
| 4775 | ) |
| 4776 | |
| 4777 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4778 | name = "f32_vmulc_test", |
| 4779 | srcs = [ |
| 4780 | "test/f32-vmulc.cc", |
| 4781 | "test/vbinaryc-microkernel-tester.h", |
| 4782 | ] + MICROKERNEL_TEST_HDRS, |
| 4783 | deps = MICROKERNEL_TEST_DEPS, |
| 4784 | ) |
| 4785 | |
| 4786 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4787 | name = "f32_vmulc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4788 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4789 | "test/f32-vmulc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4790 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4791 | ] + MICROKERNEL_TEST_HDRS, |
| 4792 | deps = MICROKERNEL_TEST_DEPS, |
| 4793 | ) |
| 4794 | |
| 4795 | xnnpack_unit_test( |
Frank Barchard | 2a1049c | 2020-06-03 02:31:27 -0700 | [diff] [blame] | 4796 | name = "f16_vmulcaddc_minmax_test", |
| 4797 | srcs = [ |
| 4798 | "test/f16-vmulcaddc-minmax.cc", |
| 4799 | "test/vmulcaddc-microkernel-tester.h", |
| 4800 | "src/xnnpack/AlignedAllocator.h", |
| 4801 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4802 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Frank Barchard | 2a1049c | 2020-06-03 02:31:27 -0700 | [diff] [blame] | 4803 | ) |
| 4804 | |
| 4805 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4806 | name = "f32_vmulcaddc_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4807 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4808 | "test/f32-vmulcaddc-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4809 | "test/vmulcaddc-microkernel-tester.h", |
| 4810 | "src/xnnpack/AlignedAllocator.h", |
| 4811 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 4812 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4813 | ) |
| 4814 | |
| 4815 | xnnpack_unit_test( |
Marat Dukhan | 8cc7efe | 2020-06-10 16:24:27 -0700 | [diff] [blame] | 4816 | name = "f32_vlrelu_test", |
| 4817 | srcs = [ |
| 4818 | "test/f32-vlrelu.cc", |
| 4819 | "test/vunary-microkernel-tester.h", |
| 4820 | ] + MICROKERNEL_TEST_HDRS, |
| 4821 | deps = MICROKERNEL_TEST_DEPS, |
| 4822 | ) |
| 4823 | |
| 4824 | xnnpack_unit_test( |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 4825 | name = "f32_vneg_test", |
| 4826 | srcs = [ |
| 4827 | "test/f32-vneg.cc", |
| 4828 | "test/vunary-microkernel-tester.h", |
| 4829 | ] + MICROKERNEL_TEST_HDRS, |
| 4830 | deps = MICROKERNEL_TEST_DEPS, |
| 4831 | ) |
| 4832 | |
| 4833 | xnnpack_unit_test( |
Marat Dukhan | eecf8fd | 2020-06-09 08:59:37 -0700 | [diff] [blame] | 4834 | name = "f32_vrndne_test", |
| 4835 | srcs = [ |
| 4836 | "test/f32-vrndne.cc", |
| 4837 | "test/vunary-microkernel-tester.h", |
| 4838 | ] + MICROKERNEL_TEST_HDRS, |
| 4839 | deps = MICROKERNEL_TEST_DEPS, |
| 4840 | ) |
| 4841 | |
| 4842 | xnnpack_unit_test( |
| 4843 | name = "f32_vrndz_test", |
| 4844 | srcs = [ |
| 4845 | "test/f32-vrndz.cc", |
| 4846 | "test/vunary-microkernel-tester.h", |
| 4847 | ] + MICROKERNEL_TEST_HDRS, |
| 4848 | deps = MICROKERNEL_TEST_DEPS, |
| 4849 | ) |
| 4850 | |
| 4851 | xnnpack_unit_test( |
| 4852 | name = "f32_vrndu_test", |
| 4853 | srcs = [ |
| 4854 | "test/f32-vrndu.cc", |
| 4855 | "test/vunary-microkernel-tester.h", |
| 4856 | ] + MICROKERNEL_TEST_HDRS, |
| 4857 | deps = MICROKERNEL_TEST_DEPS, |
| 4858 | ) |
| 4859 | |
| 4860 | xnnpack_unit_test( |
| 4861 | name = "f32_vrndd_test", |
| 4862 | srcs = [ |
| 4863 | "test/f32-vrndd.cc", |
| 4864 | "test/vunary-microkernel-tester.h", |
| 4865 | ] + MICROKERNEL_TEST_HDRS, |
| 4866 | deps = MICROKERNEL_TEST_DEPS, |
| 4867 | ) |
| 4868 | |
| 4869 | xnnpack_unit_test( |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 4870 | name = "f32_vscale_test", |
| 4871 | srcs = [ |
| 4872 | "test/f32-vscale.cc", |
| 4873 | "test/vscale-microkernel-tester.h", |
| 4874 | ] + MICROKERNEL_TEST_HDRS, |
| 4875 | deps = MICROKERNEL_TEST_DEPS, |
| 4876 | ) |
| 4877 | |
| 4878 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 4879 | name = "f32_vscaleexpminusmax_test", |
| 4880 | srcs = [ |
| 4881 | "test/f32-vscaleexpminusmax.cc", |
| 4882 | "test/vscaleexpminusmax-microkernel-tester.h", |
| 4883 | ] + MICROKERNEL_TEST_HDRS, |
| 4884 | deps = MICROKERNEL_TEST_DEPS, |
| 4885 | ) |
| 4886 | |
| 4887 | xnnpack_unit_test( |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 4888 | name = "f32_vscaleextexp_test", |
| 4889 | srcs = [ |
| 4890 | "test/f32-vscaleextexp.cc", |
| 4891 | "test/vscaleextexp-microkernel-tester.h", |
| 4892 | ] + MICROKERNEL_TEST_HDRS, |
| 4893 | deps = MICROKERNEL_TEST_DEPS, |
| 4894 | ) |
| 4895 | |
| 4896 | xnnpack_unit_test( |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 4897 | name = "f32_vsqr_test", |
| 4898 | srcs = [ |
| 4899 | "test/f32-vsqr.cc", |
| 4900 | "test/vunary-microkernel-tester.h", |
| 4901 | ] + MICROKERNEL_TEST_HDRS, |
| 4902 | deps = MICROKERNEL_TEST_DEPS, |
| 4903 | ) |
| 4904 | |
| 4905 | xnnpack_unit_test( |
Marat Dukhan | 13bafb0 | 2020-06-05 00:43:11 -0700 | [diff] [blame] | 4906 | name = "f32_vsqrdiff_test", |
| 4907 | srcs = [ |
| 4908 | "test/f32-vsqrdiff.cc", |
| 4909 | "test/vbinary-microkernel-tester.h", |
| 4910 | ] + MICROKERNEL_TEST_HDRS, |
| 4911 | deps = MICROKERNEL_TEST_DEPS, |
| 4912 | ) |
| 4913 | |
| 4914 | xnnpack_unit_test( |
| 4915 | name = "f32_vsqrdiffc_test", |
| 4916 | srcs = [ |
| 4917 | "test/f32-vsqrdiffc.cc", |
| 4918 | "test/vbinaryc-microkernel-tester.h", |
| 4919 | ] + MICROKERNEL_TEST_HDRS, |
| 4920 | deps = MICROKERNEL_TEST_DEPS, |
| 4921 | ) |
| 4922 | |
| 4923 | xnnpack_unit_test( |
Marat Dukhan | f4db2f3 | 2020-06-30 10:55:30 -0700 | [diff] [blame] | 4924 | name = "f32_vsqrt_test", |
| 4925 | srcs = [ |
| 4926 | "test/f32-vsqrt.cc", |
| 4927 | "test/vunary-microkernel-tester.h", |
| 4928 | ] + MICROKERNEL_TEST_HDRS, |
| 4929 | deps = MICROKERNEL_TEST_DEPS, |
| 4930 | ) |
| 4931 | |
| 4932 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4933 | name = "f32_vsub_test", |
| 4934 | srcs = [ |
| 4935 | "test/f32-vsub.cc", |
| 4936 | "test/vbinary-microkernel-tester.h", |
| 4937 | ] + MICROKERNEL_TEST_HDRS, |
| 4938 | deps = MICROKERNEL_TEST_DEPS, |
| 4939 | ) |
| 4940 | |
| 4941 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4942 | name = "f32_vsub_minmax_test", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 4943 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4944 | "test/f32-vsub-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4945 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4946 | ] + MICROKERNEL_TEST_HDRS, |
| 4947 | deps = MICROKERNEL_TEST_DEPS, |
| 4948 | ) |
| 4949 | |
| 4950 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4951 | name = "f32_vsubc_test", |
| 4952 | srcs = [ |
| 4953 | "test/f32-vsubc.cc", |
| 4954 | "test/vbinaryc-microkernel-tester.h", |
| 4955 | ] + MICROKERNEL_TEST_HDRS, |
| 4956 | deps = MICROKERNEL_TEST_DEPS, |
| 4957 | ) |
| 4958 | |
| 4959 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4960 | name = "f32_vsubc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4961 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4962 | "test/f32-vsubc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4963 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4964 | ] + MICROKERNEL_TEST_HDRS, |
| 4965 | deps = MICROKERNEL_TEST_DEPS, |
| 4966 | ) |
| 4967 | |
| 4968 | xnnpack_unit_test( |
Frank Barchard | d5b9f1c | 2020-07-01 15:00:19 -0700 | [diff] [blame] | 4969 | name = "f32_vrsubc_test", |
| 4970 | srcs = [ |
| 4971 | "test/f32-vrsubc.cc", |
| 4972 | "test/vbinaryc-microkernel-tester.h", |
| 4973 | ] + MICROKERNEL_TEST_HDRS, |
| 4974 | deps = MICROKERNEL_TEST_DEPS, |
| 4975 | ) |
| 4976 | |
| 4977 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4978 | name = "f32_vrsubc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 4979 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 4980 | "test/f32-vrsubc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 4981 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 4982 | ] + MICROKERNEL_TEST_HDRS, |
| 4983 | deps = MICROKERNEL_TEST_DEPS, |
| 4984 | ) |
| 4985 | |
| 4986 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4987 | name = "q8_avgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4988 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 4989 | "test/q8-avgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4990 | "test/avgpool-microkernel-tester.h", |
| 4991 | "src/xnnpack/AlignedAllocator.h", |
| 4992 | ] + MICROKERNEL_TEST_HDRS, |
| 4993 | deps = MICROKERNEL_TEST_DEPS, |
| 4994 | ) |
| 4995 | |
| 4996 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 4997 | name = "q8_igemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4998 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 4999 | "test/q8-igemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5000 | "test/gemm-microkernel-tester.h", |
| 5001 | "src/xnnpack/AlignedAllocator.h", |
| 5002 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 5003 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5004 | ) |
| 5005 | |
| 5006 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 5007 | name = "q8_dwconv_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5008 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 5009 | "test/q8-dwconv-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5010 | "test/dwconv-microkernel-tester.h", |
| 5011 | "src/xnnpack/AlignedAllocator.h", |
| 5012 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 5013 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5014 | ) |
| 5015 | |
| 5016 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 5017 | name = "q8_gavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5018 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 5019 | "test/q8-gavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5020 | "test/gavgpool-microkernel-tester.h", |
| 5021 | "src/xnnpack/AlignedAllocator.h", |
| 5022 | ] + MICROKERNEL_TEST_HDRS, |
| 5023 | deps = MICROKERNEL_TEST_DEPS, |
| 5024 | ) |
| 5025 | |
| 5026 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 5027 | name = "q8_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5028 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 5029 | "test/q8-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5030 | "test/gemm-microkernel-tester.h", |
| 5031 | "src/xnnpack/AlignedAllocator.h", |
| 5032 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | ab58238 | 2020-07-06 13:32:08 -0700 | [diff] [blame] | 5033 | deps = MICROKERNEL_TEST_DEPS + [":packing"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5034 | ) |
| 5035 | |
| 5036 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 5037 | name = "q8_vadd_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5038 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 5039 | "test/q8-vadd-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5040 | "test/vadd-microkernel-tester.h", |
| 5041 | ] + MICROKERNEL_TEST_HDRS, |
| 5042 | deps = MICROKERNEL_TEST_DEPS, |
| 5043 | ) |
| 5044 | |
| 5045 | xnnpack_unit_test( |
| 5046 | name = "u8_clamp_test", |
| 5047 | srcs = [ |
| 5048 | "test/u8-clamp.cc", |
| 5049 | "test/clamp-microkernel-tester.h", |
| 5050 | ] + MICROKERNEL_TEST_HDRS, |
| 5051 | deps = MICROKERNEL_TEST_DEPS, |
| 5052 | ) |
| 5053 | |
| 5054 | xnnpack_unit_test( |
| 5055 | name = "u8_lut32norm_test", |
| 5056 | srcs = [ |
| 5057 | "test/u8-lut32norm.cc", |
| 5058 | "test/lut-norm-microkernel-tester.h", |
| 5059 | ] + MICROKERNEL_TEST_HDRS, |
| 5060 | deps = MICROKERNEL_TEST_DEPS, |
| 5061 | ) |
| 5062 | |
| 5063 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 5064 | name = "u8_maxpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5065 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 5066 | "test/u8-maxpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5067 | "test/maxpool-microkernel-tester.h", |
| 5068 | ] + MICROKERNEL_TEST_HDRS, |
| 5069 | deps = MICROKERNEL_TEST_DEPS, |
| 5070 | ) |
| 5071 | |
| 5072 | xnnpack_unit_test( |
| 5073 | name = "u8_rmax_test", |
| 5074 | srcs = [ |
| 5075 | "test/u8-rmax.cc", |
| 5076 | "test/rmax-microkernel-tester.h", |
| 5077 | ] + MICROKERNEL_TEST_HDRS, |
| 5078 | deps = MICROKERNEL_TEST_DEPS, |
| 5079 | ) |
| 5080 | |
| 5081 | xnnpack_unit_test( |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 5082 | name = "x32_fill_test", |
| 5083 | srcs = [ |
| 5084 | "test/x32-fill.cc", |
| 5085 | "test/fill-microkernel-tester.h", |
| 5086 | ] + MICROKERNEL_TEST_HDRS, |
| 5087 | deps = MICROKERNEL_TEST_DEPS, |
| 5088 | ) |
| 5089 | |
| 5090 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5091 | name = "x32_packx_test", |
| 5092 | srcs = [ |
| 5093 | "test/x32-packx.cc", |
| 5094 | "test/pack-microkernel-tester.h", |
| 5095 | "src/xnnpack/AlignedAllocator.h", |
| 5096 | ] + MICROKERNEL_TEST_HDRS, |
| 5097 | deps = MICROKERNEL_TEST_DEPS, |
| 5098 | ) |
| 5099 | |
| 5100 | xnnpack_unit_test( |
| 5101 | name = "x32_pad_test", |
| 5102 | srcs = [ |
| 5103 | "test/x32-pad.cc", |
| 5104 | "test/pad-microkernel-tester.h", |
| 5105 | ] + MICROKERNEL_TEST_HDRS, |
| 5106 | deps = MICROKERNEL_TEST_DEPS, |
| 5107 | ) |
| 5108 | |
| 5109 | xnnpack_unit_test( |
| 5110 | name = "x32_unpool_test", |
| 5111 | srcs = [ |
| 5112 | "test/x32-unpool.cc", |
| 5113 | "test/unpool-microkernel-tester.h", |
| 5114 | ] + MICROKERNEL_TEST_HDRS, |
| 5115 | deps = MICROKERNEL_TEST_DEPS, |
| 5116 | ) |
| 5117 | |
| 5118 | xnnpack_unit_test( |
| 5119 | name = "x32_zip_test", |
| 5120 | srcs = [ |
| 5121 | "test/x32-zip.cc", |
| 5122 | "test/zip-microkernel-tester.h", |
| 5123 | ] + MICROKERNEL_TEST_HDRS, |
| 5124 | deps = MICROKERNEL_TEST_DEPS, |
| 5125 | ) |
| 5126 | |
| 5127 | xnnpack_unit_test( |
| 5128 | name = "x8_lut_test", |
| 5129 | srcs = [ |
| 5130 | "test/x8-lut.cc", |
| 5131 | "test/lut-microkernel-tester.h", |
| 5132 | ] + MICROKERNEL_TEST_HDRS, |
| 5133 | deps = MICROKERNEL_TEST_DEPS, |
| 5134 | ) |
| 5135 | |
| 5136 | xnnpack_unit_test( |
| 5137 | name = "x8_zip_test", |
| 5138 | srcs = [ |
| 5139 | "test/x8-zip.cc", |
| 5140 | "test/zip-microkernel-tester.h", |
| 5141 | ] + MICROKERNEL_TEST_HDRS, |
| 5142 | deps = MICROKERNEL_TEST_DEPS, |
| 5143 | ) |
| 5144 | |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 5145 | xnnpack_unit_test( |
| 5146 | name = "requantization_test", |
| 5147 | srcs = [ |
| 5148 | "src/xnnpack/requantization-stubs.h", |
| 5149 | "test/requantization.cc", |
| 5150 | "test/requantization-tester.h", |
| 5151 | ] + MICROKERNEL_TEST_HDRS, |
| 5152 | deps = MICROKERNEL_TEST_DEPS, |
| 5153 | ) |
| 5154 | |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 5155 | ########################## Size tests for the library ######################### |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5156 | |
| 5157 | xnnpack_binary( |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 5158 | name = "operator_size_test", |
| 5159 | srcs = ["test/operator-size.c"], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 5160 | deps = [":xnnpack_operators_nhwc_f32"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5161 | ) |
| 5162 | |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 5163 | xnnpack_binary( |
| 5164 | name = "subgraph_size_test", |
| 5165 | srcs = ["test/subgraph-size.c"], |
| 5166 | deps = [":XNNPACK"], |
| 5167 | ) |
| 5168 | |
| 5169 | ########################### Unit tests for operators ########################## |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5170 | |
| 5171 | xnnpack_unit_test( |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 5172 | name = "abs_nc_test", |
| 5173 | srcs = [ |
| 5174 | "test/abs-nc.cc", |
| 5175 | "test/abs-operator-tester.h", |
| 5176 | ], |
| 5177 | deps = OPERATOR_TEST_DEPS, |
| 5178 | ) |
| 5179 | |
| 5180 | xnnpack_unit_test( |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 5181 | name = "add_nd_test", |
| 5182 | srcs = [ |
| 5183 | "test/add-nd.cc", |
| 5184 | "test/binary-elementwise-operator-tester.h", |
| 5185 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5186 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 5187 | ) |
| 5188 | |
| 5189 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5190 | name = "argmax_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5191 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5192 | "test/argmax-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5193 | "test/argmax-pooling-operator-tester.h", |
| 5194 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5195 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5196 | ) |
| 5197 | |
| 5198 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5199 | name = "average_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5200 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5201 | "test/average-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5202 | "test/average-pooling-operator-tester.h", |
| 5203 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5204 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5205 | ) |
| 5206 | |
| 5207 | xnnpack_unit_test( |
Marat Dukhan | 64e5251 | 2020-06-09 13:41:16 -0700 | [diff] [blame] | 5208 | name = "bankers_rounding_nc_test", |
| 5209 | srcs = [ |
| 5210 | "test/bankers-rounding-nc.cc", |
| 5211 | "test/bankers-rounding-operator-tester.h", |
| 5212 | ], |
| 5213 | deps = OPERATOR_TEST_DEPS, |
| 5214 | ) |
| 5215 | |
| 5216 | xnnpack_unit_test( |
| 5217 | name = "ceiling_nc_test", |
| 5218 | srcs = [ |
| 5219 | "test/ceiling-nc.cc", |
| 5220 | "test/ceiling-operator-tester.h", |
| 5221 | ], |
| 5222 | deps = OPERATOR_TEST_DEPS, |
| 5223 | ) |
| 5224 | |
| 5225 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5226 | name = "channel_shuffle_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5227 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5228 | "test/channel-shuffle-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5229 | "test/channel-shuffle-operator-tester.h", |
| 5230 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5231 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5232 | ) |
| 5233 | |
| 5234 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5235 | name = "clamp_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5236 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5237 | "test/clamp-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5238 | "test/clamp-operator-tester.h", |
| 5239 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5240 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5241 | ) |
| 5242 | |
| 5243 | xnnpack_unit_test( |
Marat Dukhan | 065b11e | 2020-05-22 09:49:41 -0700 | [diff] [blame] | 5244 | name = "constant_pad_nd_test", |
| 5245 | srcs = [ |
| 5246 | "test/constant-pad-nd.cc", |
| 5247 | "test/constant-pad-operator-tester.h", |
| 5248 | ], |
| 5249 | deps = OPERATOR_TEST_DEPS, |
| 5250 | ) |
| 5251 | |
| 5252 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5253 | name = "convolution_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5254 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5255 | "test/convolution-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5256 | "test/convolution-operator-tester.h", |
| 5257 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5258 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5259 | ) |
| 5260 | |
| 5261 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5262 | name = "convolution_nchw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5263 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5264 | "test/convolution-nchw.cc", |
| 5265 | "test/convolution-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5266 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5267 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5268 | ) |
| 5269 | |
| 5270 | xnnpack_unit_test( |
Marat Dukhan | 4e21b27 | 2020-06-04 18:45:01 -0700 | [diff] [blame] | 5271 | name = "copy_nc_test", |
| 5272 | srcs = [ |
| 5273 | "test/copy-nc.cc", |
| 5274 | "test/copy-operator-tester.h", |
| 5275 | ], |
| 5276 | deps = OPERATOR_TEST_DEPS, |
| 5277 | ) |
| 5278 | |
| 5279 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5280 | name = "deconvolution_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5281 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5282 | "test/deconvolution-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5283 | "test/deconvolution-operator-tester.h", |
| 5284 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5285 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5286 | ) |
| 5287 | |
| 5288 | xnnpack_unit_test( |
Marat Dukhan | 6918050 | 2019-12-06 15:00:31 -0800 | [diff] [blame] | 5289 | name = "divide_nd_test", |
| 5290 | srcs = [ |
| 5291 | "test/binary-elementwise-operator-tester.h", |
| 5292 | "test/divide-nd.cc", |
| 5293 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5294 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 6918050 | 2019-12-06 15:00:31 -0800 | [diff] [blame] | 5295 | ) |
| 5296 | |
| 5297 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5298 | name = "fully_connected_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5299 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5300 | "test/fully-connected-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5301 | "test/fully-connected-operator-tester.h", |
| 5302 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5303 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5304 | ) |
| 5305 | |
| 5306 | xnnpack_unit_test( |
Marat Dukhan | 64e5251 | 2020-06-09 13:41:16 -0700 | [diff] [blame] | 5307 | name = "floor_nc_test", |
| 5308 | srcs = [ |
| 5309 | "test/floor-nc.cc", |
| 5310 | "test/floor-operator-tester.h", |
| 5311 | ], |
| 5312 | deps = OPERATOR_TEST_DEPS, |
| 5313 | ) |
| 5314 | |
| 5315 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5316 | name = "global_average_pooling_nwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5317 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5318 | "test/global-average-pooling-nwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5319 | "test/global-average-pooling-operator-tester.h", |
Marat Dukhan | ef61d02 | 2020-06-19 13:54:49 -0700 | [diff] [blame] | 5320 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5321 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5322 | ) |
| 5323 | |
| 5324 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5325 | name = "global_average_pooling_ncw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5326 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5327 | "test/global-average-pooling-ncw.cc", |
| 5328 | "test/global-average-pooling-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5329 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5330 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5331 | ) |
| 5332 | |
| 5333 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5334 | name = "hardswish_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5335 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5336 | "test/hardswish-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5337 | "test/hardswish-operator-tester.h", |
| 5338 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5339 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5340 | ) |
| 5341 | |
| 5342 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5343 | name = "leaky_relu_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5344 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5345 | "test/leaky-relu-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5346 | "test/leaky-relu-operator-tester.h", |
| 5347 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5348 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5349 | ) |
| 5350 | |
| 5351 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5352 | name = "max_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5353 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5354 | "test/max-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5355 | "test/max-pooling-operator-tester.h", |
| 5356 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5357 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5358 | ) |
| 5359 | |
| 5360 | xnnpack_unit_test( |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 5361 | name = "maximum_nd_test", |
| 5362 | srcs = [ |
| 5363 | "test/binary-elementwise-operator-tester.h", |
| 5364 | "test/maximum-nd.cc", |
| 5365 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5366 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 5367 | ) |
| 5368 | |
| 5369 | xnnpack_unit_test( |
| 5370 | name = "minimum_nd_test", |
| 5371 | srcs = [ |
| 5372 | "test/binary-elementwise-operator-tester.h", |
| 5373 | "test/minimum-nd.cc", |
| 5374 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5375 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 5376 | ) |
| 5377 | |
| 5378 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5379 | name = "multiply_nd_test", |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 5380 | srcs = [ |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 5381 | "test/binary-elementwise-operator-tester.h", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5382 | "test/multiply-nd.cc", |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 5383 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5384 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 5385 | ) |
| 5386 | |
| 5387 | xnnpack_unit_test( |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 5388 | name = "negate_nc_test", |
| 5389 | srcs = [ |
| 5390 | "test/negate-nc.cc", |
| 5391 | "test/negate-operator-tester.h", |
| 5392 | ], |
| 5393 | deps = OPERATOR_TEST_DEPS, |
| 5394 | ) |
| 5395 | |
| 5396 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5397 | name = "prelu_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5398 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5399 | "test/prelu-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5400 | "test/prelu-operator-tester.h", |
| 5401 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5402 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5403 | ) |
| 5404 | |
| 5405 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5406 | name = "resize_bilinear_nhwc_test", |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 5407 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5408 | "test/resize-bilinear-nhwc.cc", |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 5409 | "test/resize-bilinear-operator-tester.h", |
| 5410 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5411 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 5412 | ) |
| 5413 | |
| 5414 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5415 | name = "sigmoid_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5416 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5417 | "test/sigmoid-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5418 | "test/sigmoid-operator-tester.h", |
| 5419 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5420 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5421 | ) |
| 5422 | |
| 5423 | xnnpack_unit_test( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 5424 | name = "softmax_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5425 | srcs = [ |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 5426 | "test/softmax-nc.cc", |
| 5427 | "test/softmax-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5428 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5429 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5430 | ) |
| 5431 | |
| 5432 | xnnpack_unit_test( |
Marat Dukhan | 5020b96 | 2020-06-08 13:30:10 -0700 | [diff] [blame] | 5433 | name = "square_nc_test", |
| 5434 | srcs = [ |
| 5435 | "test/square-nc.cc", |
| 5436 | "test/square-operator-tester.h", |
| 5437 | ], |
| 5438 | deps = OPERATOR_TEST_DEPS, |
| 5439 | ) |
| 5440 | |
| 5441 | xnnpack_unit_test( |
Marat Dukhan | 6804bbd | 2020-06-30 19:26:11 -0700 | [diff] [blame] | 5442 | name = "square_root_nc_test", |
| 5443 | srcs = [ |
| 5444 | "test/square-root-nc.cc", |
| 5445 | "test/square-root-operator-tester.h", |
| 5446 | ], |
| 5447 | deps = OPERATOR_TEST_DEPS, |
| 5448 | ) |
| 5449 | |
| 5450 | xnnpack_unit_test( |
Marat Dukhan | f739926 | 2020-06-05 10:58:44 -0700 | [diff] [blame] | 5451 | name = "squared_difference_nd_test", |
| 5452 | srcs = [ |
| 5453 | "test/binary-elementwise-operator-tester.h", |
| 5454 | "test/squared-difference-nd.cc", |
| 5455 | ], |
| 5456 | deps = OPERATOR_TEST_DEPS, |
| 5457 | ) |
| 5458 | |
| 5459 | xnnpack_unit_test( |
Marat Dukhan | 05f3f6d | 2019-12-03 15:13:53 -0800 | [diff] [blame] | 5460 | name = "subtract_nd_test", |
| 5461 | srcs = [ |
| 5462 | "test/binary-elementwise-operator-tester.h", |
| 5463 | "test/subtract-nd.cc", |
| 5464 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5465 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 05f3f6d | 2019-12-03 15:13:53 -0800 | [diff] [blame] | 5466 | ) |
| 5467 | |
| 5468 | xnnpack_unit_test( |
Marat Dukhan | 64e5251 | 2020-06-09 13:41:16 -0700 | [diff] [blame] | 5469 | name = "truncation_nc_test", |
| 5470 | srcs = [ |
| 5471 | "test/truncation-nc.cc", |
| 5472 | "test/truncation-operator-tester.h", |
| 5473 | ], |
| 5474 | deps = OPERATOR_TEST_DEPS, |
| 5475 | ) |
| 5476 | |
| 5477 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5478 | name = "unpooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5479 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 5480 | "test/unpooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5481 | "test/unpooling-operator-tester.h", |
| 5482 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 5483 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5484 | ) |
| 5485 | |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 5486 | ############################### Misc unit tests ############################### |
| 5487 | |
| 5488 | xnnpack_unit_test( |
| 5489 | name = "memory_planner_test", |
| 5490 | srcs = [ |
| 5491 | "test/memory-planner-test.cc", |
| 5492 | ], |
| 5493 | deps = [ |
| 5494 | ":XNNPACK", |
| 5495 | ":memory_planner", |
| 5496 | ], |
| 5497 | ) |
| 5498 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5499 | ############################# Build configurations ############################# |
| 5500 | |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 5501 | # Enables usage of assembly kernels. |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5502 | config_setting( |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 5503 | name = "xnn_enable_assembly_explicit_true", |
| 5504 | define_values = {"xnn_enable_assembly": "true"}, |
| 5505 | ) |
| 5506 | |
| 5507 | # Disables usage of assembly kernels. |
| 5508 | config_setting( |
| 5509 | name = "xnn_enable_assembly_explicit_false", |
| 5510 | define_values = {"xnn_enable_assembly": "false"}, |
| 5511 | ) |
| 5512 | |
Marat Dukhan | 9de90e0 | 2020-06-18 16:04:12 -0700 | [diff] [blame] | 5513 | # Enables usage of sparse inference. |
| 5514 | config_setting( |
| 5515 | name = "xnn_enable_sparse_explicit_true", |
| 5516 | define_values = {"xnn_enable_sparse": "true"}, |
| 5517 | ) |
| 5518 | |
| 5519 | # Disables usage of sparse inference. |
| 5520 | config_setting( |
| 5521 | name = "xnn_enable_sparse_explicit_false", |
| 5522 | define_values = {"xnn_enable_sparse": "false"}, |
| 5523 | ) |
| 5524 | |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 5525 | # Disables usage of HMP-aware optimizations. |
| 5526 | config_setting( |
| 5527 | name = "xnn_enable_hmp_explicit_false", |
| 5528 | define_values = {"xnn_enable_hmp": "false"}, |
| 5529 | ) |
| 5530 | |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 5531 | # Enable usage of optimized memory allocation |
| 5532 | config_setting( |
| 5533 | name = "xnn_enable_memopt_explicit_true", |
| 5534 | define_values = {"xnnpack_enable_memopt": "true"}, |
| 5535 | ) |
| 5536 | |
| 5537 | # Disable usage of optimized memory allocation |
| 5538 | config_setting( |
| 5539 | name = "xnn_enable_memopt_explicit_false", |
| 5540 | define_values = {"xnnpack_enable_memopt": "false"}, |
| 5541 | ) |
| 5542 | |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 5543 | # Builds with -c dbg |
| 5544 | config_setting( |
| 5545 | name = "debug_build", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5546 | values = { |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 5547 | "compilation_mode": "dbg", |
| 5548 | }, |
| 5549 | ) |
| 5550 | |
| 5551 | # Builds with -c opt |
| 5552 | config_setting( |
| 5553 | name = "optimized_build", |
| 5554 | values = { |
| 5555 | "compilation_mode": "opt", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5556 | }, |
| 5557 | ) |
| 5558 | |
| 5559 | config_setting( |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 5560 | name = "linux_k8", |
| 5561 | values = {"cpu": "k8"}, |
| 5562 | ) |
| 5563 | |
| 5564 | config_setting( |
Marat Dukhan | 582094e | 2020-04-30 17:21:25 -0700 | [diff] [blame] | 5565 | name = "linux_arm", |
| 5566 | values = {"cpu": "arm"}, |
Marat Dukhan | 4e45e66 | 2019-10-03 15:40:24 -0700 | [diff] [blame] | 5567 | ) |
| 5568 | |
| 5569 | config_setting( |
Marat Dukhan | f0bd4de | 2020-06-15 15:53:19 -0700 | [diff] [blame] | 5570 | name = "linux_armeabi", |
| 5571 | values = {"cpu": "armeabi"}, |
| 5572 | ) |
| 5573 | |
| 5574 | config_setting( |
Terry Heo | 68eef3f | 2020-04-13 22:53:52 -0700 | [diff] [blame] | 5575 | name = "linux_armhf", |
| 5576 | values = {"cpu": "armhf"}, |
| 5577 | ) |
| 5578 | |
| 5579 | config_setting( |
Marat Dukhan | a720e93 | 2020-06-10 13:01:11 -0700 | [diff] [blame] | 5580 | name = "linux_armv7a", |
| 5581 | values = {"cpu": "armv7a"}, |
| 5582 | ) |
| 5583 | |
| 5584 | config_setting( |
Marat Dukhan | 582094e | 2020-04-30 17:21:25 -0700 | [diff] [blame] | 5585 | name = "linux_aarch64", |
| 5586 | values = {"cpu": "aarch64"}, |
| 5587 | ) |
| 5588 | |
| 5589 | config_setting( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5590 | name = "android", |
| 5591 | values = {"crosstool_top": "//external:android/crosstool"}, |
| 5592 | ) |
| 5593 | |
| 5594 | config_setting( |
| 5595 | name = "android_armv7", |
| 5596 | values = { |
| 5597 | "crosstool_top": "//external:android/crosstool", |
| 5598 | "cpu": "armeabi-v7a", |
| 5599 | }, |
| 5600 | ) |
| 5601 | |
| 5602 | config_setting( |
| 5603 | name = "android_arm64", |
| 5604 | values = { |
| 5605 | "crosstool_top": "//external:android/crosstool", |
| 5606 | "cpu": "arm64-v8a", |
| 5607 | }, |
| 5608 | ) |
| 5609 | |
| 5610 | config_setting( |
| 5611 | name = "android_x86", |
| 5612 | values = { |
| 5613 | "crosstool_top": "//external:android/crosstool", |
| 5614 | "cpu": "x86", |
| 5615 | }, |
| 5616 | ) |
| 5617 | |
| 5618 | config_setting( |
| 5619 | name = "android_x86_64", |
| 5620 | values = { |
| 5621 | "crosstool_top": "//external:android/crosstool", |
| 5622 | "cpu": "x86_64", |
| 5623 | }, |
| 5624 | ) |
| 5625 | |
| 5626 | config_setting( |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 5627 | name = "windows_x86_64", |
| 5628 | values = {"cpu": "x64_windows"}, |
Marat Dukhan | 9fe932e | 2020-04-11 17:14:15 -0700 | [diff] [blame] | 5629 | ) |
| 5630 | |
| 5631 | config_setting( |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 5632 | name = "windows_x86_64_clang", |
| 5633 | values = { |
| 5634 | "compiler": "clang-cl", |
| 5635 | "cpu": "x64_windows", |
| 5636 | }, |
| 5637 | ) |
| 5638 | |
| 5639 | config_setting( |
| 5640 | name = "windows_x86_64_mingw", |
| 5641 | values = { |
| 5642 | "compiler": "mingw-gcc", |
| 5643 | "cpu": "x64_windows", |
| 5644 | }, |
| 5645 | ) |
| 5646 | |
| 5647 | config_setting( |
| 5648 | name = "windows_x86_64_msys", |
| 5649 | values = { |
| 5650 | "compiler": "msys-gcc", |
| 5651 | "cpu": "x64_windows", |
| 5652 | }, |
Marat Dukhan | 9fe932e | 2020-04-11 17:14:15 -0700 | [diff] [blame] | 5653 | ) |
| 5654 | |
| 5655 | config_setting( |
Marat Dukhan | 885ca24 | 2019-10-07 09:17:32 -0700 | [diff] [blame] | 5656 | name = "macos_x86_64", |
| 5657 | values = { |
| 5658 | "apple_platform_type": "macos", |
| 5659 | "cpu": "darwin", |
| 5660 | }, |
| 5661 | ) |
| 5662 | |
| 5663 | config_setting( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5664 | name = "emscripten", |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 5665 | values = {"crosstool_top": "//toolchain:emscripten"}, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5666 | ) |
| 5667 | |
| 5668 | config_setting( |
| 5669 | name = "emscripten_wasm", |
| 5670 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 5671 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5672 | "cpu": "wasm", |
| 5673 | }, |
| 5674 | ) |
| 5675 | |
| 5676 | config_setting( |
| 5677 | name = "emscripten_wasmsimd", |
| 5678 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 5679 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5680 | "cpu": "wasm", |
Marat Dukhan | 81c6260 | 2020-05-29 13:22:49 -0700 | [diff] [blame] | 5681 | "copt": "-msimd128", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5682 | }, |
| 5683 | ) |
| 5684 | |
| 5685 | config_setting( |
| 5686 | name = "emscripten_asmjs", |
| 5687 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 5688 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 5689 | "cpu": "asmjs", |
| 5690 | }, |
| 5691 | ) |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5692 | |
| 5693 | config_setting( |
| 5694 | name = "ios_armv7", |
| 5695 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5696 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5697 | "cpu": "ios_armv7", |
| 5698 | }, |
| 5699 | ) |
| 5700 | |
| 5701 | config_setting( |
| 5702 | name = "ios_arm64", |
| 5703 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5704 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5705 | "cpu": "ios_arm64", |
| 5706 | }, |
| 5707 | ) |
| 5708 | |
| 5709 | config_setting( |
| 5710 | name = "ios_arm64e", |
| 5711 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5712 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5713 | "cpu": "ios_arm64e", |
| 5714 | }, |
| 5715 | ) |
| 5716 | |
| 5717 | config_setting( |
| 5718 | name = "ios_x86", |
| 5719 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5720 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5721 | "cpu": "ios_i386", |
| 5722 | }, |
| 5723 | ) |
| 5724 | |
| 5725 | config_setting( |
| 5726 | name = "ios_x86_64", |
| 5727 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5728 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5729 | "cpu": "ios_x86_64", |
| 5730 | }, |
| 5731 | ) |
| 5732 | |
| 5733 | config_setting( |
| 5734 | name = "watchos_armv7k", |
| 5735 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5736 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5737 | "cpu": "watchos_armv7k", |
| 5738 | }, |
| 5739 | ) |
| 5740 | |
| 5741 | config_setting( |
| 5742 | name = "watchos_arm64_32", |
| 5743 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5744 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5745 | "cpu": "watchos_arm64_32", |
| 5746 | }, |
| 5747 | ) |
| 5748 | |
| 5749 | config_setting( |
| 5750 | name = "watchos_x86", |
| 5751 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5752 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5753 | "cpu": "watchos_i386", |
| 5754 | }, |
| 5755 | ) |
| 5756 | |
| 5757 | config_setting( |
| 5758 | name = "watchos_x86_64", |
| 5759 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5760 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5761 | "cpu": "watchos_x86_64", |
| 5762 | }, |
| 5763 | ) |
| 5764 | |
| 5765 | config_setting( |
| 5766 | name = "tvos_arm64", |
| 5767 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5768 | "apple_platform_type": "tvos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5769 | "cpu": "tvos_arm64", |
| 5770 | }, |
| 5771 | ) |
| 5772 | |
| 5773 | config_setting( |
| 5774 | name = "tvos_x86_64", |
| 5775 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 5776 | "apple_platform_type": "tvos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 5777 | "cpu": "tvos_x86_64", |
| 5778 | }, |
| 5779 | ) |