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", |
| 19 | "@pthreadpool", |
| 20 | ] |
| 21 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 22 | MICROKERNEL_BENCHMARK_DEPS = [ |
| 23 | ":ukernels", |
| 24 | ":bench_utils", |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 25 | ":enable_assembly", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 26 | "@cpuinfo", |
| 27 | "@FP16", |
| 28 | "@pthreadpool", |
| 29 | ] |
| 30 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 31 | ACCURACY_EVAL_DEPS = [ |
| 32 | ":XNNPACK", |
| 33 | ":ukernels", |
| 34 | "@FP16", |
| 35 | "@pthreadpool", |
| 36 | ] |
| 37 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 38 | MICROKERNEL_TEST_DEPS = [ |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 39 | ":ukernels_test_mode", |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 40 | ":enable_assembly", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 41 | "@cpuinfo", |
| 42 | "@FP16", |
| 43 | "@pthreadpool", |
| 44 | ] |
| 45 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 46 | OPERATOR_TEST_DEPS = [ |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 47 | ":XNNPACK_test_mode", |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 48 | "@pthreadpool", |
| 49 | "@FP16", |
| 50 | ] |
| 51 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 52 | OPERATOR_SRCS = [ |
Marat Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 53 | "src/operators/add-nc.c", |
| 54 | "src/operators/argmax-pooling-nhwc.c", |
| 55 | "src/operators/average-pooling-nhwc.c", |
| 56 | "src/operators/binary-elementwise-nd.c", |
| 57 | "src/operators/channel-pad-nc.c", |
| 58 | "src/operators/channel-shuffle-nc.c", |
| 59 | "src/operators/clamp-nc.c", |
Marat Dukhan | 065b11e | 2020-05-22 09:49:41 -0700 | [diff] [blame] | 60 | "src/operators/constant-pad-nd.c", |
Marat Dukhan | e826543 | 2020-04-28 18:42:59 -0700 | [diff] [blame] | 61 | "src/operators/convolution-nchw.c", |
| 62 | "src/operators/convolution-nhwc.c", |
| 63 | "src/operators/deconvolution-nhwc.c", |
| 64 | "src/operators/fully-connected-nc.c", |
| 65 | "src/operators/global-average-pooling-ncw.c", |
| 66 | "src/operators/global-average-pooling-nwc.c", |
| 67 | "src/operators/hardswish-nc.c", |
| 68 | "src/operators/leaky-relu-nc.c", |
| 69 | "src/operators/max-pooling-nhwc.c", |
| 70 | "src/operators/prelu-nc.c", |
| 71 | "src/operators/resize-bilinear-nhwc.c", |
| 72 | "src/operators/sigmoid-nc.c", |
| 73 | "src/operators/softmax-nc.c", |
| 74 | "src/operators/unpooling-nhwc.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 75 | ] |
| 76 | |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 77 | TABLE_SRCS = [ |
| 78 | "src/tables/exp2-k-over-64.c", |
| 79 | "src/tables/exp2-k-over-2048.c", |
| 80 | ] |
| 81 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 82 | SCALAR_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 83 | "src/f32-argmaxpool/4x-scalar-c1.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 84 | "src/f32-argmaxpool/9p8x-scalar-c1.c", |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 85 | "src/f32-argmaxpool/9x-scalar-c1.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 86 | "src/f32-avgpool/9p8x-minmax-scalar-c1.c", |
| 87 | "src/f32-avgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 88 | "src/f32-clamp/gen/scalar-x1.c", |
| 89 | "src/f32-clamp/gen/scalar-x2.c", |
| 90 | "src/f32-clamp/gen/scalar-x4.c", |
Marat Dukhan | 441e221 | 2019-12-04 18:30:49 -0800 | [diff] [blame] | 91 | "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c", |
Marat Dukhan | 6b7dfae | 2019-12-04 16:00:52 -0800 | [diff] [blame] | 92 | "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 93 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-scalar-1x1.c", |
| 94 | "src/f32-dwconv-chw/3x3p1-scalar.c", |
| 95 | "src/f32-dwconv-chw/3x3s2p1-scalar.c", |
| 96 | "src/f32-dwconv-chw/5x5p2-scalar.c", |
| 97 | "src/f32-dwconv-chw/5x5s2p2-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 98 | "src/f32-dwconv/gen/up1x4-scalar-acc2.c", |
| 99 | "src/f32-dwconv/gen/up1x4-scalar.c", |
| 100 | "src/f32-dwconv/gen/up1x9-scalar-acc2.c", |
| 101 | "src/f32-dwconv/gen/up1x9-scalar.c", |
| 102 | "src/f32-dwconv/gen/up1x25-scalar-acc2.c", |
| 103 | "src/f32-dwconv/gen/up1x25-scalar.c", |
| 104 | "src/f32-dwconv/gen/up2x4-scalar-acc2.c", |
| 105 | "src/f32-dwconv/gen/up2x4-scalar.c", |
| 106 | "src/f32-dwconv/gen/up2x9-scalar-acc2.c", |
| 107 | "src/f32-dwconv/gen/up2x9-scalar.c", |
| 108 | "src/f32-dwconv/gen/up2x25-scalar-acc2.c", |
| 109 | "src/f32-dwconv/gen/up2x25-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 110 | "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c", |
| 111 | "src/f32-dwconv/gen/up1x4-minmax-scalar.c", |
| 112 | "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c", |
| 113 | "src/f32-dwconv/gen/up1x9-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 114 | "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c", |
| 115 | "src/f32-dwconv/gen/up1x25-minmax-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 116 | "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c", |
| 117 | "src/f32-dwconv/gen/up2x4-minmax-scalar.c", |
| 118 | "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c", |
| 119 | "src/f32-dwconv/gen/up2x9-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 120 | "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c", |
| 121 | "src/f32-dwconv/gen/up2x25-minmax-scalar.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 122 | "src/f32-gavgpool-cw/scalar-x1.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 123 | "src/f32-gavgpool/7p7x-minmax-scalar-c1.c", |
| 124 | "src/f32-gavgpool/7x-minmax-scalar-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 125 | "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c", |
| 126 | "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c", |
| 127 | "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 128 | "src/f32-gemm/gen/1x4-scalar.c", |
| 129 | "src/f32-gemm/gen/2x4-scalar.c", |
| 130 | "src/f32-gemm/gen/4x2-scalar.c", |
| 131 | "src/f32-gemm/gen/4x4-scalar.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 132 | "src/f32-gemm/gen/1x4-relu-scalar.c", |
| 133 | "src/f32-gemm/gen/2x4-relu-scalar.c", |
| 134 | "src/f32-gemm/gen/4x2-relu-scalar.c", |
| 135 | "src/f32-gemm/gen/4x4-relu-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 136 | "src/f32-gemm/gen/1x4-minmax-scalar.c", |
| 137 | "src/f32-gemm/gen/2x4-minmax-scalar.c", |
| 138 | "src/f32-gemm/gen/4x2-minmax-scalar.c", |
| 139 | "src/f32-gemm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 140 | "src/f32-hswish/gen/scalar-x1.c", |
| 141 | "src/f32-hswish/gen/scalar-x2.c", |
| 142 | "src/f32-hswish/gen/scalar-x4.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 143 | "src/f32-ibilinear/gen/scalar-c1.c", |
| 144 | "src/f32-ibilinear/gen/scalar-c2.c", |
| 145 | "src/f32-ibilinear/gen/scalar-c4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 146 | "src/f32-igemm/gen/1x4-scalar.c", |
| 147 | "src/f32-igemm/gen/2x4-scalar.c", |
| 148 | "src/f32-igemm/gen/4x2-scalar.c", |
| 149 | "src/f32-igemm/gen/4x4-scalar.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 150 | "src/f32-igemm/gen/1x4-relu-scalar.c", |
| 151 | "src/f32-igemm/gen/2x4-relu-scalar.c", |
| 152 | "src/f32-igemm/gen/4x2-relu-scalar.c", |
| 153 | "src/f32-igemm/gen/4x4-relu-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 154 | "src/f32-igemm/gen/1x4-minmax-scalar.c", |
| 155 | "src/f32-igemm/gen/2x4-minmax-scalar.c", |
| 156 | "src/f32-igemm/gen/4x2-minmax-scalar.c", |
| 157 | "src/f32-igemm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 158 | "src/f32-maxpool/9p8x-minmax-scalar-c1.c", |
| 159 | "src/f32-pavgpool/9p8x-minmax-scalar-c1.c", |
| 160 | "src/f32-pavgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 161 | "src/f32-ppmm/gen/2x4-minmax-scalar.c", |
| 162 | "src/f32-ppmm/gen/3x3-minmax-scalar.c", |
| 163 | "src/f32-ppmm/gen/4x2-minmax-scalar.c", |
| 164 | "src/f32-ppmm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 165 | "src/f32-prelu/gen/scalar-2x1.c", |
| 166 | "src/f32-prelu/gen/scalar-2x4.c", |
Marat Dukhan | f46f675 | 2020-01-21 11:03:49 -0800 | [diff] [blame] | 167 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c", |
| 168 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c", |
| 169 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c", |
| 170 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c", |
| 171 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c", |
| 172 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c", |
| 173 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c", |
| 174 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c", |
| 175 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c", |
| 176 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c", |
| 177 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c", |
| 178 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 179 | "src/f32-rmax/scalar.c", |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 180 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c", |
| 181 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c", |
| 182 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c", |
| 183 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c", |
| 184 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c", |
| 185 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c", |
| 186 | "src/f32-sigmoid/gen/scalar-p5-div-x1.c", |
| 187 | "src/f32-sigmoid/gen/scalar-p5-div-x2.c", |
| 188 | "src/f32-sigmoid/gen/scalar-p5-div-x4.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 189 | "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c", |
| 190 | "src/f32-spmm/gen/1x1-minmax-scalar.c", |
| 191 | "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c", |
| 192 | "src/f32-spmm/gen/2x1-minmax-scalar.c", |
| 193 | "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c", |
| 194 | "src/f32-spmm/gen/4x1-minmax-scalar.c", |
| 195 | "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c", |
| 196 | "src/f32-spmm/gen/8x1-minmax-scalar.c", |
| 197 | "src/f32-spmm/gen/8x2-minmax-scalar.c", |
| 198 | "src/f32-spmm/gen/8x4-minmax-scalar.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 199 | "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c", |
| 200 | "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c", |
| 201 | "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c", |
| 202 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c", |
| 203 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c", |
| 204 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c", |
| 205 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c", |
| 206 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c", |
| 207 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c", |
| 208 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c", |
| 209 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c", |
| 210 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 211 | "src/f32-vbinary/gen/vmax-scalar-x1.c", |
| 212 | "src/f32-vbinary/gen/vmax-scalar-x2.c", |
| 213 | "src/f32-vbinary/gen/vmax-scalar-x4.c", |
| 214 | "src/f32-vbinary/gen/vmaxc-scalar-x1.c", |
| 215 | "src/f32-vbinary/gen/vmaxc-scalar-x2.c", |
| 216 | "src/f32-vbinary/gen/vmaxc-scalar-x4.c", |
| 217 | "src/f32-vbinary/gen/vmin-scalar-x1.c", |
| 218 | "src/f32-vbinary/gen/vmin-scalar-x2.c", |
| 219 | "src/f32-vbinary/gen/vmin-scalar-x4.c", |
| 220 | "src/f32-vbinary/gen/vminc-scalar-x1.c", |
| 221 | "src/f32-vbinary/gen/vminc-scalar-x2.c", |
| 222 | "src/f32-vbinary/gen/vminc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 223 | "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c", |
| 224 | "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c", |
| 225 | "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c", |
| 226 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c", |
| 227 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c", |
| 228 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c", |
| 229 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c", |
| 230 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c", |
| 231 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c", |
| 232 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c", |
| 233 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c", |
| 234 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c", |
| 235 | "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c", |
| 236 | "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c", |
| 237 | "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c", |
| 238 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c", |
| 239 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c", |
| 240 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 241 | "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c", |
| 242 | "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c", |
| 243 | "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c", |
Marat Dukhan | 5739f70 | 2019-12-22 19:45:09 -0800 | [diff] [blame] | 244 | "src/math/expminus-scalar-lut2048-p1.c", |
| 245 | "src/math/expminus-scalar-lut64-p2.c", |
| 246 | "src/math/expminus-scalar-p5.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 247 | "src/math/roundne-scalar-addsub.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 248 | "src/math/roundne-scalar-nearbyint.c", |
| 249 | "src/math/roundne-scalar-rint.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 250 | "src/math/roundd-scalar-addsub.c", |
| 251 | "src/math/roundd-scalar-cvt.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 252 | "src/math/roundd-scalar-floor.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 253 | "src/math/roundu-scalar-addsub.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 254 | "src/math/roundu-scalar-ceil.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 255 | "src/math/roundu-scalar-cvt.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 256 | "src/math/roundz-scalar-addsub.c", |
| 257 | "src/math/roundz-scalar-cvt.c", |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 258 | "src/math/roundz-scalar-trunc.c", |
Marat Dukhan | 5739f70 | 2019-12-22 19:45:09 -0800 | [diff] [blame] | 259 | "src/math/sigmoid-scalar-lut2048-p1-div.c", |
| 260 | "src/math/sigmoid-scalar-lut64-p2-div.c", |
| 261 | "src/math/sigmoid-scalar-p5-div.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 262 | "src/q8-avgpool/9p8x-minmax-scalar-c1.c", |
| 263 | "src/q8-avgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 264 | "src/q8-dwconv/up1x9-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 265 | "src/q8-gavgpool/7p7x-minmax-scalar-c1.c", |
| 266 | "src/q8-gavgpool/7x-minmax-scalar-c1.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 267 | "src/q8-gemm/2x2-minmax-scalar.c", |
| 268 | "src/q8-igemm/2x2-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 269 | "src/q8-vadd/minmax-scalar.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 270 | "src/u8-clamp/scalar-x4.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 271 | "src/u8-lut32norm/scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 272 | "src/u8-maxpool/9p8x-minmax-scalar-c1.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 273 | "src/u8-rmax/scalar.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 274 | "src/x32-fill/scalar-float.c", |
| 275 | "src/x32-fill/scalar-int.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 276 | "src/x32-packx/x2-scalar.c", |
| 277 | "src/x32-packx/x3-scalar.c", |
| 278 | "src/x32-packx/x4-scalar.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 279 | "src/x32-pad/scalar-int.c", |
| 280 | "src/x32-pad/scalar-float.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 281 | "src/x32-unpool/scalar.c", |
| 282 | "src/x32-zip/x2-scalar.c", |
| 283 | "src/x32-zip/x3-scalar.c", |
| 284 | "src/x32-zip/x4-scalar.c", |
| 285 | "src/x32-zip/xm-scalar.c", |
| 286 | "src/x8-lut/scalar.c", |
| 287 | "src/x8-zip/x2-scalar.c", |
| 288 | "src/x8-zip/x3-scalar.c", |
| 289 | "src/x8-zip/x4-scalar.c", |
| 290 | "src/x8-zip/xm-scalar.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 291 | "src/requantization/precise-scalar.c", |
| 292 | "src/requantization/fp32-scalar.c", |
| 293 | "src/requantization/q31-scalar.c", |
| 294 | "src/requantization/gemmlowp-scalar.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 295 | ] |
| 296 | |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 297 | WASM_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 298 | "src/f32-avgpool/9p8x-minmax-wasm-c1.c", |
| 299 | "src/f32-avgpool/9x-minmax-wasm-c1.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 300 | "src/f32-clamp/gen/wasm-x1.c", |
| 301 | "src/f32-clamp/gen/wasm-x2.c", |
| 302 | "src/f32-clamp/gen/wasm-x4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 303 | "src/f32-dwconv/gen/up1x4-wasm-acc2.c", |
| 304 | "src/f32-dwconv/gen/up1x4-wasm.c", |
| 305 | "src/f32-dwconv/gen/up1x9-wasm-acc2.c", |
| 306 | "src/f32-dwconv/gen/up1x9-wasm.c", |
| 307 | "src/f32-dwconv/gen/up1x25-wasm-acc2.c", |
| 308 | "src/f32-dwconv/gen/up1x25-wasm.c", |
| 309 | "src/f32-dwconv/gen/up2x4-wasm-acc2.c", |
| 310 | "src/f32-dwconv/gen/up2x4-wasm.c", |
| 311 | "src/f32-dwconv/gen/up2x9-wasm-acc2.c", |
| 312 | "src/f32-dwconv/gen/up2x9-wasm.c", |
| 313 | "src/f32-dwconv/gen/up2x25-wasm-acc2.c", |
| 314 | "src/f32-dwconv/gen/up2x25-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 315 | "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c", |
| 316 | "src/f32-dwconv/gen/up1x4-minmax-wasm.c", |
| 317 | "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c", |
| 318 | "src/f32-dwconv/gen/up1x9-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 319 | "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c", |
| 320 | "src/f32-dwconv/gen/up1x25-minmax-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 321 | "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c", |
| 322 | "src/f32-dwconv/gen/up2x4-minmax-wasm.c", |
| 323 | "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c", |
| 324 | "src/f32-dwconv/gen/up2x9-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 325 | "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c", |
| 326 | "src/f32-dwconv/gen/up2x25-minmax-wasm.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 327 | "src/f32-gavgpool/7p7x-minmax-wasm-c1.c", |
| 328 | "src/f32-gavgpool/7x-minmax-wasm-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 329 | "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c", |
| 330 | "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c", |
| 331 | "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 332 | "src/f32-gemm/gen/1x4-wasm.c", |
| 333 | "src/f32-gemm/gen/2x4-wasm.c", |
| 334 | "src/f32-gemm/gen/4x2-wasm.c", |
| 335 | "src/f32-gemm/gen/4x4-wasm.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 336 | "src/f32-gemm/gen/1x4-relu-wasm.c", |
| 337 | "src/f32-gemm/gen/2x4-relu-wasm.c", |
| 338 | "src/f32-gemm/gen/4x2-relu-wasm.c", |
| 339 | "src/f32-gemm/gen/4x4-relu-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 340 | "src/f32-gemm/gen/1x4-minmax-wasm.c", |
| 341 | "src/f32-gemm/gen/2x4-minmax-wasm.c", |
| 342 | "src/f32-gemm/gen/4x2-minmax-wasm.c", |
| 343 | "src/f32-gemm/gen/4x4-minmax-wasm.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 344 | "src/f32-hswish/gen/wasm-x1.c", |
| 345 | "src/f32-hswish/gen/wasm-x2.c", |
| 346 | "src/f32-hswish/gen/wasm-x4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 347 | "src/f32-igemm/gen/1x4-wasm.c", |
| 348 | "src/f32-igemm/gen/2x4-wasm.c", |
| 349 | "src/f32-igemm/gen/4x2-wasm.c", |
| 350 | "src/f32-igemm/gen/4x4-wasm.c", |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 351 | "src/f32-igemm/gen/1x4-relu-wasm.c", |
| 352 | "src/f32-igemm/gen/2x4-relu-wasm.c", |
| 353 | "src/f32-igemm/gen/4x2-relu-wasm.c", |
| 354 | "src/f32-igemm/gen/4x4-relu-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 355 | "src/f32-igemm/gen/1x4-minmax-wasm.c", |
| 356 | "src/f32-igemm/gen/2x4-minmax-wasm.c", |
| 357 | "src/f32-igemm/gen/4x2-minmax-wasm.c", |
| 358 | "src/f32-igemm/gen/4x4-minmax-wasm.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 359 | "src/f32-maxpool/9p8x-minmax-wasm-c1.c", |
| 360 | "src/f32-pavgpool/9p8x-minmax-wasm-c1.c", |
| 361 | "src/f32-pavgpool/9x-minmax-wasm-c1.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 362 | "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c", |
| 363 | "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c", |
| 364 | "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c", |
| 365 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c", |
| 366 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c", |
| 367 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c", |
| 368 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c", |
| 369 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c", |
| 370 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c", |
| 371 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c", |
| 372 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c", |
| 373 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 374 | "src/f32-vbinary/gen/vmax-wasm-x1.c", |
| 375 | "src/f32-vbinary/gen/vmax-wasm-x2.c", |
| 376 | "src/f32-vbinary/gen/vmax-wasm-x4.c", |
| 377 | "src/f32-vbinary/gen/vmaxc-wasm-x1.c", |
| 378 | "src/f32-vbinary/gen/vmaxc-wasm-x2.c", |
| 379 | "src/f32-vbinary/gen/vmaxc-wasm-x4.c", |
| 380 | "src/f32-vbinary/gen/vmin-wasm-x1.c", |
| 381 | "src/f32-vbinary/gen/vmin-wasm-x2.c", |
| 382 | "src/f32-vbinary/gen/vmin-wasm-x4.c", |
| 383 | "src/f32-vbinary/gen/vminc-wasm-x1.c", |
| 384 | "src/f32-vbinary/gen/vminc-wasm-x2.c", |
| 385 | "src/f32-vbinary/gen/vminc-wasm-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 386 | "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c", |
| 387 | "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c", |
| 388 | "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c", |
| 389 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c", |
| 390 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c", |
| 391 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c", |
| 392 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c", |
| 393 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c", |
| 394 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c", |
| 395 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c", |
| 396 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c", |
| 397 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c", |
| 398 | "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c", |
| 399 | "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c", |
| 400 | "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c", |
| 401 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c", |
| 402 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c", |
| 403 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 404 | "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c", |
| 405 | "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c", |
| 406 | "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c", |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 407 | ] |
| 408 | |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 409 | PSIMD_FASTMATH_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 410 | "src/f32-argmaxpool/4x-psimd-c4.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 411 | "src/f32-argmaxpool/9p8x-psimd-c4.c", |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 412 | "src/f32-argmaxpool/9x-psimd-c4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 413 | "src/f32-avgpool/9p8x-minmax-psimd-c4.c", |
| 414 | "src/f32-avgpool/9x-minmax-psimd-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 415 | "src/f32-clamp/gen/psimd-x4.c", |
| 416 | "src/f32-clamp/gen/psimd-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 417 | "src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c", |
| 418 | "src/f32-dwconv/gen/up4x25-minmax-psimd.c", |
| 419 | "src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c", |
| 420 | "src/f32-dwconv/gen/up4x4-minmax-psimd.c", |
| 421 | "src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c", |
| 422 | "src/f32-dwconv/gen/up4x9-minmax-psimd.c", |
| 423 | "src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c", |
| 424 | "src/f32-dwconv/gen/up8x25-minmax-psimd.c", |
| 425 | "src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c", |
| 426 | "src/f32-dwconv/gen/up8x4-minmax-psimd.c", |
| 427 | "src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c", |
| 428 | "src/f32-dwconv/gen/up8x9-minmax-psimd.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 429 | "src/f32-gavgpool/7p7x-minmax-psimd-c4.c", |
| 430 | "src/f32-gavgpool/7x-minmax-psimd-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 431 | "src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c", |
| 432 | "src/f32-gemm/gen/1x8-minmax-psimd-splat.c", |
| 433 | "src/f32-gemm/gen/1x8s4-minmax-psimd.c", |
| 434 | "src/f32-gemm/gen/4x2c4-minmax-psimd.c", |
| 435 | "src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c", |
| 436 | "src/f32-gemm/gen/4x8-minmax-psimd-splat.c", |
| 437 | "src/f32-gemm/gen/4x8s4-minmax-psimd.c", |
| 438 | "src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c", |
| 439 | "src/f32-gemm/gen/6x8-minmax-psimd-splat.c", |
| 440 | "src/f32-gemm/gen/6x8s4-minmax-psimd.c", |
| 441 | "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c", |
| 442 | "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c", |
| 443 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c", |
| 444 | "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c", |
| 445 | "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c", |
| 446 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c", |
| 447 | "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c", |
| 448 | "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c", |
| 449 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 450 | "src/f32-hswish/gen/psimd-x4.c", |
| 451 | "src/f32-hswish/gen/psimd-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 452 | "src/f32-ibilinear/gen/psimd-c4.c", |
| 453 | "src/f32-ibilinear/gen/psimd-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 454 | "src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c", |
| 455 | "src/f32-igemm/gen/1x8-minmax-psimd-splat.c", |
| 456 | "src/f32-igemm/gen/1x8s4-minmax-psimd.c", |
| 457 | "src/f32-igemm/gen/4x2c4-minmax-psimd.c", |
| 458 | "src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c", |
| 459 | "src/f32-igemm/gen/4x8-minmax-psimd-splat.c", |
| 460 | "src/f32-igemm/gen/4x8s4-minmax-psimd.c", |
| 461 | "src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c", |
| 462 | "src/f32-igemm/gen/6x8-minmax-psimd-splat.c", |
| 463 | "src/f32-igemm/gen/6x8s4-minmax-psimd.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 464 | "src/f32-maxpool/9p8x-minmax-psimd-c4.c", |
| 465 | "src/f32-pavgpool/9p8x-minmax-psimd-c4.c", |
| 466 | "src/f32-pavgpool/9x-minmax-psimd-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 467 | "src/f32-ppmm/gen/4x8-minmax-psimd.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 468 | "src/f32-prelu/gen/psimd-2x4.c", |
| 469 | "src/f32-prelu/gen/psimd-2x8.c", |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 470 | "src/f32-rmax/psimd.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 471 | "src/f32-vbinary/gen/vadd-minmax-psimd-x4.c", |
| 472 | "src/f32-vbinary/gen/vadd-minmax-psimd-x8.c", |
| 473 | "src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c", |
| 474 | "src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c", |
| 475 | "src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c", |
| 476 | "src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c", |
| 477 | "src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c", |
| 478 | "src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 479 | "src/f32-vbinary/gen/vmax-psimd-x4.c", |
| 480 | "src/f32-vbinary/gen/vmax-psimd-x8.c", |
| 481 | "src/f32-vbinary/gen/vmaxc-psimd-x4.c", |
| 482 | "src/f32-vbinary/gen/vmaxc-psimd-x8.c", |
| 483 | "src/f32-vbinary/gen/vmin-psimd-x4.c", |
| 484 | "src/f32-vbinary/gen/vmin-psimd-x8.c", |
| 485 | "src/f32-vbinary/gen/vminc-psimd-x4.c", |
| 486 | "src/f32-vbinary/gen/vminc-psimd-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 487 | "src/f32-vbinary/gen/vmul-minmax-psimd-x4.c", |
| 488 | "src/f32-vbinary/gen/vmul-minmax-psimd-x8.c", |
| 489 | "src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c", |
| 490 | "src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c", |
| 491 | "src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c", |
| 492 | "src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c", |
| 493 | "src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c", |
| 494 | "src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c", |
| 495 | "src/f32-vbinary/gen/vsub-minmax-psimd-x4.c", |
| 496 | "src/f32-vbinary/gen/vsub-minmax-psimd-x8.c", |
| 497 | "src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c", |
| 498 | "src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 499 | "src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c", |
| 500 | "src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 501 | "src/x32-fill/psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 502 | "src/x32-packx/x4-psimd.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 503 | "src/x32-pad/psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 504 | "src/x32-unpool/psimd.c", |
| 505 | "src/x32-zip/x2-psimd.c", |
| 506 | "src/x32-zip/x3-psimd.c", |
| 507 | "src/x32-zip/x4-psimd.c", |
| 508 | "src/x32-zip/xm-psimd.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 509 | "src/requantization/precise-psimd.c", |
| 510 | "src/requantization/fp32-psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 511 | ] |
| 512 | |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 513 | PSIMD_ACCMATH_UKERNELS = [ |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 514 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c", |
| 515 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c", |
| 516 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c", |
| 517 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c", |
| 518 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c", |
| 519 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c", |
| 520 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c", |
| 521 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c", |
| 522 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c", |
| 523 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c", |
| 524 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c", |
| 525 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 526 | "src/f32-sigmoid/gen/psimd-p5-div-x4.c", |
| 527 | "src/f32-sigmoid/gen/psimd-p5-div-x8.c", |
| 528 | "src/f32-sigmoid/gen/psimd-p5-div-x12.c", |
| 529 | "src/f32-sigmoid/gen/psimd-p5-div-x16.c", |
| 530 | "src/f32-sigmoid/gen/psimd-p5-div-x20.c", |
| 531 | "src/f32-sigmoid/gen/psimd-p5-div-x24.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 532 | "src/math/roundne-psimd-addsub.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 533 | "src/math/roundd-psimd-addsub.c", |
| 534 | "src/math/roundu-psimd-addsub.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 535 | "src/math/roundz-psimd-addsub.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 536 | "src/math/sigmoid-psimd-p5-div.c", |
| 537 | ] |
| 538 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 539 | # ISA-specific micro-kernels |
| 540 | NEON_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 541 | "src/f32-avgpool/9p8x-minmax-neon-c4.c", |
| 542 | "src/f32-avgpool/9x-minmax-neon-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 543 | "src/f32-clamp/gen/neon-x4.c", |
| 544 | "src/f32-clamp/gen/neon-x8.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 545 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x1.c", |
| 546 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 547 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neon-2x2.c", |
| 548 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neon-2x2.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 549 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x1.c", |
| 550 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 551 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neon-2x2.c", |
| 552 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neon-2x2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 553 | "src/f32-dwconv/gen/up4x4-minmax-neon.c", |
| 554 | "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c", |
| 555 | "src/f32-dwconv/gen/up8x4-minmax-neon.c", |
| 556 | "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 557 | "src/f32-dwconv/gen/up4x9-minmax-neon.c", |
| 558 | "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c", |
| 559 | "src/f32-dwconv/gen/up8x9-minmax-neon.c", |
| 560 | "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 561 | "src/f32-dwconv/gen/up4x25-minmax-neon.c", |
| 562 | "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c", |
| 563 | "src/f32-dwconv/gen/up8x25-minmax-neon.c", |
| 564 | "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 565 | "src/f32-gavgpool-cw/neon-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 566 | "src/f32-gavgpool/7p7x-minmax-neon-c4.c", |
| 567 | "src/f32-gavgpool/7x-minmax-neon-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 568 | "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c", |
| 569 | "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c", |
| 570 | "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c", |
| 571 | "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c", |
| 572 | "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c", |
| 573 | "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c", |
| 574 | "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c", |
| 575 | "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c", |
| 576 | "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c", |
| 577 | "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c", |
| 578 | "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c", |
| 579 | "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c", |
| 580 | "src/f32-gemm/gen/1x8s4-minmax-neon.c", |
| 581 | "src/f32-gemm/gen/4x8s4-minmax-neon.c", |
| 582 | "src/f32-gemm/gen/6x8s4-minmax-neon.c", |
| 583 | "src/f32-gemm/gen/8x8s4-minmax-neon.c", |
| 584 | "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c", |
| 585 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c", |
| 586 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c", |
| 587 | "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c", |
| 588 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c", |
| 589 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c", |
| 590 | "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c", |
| 591 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c", |
| 592 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c", |
| 593 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c", |
| 594 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c", |
| 595 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c", |
| 596 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c", |
| 597 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c", |
| 598 | "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 599 | "src/f32-hswish/gen/neon-x4.c", |
| 600 | "src/f32-hswish/gen/neon-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 601 | "src/f32-ibilinear/gen/neon-c4.c", |
| 602 | "src/f32-ibilinear/gen/neon-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 603 | "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c", |
| 604 | "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c", |
| 605 | "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c", |
| 606 | "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c", |
| 607 | "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c", |
| 608 | "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c", |
| 609 | "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c", |
| 610 | "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c", |
| 611 | "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c", |
| 612 | "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c", |
| 613 | "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c", |
| 614 | "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c", |
| 615 | "src/f32-igemm/gen/1x8s4-minmax-neon.c", |
| 616 | "src/f32-igemm/gen/4x8s4-minmax-neon.c", |
| 617 | "src/f32-igemm/gen/6x8s4-minmax-neon.c", |
| 618 | "src/f32-igemm/gen/8x8s4-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 619 | "src/f32-maxpool/9p8x-minmax-neon-c4.c", |
| 620 | "src/f32-pavgpool/9p8x-minmax-neon-c4.c", |
| 621 | "src/f32-pavgpool/9x-minmax-neon-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 622 | "src/f32-ppmm/gen/4x8-minmax-neon.c", |
| 623 | "src/f32-ppmm/gen/8x8-minmax-neon.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 624 | "src/f32-prelu/gen/neon-2x4.c", |
| 625 | "src/f32-prelu/gen/neon-2x8.c", |
Marat Dukhan | 8137e4c | 2020-01-25 12:56:58 -0800 | [diff] [blame] | 626 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c", |
| 627 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c", |
| 628 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c", |
| 629 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c", |
| 630 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c", |
| 631 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c", |
| 632 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c", |
| 633 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c", |
| 634 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c", |
| 635 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c", |
| 636 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c", |
| 637 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c", |
| 638 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c", |
| 639 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c", |
| 640 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c", |
| 641 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c", |
| 642 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c", |
| 643 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c", |
| 644 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c", |
| 645 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c", |
| 646 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c", |
| 647 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c", |
| 648 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c", |
| 649 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 650 | "src/f32-rmax/neon.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 651 | "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 652 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c", |
| 653 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c", |
| 654 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c", |
| 655 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c", |
| 656 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c", |
| 657 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c", |
| 658 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c", |
| 659 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c", |
| 660 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c", |
| 661 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c", |
| 662 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c", |
| 663 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c", |
| 664 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c", |
| 665 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c", |
| 666 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c", |
| 667 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c", |
| 668 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c", |
| 669 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 670 | "src/f32-vbinary/gen/vadd-minmax-neon-x4.c", |
| 671 | "src/f32-vbinary/gen/vadd-minmax-neon-x8.c", |
| 672 | "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c", |
| 673 | "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 674 | "src/f32-vbinary/gen/vmax-neon-x4.c", |
| 675 | "src/f32-vbinary/gen/vmax-neon-x8.c", |
| 676 | "src/f32-vbinary/gen/vmaxc-neon-x4.c", |
| 677 | "src/f32-vbinary/gen/vmaxc-neon-x8.c", |
| 678 | "src/f32-vbinary/gen/vmin-neon-x4.c", |
| 679 | "src/f32-vbinary/gen/vmin-neon-x8.c", |
| 680 | "src/f32-vbinary/gen/vminc-neon-x4.c", |
| 681 | "src/f32-vbinary/gen/vminc-neon-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 682 | "src/f32-vbinary/gen/vmul-minmax-neon-x4.c", |
| 683 | "src/f32-vbinary/gen/vmul-minmax-neon-x8.c", |
| 684 | "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c", |
| 685 | "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c", |
| 686 | "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c", |
| 687 | "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c", |
| 688 | "src/f32-vbinary/gen/vsub-minmax-neon-x4.c", |
| 689 | "src/f32-vbinary/gen/vsub-minmax-neon-x8.c", |
| 690 | "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c", |
| 691 | "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 692 | "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c", |
| 693 | "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c", |
| 694 | "src/q8-avgpool/9p8x-minmax-neon-c8.c", |
| 695 | "src/q8-avgpool/9x-minmax-neon-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 696 | "src/q8-dwconv/up8x9-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 697 | "src/q8-gavgpool/7p7x-minmax-neon-c8.c", |
| 698 | "src/q8-gavgpool/7x-minmax-neon-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 699 | "src/q8-gemm/4x8-minmax-neon.c", |
| 700 | "src/q8-gemm/8x8-minmax-neon.c", |
| 701 | "src/q8-igemm/4x8-minmax-neon.c", |
| 702 | "src/q8-igemm/8x8-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 703 | "src/q8-vadd/minmax-neon.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 704 | "src/u8-clamp/neon-x64.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 705 | "src/u8-maxpool/9p8x-minmax-neon-c16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 706 | "src/u8-rmax/neon.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 707 | "src/x32-fill/neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 708 | "src/x32-packx/x4-neon-st4.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 709 | "src/x32-pad/neon.c", |
Marat Dukhan | 57dccd8 | 2020-04-14 00:53:10 -0700 | [diff] [blame] | 710 | "src/x32-unpool/neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 711 | "src/x32-zip/x2-neon.c", |
| 712 | "src/x32-zip/x3-neon.c", |
| 713 | "src/x32-zip/x4-neon.c", |
| 714 | "src/x32-zip/xm-neon.c", |
| 715 | "src/x8-zip/x2-neon.c", |
| 716 | "src/x8-zip/x3-neon.c", |
| 717 | "src/x8-zip/x4-neon.c", |
| 718 | "src/x8-zip/xm-neon.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 719 | "src/math/roundne-neon-addsub.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 720 | "src/math/roundd-neon-addsub.c", |
| 721 | "src/math/roundd-neon-cvt.c", |
| 722 | "src/math/roundu-neon-addsub.c", |
| 723 | "src/math/roundu-neon-cvt.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 724 | "src/math/roundz-neon-addsub.c", |
| 725 | "src/math/roundz-neon-cvt.c", |
Marat Dukhan | 68b3b45 | 2020-01-02 10:11:15 -0800 | [diff] [blame] | 726 | "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 727 | "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c", |
| 728 | "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c", |
| 729 | "src/math/sigmoid-neon-rr1-p5-nr2recps.c", |
| 730 | "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c", |
| 731 | "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c", |
| 732 | "src/math/sigmoid-neon-rr2-p5-nr2recps.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 733 | "src/requantization/precise-neon.c", |
| 734 | "src/requantization/fp32-neon.c", |
| 735 | "src/requantization/q31-neon.c", |
| 736 | "src/requantization/gemmlowp-neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 737 | ] |
| 738 | |
| 739 | NEONFMA_UKERNELS = [ |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 740 | "src/f32-ibilinear/gen/neonfma-c4.c", |
| 741 | "src/f32-ibilinear/gen/neonfma-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 742 | "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c", |
| 743 | "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c", |
| 744 | "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c", |
| 745 | "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c", |
| 746 | "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c", |
| 747 | "src/f32-igemm/gen/1x8s4-minmax-neonfma.c", |
| 748 | "src/f32-igemm/gen/4x8s4-minmax-neonfma.c", |
| 749 | "src/f32-igemm/gen/6x8s4-minmax-neonfma.c", |
| 750 | "src/f32-igemm/gen/8x8s4-minmax-neonfma.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 751 | "src/f32-dwconv/gen/up4x4-minmax-neonfma.c", |
| 752 | "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c", |
| 753 | "src/f32-dwconv/gen/up8x4-minmax-neonfma.c", |
| 754 | "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 755 | "src/f32-dwconv/gen/up4x9-minmax-neonfma.c", |
| 756 | "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c", |
| 757 | "src/f32-dwconv/gen/up8x9-minmax-neonfma.c", |
| 758 | "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame] | 759 | "src/f32-dwconv/gen/up4x25-minmax-neonfma.c", |
| 760 | "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c", |
| 761 | "src/f32-dwconv/gen/up8x25-minmax-neonfma.c", |
| 762 | "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 763 | "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c", |
| 764 | "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c", |
| 765 | "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c", |
| 766 | "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c", |
| 767 | "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c", |
| 768 | "src/f32-gemm/gen/1x8s4-minmax-neonfma.c", |
| 769 | "src/f32-gemm/gen/4x8s4-minmax-neonfma.c", |
| 770 | "src/f32-gemm/gen/6x8s4-minmax-neonfma.c", |
| 771 | "src/f32-gemm/gen/8x8s4-minmax-neonfma.c", |
| 772 | "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c", |
| 773 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c", |
| 774 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c", |
| 775 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c", |
| 776 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c", |
| 777 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c", |
| 778 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c", |
| 779 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c", |
| 780 | "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 781 | "src/f32-hswish/gen/neonfma-x4.c", |
| 782 | "src/f32-hswish/gen/neonfma-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 783 | "src/f32-ppmm/gen/4x8-minmax-neonfma.c", |
| 784 | "src/f32-ppmm/gen/8x8-minmax-neonfma.c", |
Marat Dukhan | 8137e4c | 2020-01-25 12:56:58 -0800 | [diff] [blame] | 785 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c", |
| 786 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c", |
| 787 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c", |
| 788 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c", |
| 789 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c", |
| 790 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c", |
| 791 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c", |
| 792 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c", |
| 793 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c", |
| 794 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c", |
| 795 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c", |
| 796 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c", |
| 797 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c", |
| 798 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c", |
| 799 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c", |
| 800 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c", |
| 801 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c", |
| 802 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c", |
| 803 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c", |
| 804 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c", |
| 805 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c", |
| 806 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c", |
| 807 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c", |
| 808 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 809 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c", |
| 810 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c", |
| 811 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c", |
| 812 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c", |
| 813 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c", |
| 814 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c", |
| 815 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c", |
| 816 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c", |
| 817 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c", |
| 818 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c", |
| 819 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c", |
| 820 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c", |
| 821 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c", |
| 822 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c", |
| 823 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c", |
| 824 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c", |
| 825 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c", |
| 826 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c", |
| 827 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c", |
| 828 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c", |
| 829 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c", |
| 830 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c", |
| 831 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c", |
| 832 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c", |
| 833 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c", |
| 834 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c", |
| 835 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c", |
| 836 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c", |
| 837 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c", |
| 838 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c", |
| 839 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c", |
| 840 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c", |
| 841 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c", |
| 842 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c", |
| 843 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c", |
| 844 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c", |
| 845 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c", |
| 846 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c", |
| 847 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c", |
| 848 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c", |
| 849 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c", |
| 850 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c", |
| 851 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c", |
| 852 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c", |
| 853 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c", |
| 854 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c", |
| 855 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c", |
| 856 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c", |
| 857 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c", |
| 858 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c", |
| 859 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c", |
| 860 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c", |
| 861 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c", |
| 862 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 863 | "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c", |
| 864 | "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c", |
Marat Dukhan | 797a8fe | 2019-11-14 20:21:57 -0800 | [diff] [blame] | 865 | "src/math/exp-neonfma-lut64-p2.c", |
| 866 | "src/math/exp-neonfma-p5.c", |
Marat Dukhan | 189ae80 | 2019-11-26 11:28:44 -0800 | [diff] [blame] | 867 | "src/math/expminus-neonfma-lut2048-p1.c", |
| 868 | "src/math/expminus-neonfma-lut64-p2.c", |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 869 | "src/math/expminus-neonfma-p5.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 870 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c", |
| 871 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c", |
| 872 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c", |
| 873 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c", |
| 874 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c", |
| 875 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c", |
| 876 | "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c", |
| 877 | "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c", |
| 878 | "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c", |
| 879 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c", |
| 880 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c", |
| 881 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c", |
| 882 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c", |
| 883 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c", |
| 884 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c", |
| 885 | "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c", |
| 886 | "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c", |
| 887 | "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 888 | ] |
| 889 | |
| 890 | AARCH64_NEONFMA_UKERNELS = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 891 | "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c", |
| 892 | "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c", |
| 893 | "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c", |
| 894 | "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c", |
| 895 | "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c", |
| 896 | "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 897 | "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c", |
| 898 | "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c", |
| 899 | "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c", |
| 900 | "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c", |
| 901 | "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c", |
| 902 | "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c", |
| 903 | "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c", |
| 904 | "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c", |
| 905 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c", |
| 906 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c", |
| 907 | "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c", |
| 908 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c", |
| 909 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c", |
| 910 | "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c", |
| 911 | "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c", |
| 912 | "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c", |
| 913 | "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c", |
| 914 | "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c", |
| 915 | "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c", |
| 916 | "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 917 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x1.c", |
| 918 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 919 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x4-neonfma-2x2.c", |
| 920 | "src/f32-conv-hwc/gen/3x3s2p0p1c3x8-neonfma-2x2.c", |
Marat Dukhan | 56b10cd | 2020-05-18 09:35:49 -0700 | [diff] [blame] | 921 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x1.c", |
| 922 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x1.c", |
Marat Dukhan | ce7a3f8 | 2020-05-17 21:46:44 -0700 | [diff] [blame] | 923 | "src/f32-conv-hwc/gen/3x3s2p1c3x4-neonfma-2x2.c", |
| 924 | "src/f32-conv-hwc/gen/3x3s2p1c3x8-neonfma-2x2.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 925 | "src/f32-conv-hwc2chw/3x3s2p1c3x4-neonfma-2x2.c", |
| 926 | "src/f32-dwconv-chw/3x3p1-neonfma.c", |
| 927 | "src/f32-dwconv-chw/5x5p2-neonfma.c", |
| 928 | "src/f32-dwconv-chw/3x3s2p1-neonfma.c", |
| 929 | "src/f32-dwconv-chw/5x5s2p2-neonfma.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 930 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c", |
| 931 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c", |
| 932 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c", |
| 933 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c", |
| 934 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c", |
| 935 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c", |
| 936 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c", |
| 937 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c", |
| 938 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c", |
| 939 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c", |
| 940 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c", |
| 941 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c", |
| 942 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c", |
| 943 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c", |
| 944 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c", |
| 945 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c", |
| 946 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c", |
| 947 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 948 | "src/f32-spmm/gen/12x1-minmax-neonfma.c", |
| 949 | "src/f32-spmm/gen/12x2-minmax-neonfma.c", |
| 950 | "src/f32-spmm/gen/12x4-minmax-neonfma.c", |
| 951 | "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c", |
| 952 | "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c", |
| 953 | "src/f32-spmm/gen/16x1-minmax-neonfma.c", |
| 954 | "src/f32-spmm/gen/16x2-minmax-neonfma.c", |
| 955 | "src/f32-spmm/gen/16x4-minmax-neonfma.c", |
| 956 | "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c", |
| 957 | "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c", |
| 958 | "src/f32-spmm/gen/4x1-minmax-neonfma.c", |
| 959 | "src/f32-spmm/gen/4x2-minmax-neonfma.c", |
| 960 | "src/f32-spmm/gen/4x4-minmax-neonfma.c", |
| 961 | "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c", |
| 962 | "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c", |
| 963 | "src/f32-spmm/gen/8x1-minmax-neonfma.c", |
| 964 | "src/f32-spmm/gen/8x2-minmax-neonfma.c", |
| 965 | "src/f32-spmm/gen/8x4-minmax-neonfma.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 966 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c", |
| 967 | "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c", |
| 968 | "src/math/sigmoid-neonfma-rr1-p5-div.c", |
| 969 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c", |
| 970 | "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c", |
| 971 | "src/math/sigmoid-neonfma-rr2-p5-div.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 972 | ] |
| 973 | |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 974 | NEONV8_UKERNELS = [ |
| 975 | "src/math/roundne-neonv8.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 976 | "src/math/roundd-neonv8.c", |
| 977 | "src/math/roundu-neonv8.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 978 | "src/math/roundz-neonv8.c", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 979 | ] |
| 980 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 981 | AARCH64_NEONFP16ARITH_UKERNELS = [ |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 982 | "src/f16-clamp/gen/neonfp16arith-x16.c", |
| 983 | "src/f16-clamp/gen/neonfp16arith-x8.c", |
| 984 | "src/f16-hswish/gen/neonfp16arith-x16.c", |
| 985 | "src/f16-hswish/gen/neonfp16arith-x8.c", |
| 986 | "src/f16-prelu/gen/neonfp16arith-2x16.c", |
| 987 | "src/f16-prelu/gen/neonfp16arith-2x8.c", |
Frank Barchard | d793f6c | 2020-05-08 13:37:43 -0700 | [diff] [blame] | 988 | "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c", |
| 989 | "src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c", |
| 990 | "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c", |
| 991 | "src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c", |
| 992 | "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c", |
| 993 | "src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c", |
| 994 | "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c", |
| 995 | "src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c", |
| 996 | "src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c", |
| 997 | "src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c", |
| 998 | "src/f16-vbinary/gen/vmax-neonfp16arith-x16.c", |
| 999 | "src/f16-vbinary/gen/vmax-neonfp16arith-x8.c", |
| 1000 | "src/f16-vbinary/gen/vminc-neonfp16arith-x16.c", |
| 1001 | "src/f16-vbinary/gen/vminc-neonfp16arith-x8.c", |
| 1002 | "src/f16-vbinary/gen/vmin-neonfp16arith-x16.c", |
| 1003 | "src/f16-vbinary/gen/vmin-neonfp16arith-x8.c", |
| 1004 | "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c", |
| 1005 | "src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c", |
| 1006 | "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c", |
| 1007 | "src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c", |
| 1008 | "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c", |
| 1009 | "src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c", |
| 1010 | "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c", |
| 1011 | "src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c", |
| 1012 | "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c", |
| 1013 | "src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c", |
| 1014 | "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c", |
| 1015 | "src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c", |
Frank Barchard | 2a1049c | 2020-06-03 02:31:27 -0700 | [diff] [blame^] | 1016 | "src/f16-vmulcaddc/gen/c16-minmax-neonfp16arith-2x.c", |
| 1017 | "src/f16-vmulcaddc/gen/c8-minmax-neonfp16arith-2x.c", |
Frank Barchard | 83ea939 | 2020-04-20 20:15:14 -0700 | [diff] [blame] | 1018 | "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c", |
| 1019 | "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c", |
| 1020 | "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c", |
| 1021 | "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c", |
| 1022 | "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c", |
| 1023 | "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c", |
| 1024 | "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c", |
| 1025 | "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c", |
Frank Barchard | b0e4fae | 2020-05-04 15:27:51 -0700 | [diff] [blame] | 1026 | "src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c", |
| 1027 | "src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c", |
| 1028 | "src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c", |
| 1029 | "src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c", |
Frank Barchard | 3f9f99f | 2020-05-06 01:12:04 -0700 | [diff] [blame] | 1030 | "src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c", |
| 1031 | "src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c", |
| 1032 | "src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c", |
| 1033 | "src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c", |
| 1034 | "src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c", |
| 1035 | "src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c", |
| 1036 | "src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c", |
| 1037 | "src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c", |
| 1038 | "src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c", |
| 1039 | "src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c", |
| 1040 | "src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c", |
| 1041 | "src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 1042 | "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c", |
| 1043 | "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c", |
| 1044 | "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c", |
| 1045 | "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c", |
| 1046 | "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c", |
| 1047 | "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c", |
| 1048 | "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c", |
| 1049 | "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1050 | ] |
| 1051 | |
| 1052 | SSE_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1053 | "src/f32-avgpool/9p8x-minmax-sse-c4.c", |
| 1054 | "src/f32-avgpool/9x-minmax-sse-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1055 | "src/f32-clamp/gen/sse-x4.c", |
| 1056 | "src/f32-clamp/gen/sse-x8.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 1057 | "src/f32-dwconv-chw/3x3p1-sse.c", |
| 1058 | "src/f32-dwconv-chw/3x3s2p1-sse.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1059 | "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c", |
| 1060 | "src/f32-dwconv/gen/up4x25-minmax-sse.c", |
| 1061 | "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c", |
| 1062 | "src/f32-dwconv/gen/up4x4-minmax-sse.c", |
| 1063 | "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c", |
| 1064 | "src/f32-dwconv/gen/up4x9-minmax-sse.c", |
| 1065 | "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c", |
| 1066 | "src/f32-dwconv/gen/up8x25-minmax-sse.c", |
| 1067 | "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c", |
| 1068 | "src/f32-dwconv/gen/up8x4-minmax-sse.c", |
| 1069 | "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c", |
| 1070 | "src/f32-dwconv/gen/up8x9-minmax-sse.c", |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 1071 | "src/f32-gavgpool-cw/sse-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1072 | "src/f32-gavgpool/7p7x-minmax-sse-c4.c", |
| 1073 | "src/f32-gavgpool/7x-minmax-sse-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1074 | "src/f32-gemm/gen/1x8-minmax-sse-dup.c", |
| 1075 | "src/f32-gemm/gen/1x8-minmax-sse-load1.c", |
| 1076 | "src/f32-gemm/gen/1x8s4-minmax-sse.c", |
| 1077 | "src/f32-gemm/gen/4x2c4-minmax-sse.c", |
| 1078 | "src/f32-gemm/gen/4x8-minmax-sse-dup.c", |
| 1079 | "src/f32-gemm/gen/4x8-minmax-sse-load1.c", |
| 1080 | "src/f32-gemm/gen/4x8s4-minmax-sse.c", |
| 1081 | "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c", |
| 1082 | "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c", |
| 1083 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c", |
| 1084 | "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c", |
| 1085 | "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c", |
| 1086 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1087 | "src/f32-hswish/gen/sse-x4.c", |
| 1088 | "src/f32-hswish/gen/sse-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 1089 | "src/f32-ibilinear/gen/sse-c4.c", |
| 1090 | "src/f32-ibilinear/gen/sse-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1091 | "src/f32-igemm/gen/1x8-minmax-sse-dup.c", |
| 1092 | "src/f32-igemm/gen/1x8-minmax-sse-load1.c", |
| 1093 | "src/f32-igemm/gen/1x8s4-minmax-sse.c", |
| 1094 | "src/f32-igemm/gen/4x2c4-minmax-sse.c", |
| 1095 | "src/f32-igemm/gen/4x8-minmax-sse-dup.c", |
| 1096 | "src/f32-igemm/gen/4x8-minmax-sse-load1.c", |
| 1097 | "src/f32-igemm/gen/4x8s4-minmax-sse.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1098 | "src/f32-maxpool/9p8x-minmax-sse-c4.c", |
| 1099 | "src/f32-pavgpool/9p8x-minmax-sse-c4.c", |
| 1100 | "src/f32-pavgpool/9x-minmax-sse-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1101 | "src/f32-ppmm/gen/4x8-minmax-sse.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1102 | "src/f32-rmax/sse.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 1103 | "src/f32-spmm/gen/4x1-minmax-sse.c", |
| 1104 | "src/f32-spmm/gen/8x1-minmax-sse.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1105 | "src/f32-vbinary/gen/vadd-minmax-sse-x4.c", |
| 1106 | "src/f32-vbinary/gen/vadd-minmax-sse-x8.c", |
| 1107 | "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c", |
| 1108 | "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c", |
| 1109 | "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c", |
| 1110 | "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c", |
| 1111 | "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c", |
| 1112 | "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 1113 | "src/f32-vbinary/gen/vmax-sse-x4.c", |
| 1114 | "src/f32-vbinary/gen/vmax-sse-x8.c", |
| 1115 | "src/f32-vbinary/gen/vmaxc-sse-x4.c", |
| 1116 | "src/f32-vbinary/gen/vmaxc-sse-x8.c", |
| 1117 | "src/f32-vbinary/gen/vmin-sse-x4.c", |
| 1118 | "src/f32-vbinary/gen/vmin-sse-x8.c", |
| 1119 | "src/f32-vbinary/gen/vminc-sse-x4.c", |
| 1120 | "src/f32-vbinary/gen/vminc-sse-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1121 | "src/f32-vbinary/gen/vmul-minmax-sse-x4.c", |
| 1122 | "src/f32-vbinary/gen/vmul-minmax-sse-x8.c", |
| 1123 | "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c", |
| 1124 | "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c", |
| 1125 | "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c", |
| 1126 | "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c", |
| 1127 | "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c", |
| 1128 | "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c", |
| 1129 | "src/f32-vbinary/gen/vsub-minmax-sse-x4.c", |
| 1130 | "src/f32-vbinary/gen/vsub-minmax-sse-x8.c", |
| 1131 | "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c", |
| 1132 | "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1133 | "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c", |
| 1134 | "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 1135 | "src/x32-fill/sse.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1136 | "src/x32-packx/x4-sse.c", |
Marat Dukhan | 63523d4 | 2020-05-22 17:07:33 -0700 | [diff] [blame] | 1137 | "src/x32-pad/sse.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 1138 | "src/math/roundne-sse-addsub.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1139 | "src/math/roundd-sse-addsub.c", |
| 1140 | "src/math/roundu-sse-addsub.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1141 | "src/math/roundz-sse-addsub.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1142 | ] |
| 1143 | |
| 1144 | SSE2_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 1145 | "src/f32-argmaxpool/9p8x-sse2-c4.c", |
| 1146 | "src/f32-argmaxpool/4x-sse2-c4.c", |
| 1147 | "src/f32-argmaxpool/9x-sse2-c4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1148 | "src/f32-prelu/gen/sse2-2x4.c", |
| 1149 | "src/f32-prelu/gen/sse2-2x8.c", |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 1150 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c", |
| 1151 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c", |
| 1152 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c", |
| 1153 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c", |
| 1154 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c", |
| 1155 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c", |
| 1156 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c", |
| 1157 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c", |
| 1158 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c", |
| 1159 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c", |
| 1160 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c", |
| 1161 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1162 | "src/f32-sigmoid/gen/sse2-p5-div-x4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1163 | "src/f32-sigmoid/gen/sse2-p5-div-x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1164 | "src/f32-sigmoid/gen/sse2-p5-div-x12.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1165 | "src/f32-sigmoid/gen/sse2-p5-div-x16.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1166 | "src/f32-sigmoid/gen/sse2-p5-div-x20.c", |
| 1167 | "src/f32-sigmoid/gen/sse2-p5-div-x24.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1168 | "src/q8-avgpool/9p8x-minmax-sse2-c8.c", |
| 1169 | "src/q8-avgpool/9x-minmax-sse2-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1170 | "src/q8-igemm/4x4c2-minmax-sse2.c", |
| 1171 | "src/q8-dwconv/up8x9-minmax-sse2.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1172 | "src/q8-gavgpool/7p7x-minmax-sse2-c8.c", |
| 1173 | "src/q8-gavgpool/7x-minmax-sse2-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1174 | "src/q8-gemm/2x4c8-minmax-sse2.c", |
| 1175 | "src/q8-gemm/4x4c2-minmax-sse2.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1176 | "src/q8-vadd/minmax-sse2.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1177 | "src/u8-clamp/sse2-x64.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1178 | "src/u8-maxpool/9p8x-minmax-sse2-c16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1179 | "src/u8-rmax/sse2.c", |
Marat Dukhan | 57dccd8 | 2020-04-14 00:53:10 -0700 | [diff] [blame] | 1180 | "src/x32-unpool/sse2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1181 | "src/x32-zip/x2-sse2.c", |
| 1182 | "src/x32-zip/x3-sse2.c", |
| 1183 | "src/x32-zip/x4-sse2.c", |
| 1184 | "src/x32-zip/xm-sse2.c", |
| 1185 | "src/x8-zip/x2-sse2.c", |
| 1186 | "src/x8-zip/x3-sse2.c", |
| 1187 | "src/x8-zip/x4-sse2.c", |
| 1188 | "src/x8-zip/xm-sse2.c", |
Marat Dukhan | ffd6840 | 2019-11-15 15:19:11 -0800 | [diff] [blame] | 1189 | "src/math/exp-sse2-p5.c", |
| 1190 | "src/math/expminus-sse2-p5.c", |
Marat Dukhan | 075088a | 2020-05-12 19:42:12 -0700 | [diff] [blame] | 1191 | "src/math/roundne-sse2-cvt.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1192 | "src/math/roundd-sse2-cvt.c", |
| 1193 | "src/math/roundu-sse2-cvt.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1194 | "src/math/roundz-sse2-cvt.c", |
Marat Dukhan | 80bafd2 | 2019-11-18 10:16:01 -0800 | [diff] [blame] | 1195 | "src/math/sigmoid-sse2-p5-div.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1196 | "src/requantization/precise-sse2.c", |
| 1197 | "src/requantization/fp32-sse2.c", |
| 1198 | "src/requantization/q31-sse2.c", |
| 1199 | "src/requantization/gemmlowp-sse2.c", |
| 1200 | ] |
| 1201 | |
| 1202 | SSSE3_UKERNELS = [ |
| 1203 | "src/requantization/precise-ssse3.c", |
| 1204 | "src/requantization/q31-ssse3.c", |
| 1205 | "src/requantization/gemmlowp-ssse3.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1206 | ] |
| 1207 | |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1208 | SSE41_UKERNELS = [ |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1209 | "src/f32-prelu/gen/sse41-2x4.c", |
| 1210 | "src/f32-prelu/gen/sse41-2x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1211 | "src/f32-sigmoid/gen/sse41-p5-div-x4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1212 | "src/f32-sigmoid/gen/sse41-p5-div-x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1213 | "src/f32-sigmoid/gen/sse41-p5-div-x12.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1214 | "src/f32-sigmoid/gen/sse41-p5-div-x16.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1215 | "src/f32-sigmoid/gen/sse41-p5-div-x20.c", |
| 1216 | "src/f32-sigmoid/gen/sse41-p5-div-x24.c", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 1217 | "src/math/roundne-sse41.c", |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 1218 | "src/math/roundd-sse41.c", |
| 1219 | "src/math/roundu-sse41.c", |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 1220 | "src/math/roundz-sse41.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1221 | "src/requantization/precise-sse4.c", |
| 1222 | "src/requantization/q31-sse4.c", |
| 1223 | "src/requantization/gemmlowp-sse4.c", |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1224 | ] |
| 1225 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1226 | AVX_UKERNELS = [ |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1227 | "src/f32-clamp/gen/avx-x8.c", |
| 1228 | "src/f32-clamp/gen/avx-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1229 | "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c", |
| 1230 | "src/f32-dwconv/gen/up16x4-minmax-avx.c", |
| 1231 | "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c", |
| 1232 | "src/f32-dwconv/gen/up8x4-minmax-avx.c", |
| 1233 | "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c", |
| 1234 | "src/f32-dwconv/gen/up16x9-minmax-avx.c", |
| 1235 | "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c", |
| 1236 | "src/f32-dwconv/gen/up8x9-minmax-avx.c", |
| 1237 | "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c", |
| 1238 | "src/f32-dwconv/gen/up16x25-minmax-avx.c", |
| 1239 | "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c", |
| 1240 | "src/f32-dwconv/gen/up8x25-minmax-avx.c", |
| 1241 | "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c", |
| 1242 | "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c", |
| 1243 | "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c", |
| 1244 | "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c", |
| 1245 | "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c", |
| 1246 | "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c", |
| 1247 | "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c", |
| 1248 | "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c", |
| 1249 | "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c", |
| 1250 | "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c", |
| 1251 | "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c", |
| 1252 | "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c", |
| 1253 | "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c", |
| 1254 | "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c", |
| 1255 | "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c", |
| 1256 | "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c", |
| 1257 | "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c", |
| 1258 | "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1259 | "src/f32-hswish/gen/avx-x8.c", |
| 1260 | "src/f32-hswish/gen/avx-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1261 | "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c", |
| 1262 | "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c", |
| 1263 | "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c", |
| 1264 | "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c", |
| 1265 | "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c", |
| 1266 | "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c", |
| 1267 | "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c", |
| 1268 | "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c", |
| 1269 | "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c", |
Marat Dukhan | 90eca0a | 2020-03-11 00:52:23 -0700 | [diff] [blame] | 1270 | "src/f32-prelu/gen/avx-2x8.c", |
| 1271 | "src/f32-prelu/gen/avx-2x16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1272 | "src/f32-rmax/avx.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1273 | "src/f32-vbinary/gen/vadd-minmax-avx-x8.c", |
| 1274 | "src/f32-vbinary/gen/vadd-minmax-avx-x16.c", |
| 1275 | "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c", |
| 1276 | "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c", |
| 1277 | "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c", |
| 1278 | "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c", |
| 1279 | "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c", |
| 1280 | "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c", |
Marat Dukhan | 9a88efe | 2019-12-10 15:54:24 -0800 | [diff] [blame] | 1281 | "src/f32-vbinary/gen/vmax-avx-x8.c", |
| 1282 | "src/f32-vbinary/gen/vmax-avx-x16.c", |
| 1283 | "src/f32-vbinary/gen/vmaxc-avx-x8.c", |
| 1284 | "src/f32-vbinary/gen/vmaxc-avx-x16.c", |
| 1285 | "src/f32-vbinary/gen/vmin-avx-x8.c", |
| 1286 | "src/f32-vbinary/gen/vmin-avx-x16.c", |
| 1287 | "src/f32-vbinary/gen/vminc-avx-x8.c", |
| 1288 | "src/f32-vbinary/gen/vminc-avx-x16.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1289 | "src/f32-vbinary/gen/vmul-minmax-avx-x8.c", |
| 1290 | "src/f32-vbinary/gen/vmul-minmax-avx-x16.c", |
| 1291 | "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c", |
| 1292 | "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c", |
| 1293 | "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c", |
| 1294 | "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c", |
| 1295 | "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c", |
| 1296 | "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c", |
| 1297 | "src/f32-vbinary/gen/vsub-minmax-avx-x8.c", |
| 1298 | "src/f32-vbinary/gen/vsub-minmax-avx-x16.c", |
| 1299 | "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c", |
| 1300 | "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1301 | "src/f32-vscale/avx-unroll32.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1302 | ] |
| 1303 | |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1304 | FMA3_UKERNELS = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1305 | "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c", |
| 1306 | "src/f32-dwconv/gen/up16x4-minmax-fma3.c", |
| 1307 | "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c", |
| 1308 | "src/f32-dwconv/gen/up8x4-minmax-fma3.c", |
| 1309 | "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c", |
| 1310 | "src/f32-dwconv/gen/up16x9-minmax-fma3.c", |
| 1311 | "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c", |
| 1312 | "src/f32-dwconv/gen/up8x9-minmax-fma3.c", |
| 1313 | "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c", |
| 1314 | "src/f32-dwconv/gen/up16x25-minmax-fma3.c", |
| 1315 | "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c", |
| 1316 | "src/f32-dwconv/gen/up8x25-minmax-fma3.c", |
| 1317 | "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c", |
| 1318 | "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c", |
| 1319 | "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c", |
| 1320 | "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c", |
| 1321 | "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c", |
| 1322 | "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c", |
| 1323 | "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c", |
| 1324 | "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c", |
| 1325 | "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c", |
| 1326 | "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c", |
| 1327 | "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c", |
| 1328 | "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c", |
| 1329 | "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c", |
| 1330 | "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c", |
| 1331 | "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c", |
| 1332 | "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c", |
| 1333 | "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c", |
| 1334 | "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c", |
| 1335 | "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c", |
| 1336 | "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c", |
| 1337 | "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c", |
| 1338 | "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c", |
| 1339 | "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c", |
| 1340 | "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c", |
| 1341 | "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c", |
| 1342 | "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c", |
| 1343 | "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c", |
| 1344 | "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1345 | "src/f32-hswish/gen/fma3-x8.c", |
| 1346 | "src/f32-hswish/gen/fma3-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1347 | "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c", |
| 1348 | "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c", |
| 1349 | "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c", |
| 1350 | "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c", |
| 1351 | "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c", |
| 1352 | "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c", |
| 1353 | "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c", |
| 1354 | "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c", |
| 1355 | "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c", |
| 1356 | "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c", |
| 1357 | "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c", |
| 1358 | "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c", |
| 1359 | "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c", |
| 1360 | "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1361 | ] |
| 1362 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1363 | AVX2_UKERNELS = [ |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1364 | "src/f32-raddexpminusmax/gen/avx2-p5-x64.c", |
| 1365 | "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c", |
| 1366 | "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c", |
| 1367 | "src/f32-raddexpminusmax/gen/avx2-p5-x72.c", |
| 1368 | "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c", |
| 1369 | "src/f32-raddexpminusmax/gen/avx2-p5-x80.c", |
| 1370 | "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c", |
| 1371 | "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c", |
| 1372 | "src/f32-raddexpminusmax/gen/avx2-p5-x96.c", |
| 1373 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c", |
| 1374 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c", |
| 1375 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c", |
| 1376 | "src/f32-raddextexp/gen/avx2-p5-x64.c", |
| 1377 | "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c", |
| 1378 | "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c", |
| 1379 | "src/f32-raddextexp/gen/avx2-p5-x72.c", |
| 1380 | "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c", |
| 1381 | "src/f32-raddextexp/gen/avx2-p5-x80.c", |
| 1382 | "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c", |
| 1383 | "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c", |
| 1384 | "src/f32-raddextexp/gen/avx2-p5-x96.c", |
| 1385 | "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c", |
| 1386 | "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c", |
| 1387 | "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c", |
| 1388 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c", |
| 1389 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c", |
| 1390 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c", |
| 1391 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c", |
| 1392 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c", |
| 1393 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c", |
| 1394 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c", |
| 1395 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c", |
| 1396 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c", |
| 1397 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c", |
| 1398 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c", |
| 1399 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c", |
Marat Dukhan | fa0a432 | 2020-01-06 16:14:29 -0800 | [diff] [blame] | 1400 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c", |
| 1401 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c", |
| 1402 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c", |
| 1403 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c", |
| 1404 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c", |
| 1405 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c", |
| 1406 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c", |
| 1407 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c", |
| 1408 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c", |
| 1409 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c", |
| 1410 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c", |
| 1411 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c", |
| 1412 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c", |
| 1413 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c", |
| 1414 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c", |
| 1415 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c", |
| 1416 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c", |
| 1417 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c", |
| 1418 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c", |
| 1419 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c", |
| 1420 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c", |
| 1421 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c", |
| 1422 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c", |
| 1423 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c", |
| 1424 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c", |
| 1425 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c", |
| 1426 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c", |
| 1427 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c", |
| 1428 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c", |
| 1429 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1430 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c", |
| 1431 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c", |
| 1432 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c", |
| 1433 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c", |
| 1434 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c", |
| 1435 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c", |
| 1436 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c", |
| 1437 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c", |
| 1438 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c", |
| 1439 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c", |
| 1440 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c", |
| 1441 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c", |
| 1442 | "src/f32-vscaleextexp/gen/avx2-p5-x8.c", |
| 1443 | "src/f32-vscaleextexp/gen/avx2-p5-x16.c", |
| 1444 | "src/f32-vscaleextexp/gen/avx2-p5-x24.c", |
| 1445 | "src/f32-vscaleextexp/gen/avx2-p5-x32.c", |
| 1446 | "src/f32-vscaleextexp/gen/avx2-p5-x40.c", |
| 1447 | "src/f32-vscaleextexp/gen/avx2-p5-x48.c", |
| 1448 | "src/f32-vscaleextexp/gen/avx2-p5-x56.c", |
| 1449 | "src/f32-vscaleextexp/gen/avx2-p5-x64.c", |
| 1450 | "src/f32-vscaleextexp/gen/avx2-p5-x72.c", |
| 1451 | "src/f32-vscaleextexp/gen/avx2-p5-x80.c", |
| 1452 | "src/f32-vscaleextexp/gen/avx2-p5-x88.c", |
| 1453 | "src/f32-vscaleextexp/gen/avx2-p5-x96.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1454 | "src/math/exp-avx2-p5.c", |
| 1455 | "src/math/exp-avx2-perm-p3.c", |
| 1456 | "src/math/exp-avx2-perm-p4.c", |
Marat Dukhan | 515c977 | 2019-10-17 18:07:57 -0700 | [diff] [blame] | 1457 | "src/math/expminus-avx2-p5.c", |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 1458 | "src/math/extexp-avx2-p5.c", |
Marat Dukhan | 7241600 | 2020-01-05 21:53:19 -0800 | [diff] [blame] | 1459 | "src/math/sigmoid-avx2-rr2-p5-div.c", |
| 1460 | "src/math/sigmoid-avx2-rr1-p5-div.c", |
| 1461 | "src/math/sigmoid-avx2-rr2-p5-nr2fma.c", |
| 1462 | "src/math/sigmoid-avx2-rr1-p5-nr2fma.c", |
| 1463 | "src/math/sigmoid-avx2-rr2-p5-nr1fma.c", |
| 1464 | "src/math/sigmoid-avx2-rr1-p5-nr1fma.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1465 | ] |
| 1466 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1467 | AVX512F_UKERNELS = [ |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1468 | "src/f32-clamp/gen/avx512f-x16.c", |
| 1469 | "src/f32-clamp/gen/avx512f-x32.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1470 | "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c", |
| 1471 | "src/f32-dwconv/gen/up32x4-minmax-avx512f.c", |
| 1472 | "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c", |
| 1473 | "src/f32-dwconv/gen/up16x4-minmax-avx512f.c", |
| 1474 | "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c", |
| 1475 | "src/f32-dwconv/gen/up32x9-minmax-avx512f.c", |
| 1476 | "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c", |
| 1477 | "src/f32-dwconv/gen/up16x9-minmax-avx512f.c", |
| 1478 | "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c", |
| 1479 | "src/f32-dwconv/gen/up32x25-minmax-avx512f.c", |
| 1480 | "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c", |
| 1481 | "src/f32-dwconv/gen/up16x25-minmax-avx512f.c", |
| 1482 | "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c", |
| 1483 | "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c", |
| 1484 | "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c", |
| 1485 | "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c", |
| 1486 | "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c", |
| 1487 | "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c", |
| 1488 | "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c", |
| 1489 | "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c", |
| 1490 | "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c", |
| 1491 | "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c", |
| 1492 | "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c", |
| 1493 | "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1494 | "src/f32-hswish/gen/avx512f-x16.c", |
| 1495 | "src/f32-hswish/gen/avx512f-x32.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1496 | "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c", |
| 1497 | "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c", |
| 1498 | "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c", |
| 1499 | "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c", |
| 1500 | "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c", |
| 1501 | "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c", |
Marat Dukhan | 90eca0a | 2020-03-11 00:52:23 -0700 | [diff] [blame] | 1502 | "src/f32-prelu/gen/avx512f-2x16.c", |
| 1503 | "src/f32-prelu/gen/avx512f-2x32.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1504 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 1505 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c", |
| 1506 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c", |
| 1507 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 1508 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c", |
| 1509 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 1510 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c", |
| 1511 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c", |
| 1512 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 1513 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c", |
| 1514 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c", |
| 1515 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c", |
| 1516 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c", |
| 1517 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c", |
| 1518 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c", |
| 1519 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c", |
| 1520 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c", |
| 1521 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c", |
| 1522 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c", |
| 1523 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c", |
| 1524 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c", |
| 1525 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c", |
| 1526 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c", |
| 1527 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c", |
| 1528 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 1529 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c", |
| 1530 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c", |
| 1531 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 1532 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c", |
| 1533 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 1534 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c", |
| 1535 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c", |
| 1536 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 1537 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c", |
| 1538 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c", |
| 1539 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1540 | "src/f32-rmax/avx512f.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1541 | "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c", |
| 1542 | "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c", |
| 1543 | "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c", |
| 1544 | "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c", |
| 1545 | "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c", |
| 1546 | "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c", |
| 1547 | "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c", |
| 1548 | "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c", |
Marat Dukhan | 9a88efe | 2019-12-10 15:54:24 -0800 | [diff] [blame] | 1549 | "src/f32-vbinary/gen/vmax-avx512f-x16.c", |
| 1550 | "src/f32-vbinary/gen/vmax-avx512f-x32.c", |
| 1551 | "src/f32-vbinary/gen/vmaxc-avx512f-x16.c", |
| 1552 | "src/f32-vbinary/gen/vmaxc-avx512f-x32.c", |
| 1553 | "src/f32-vbinary/gen/vmin-avx512f-x16.c", |
| 1554 | "src/f32-vbinary/gen/vmin-avx512f-x32.c", |
| 1555 | "src/f32-vbinary/gen/vminc-avx512f-x16.c", |
| 1556 | "src/f32-vbinary/gen/vminc-avx512f-x32.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1557 | "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c", |
| 1558 | "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c", |
| 1559 | "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c", |
| 1560 | "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c", |
| 1561 | "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c", |
| 1562 | "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c", |
| 1563 | "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c", |
| 1564 | "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c", |
| 1565 | "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c", |
| 1566 | "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c", |
| 1567 | "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c", |
| 1568 | "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1569 | "src/f32-vscale/avx512f-unroll64.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1570 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c", |
| 1571 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c", |
| 1572 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c", |
| 1573 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c", |
| 1574 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c", |
| 1575 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c", |
| 1576 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c", |
| 1577 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 1578 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 1579 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 1580 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c", |
| 1581 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 1582 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c", |
| 1583 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c", |
| 1584 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c", |
| 1585 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c", |
| 1586 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c", |
| 1587 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c", |
| 1588 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c", |
| 1589 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c", |
| 1590 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c", |
| 1591 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c", |
| 1592 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c", |
| 1593 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1594 | "src/math/exp-avx512f-p5-scalef.c", |
| 1595 | "src/math/exp-avx512f-p5.c", |
| 1596 | "src/math/exp-avx512f-perm-p3.c", |
Marat Dukhan | feb4923 | 2019-10-28 11:03:31 -0700 | [diff] [blame] | 1597 | "src/math/exp-avx512f-perm2-p2.c", |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 1598 | "src/math/extexp-avx512f-p5.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1599 | ] |
| 1600 | |
| 1601 | AARCH32_ASM_UKERNELS = [ |
Marat Dukhan | 32f9381 | 2020-05-17 20:31:21 -0700 | [diff] [blame] | 1602 | "src/f32-gemm/4x4-aarch32-vfp-ld64.S", |
Marat Dukhan | 3b98f6b | 2020-05-17 10:09:22 -0700 | [diff] [blame] | 1603 | "src/f32-gemm/4x4-minmax-aarch32-vfp-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1604 | "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S", |
| 1605 | "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S", |
| 1606 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S", |
| 1607 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S", |
| 1608 | "src/f32-gemm/4x8-minmax-aarch32-neon-ld64.S", |
| 1609 | "src/f32-igemm/4x8-minmax-aarch32-neon-ld64.S", |
| 1610 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S", |
| 1611 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S", |
| 1612 | "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S", |
| 1613 | "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1614 | ] |
| 1615 | |
| 1616 | AARCH64_ASM_UKERNELS = [ |
Frank Barchard | 36b76b6 | 2020-04-10 12:39:17 -0700 | [diff] [blame] | 1617 | "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 1618 | "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S", |
| 1619 | "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 36b76b6 | 2020-04-10 12:39:17 -0700 | [diff] [blame] | 1620 | "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 1621 | "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
| 1622 | "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | bddfbcd | 2020-04-15 12:32:41 -0700 | [diff] [blame] | 1623 | "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S", |
| 1624 | "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S", |
| 1625 | "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | 3b8e566 | 2020-04-20 12:12:53 -0700 | [diff] [blame] | 1626 | "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | bddfbcd | 2020-04-15 12:32:41 -0700 | [diff] [blame] | 1627 | "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
| 1628 | "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
| 1629 | "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | 3b8e566 | 2020-04-20 12:12:53 -0700 | [diff] [blame] | 1630 | "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1631 | "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S", |
| 1632 | "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S", |
Frank Barchard | 3cb54f9 | 2020-04-10 10:46:08 -0700 | [diff] [blame] | 1633 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1634 | "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1635 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1636 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1637 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1638 | "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1639 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1640 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1641 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1642 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1643 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S", |
| 1644 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S", |
| 1645 | "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1646 | "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1647 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1648 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1649 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S", |
| 1650 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1651 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1652 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ios.S", |
| 1653 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S", |
| 1654 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S", |
Frank Barchard | 3cb54f9 | 2020-04-10 10:46:08 -0700 | [diff] [blame] | 1655 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1656 | "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1657 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1658 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1659 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1660 | "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1661 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1662 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S", |
| 1663 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1664 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1665 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S", |
| 1666 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S", |
| 1667 | "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1668 | "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1669 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1670 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S", |
| 1671 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S", |
| 1672 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1673 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1674 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ios.S", |
| 1675 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S", |
| 1676 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S", |
| 1677 | "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1678 | "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1679 | "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1680 | "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1681 | "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1682 | "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1683 | "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1684 | "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1685 | "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1686 | "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1687 | "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1688 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1689 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1690 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S", |
| 1691 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1692 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1693 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-ios.S", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1694 | ] |
| 1695 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1696 | INTERNAL_MICROKERNEL_HDRS = [ |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1697 | "src/requantization/gemmlowp-requantization.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1698 | "src/xnnpack/argmaxpool.h", |
| 1699 | "src/xnnpack/avgpool.h", |
| 1700 | "src/xnnpack/clamp.h", |
| 1701 | "src/xnnpack/common.h", |
| 1702 | "src/xnnpack/conv.h", |
| 1703 | "src/xnnpack/dwconv.h", |
| 1704 | "src/xnnpack/gavgpool.h", |
| 1705 | "src/xnnpack/gemm.h", |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 1706 | "src/xnnpack/fill.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1707 | "src/xnnpack/hswish.h", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 1708 | "src/xnnpack/ibilinear.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1709 | "src/xnnpack/igemm.h", |
Marat Dukhan | cfb3134 | 2019-12-05 10:42:57 -0800 | [diff] [blame] | 1710 | "src/xnnpack/intrinsics-polyfill.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1711 | "src/xnnpack/lut.h", |
| 1712 | "src/xnnpack/math.h", |
| 1713 | "src/xnnpack/maxpool.h", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1714 | "src/xnnpack/memory.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1715 | "src/xnnpack/packx.h", |
| 1716 | "src/xnnpack/pad.h", |
| 1717 | "src/xnnpack/params.h", |
| 1718 | "src/xnnpack/pavgpool.h", |
| 1719 | "src/xnnpack/ppmm.h", |
| 1720 | "src/xnnpack/prelu.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 1721 | "src/xnnpack/raddexpminusmax.h", |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 1722 | "src/xnnpack/raddextexp.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 1723 | "src/xnnpack/raddstoreexpminusmax.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1724 | "src/xnnpack/rmax.h", |
| 1725 | "src/xnnpack/scalar-utils.h", |
| 1726 | "src/xnnpack/spmm.h", |
| 1727 | "src/xnnpack/unpool.h", |
| 1728 | "src/xnnpack/vadd.h", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 1729 | "src/xnnpack/vbinary.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1730 | "src/xnnpack/vmulcaddc.h", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1731 | "src/xnnpack/vscale.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 1732 | "src/xnnpack/vscaleexpminusmax.h", |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 1733 | "src/xnnpack/vscaleextexp.h", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 1734 | "src/xnnpack/vunary.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1735 | "src/xnnpack/zip.h", |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1736 | ] |
| 1737 | |
| 1738 | INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1739 | "include/xnnpack.h", |
| 1740 | "src/xnnpack/allocator.h", |
| 1741 | "src/xnnpack/compute.h", |
| 1742 | "src/xnnpack/im2col.h", |
| 1743 | "src/xnnpack/indirection.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1744 | "src/xnnpack/math-stubs.h", |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 1745 | "src/xnnpack/memory-planner.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1746 | "src/xnnpack/operator.h", |
| 1747 | "src/xnnpack/pack.h", |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 1748 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1749 | "src/xnnpack/requantization-stubs.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1750 | "src/xnnpack/requantization.h", |
Marat Dukhan | 1d75a54 | 2020-02-03 12:23:01 -0800 | [diff] [blame] | 1751 | "src/xnnpack/subgraph.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1752 | ] |
| 1753 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1754 | ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1755 | "src/xnnpack/math-stubs.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1756 | ] |
| 1757 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1758 | MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 1759 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1760 | "include/xnnpack.h", |
| 1761 | ] |
| 1762 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1763 | MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1764 | "src/xnnpack/isa-checks.h", |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 1765 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1766 | "src/xnnpack/requantization.h", |
| 1767 | "include/xnnpack.h", |
| 1768 | ] |
| 1769 | |
| 1770 | OPERATOR_TEST_PARAMS_HDRS = [ |
| 1771 | "src/xnnpack/params.h", |
| 1772 | "src/xnnpack/common.h", |
| 1773 | ] |
| 1774 | |
| 1775 | WEIGHTS_PACK_HDRS = [ |
| 1776 | "src/xnnpack/pack.h", |
| 1777 | "src/xnnpack/operator.h", |
| 1778 | "src/xnnpack/compute.h", |
| 1779 | ] |
| 1780 | |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 1781 | LOGGING_COPTS = select({ |
| 1782 | # No logging in optimized mode |
| 1783 | ":optimized_build": ["-DXNN_LOG_LEVEL=0"], |
| 1784 | # Full logging in debug mode |
| 1785 | ":debug_build": ["-DXNN_LOG_LEVEL=5"], |
| 1786 | # Error-only logging in default (fastbuild) mode |
| 1787 | "//conditions:default": ["-DXNN_LOG_LEVEL=2"], |
| 1788 | }) |
| 1789 | |
| 1790 | LOGGING_HDRS = [ |
| 1791 | "src/xnnpack/log.h", |
| 1792 | ] |
| 1793 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1794 | xnnpack_cc_library( |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1795 | name = "tables", |
| 1796 | srcs = TABLE_SRCS, |
| 1797 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1798 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1799 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1800 | ) |
| 1801 | |
| 1802 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1803 | name = "scalar_ukernels", |
| 1804 | srcs = SCALAR_UKERNELS, |
| 1805 | hdrs = INTERNAL_HDRS, |
| 1806 | aarch32_copts = ["-marm"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1807 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1808 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1809 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1810 | ":tables", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1811 | "@FP16", |
| 1812 | "@FXdiv", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1813 | "@pthreadpool", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1814 | ], |
| 1815 | ) |
| 1816 | |
| 1817 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 1818 | name = "scalar_ukernels_test_mode", |
| 1819 | srcs = SCALAR_UKERNELS, |
| 1820 | hdrs = INTERNAL_HDRS, |
| 1821 | aarch32_copts = ["-marm"], |
| 1822 | copts = [ |
| 1823 | "-UNDEBUG", |
| 1824 | "-DXNN_TEST_MODE=1", |
| 1825 | ], |
| 1826 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1827 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1828 | deps = [ |
| 1829 | ":tables", |
| 1830 | "@FP16", |
| 1831 | "@FXdiv", |
| 1832 | "@pthreadpool", |
| 1833 | ], |
| 1834 | ) |
| 1835 | |
| 1836 | xnnpack_cc_library( |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 1837 | name = "wasm_ukernels", |
| 1838 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1839 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1840 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 1841 | wasm_srcs = WASM_UKERNELS, |
| 1842 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1843 | ":tables", |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 1844 | "@FP16", |
| 1845 | "@FXdiv", |
| 1846 | "@pthreadpool", |
| 1847 | ], |
| 1848 | ) |
| 1849 | |
| 1850 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 1851 | name = "wasm_ukernels_test_mode", |
| 1852 | hdrs = INTERNAL_HDRS, |
| 1853 | copts = [ |
| 1854 | "-UNDEBUG", |
| 1855 | "-DXNN_TEST_MODE=1", |
| 1856 | ], |
| 1857 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1858 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1859 | wasm_srcs = WASM_UKERNELS, |
| 1860 | deps = [ |
| 1861 | ":tables", |
| 1862 | "@FP16", |
| 1863 | "@FXdiv", |
| 1864 | "@pthreadpool", |
| 1865 | ], |
| 1866 | ) |
| 1867 | |
| 1868 | xnnpack_cc_library( |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1869 | name = "psimd_fastmath_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1870 | hdrs = INTERNAL_HDRS, |
| 1871 | aarch32_copts = [ |
| 1872 | "-marm", |
| 1873 | "-mfpu=neon", |
| 1874 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1875 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1876 | gcc_x86_copts = ["-msse2"], |
| 1877 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1878 | optimized_copts = [ |
| 1879 | "-O3", |
| 1880 | "-ffast-math", |
| 1881 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 1882 | psimd_srcs = PSIMD_FASTMATH_UKERNELS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1883 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1884 | ":tables", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1885 | "@FP16", |
| 1886 | "@psimd", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1887 | "@pthreadpool", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1888 | ], |
| 1889 | ) |
| 1890 | |
| 1891 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 1892 | name = "psimd_fastmath_ukernels_test_mode", |
| 1893 | hdrs = INTERNAL_HDRS, |
| 1894 | aarch32_copts = [ |
| 1895 | "-marm", |
| 1896 | "-mfpu=neon", |
| 1897 | ], |
| 1898 | copts = [ |
| 1899 | "-UNDEBUG", |
| 1900 | "-DXNN_TEST_MODE=1", |
| 1901 | ], |
| 1902 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1903 | gcc_x86_copts = ["-msse2"], |
| 1904 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1905 | optimized_copts = [ |
| 1906 | "-O3", |
| 1907 | "-ffast-math", |
| 1908 | ], |
| 1909 | psimd_srcs = PSIMD_FASTMATH_UKERNELS, |
| 1910 | deps = [ |
| 1911 | ":tables", |
| 1912 | "@FP16", |
| 1913 | "@psimd", |
| 1914 | "@pthreadpool", |
| 1915 | ], |
| 1916 | ) |
| 1917 | |
| 1918 | xnnpack_cc_library( |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1919 | name = "psimd_accmath_ukernels", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1920 | hdrs = INTERNAL_HDRS, |
| 1921 | aarch32_copts = [ |
| 1922 | "-marm", |
| 1923 | "-mfpu=neon", |
| 1924 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1925 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1926 | gcc_x86_copts = ["-msse2"], |
| 1927 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1928 | optimized_copts = [ |
| 1929 | "-O3", |
| 1930 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 1931 | psimd_srcs = PSIMD_ACCMATH_UKERNELS, |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1932 | deps = [ |
| 1933 | ":tables", |
| 1934 | "@FP16", |
| 1935 | "@psimd", |
| 1936 | "@pthreadpool", |
| 1937 | ], |
| 1938 | ) |
| 1939 | |
| 1940 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 1941 | name = "psimd_accmath_ukernels_test_mode", |
| 1942 | hdrs = INTERNAL_HDRS, |
| 1943 | aarch32_copts = [ |
| 1944 | "-marm", |
| 1945 | "-mfpu=neon", |
| 1946 | ], |
| 1947 | copts = [ |
| 1948 | "-UNDEBUG", |
| 1949 | "-DXNN_TEST_MODE=1", |
| 1950 | ], |
| 1951 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1952 | gcc_x86_copts = ["-msse2"], |
| 1953 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1954 | optimized_copts = [ |
| 1955 | "-O3", |
| 1956 | ], |
| 1957 | psimd_srcs = PSIMD_ACCMATH_UKERNELS, |
| 1958 | deps = [ |
| 1959 | ":tables", |
| 1960 | "@FP16", |
| 1961 | "@psimd", |
| 1962 | "@pthreadpool", |
| 1963 | ], |
| 1964 | ) |
| 1965 | |
| 1966 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1967 | name = "neon_ukernels", |
| 1968 | hdrs = INTERNAL_HDRS, |
| 1969 | aarch32_copts = [ |
| 1970 | "-marm", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 1971 | "-march=armv7-a", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1972 | "-mfpu=neon", |
| 1973 | ], |
| 1974 | aarch32_srcs = NEON_UKERNELS, |
| 1975 | aarch64_srcs = NEON_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1976 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1977 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1978 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1979 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1980 | "@FP16", |
| 1981 | "@pthreadpool", |
| 1982 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1983 | ) |
| 1984 | |
| 1985 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 1986 | name = "neon_ukernels_test_mode", |
| 1987 | hdrs = INTERNAL_HDRS, |
| 1988 | aarch32_copts = [ |
| 1989 | "-marm", |
| 1990 | "-march=armv7-a", |
| 1991 | "-mfpu=neon", |
| 1992 | ], |
| 1993 | aarch32_srcs = NEON_UKERNELS, |
| 1994 | aarch64_srcs = NEON_UKERNELS, |
| 1995 | copts = [ |
| 1996 | "-UNDEBUG", |
| 1997 | "-DXNN_TEST_MODE=1", |
| 1998 | ], |
| 1999 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2000 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2001 | deps = [ |
| 2002 | ":tables", |
| 2003 | "@FP16", |
| 2004 | "@pthreadpool", |
| 2005 | ], |
| 2006 | ) |
| 2007 | |
| 2008 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2009 | name = "neonfma_ukernels", |
| 2010 | hdrs = INTERNAL_HDRS, |
| 2011 | aarch32_copts = [ |
| 2012 | "-marm", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2013 | "-march=armv7-a", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2014 | "-mfpu=neon-vfpv4", |
| 2015 | ], |
| 2016 | aarch32_srcs = NEONFMA_UKERNELS, |
| 2017 | aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2018 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2019 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2020 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2021 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2022 | "@FP16", |
| 2023 | "@pthreadpool", |
| 2024 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2025 | ) |
| 2026 | |
| 2027 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2028 | name = "neonfma_ukernels_test_mode", |
| 2029 | hdrs = INTERNAL_HDRS, |
| 2030 | aarch32_copts = [ |
| 2031 | "-marm", |
| 2032 | "-march=armv7-a", |
| 2033 | "-mfpu=neon-vfpv4", |
| 2034 | ], |
| 2035 | aarch32_srcs = NEONFMA_UKERNELS, |
| 2036 | aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS, |
| 2037 | copts = [ |
| 2038 | "-UNDEBUG", |
| 2039 | "-DXNN_TEST_MODE=1", |
| 2040 | ], |
| 2041 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2042 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2043 | deps = [ |
| 2044 | ":tables", |
| 2045 | "@FP16", |
| 2046 | "@pthreadpool", |
| 2047 | ], |
| 2048 | ) |
| 2049 | |
| 2050 | xnnpack_cc_library( |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2051 | name = "neonv8_ukernels", |
| 2052 | hdrs = INTERNAL_HDRS, |
| 2053 | aarch32_copts = [ |
| 2054 | "-marm", |
| 2055 | "-march=armv8-a", |
| 2056 | "-mfpu=neon-fp-armv8", |
| 2057 | ], |
| 2058 | aarch32_srcs = NEONV8_UKERNELS, |
| 2059 | aarch64_srcs = NEONV8_UKERNELS, |
| 2060 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2061 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2062 | deps = [ |
| 2063 | ":tables", |
| 2064 | "@FP16", |
| 2065 | "@pthreadpool", |
| 2066 | ], |
| 2067 | ) |
| 2068 | |
| 2069 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2070 | name = "neonv8_ukernels_test_mode", |
| 2071 | hdrs = INTERNAL_HDRS, |
| 2072 | aarch32_copts = [ |
| 2073 | "-marm", |
| 2074 | "-march=armv8-a", |
| 2075 | "-mfpu=neon-fp-armv8", |
| 2076 | ], |
| 2077 | aarch32_srcs = NEONV8_UKERNELS, |
| 2078 | aarch64_srcs = NEONV8_UKERNELS, |
| 2079 | copts = [ |
| 2080 | "-UNDEBUG", |
| 2081 | "-DXNN_TEST_MODE=1", |
| 2082 | ], |
| 2083 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2084 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2085 | deps = [ |
| 2086 | ":tables", |
| 2087 | "@FP16", |
| 2088 | "@pthreadpool", |
| 2089 | ], |
| 2090 | ) |
| 2091 | |
| 2092 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2093 | name = "neonfp16arith_ukernels", |
| 2094 | hdrs = INTERNAL_HDRS, |
| 2095 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
| 2096 | aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2097 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2098 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2099 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2100 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2101 | "@FP16", |
| 2102 | "@pthreadpool", |
| 2103 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2104 | ) |
| 2105 | |
| 2106 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2107 | name = "neonfp16arith_ukernels_test_mode", |
| 2108 | hdrs = INTERNAL_HDRS, |
| 2109 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
| 2110 | aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS, |
| 2111 | copts = [ |
| 2112 | "-UNDEBUG", |
| 2113 | "-DXNN_TEST_MODE=1", |
| 2114 | ], |
| 2115 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2116 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2117 | deps = [ |
| 2118 | ":tables", |
| 2119 | "@FP16", |
| 2120 | "@pthreadpool", |
| 2121 | ], |
| 2122 | ) |
| 2123 | |
| 2124 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2125 | name = "sse2_ukernels", |
| 2126 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2127 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2128 | gcc_x86_copts = ["-msse2"], |
| 2129 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2130 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2131 | x86_srcs = SSE_UKERNELS + SSE2_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2132 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2133 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2134 | "@FP16", |
| 2135 | "@pthreadpool", |
| 2136 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2137 | ) |
| 2138 | |
| 2139 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2140 | name = "sse2_ukernels_test_mode", |
| 2141 | hdrs = INTERNAL_HDRS, |
| 2142 | copts = [ |
| 2143 | "-UNDEBUG", |
| 2144 | "-DXNN_TEST_MODE=1", |
| 2145 | ], |
| 2146 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2147 | gcc_x86_copts = ["-msse2"], |
| 2148 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2149 | msvc_x86_32_copts = ["/arch:SSE2"], |
| 2150 | x86_srcs = SSE_UKERNELS + SSE2_UKERNELS, |
| 2151 | deps = [ |
| 2152 | ":tables", |
| 2153 | "@FP16", |
| 2154 | "@pthreadpool", |
| 2155 | ], |
| 2156 | ) |
| 2157 | |
| 2158 | xnnpack_cc_library( |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2159 | name = "ssse3_ukernels", |
| 2160 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2161 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2162 | gcc_x86_copts = ["-mssse3"], |
| 2163 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2164 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2165 | x86_srcs = SSSE3_UKERNELS, |
| 2166 | deps = [ |
| 2167 | ":tables", |
| 2168 | "@FP16", |
| 2169 | "@pthreadpool", |
| 2170 | ], |
| 2171 | ) |
| 2172 | |
| 2173 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2174 | name = "ssse3_ukernels_test_mode", |
| 2175 | hdrs = INTERNAL_HDRS, |
| 2176 | copts = [ |
| 2177 | "-UNDEBUG", |
| 2178 | "-DXNN_TEST_MODE=1", |
| 2179 | ], |
| 2180 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2181 | gcc_x86_copts = ["-mssse3"], |
| 2182 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2183 | msvc_x86_32_copts = ["/arch:SSE2"], |
| 2184 | x86_srcs = SSSE3_UKERNELS, |
| 2185 | deps = [ |
| 2186 | ":tables", |
| 2187 | "@FP16", |
| 2188 | "@pthreadpool", |
| 2189 | ], |
| 2190 | ) |
| 2191 | |
| 2192 | xnnpack_cc_library( |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2193 | name = "sse41_ukernels", |
| 2194 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2195 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2196 | gcc_x86_copts = ["-msse4.1"], |
| 2197 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2198 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2199 | x86_srcs = SSE41_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2200 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2201 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2202 | "@FP16", |
| 2203 | "@pthreadpool", |
| 2204 | ], |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2205 | ) |
| 2206 | |
| 2207 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2208 | name = "sse41_ukernels_test_mode", |
| 2209 | hdrs = INTERNAL_HDRS, |
| 2210 | copts = [ |
| 2211 | "-UNDEBUG", |
| 2212 | "-DXNN_TEST_MODE=1", |
| 2213 | ], |
| 2214 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2215 | gcc_x86_copts = ["-msse4.1"], |
| 2216 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2217 | msvc_x86_32_copts = ["/arch:SSE2"], |
| 2218 | x86_srcs = SSE41_UKERNELS, |
| 2219 | deps = [ |
| 2220 | ":tables", |
| 2221 | "@FP16", |
| 2222 | "@pthreadpool", |
| 2223 | ], |
| 2224 | ) |
| 2225 | |
| 2226 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2227 | name = "avx_ukernels", |
| 2228 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2229 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2230 | gcc_x86_copts = ["-mavx"], |
| 2231 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2232 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2233 | msvc_x86_64_copts = ["/arch:AVX"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2234 | x86_srcs = AVX_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2235 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2236 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2237 | "@FP16", |
| 2238 | "@pthreadpool", |
| 2239 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2240 | ) |
| 2241 | |
| 2242 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2243 | name = "avx_ukernels_test_mode", |
| 2244 | hdrs = INTERNAL_HDRS, |
| 2245 | copts = [ |
| 2246 | "-UNDEBUG", |
| 2247 | "-DXNN_TEST_MODE=1", |
| 2248 | ], |
| 2249 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2250 | gcc_x86_copts = ["-mavx"], |
| 2251 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2252 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2253 | msvc_x86_64_copts = ["/arch:AVX"], |
| 2254 | x86_srcs = AVX_UKERNELS, |
| 2255 | deps = [ |
| 2256 | ":tables", |
| 2257 | "@FP16", |
| 2258 | "@pthreadpool", |
| 2259 | ], |
| 2260 | ) |
| 2261 | |
| 2262 | xnnpack_cc_library( |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2263 | name = "fma3_ukernels", |
| 2264 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2265 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2266 | gcc_x86_copts = ["-mfma"], |
| 2267 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2268 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2269 | msvc_x86_64_copts = ["/arch:AVX"], |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2270 | x86_srcs = FMA3_UKERNELS, |
| 2271 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2272 | ":tables", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2273 | "@FP16", |
| 2274 | "@pthreadpool", |
| 2275 | ], |
| 2276 | ) |
| 2277 | |
| 2278 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2279 | name = "fma3_ukernels_test_mode", |
| 2280 | hdrs = INTERNAL_HDRS, |
| 2281 | copts = [ |
| 2282 | "-UNDEBUG", |
| 2283 | "-DXNN_TEST_MODE=1", |
| 2284 | ], |
| 2285 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2286 | gcc_x86_copts = ["-mfma"], |
| 2287 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2288 | msvc_x86_32_copts = ["/arch:AVX"], |
| 2289 | msvc_x86_64_copts = ["/arch:AVX"], |
| 2290 | x86_srcs = FMA3_UKERNELS, |
| 2291 | deps = [ |
| 2292 | ":tables", |
| 2293 | "@FP16", |
| 2294 | "@pthreadpool", |
| 2295 | ], |
| 2296 | ) |
| 2297 | |
| 2298 | xnnpack_cc_library( |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2299 | name = "avx2_ukernels", |
| 2300 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2301 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2302 | gcc_x86_copts = [ |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2303 | "-mfma", |
| 2304 | "-mavx2", |
| 2305 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2306 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2307 | msvc_x86_32_copts = ["/arch:AVX2"], |
| 2308 | msvc_x86_64_copts = ["/arch:AVX2"], |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2309 | x86_srcs = AVX2_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2310 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2311 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2312 | "@FP16", |
| 2313 | "@pthreadpool", |
| 2314 | ], |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2315 | ) |
| 2316 | |
| 2317 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2318 | name = "avx2_ukernels_test_mode", |
| 2319 | hdrs = INTERNAL_HDRS, |
| 2320 | copts = [ |
| 2321 | "-UNDEBUG", |
| 2322 | "-DXNN_TEST_MODE=1", |
| 2323 | ], |
| 2324 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2325 | gcc_x86_copts = [ |
| 2326 | "-mfma", |
| 2327 | "-mavx2", |
| 2328 | ], |
| 2329 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2330 | msvc_x86_32_copts = ["/arch:AVX2"], |
| 2331 | msvc_x86_64_copts = ["/arch:AVX2"], |
| 2332 | x86_srcs = AVX2_UKERNELS, |
| 2333 | deps = [ |
| 2334 | ":tables", |
| 2335 | "@FP16", |
| 2336 | "@pthreadpool", |
| 2337 | ], |
| 2338 | ) |
| 2339 | |
| 2340 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2341 | name = "avx512f_ukernels", |
| 2342 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2343 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2344 | gcc_x86_copts = ["-mavx512f"], |
| 2345 | mingw_copts = ["-fno-asynchronous-unwind-tables"], |
| 2346 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2347 | msvc_x86_32_copts = ["/arch:AVX512"], |
| 2348 | msvc_x86_64_copts = ["/arch:AVX512"], |
| 2349 | msys_copts = ["-fno-asynchronous-unwind-tables"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2350 | x86_srcs = AVX512F_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2351 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 2352 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2353 | "@FP16", |
| 2354 | "@pthreadpool", |
| 2355 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2356 | ) |
| 2357 | |
| 2358 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2359 | name = "avx512f_ukernels_test_mode", |
| 2360 | hdrs = INTERNAL_HDRS, |
| 2361 | copts = [ |
| 2362 | "-UNDEBUG", |
| 2363 | "-DXNN_TEST_MODE=1", |
| 2364 | ], |
| 2365 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2366 | gcc_x86_copts = ["-mavx512f"], |
| 2367 | mingw_copts = ["-fno-asynchronous-unwind-tables"], |
| 2368 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2369 | msvc_x86_32_copts = ["/arch:AVX512"], |
| 2370 | msvc_x86_64_copts = ["/arch:AVX512"], |
| 2371 | msys_copts = ["-fno-asynchronous-unwind-tables"], |
| 2372 | x86_srcs = AVX512F_UKERNELS, |
| 2373 | deps = [ |
| 2374 | ":tables", |
| 2375 | "@FP16", |
| 2376 | "@pthreadpool", |
| 2377 | ], |
| 2378 | ) |
| 2379 | |
| 2380 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2381 | name = "asm_ukernels", |
| 2382 | hdrs = ["src/xnnpack/assembly.h"], |
| 2383 | aarch32_srcs = AARCH32_ASM_UKERNELS, |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 2384 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2385 | aarch64_srcs = AARCH64_ASM_UKERNELS, |
| 2386 | ) |
| 2387 | |
| 2388 | xnnpack_aggregate_library( |
| 2389 | name = "ukernels", |
| 2390 | aarch32_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2391 | ":neon_ukernels", |
| 2392 | ":neonfma_ukernels", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2393 | ":neonv8_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2394 | ":asm_ukernels", |
| 2395 | ], |
| 2396 | aarch64_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2397 | ":neon_ukernels", |
| 2398 | ":neonfma_ukernels", |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 2399 | ":neonv8_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2400 | ":neonfp16arith_ukernels", |
| 2401 | ":asm_ukernels", |
| 2402 | ], |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2403 | generic_deps = [ |
| 2404 | ":scalar_ukernels", |
| 2405 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 2406 | psimd_deps = [ |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 2407 | ":psimd_fastmath_ukernels", |
| 2408 | ":psimd_accmath_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2409 | ], |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2410 | wasm_deps = [ |
| 2411 | ":wasm_ukernels", |
| 2412 | ], |
| 2413 | wasmsimd_deps = [ |
| 2414 | ":wasm_ukernels", |
| 2415 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2416 | x86_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2417 | ":sse2_ukernels", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2418 | ":ssse3_ukernels", |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 2419 | ":sse41_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2420 | ":avx_ukernels", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 2421 | ":fma3_ukernels", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2422 | ":avx2_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2423 | ":avx512f_ukernels", |
| 2424 | ], |
| 2425 | ) |
| 2426 | |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2427 | xnnpack_aggregate_library( |
| 2428 | name = "ukernels_test_mode", |
| 2429 | aarch32_deps = [ |
| 2430 | ":neon_ukernels_test_mode", |
| 2431 | ":neonfma_ukernels_test_mode", |
| 2432 | ":neonv8_ukernels_test_mode", |
| 2433 | ":asm_ukernels", |
| 2434 | ], |
| 2435 | aarch64_deps = [ |
| 2436 | ":neon_ukernels_test_mode", |
| 2437 | ":neonfma_ukernels_test_mode", |
| 2438 | ":neonv8_ukernels_test_mode", |
| 2439 | ":neonfp16arith_ukernels_test_mode", |
| 2440 | ":asm_ukernels", |
| 2441 | ], |
| 2442 | generic_deps = [ |
| 2443 | ":scalar_ukernels_test_mode", |
| 2444 | ], |
| 2445 | psimd_deps = [ |
| 2446 | ":psimd_fastmath_ukernels_test_mode", |
| 2447 | ":psimd_accmath_ukernels_test_mode", |
| 2448 | ], |
| 2449 | wasm_deps = [ |
| 2450 | ":wasm_ukernels_test_mode", |
| 2451 | ], |
| 2452 | wasmsimd_deps = [ |
| 2453 | ":wasm_ukernels_test_mode", |
| 2454 | ], |
| 2455 | x86_deps = [ |
| 2456 | ":sse2_ukernels_test_mode", |
| 2457 | ":ssse3_ukernels_test_mode", |
| 2458 | ":sse41_ukernels_test_mode", |
| 2459 | ":avx_ukernels_test_mode", |
| 2460 | ":fma3_ukernels_test_mode", |
| 2461 | ":avx2_ukernels_test_mode", |
| 2462 | ":avx512f_ukernels_test_mode", |
| 2463 | ], |
| 2464 | ) |
| 2465 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2466 | xnnpack_cc_library( |
| 2467 | name = "im2col", |
| 2468 | srcs = ["src/im2col.c"], |
| 2469 | hdrs = [ |
| 2470 | "src/xnnpack/common.h", |
| 2471 | "src/xnnpack/im2col.h", |
| 2472 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2473 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2474 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2475 | ) |
| 2476 | |
| 2477 | xnnpack_cc_library( |
| 2478 | name = "indirection", |
| 2479 | srcs = ["src/indirection.c"], |
| 2480 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2481 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2482 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2483 | deps = [ |
| 2484 | "@FP16", |
| 2485 | "@FXdiv", |
| 2486 | "@pthreadpool", |
| 2487 | ], |
| 2488 | ) |
| 2489 | |
| 2490 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2491 | name = "indirection_test_mode", |
| 2492 | srcs = ["src/indirection.c"], |
| 2493 | hdrs = INTERNAL_HDRS, |
| 2494 | copts = [ |
| 2495 | "-UNDEBUG", |
| 2496 | "-DXNN_TEST_MODE=1", |
| 2497 | ], |
| 2498 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2499 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2500 | deps = [ |
| 2501 | "@FP16", |
| 2502 | "@FXdiv", |
| 2503 | "@pthreadpool", |
| 2504 | ], |
| 2505 | ) |
| 2506 | |
| 2507 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2508 | name = "operator_run", |
| 2509 | srcs = ["src/operator-run.c"], |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 2510 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2511 | copts = LOGGING_COPTS + select({ |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2512 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2513 | "//conditions:default": [], |
| 2514 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2515 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2516 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2517 | deps = [ |
| 2518 | "@FP16", |
| 2519 | "@FXdiv", |
| 2520 | "@clog", |
| 2521 | "@pthreadpool", |
| 2522 | ], |
| 2523 | ) |
| 2524 | |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 2525 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2526 | name = "operator_run_test_mode", |
| 2527 | srcs = ["src/operator-run.c"], |
| 2528 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
| 2529 | copts = LOGGING_COPTS + [ |
| 2530 | "-UNDEBUG", |
| 2531 | "-DXNN_TEST_MODE=1", |
| 2532 | ] + select({ |
| 2533 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2534 | "//conditions:default": [], |
| 2535 | }), |
| 2536 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2537 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2538 | deps = [ |
| 2539 | "@FP16", |
| 2540 | "@FXdiv", |
| 2541 | "@clog", |
| 2542 | "@pthreadpool", |
| 2543 | ], |
| 2544 | ) |
| 2545 | |
| 2546 | xnnpack_cc_library( |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 2547 | name = "memory_planner", |
| 2548 | srcs = ["src/memory-planner.c"], |
| 2549 | hdrs = INTERNAL_HDRS, |
| 2550 | defines = select({ |
| 2551 | ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"], |
| 2552 | ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"], |
| 2553 | "//conditions:default": ["XNN_ENABLE_MEMOPT=1"], |
| 2554 | }), |
| 2555 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2556 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2557 | deps = [ |
| 2558 | "@pthreadpool", |
| 2559 | ], |
| 2560 | ) |
| 2561 | |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2562 | xnnpack_cc_library( |
| 2563 | name = "memory_planner_test_mode", |
| 2564 | srcs = ["src/memory-planner.c"], |
| 2565 | hdrs = INTERNAL_HDRS, |
| 2566 | copts = [ |
| 2567 | "-UNDEBUG", |
| 2568 | "-DXNN_TEST_MODE=1", |
| 2569 | ], |
| 2570 | defines = select({ |
| 2571 | ":xnn_enable_memopt_explicit_true": ["XNN_ENABLE_MEMOPT=1"], |
| 2572 | ":xnn_enable_memopt_explicit_false": ["XNN_ENABLE_MEMOPT=0"], |
| 2573 | "//conditions:default": ["XNN_ENABLE_MEMOPT=1"], |
| 2574 | }), |
| 2575 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2576 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2577 | deps = [ |
| 2578 | "@pthreadpool", |
| 2579 | ], |
| 2580 | ) |
| 2581 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2582 | cc_library( |
| 2583 | name = "enable_assembly", |
| 2584 | defines = select({ |
| 2585 | ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"], |
| 2586 | ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"], |
Frank Barchard | 810171d | 2019-10-10 10:34:51 -0700 | [diff] [blame] | 2587 | "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2588 | }), |
| 2589 | ) |
| 2590 | |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 2591 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2592 | name = "operators", |
| 2593 | srcs = OPERATOR_SRCS + [ |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 2594 | "src/memory.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2595 | "src/operator-delete.c", |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 2596 | ], |
| 2597 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2598 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2599 | "-Isrc", |
| 2600 | "-Iinclude", |
| 2601 | ] + select({ |
| 2602 | ":debug_build": [], |
| 2603 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2604 | }) + select({ |
| 2605 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2606 | "//conditions:default": [], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2607 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2608 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2609 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2610 | deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2611 | ":indirection", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2612 | "@FP16", |
| 2613 | "@FXdiv", |
| 2614 | "@clog", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2615 | "@pthreadpool", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2616 | ], |
| 2617 | ) |
| 2618 | |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2619 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2620 | name = "operators_test_mode", |
| 2621 | srcs = OPERATOR_SRCS + [ |
| 2622 | "src/memory.c", |
| 2623 | "src/operator-delete.c", |
| 2624 | ], |
| 2625 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
| 2626 | copts = LOGGING_COPTS + [ |
| 2627 | "-Isrc", |
| 2628 | "-Iinclude", |
| 2629 | "-UNDEBUG", |
| 2630 | "-DXNN_TEST_MODE=1", |
| 2631 | ] + select({ |
| 2632 | ":debug_build": [], |
| 2633 | "//conditions:default": xnnpack_min_size_copts(), |
| 2634 | }) + select({ |
| 2635 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2636 | "//conditions:default": [], |
| 2637 | }), |
| 2638 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2639 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2640 | deps = [ |
| 2641 | ":indirection_test_mode", |
| 2642 | "@FP16", |
| 2643 | "@FXdiv", |
| 2644 | "@clog", |
| 2645 | "@pthreadpool", |
| 2646 | ], |
| 2647 | ) |
| 2648 | |
| 2649 | xnnpack_cc_library( |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2650 | name = "XNNPACK", |
| 2651 | srcs = [ |
| 2652 | "src/init.c", |
Marat Dukhan | ccfdbd1 | 2020-02-03 14:27:45 -0800 | [diff] [blame] | 2653 | "src/runtime.c", |
| 2654 | "src/subgraph.c", |
| 2655 | "src/tensor.c", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2656 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2657 | hdrs = ["include/xnnpack.h"], |
| 2658 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2659 | "-Isrc", |
| 2660 | "-Iinclude", |
| 2661 | ] + select({ |
| 2662 | ":debug_build": [], |
| 2663 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2664 | }) + select({ |
| 2665 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2666 | "//conditions:default": [], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2667 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2668 | gcc_copts = xnnpack_gcc_std_copts(), |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2669 | includes = ["include"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2670 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2671 | visibility = xnnpack_visibility(), |
| 2672 | deps = [ |
| 2673 | ":enable_assembly", |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 2674 | ":memory_planner", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2675 | ":ukernels", |
| 2676 | ":operator_run", |
| 2677 | ":operators", |
| 2678 | "@clog", |
Marat Dukhan | ab2946c | 2020-05-21 20:04:13 -0700 | [diff] [blame] | 2679 | "@FP16", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2680 | "@pthreadpool", |
Marat Dukhan | d343c22 | 2019-10-07 09:22:14 -0700 | [diff] [blame] | 2681 | ] + select({ |
| 2682 | ":emscripten": [], |
| 2683 | "//conditions:default": ["@cpuinfo"], |
| 2684 | }), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2685 | ) |
| 2686 | |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2687 | xnnpack_cc_library( |
Marat Dukhan | 33fcf78 | 2020-05-24 14:27:15 -0700 | [diff] [blame] | 2688 | name = "XNNPACK_test_mode", |
| 2689 | srcs = [ |
| 2690 | "src/init.c", |
| 2691 | "src/runtime.c", |
| 2692 | "src/subgraph.c", |
| 2693 | "src/tensor.c", |
| 2694 | ], |
| 2695 | hdrs = ["include/xnnpack.h"], |
| 2696 | copts = LOGGING_COPTS + [ |
| 2697 | "-Isrc", |
| 2698 | "-Iinclude", |
| 2699 | "-UNDEBUG", |
| 2700 | "-DXNN_TEST_MODE=1", |
| 2701 | ] + select({ |
| 2702 | ":debug_build": [], |
| 2703 | "//conditions:default": xnnpack_min_size_copts(), |
| 2704 | }) + select({ |
| 2705 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2706 | "//conditions:default": [], |
| 2707 | }), |
| 2708 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2709 | includes = ["include"], |
| 2710 | msvc_copts = xnnpack_msvc_std_copts(), |
| 2711 | visibility = xnnpack_visibility(), |
| 2712 | deps = [ |
| 2713 | ":enable_assembly", |
| 2714 | ":memory_planner_test_mode", |
| 2715 | ":ukernels_test_mode", |
| 2716 | ":operator_run_test_mode", |
| 2717 | ":operators_test_mode", |
| 2718 | "@clog", |
| 2719 | "@FP16", |
| 2720 | "@pthreadpool", |
| 2721 | ] + select({ |
| 2722 | ":emscripten": [], |
| 2723 | "//conditions:default": ["@cpuinfo"], |
| 2724 | }), |
| 2725 | ) |
| 2726 | |
| 2727 | xnnpack_cc_library( |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2728 | name = "xnnpack_operators_nhwc_f32", |
| 2729 | srcs = [ |
| 2730 | "src/init.c", |
| 2731 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2732 | hdrs = ["include/xnnpack.h"], |
| 2733 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2734 | "-Isrc", |
| 2735 | "-Iinclude", |
| 2736 | ] + select({ |
| 2737 | ":debug_build": [], |
| 2738 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2739 | }) + select({ |
| 2740 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2741 | "//conditions:default": [], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2742 | }), |
| 2743 | defines = [ |
| 2744 | "XNN_NO_Q8_OPERATORS", |
| 2745 | "XNN_NO_U8_OPERATORS", |
| 2746 | "XNN_NO_X8_OPERATORS", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 2747 | "XNN_NO_NCHW_OPERATORS", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2748 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2749 | gcc_copts = xnnpack_gcc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2750 | includes = ["include"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2751 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2752 | visibility = xnnpack_visibility(), |
| 2753 | deps = [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2754 | ":enable_assembly", |
| 2755 | ":ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2756 | ":operator_run", |
| 2757 | ":operators", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2758 | "@clog", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2759 | "@pthreadpool", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2760 | ] + select({ |
| 2761 | ":emscripten": [], |
| 2762 | "//conditions:default": ["@cpuinfo"], |
| 2763 | }), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2764 | ) |
| 2765 | |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 2766 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2767 | name = "bench_utils", |
| 2768 | srcs = ["bench/utils.cc"], |
| 2769 | hdrs = ["bench/utils.h"], |
Marat Dukhan | bad48fe | 2019-11-04 10:35:22 -0800 | [diff] [blame] | 2770 | deps = [ |
| 2771 | "@com_google_benchmark//:benchmark", |
| 2772 | "@cpuinfo", |
| 2773 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2774 | ) |
| 2775 | |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 2776 | ######################### Benchmarks for micro-kernels ######################### |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2777 | |
| 2778 | xnnpack_benchmark( |
| 2779 | name = "q8_gemm_bench", |
| 2780 | srcs = [ |
| 2781 | "bench/gemm.h", |
| 2782 | "bench/q8-gemm.cc", |
| 2783 | "src/xnnpack/AlignedAllocator.h", |
| 2784 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2785 | copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2786 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(), |
| 2787 | ) |
| 2788 | |
| 2789 | xnnpack_benchmark( |
Frank Barchard | 40d20fe | 2020-05-05 00:37:45 -0700 | [diff] [blame] | 2790 | name = "f16_igemm_bench", |
| 2791 | srcs = [ |
| 2792 | "bench/f16-igemm.cc", |
| 2793 | "bench/conv.h", |
| 2794 | "bench/google/conv.h", |
| 2795 | "src/xnnpack/AlignedAllocator.h", |
| 2796 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2797 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
| 2798 | ) |
| 2799 | |
| 2800 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2801 | name = "f16_gemm_bench", |
| 2802 | srcs = [ |
| 2803 | "bench/f16-gemm.cc", |
| 2804 | "bench/gemm.h", |
| 2805 | "src/xnnpack/AlignedAllocator.h", |
| 2806 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2807 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2808 | ) |
| 2809 | |
| 2810 | xnnpack_benchmark( |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2811 | name = "f16_spmm_bench", |
| 2812 | srcs = [ |
| 2813 | "bench/f16-spmm.cc", |
| 2814 | "bench/gemm.h", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2815 | "src/xnnpack/AlignedAllocator.h", |
| 2816 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2817 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2818 | ) |
| 2819 | |
| 2820 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2821 | name = "f32_igemm_bench", |
| 2822 | srcs = [ |
| 2823 | "bench/f32-igemm.cc", |
| 2824 | "bench/conv.h", |
| 2825 | "src/xnnpack/AlignedAllocator.h", |
| 2826 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 2827 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2828 | ) |
| 2829 | |
| 2830 | xnnpack_benchmark( |
| 2831 | name = "f32_conv_hwc_bench", |
| 2832 | srcs = [ |
| 2833 | "bench/f32-conv-hwc.cc", |
| 2834 | "bench/dconv.h", |
| 2835 | "src/xnnpack/AlignedAllocator.h", |
| 2836 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2837 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2838 | ) |
| 2839 | |
| 2840 | xnnpack_benchmark( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 2841 | name = "f32_conv_hwc2chw_bench", |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 2842 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 2843 | "bench/f32-conv-hwc2chw.cc", |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 2844 | "bench/dconv.h", |
| 2845 | "src/xnnpack/AlignedAllocator.h", |
| 2846 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 2847 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2848 | ) |
| 2849 | |
| 2850 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2851 | name = "f32_dwconv_bench", |
| 2852 | srcs = [ |
| 2853 | "bench/f32-dwconv.cc", |
| 2854 | "bench/dwconv.h", |
| 2855 | "src/xnnpack/AlignedAllocator.h", |
| 2856 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2857 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
| 2858 | ) |
| 2859 | |
| 2860 | xnnpack_benchmark( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 2861 | name = "f32_dwconv_chw_bench", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2862 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 2863 | "bench/f32-dwconv-chw.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2864 | "bench/dwconv.h", |
| 2865 | "src/xnnpack/AlignedAllocator.h", |
| 2866 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
| 2867 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
| 2868 | ) |
| 2869 | |
| 2870 | xnnpack_benchmark( |
| 2871 | name = "f32_gemm_bench", |
| 2872 | srcs = [ |
| 2873 | "bench/f32-gemm.cc", |
| 2874 | "bench/gemm.h", |
| 2875 | "src/xnnpack/AlignedAllocator.h", |
| 2876 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2877 | copts = xnnpack_optional_ruy_copts(), |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 2878 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2879 | ) |
| 2880 | |
| 2881 | xnnpack_benchmark( |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 2882 | name = "f32_raddexpminusmax_bench", |
| 2883 | srcs = [ |
| 2884 | "bench/f32-raddexpminusmax.cc", |
| 2885 | "src/xnnpack/AlignedAllocator.h", |
| 2886 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2887 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2888 | ) |
| 2889 | |
| 2890 | xnnpack_benchmark( |
| 2891 | name = "f32_raddextexp_bench", |
| 2892 | srcs = [ |
| 2893 | "bench/f32-raddextexp.cc", |
| 2894 | "src/xnnpack/AlignedAllocator.h", |
| 2895 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2896 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2897 | ) |
| 2898 | |
| 2899 | xnnpack_benchmark( |
| 2900 | name = "f32_raddstoreexpminusmax_bench", |
| 2901 | srcs = [ |
| 2902 | "bench/f32-raddstoreexpminusmax.cc", |
| 2903 | "src/xnnpack/AlignedAllocator.h", |
| 2904 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2905 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2906 | ) |
| 2907 | |
| 2908 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2909 | name = "f32_rmax_bench", |
| 2910 | srcs = [ |
| 2911 | "bench/f32-rmax.cc", |
| 2912 | "src/xnnpack/AlignedAllocator.h", |
| 2913 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2914 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2915 | ) |
| 2916 | |
| 2917 | xnnpack_benchmark( |
Marat Dukhan | 14bec50 | 2019-11-18 11:35:31 -0800 | [diff] [blame] | 2918 | name = "f32_sigmoid_bench", |
| 2919 | srcs = [ |
| 2920 | "bench/f32-sigmoid.cc", |
| 2921 | "src/xnnpack/AlignedAllocator.h", |
| 2922 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 14bec50 | 2019-11-18 11:35:31 -0800 | [diff] [blame] | 2923 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2924 | ) |
| 2925 | |
| 2926 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2927 | name = "f32_spmm_bench", |
| 2928 | srcs = [ |
| 2929 | "bench/f32-spmm.cc", |
| 2930 | "bench/gemm.h", |
| 2931 | "src/xnnpack/AlignedAllocator.h", |
| 2932 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2933 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2934 | ) |
| 2935 | |
| 2936 | xnnpack_benchmark( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 2937 | name = "f32_softmax_bench", |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 2938 | srcs = [ |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 2939 | "bench/f32-softmax.cc", |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 2940 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2941 | copts = xnnpack_optional_dnnl_copts(), |
Marat Dukhan | 8d3c693 | 2020-03-06 20:27:27 -0800 | [diff] [blame] | 2942 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(), |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 2943 | ) |
| 2944 | |
| 2945 | xnnpack_benchmark( |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 2946 | name = "f32_vscaleexpminusmax_bench", |
| 2947 | srcs = [ |
| 2948 | "bench/f32-vscaleexpminusmax.cc", |
| 2949 | "src/xnnpack/AlignedAllocator.h", |
| 2950 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2951 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2952 | ) |
| 2953 | |
| 2954 | xnnpack_benchmark( |
| 2955 | name = "f32_vscaleextexp_bench", |
| 2956 | srcs = [ |
| 2957 | "bench/f32-vscaleextexp.cc", |
| 2958 | "src/xnnpack/AlignedAllocator.h", |
| 2959 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2960 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2961 | ) |
| 2962 | |
| 2963 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2964 | name = "f32_im2col_gemm_bench", |
| 2965 | srcs = [ |
| 2966 | "bench/f32-im2col-gemm.cc", |
| 2967 | "bench/conv.h", |
| 2968 | "src/xnnpack/AlignedAllocator.h", |
| 2969 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
| 2970 | deps = MICROKERNEL_BENCHMARK_DEPS + [":im2col"], |
| 2971 | ) |
| 2972 | |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2973 | xnnpack_benchmark( |
| 2974 | name = "requantization_bench", |
| 2975 | srcs = [ |
| 2976 | "bench/requantization.cc", |
| 2977 | "src/xnnpack/requantization-stubs.h", |
| 2978 | "src/xnnpack/AlignedAllocator.h", |
| 2979 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2980 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2981 | ) |
| 2982 | |
Marat Dukhan | ffbf96a | 2020-05-14 02:59:08 -0700 | [diff] [blame] | 2983 | xnnpack_benchmark( |
| 2984 | name = "rounding_bench", |
| 2985 | srcs = [ |
| 2986 | "bench/rounding.cc", |
| 2987 | "src/xnnpack/math-stubs.h", |
| 2988 | "src/xnnpack/AlignedAllocator.h", |
| 2989 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2990 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2991 | ) |
| 2992 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2993 | ########################### Benchmarks for operators ########################### |
| 2994 | |
| 2995 | xnnpack_benchmark( |
| 2996 | name = "add_bench", |
| 2997 | srcs = ["bench/add.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2998 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2999 | ) |
| 3000 | |
| 3001 | xnnpack_benchmark( |
| 3002 | name = "average_pooling_bench", |
| 3003 | srcs = ["bench/average-pooling.cc"], |
Marat Dukhan | 7a16d8b | 2020-03-11 04:22:44 -0700 | [diff] [blame] | 3004 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3005 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3006 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3007 | ) |
| 3008 | |
| 3009 | xnnpack_benchmark( |
| 3010 | name = "channel_shuffle_bench", |
| 3011 | srcs = ["bench/channel-shuffle.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3012 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3013 | ) |
| 3014 | |
| 3015 | xnnpack_benchmark( |
| 3016 | name = "convolution_bench", |
| 3017 | srcs = ["bench/convolution.cc"], |
| 3018 | copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3019 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3020 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3021 | ) |
| 3022 | |
| 3023 | xnnpack_benchmark( |
| 3024 | name = "deconvolution_bench", |
| 3025 | srcs = ["bench/deconvolution.cc"], |
| 3026 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3027 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3028 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3029 | ) |
| 3030 | |
| 3031 | xnnpack_benchmark( |
| 3032 | name = "global_average_pooling_bench", |
| 3033 | srcs = ["bench/global-average-pooling.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3034 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3035 | ) |
| 3036 | |
| 3037 | xnnpack_benchmark( |
| 3038 | name = "max_pooling_bench", |
| 3039 | srcs = ["bench/max-pooling.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3040 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3041 | ) |
| 3042 | |
| 3043 | xnnpack_benchmark( |
| 3044 | name = "sigmoid_bench", |
| 3045 | srcs = ["bench/sigmoid.cc"], |
Marat Dukhan | c3b9e86 | 2019-11-17 13:18:54 -0800 | [diff] [blame] | 3046 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | ca2ba70 | 2020-04-24 01:31:47 -0700 | [diff] [blame] | 3047 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3048 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3049 | ) |
| 3050 | |
| 3051 | xnnpack_benchmark( |
Marat Dukhan | 95b2243 | 2019-10-30 16:30:14 -0700 | [diff] [blame] | 3052 | name = "prelu_bench", |
| 3053 | srcs = ["bench/prelu.cc"], |
| 3054 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 3055 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3056 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 95b2243 | 2019-10-30 16:30:14 -0700 | [diff] [blame] | 3057 | ) |
| 3058 | |
| 3059 | xnnpack_benchmark( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 3060 | name = "softmax_bench", |
| 3061 | srcs = ["bench/softmax.cc"], |
Marat Dukhan | 9c0db96 | 2020-01-28 12:30:14 -0800 | [diff] [blame] | 3062 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | ca2ba70 | 2020-04-24 01:31:47 -0700 | [diff] [blame] | 3063 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3064 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3065 | ) |
| 3066 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3067 | ############################# End-to-end benchmarks ############################ |
| 3068 | |
| 3069 | cc_library( |
| 3070 | name = "mobilenet_v1", |
| 3071 | srcs = ["models/mobilenet-v1.cc"], |
| 3072 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3073 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3074 | linkstatic = True, |
| 3075 | deps = [ |
| 3076 | ":XNNPACK", |
| 3077 | "@pthreadpool", |
| 3078 | ], |
| 3079 | ) |
| 3080 | |
| 3081 | cc_library( |
| 3082 | name = "mobilenet_v2", |
| 3083 | srcs = ["models/mobilenet-v2.cc"], |
| 3084 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3085 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3086 | linkstatic = True, |
| 3087 | deps = [ |
| 3088 | ":XNNPACK", |
| 3089 | "@pthreadpool", |
| 3090 | ], |
| 3091 | ) |
| 3092 | |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3093 | cc_library( |
| 3094 | name = "mobilenet_v3_large", |
| 3095 | srcs = ["models/mobilenet-v3-large.cc"], |
| 3096 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3097 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3098 | linkstatic = True, |
| 3099 | deps = [ |
| 3100 | ":XNNPACK", |
| 3101 | "@pthreadpool", |
| 3102 | ], |
| 3103 | ) |
| 3104 | |
| 3105 | cc_library( |
| 3106 | name = "mobilenet_v3_small", |
| 3107 | srcs = ["models/mobilenet-v3-small.cc"], |
| 3108 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 3109 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3110 | linkstatic = True, |
| 3111 | deps = [ |
| 3112 | ":XNNPACK", |
| 3113 | "@pthreadpool", |
| 3114 | ], |
| 3115 | ) |
| 3116 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3117 | xnnpack_benchmark( |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 3118 | name = "f32_dwconv_e2e_bench", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3119 | srcs = [ |
| 3120 | "bench/f32-dwconv-e2e.cc", |
| 3121 | "bench/end2end.h", |
| 3122 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 3123 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3124 | ":XNNPACK", |
| 3125 | ":mobilenet_v1", |
| 3126 | ":mobilenet_v2", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3127 | ":mobilenet_v3_large", |
| 3128 | ":mobilenet_v3_small", |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 3129 | ], |
| 3130 | ) |
| 3131 | |
| 3132 | xnnpack_benchmark( |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 3133 | name = "f32_gemm_e2e_bench", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3134 | srcs = [ |
| 3135 | "bench/f32-gemm-e2e.cc", |
| 3136 | "bench/end2end.h", |
| 3137 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 3138 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 3139 | ":XNNPACK", |
| 3140 | ":mobilenet_v1", |
| 3141 | ":mobilenet_v2", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3142 | ":mobilenet_v3_large", |
| 3143 | ":mobilenet_v3_small", |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 3144 | ], |
| 3145 | ) |
| 3146 | |
| 3147 | xnnpack_benchmark( |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3148 | name = "end2end_bench", |
| 3149 | srcs = ["bench/end2end.cc"], |
| 3150 | deps = [ |
| 3151 | ":XNNPACK", |
Frank Barchard | c712fa4 | 2019-10-31 14:00:21 -0700 | [diff] [blame] | 3152 | ":bench_utils", |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3153 | ":mobilenet_v1", |
| 3154 | ":mobilenet_v2", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 3155 | ":mobilenet_v3_large", |
| 3156 | ":mobilenet_v3_small", |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 3157 | "@pthreadpool", |
| 3158 | ], |
| 3159 | ) |
| 3160 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 3161 | #################### Accuracy evaluation for math functions #################### |
| 3162 | |
| 3163 | xnnpack_benchmark( |
| 3164 | name = "f32_exp_eval", |
| 3165 | srcs = [ |
| 3166 | "eval/f32-exp.cc", |
| 3167 | "src/xnnpack/AlignedAllocator.h", |
| 3168 | ] + ACCURACY_EVAL_HDRS, |
| 3169 | deps = ACCURACY_EVAL_DEPS, |
| 3170 | ) |
| 3171 | |
Marat Dukhan | 515c977 | 2019-10-17 18:07:57 -0700 | [diff] [blame] | 3172 | xnnpack_benchmark( |
| 3173 | name = "f32_expminus_eval", |
| 3174 | srcs = [ |
| 3175 | "eval/f32-expminus.cc", |
| 3176 | "src/xnnpack/AlignedAllocator.h", |
| 3177 | ] + ACCURACY_EVAL_HDRS, |
| 3178 | deps = ACCURACY_EVAL_DEPS, |
| 3179 | ) |
| 3180 | |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 3181 | xnnpack_benchmark( |
| 3182 | name = "f32_extexp_eval", |
| 3183 | srcs = [ |
| 3184 | "eval/f32-extexp.cc", |
| 3185 | "src/xnnpack/AlignedAllocator.h", |
| 3186 | ] + ACCURACY_EVAL_HDRS, |
| 3187 | deps = ACCURACY_EVAL_DEPS, |
| 3188 | ) |
| 3189 | |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 3190 | xnnpack_unit_test( |
| 3191 | name = "f32_roundne_eval", |
| 3192 | srcs = [ |
| 3193 | "eval/f32-roundne.cc", |
| 3194 | "src/xnnpack/AlignedAllocator.h", |
| 3195 | "src/xnnpack/math-stubs.h", |
| 3196 | ] + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | 22eed3d | 2020-05-11 20:13:37 -0700 | [diff] [blame] | 3197 | automatic = False, |
Marat Dukhan | 8853b82 | 2020-05-07 12:19:01 -0700 | [diff] [blame] | 3198 | deps = MICROKERNEL_TEST_DEPS, |
| 3199 | ) |
| 3200 | |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 3201 | xnnpack_unit_test( |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 3202 | name = "f32_roundd_eval", |
| 3203 | srcs = [ |
| 3204 | "eval/f32-roundd.cc", |
| 3205 | "src/xnnpack/AlignedAllocator.h", |
| 3206 | "src/xnnpack/math-stubs.h", |
| 3207 | ] + MICROKERNEL_TEST_HDRS, |
| 3208 | automatic = False, |
| 3209 | deps = MICROKERNEL_TEST_DEPS, |
| 3210 | ) |
| 3211 | |
| 3212 | xnnpack_unit_test( |
| 3213 | name = "f32_roundu_eval", |
| 3214 | srcs = [ |
| 3215 | "eval/f32-roundu.cc", |
| 3216 | "src/xnnpack/AlignedAllocator.h", |
| 3217 | "src/xnnpack/math-stubs.h", |
| 3218 | ] + MICROKERNEL_TEST_HDRS, |
| 3219 | automatic = False, |
| 3220 | deps = MICROKERNEL_TEST_DEPS, |
| 3221 | ) |
| 3222 | |
| 3223 | xnnpack_unit_test( |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 3224 | name = "f32_roundz_eval", |
| 3225 | srcs = [ |
| 3226 | "eval/f32-roundz.cc", |
| 3227 | "src/xnnpack/AlignedAllocator.h", |
| 3228 | "src/xnnpack/math-stubs.h", |
| 3229 | ] + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | c9852ba | 2020-05-13 17:21:29 -0700 | [diff] [blame] | 3230 | automatic = False, |
Marat Dukhan | 2dbb944 | 2020-05-12 20:43:43 -0700 | [diff] [blame] | 3231 | deps = MICROKERNEL_TEST_DEPS, |
| 3232 | ) |
| 3233 | |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 3234 | xnnpack_benchmark( |
| 3235 | name = "f32_sigmoid_eval", |
| 3236 | srcs = [ |
| 3237 | "eval/f32-sigmoid.cc", |
| 3238 | "src/xnnpack/AlignedAllocator.h", |
| 3239 | ] + ACCURACY_EVAL_HDRS, |
| 3240 | deps = ACCURACY_EVAL_DEPS, |
| 3241 | ) |
| 3242 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3243 | ######################### Unit tests for micro-kernels ######################### |
| 3244 | |
| 3245 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3246 | name = "f16_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3247 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3248 | "test/f16-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3249 | "test/gemm-microkernel-tester.h", |
| 3250 | "src/xnnpack/AlignedAllocator.h", |
| 3251 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3252 | deps = MICROKERNEL_TEST_DEPS, |
| 3253 | ) |
| 3254 | |
| 3255 | xnnpack_unit_test( |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 3256 | name = "f16_spmm_minmax_test", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 3257 | srcs = [ |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 3258 | "test/f16-spmm-minmax.cc", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 3259 | "test/spmm-microkernel-tester.h", |
| 3260 | "src/xnnpack/AlignedAllocator.h", |
| 3261 | ] + MICROKERNEL_TEST_HDRS, |
| 3262 | deps = MICROKERNEL_TEST_DEPS, |
| 3263 | ) |
| 3264 | |
| 3265 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3266 | name = "f32_argmaxpool_test", |
| 3267 | srcs = [ |
| 3268 | "test/f32-argmaxpool.cc", |
| 3269 | "test/argmaxpool-microkernel-tester.h", |
| 3270 | "src/xnnpack/AlignedAllocator.h", |
| 3271 | ] + MICROKERNEL_TEST_HDRS, |
| 3272 | deps = MICROKERNEL_TEST_DEPS, |
| 3273 | ) |
| 3274 | |
| 3275 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3276 | name = "f32_avgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3277 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3278 | "test/f32-avgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3279 | "test/avgpool-microkernel-tester.h", |
| 3280 | "src/xnnpack/AlignedAllocator.h", |
| 3281 | ] + MICROKERNEL_TEST_HDRS, |
| 3282 | deps = MICROKERNEL_TEST_DEPS, |
| 3283 | ) |
| 3284 | |
| 3285 | xnnpack_unit_test( |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 3286 | name = "f32_ibilinear_test", |
Marat Dukhan | 35dacfb | 2019-11-07 19:18:16 -0800 | [diff] [blame] | 3287 | srcs = [ |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 3288 | "test/f32-ibilinear.cc", |
| 3289 | "test/ibilinear-microkernel-tester.h", |
Marat Dukhan | 35dacfb | 2019-11-07 19:18:16 -0800 | [diff] [blame] | 3290 | "src/xnnpack/AlignedAllocator.h", |
| 3291 | ] + MICROKERNEL_TEST_HDRS, |
| 3292 | deps = MICROKERNEL_TEST_DEPS, |
| 3293 | ) |
| 3294 | |
| 3295 | xnnpack_unit_test( |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 3296 | name = "f16_clamp_test", |
| 3297 | srcs = [ |
| 3298 | "test/f16-clamp.cc", |
| 3299 | "test/clamp-microkernel-tester.h", |
| 3300 | ] + MICROKERNEL_TEST_HDRS, |
| 3301 | deps = MICROKERNEL_TEST_DEPS, |
| 3302 | ) |
| 3303 | |
| 3304 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3305 | name = "f32_clamp_test", |
| 3306 | srcs = [ |
| 3307 | "test/f32-clamp.cc", |
| 3308 | "test/clamp-microkernel-tester.h", |
| 3309 | ] + MICROKERNEL_TEST_HDRS, |
| 3310 | deps = MICROKERNEL_TEST_DEPS, |
| 3311 | ) |
| 3312 | |
| 3313 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 3314 | name = "f32_igemm_test", |
| 3315 | srcs = [ |
| 3316 | "test/f32-igemm.cc", |
| 3317 | "test/gemm-microkernel-tester.h", |
| 3318 | "src/xnnpack/AlignedAllocator.h", |
| 3319 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3320 | deps = MICROKERNEL_TEST_DEPS, |
| 3321 | ) |
| 3322 | |
| 3323 | xnnpack_unit_test( |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 3324 | name = "f32_igemm_relu_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3325 | srcs = [ |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 3326 | "test/f32-igemm-relu.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3327 | "test/gemm-microkernel-tester.h", |
| 3328 | "src/xnnpack/AlignedAllocator.h", |
| 3329 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3330 | deps = MICROKERNEL_TEST_DEPS, |
| 3331 | ) |
| 3332 | |
| 3333 | xnnpack_unit_test( |
Marat Dukhan | e207b7b | 2020-05-28 16:27:42 -0700 | [diff] [blame] | 3334 | name = "f32_igemm_minmax_test", |
| 3335 | srcs = [ |
| 3336 | "test/f32-igemm-minmax.cc", |
| 3337 | "test/gemm-microkernel-tester.h", |
| 3338 | "src/xnnpack/AlignedAllocator.h", |
| 3339 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3340 | deps = MICROKERNEL_TEST_DEPS, |
| 3341 | ) |
| 3342 | |
| 3343 | xnnpack_unit_test( |
Frank Barchard | b0e4fae | 2020-05-04 15:27:51 -0700 | [diff] [blame] | 3344 | name = "f16_igemm_minmax_test", |
| 3345 | srcs = [ |
| 3346 | "test/f16-igemm-minmax.cc", |
| 3347 | "test/gemm-microkernel-tester.h", |
| 3348 | "src/xnnpack/AlignedAllocator.h", |
| 3349 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3350 | deps = MICROKERNEL_TEST_DEPS, |
| 3351 | ) |
| 3352 | |
| 3353 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3354 | name = "f32_conv_hwc_test", |
| 3355 | srcs = [ |
| 3356 | "test/f32-conv-hwc.cc", |
| 3357 | "test/conv-hwc-microkernel-tester.h", |
| 3358 | "src/xnnpack/AlignedAllocator.h", |
| 3359 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3360 | deps = MICROKERNEL_TEST_DEPS, |
| 3361 | ) |
| 3362 | |
| 3363 | xnnpack_unit_test( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3364 | name = "f32_conv_hwc2chw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3365 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3366 | "test/f32-conv-hwc2chw.cc", |
| 3367 | "test/conv-hwc2chw-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3368 | "src/xnnpack/AlignedAllocator.h", |
| 3369 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3370 | deps = MICROKERNEL_TEST_DEPS, |
| 3371 | ) |
| 3372 | |
| 3373 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 3374 | name = "f32_dwconv_test", |
| 3375 | srcs = [ |
| 3376 | "test/f32-dwconv.cc", |
| 3377 | "test/dwconv-microkernel-tester.h", |
| 3378 | "src/xnnpack/AlignedAllocator.h", |
| 3379 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3380 | deps = MICROKERNEL_TEST_DEPS, |
| 3381 | ) |
| 3382 | |
| 3383 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3384 | name = "f32_dwconv_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3385 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3386 | "test/f32-dwconv-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3387 | "test/dwconv-microkernel-tester.h", |
| 3388 | "src/xnnpack/AlignedAllocator.h", |
| 3389 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3390 | deps = MICROKERNEL_TEST_DEPS, |
| 3391 | ) |
| 3392 | |
| 3393 | xnnpack_unit_test( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3394 | name = "f32_dwconv_chw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3395 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3396 | "test/f32-dwconv-chw.cc", |
| 3397 | "test/dwconv-chw-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3398 | "src/xnnpack/AlignedAllocator.h", |
| 3399 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3400 | deps = MICROKERNEL_TEST_DEPS, |
| 3401 | ) |
| 3402 | |
| 3403 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3404 | name = "f32_gavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3405 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3406 | "test/f32-gavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3407 | "test/gavgpool-microkernel-tester.h", |
| 3408 | "src/xnnpack/AlignedAllocator.h", |
| 3409 | ] + MICROKERNEL_TEST_HDRS, |
| 3410 | deps = MICROKERNEL_TEST_DEPS, |
| 3411 | ) |
| 3412 | |
| 3413 | xnnpack_unit_test( |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3414 | name = "f32_gavgpool_cw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3415 | srcs = [ |
Marat Dukhan | 1f29b80 | 2020-05-15 23:46:39 -0700 | [diff] [blame] | 3416 | "test/f32-gavgpool-cw.cc", |
| 3417 | "test/gavgpool-cw-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3418 | "src/xnnpack/AlignedAllocator.h", |
| 3419 | ] + MICROKERNEL_TEST_HDRS, |
| 3420 | deps = MICROKERNEL_TEST_DEPS, |
| 3421 | ) |
| 3422 | |
| 3423 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 3424 | name = "f32_gemm_test", |
| 3425 | srcs = [ |
| 3426 | "test/f32-gemm.cc", |
| 3427 | "test/gemm-microkernel-tester.h", |
| 3428 | "src/xnnpack/AlignedAllocator.h", |
| 3429 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3430 | deps = MICROKERNEL_TEST_DEPS, |
| 3431 | ) |
| 3432 | |
| 3433 | xnnpack_unit_test( |
Marat Dukhan | 467f636 | 2020-05-22 23:21:55 -0700 | [diff] [blame] | 3434 | name = "f32_gemm_relu_test", |
| 3435 | srcs = [ |
| 3436 | "test/f32-gemm-relu.cc", |
| 3437 | "test/gemm-microkernel-tester.h", |
| 3438 | "src/xnnpack/AlignedAllocator.h", |
| 3439 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3440 | deps = MICROKERNEL_TEST_DEPS, |
| 3441 | ) |
| 3442 | |
| 3443 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3444 | name = "f32_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3445 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3446 | "test/f32-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3447 | "test/gemm-microkernel-tester.h", |
| 3448 | "src/xnnpack/AlignedAllocator.h", |
| 3449 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3450 | deps = MICROKERNEL_TEST_DEPS, |
| 3451 | ) |
| 3452 | |
| 3453 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3454 | name = "f32_gemminc_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3455 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3456 | "test/f32-gemminc-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3457 | "test/gemm-microkernel-tester.h", |
| 3458 | "src/xnnpack/AlignedAllocator.h", |
| 3459 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3460 | deps = MICROKERNEL_TEST_DEPS, |
| 3461 | ) |
| 3462 | |
| 3463 | xnnpack_unit_test( |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 3464 | name = "f16_hswish_test", |
| 3465 | srcs = [ |
| 3466 | "test/f16-hswish.cc", |
| 3467 | "test/hswish-microkernel-tester.h", |
| 3468 | ] + MICROKERNEL_TEST_HDRS, |
| 3469 | deps = MICROKERNEL_TEST_DEPS, |
| 3470 | ) |
| 3471 | |
| 3472 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3473 | name = "f32_hswish_test", |
| 3474 | srcs = [ |
| 3475 | "test/f32-hswish.cc", |
| 3476 | "test/hswish-microkernel-tester.h", |
| 3477 | ] + MICROKERNEL_TEST_HDRS, |
| 3478 | deps = MICROKERNEL_TEST_DEPS, |
| 3479 | ) |
| 3480 | |
| 3481 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3482 | name = "f32_maxpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3483 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3484 | "test/f32-maxpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3485 | "test/maxpool-microkernel-tester.h", |
| 3486 | ] + MICROKERNEL_TEST_HDRS, |
| 3487 | deps = MICROKERNEL_TEST_DEPS, |
| 3488 | ) |
| 3489 | |
| 3490 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3491 | name = "f32_pavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3492 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3493 | "test/f32-pavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3494 | "test/avgpool-microkernel-tester.h", |
| 3495 | "src/xnnpack/AlignedAllocator.h", |
| 3496 | ] + MICROKERNEL_TEST_HDRS, |
| 3497 | deps = MICROKERNEL_TEST_DEPS, |
| 3498 | ) |
| 3499 | |
| 3500 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3501 | name = "f32_ppmm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3502 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 3503 | "test/f32-ppmm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3504 | "test/gemm-microkernel-tester.h", |
| 3505 | "src/xnnpack/AlignedAllocator.h", |
| 3506 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3507 | deps = MICROKERNEL_TEST_DEPS, |
| 3508 | ) |
| 3509 | |
| 3510 | xnnpack_unit_test( |
Frank Barchard | b196659 | 2020-05-12 13:47:06 -0700 | [diff] [blame] | 3511 | name = "f16_prelu_test", |
| 3512 | srcs = [ |
| 3513 | "test/f16-prelu.cc", |
| 3514 | "test/prelu-microkernel-tester.h", |
| 3515 | "src/xnnpack/AlignedAllocator.h", |
| 3516 | ] + MICROKERNEL_TEST_HDRS, |
| 3517 | deps = MICROKERNEL_TEST_DEPS, |
| 3518 | ) |
| 3519 | |
| 3520 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3521 | name = "f32_prelu_test", |
| 3522 | srcs = [ |
| 3523 | "test/f32-prelu.cc", |
| 3524 | "test/prelu-microkernel-tester.h", |
| 3525 | "src/xnnpack/AlignedAllocator.h", |
| 3526 | ] + MICROKERNEL_TEST_HDRS, |
| 3527 | deps = MICROKERNEL_TEST_DEPS, |
| 3528 | ) |
| 3529 | |
| 3530 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 3531 | name = "f32_raddexpminusmax_test", |
| 3532 | srcs = [ |
| 3533 | "test/f32-raddexpminusmax.cc", |
| 3534 | "test/raddexpminusmax-microkernel-tester.h", |
| 3535 | ] + MICROKERNEL_TEST_HDRS, |
| 3536 | deps = MICROKERNEL_TEST_DEPS, |
| 3537 | ) |
| 3538 | |
| 3539 | xnnpack_unit_test( |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 3540 | name = "f32_raddextexp_test", |
| 3541 | srcs = [ |
| 3542 | "test/f32-raddextexp.cc", |
| 3543 | "test/raddextexp-microkernel-tester.h", |
| 3544 | ] + MICROKERNEL_TEST_HDRS, |
| 3545 | deps = MICROKERNEL_TEST_DEPS, |
| 3546 | ) |
| 3547 | |
| 3548 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 3549 | name = "f32_raddstoreexpminusmax_test", |
| 3550 | srcs = [ |
| 3551 | "test/f32-raddstoreexpminusmax.cc", |
| 3552 | "test/raddstoreexpminusmax-microkernel-tester.h", |
| 3553 | ] + MICROKERNEL_TEST_HDRS, |
| 3554 | deps = MICROKERNEL_TEST_DEPS, |
| 3555 | ) |
| 3556 | |
| 3557 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3558 | name = "f32_rmax_test", |
| 3559 | srcs = [ |
| 3560 | "test/f32-rmax.cc", |
| 3561 | "test/rmax-microkernel-tester.h", |
| 3562 | ] + MICROKERNEL_TEST_HDRS, |
| 3563 | deps = MICROKERNEL_TEST_DEPS, |
| 3564 | ) |
| 3565 | |
| 3566 | xnnpack_unit_test( |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 3567 | name = "f32_sigmoid_test", |
| 3568 | srcs = [ |
| 3569 | "test/f32-sigmoid.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3570 | "test/vunary-microkernel-tester.h", |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 3571 | ] + MICROKERNEL_TEST_HDRS, |
| 3572 | deps = MICROKERNEL_TEST_DEPS, |
| 3573 | ) |
| 3574 | |
| 3575 | xnnpack_unit_test( |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 3576 | name = "f32_spmm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3577 | srcs = [ |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 3578 | "test/f32-spmm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3579 | "test/spmm-microkernel-tester.h", |
| 3580 | "src/xnnpack/AlignedAllocator.h", |
| 3581 | ] + MICROKERNEL_TEST_HDRS, |
| 3582 | deps = MICROKERNEL_TEST_DEPS, |
| 3583 | ) |
| 3584 | |
| 3585 | xnnpack_unit_test( |
Frank Barchard | d793f6c | 2020-05-08 13:37:43 -0700 | [diff] [blame] | 3586 | name = "f16_vadd_minmax_test", |
| 3587 | srcs = [ |
| 3588 | "test/f16-vadd-minmax.cc", |
| 3589 | "test/vbinary-microkernel-tester.h", |
| 3590 | ] + MICROKERNEL_TEST_HDRS, |
| 3591 | deps = MICROKERNEL_TEST_DEPS, |
| 3592 | ) |
| 3593 | |
| 3594 | xnnpack_unit_test( |
| 3595 | name = "f16_vaddc_minmax_test", |
| 3596 | srcs = [ |
| 3597 | "test/f16-vaddc-minmax.cc", |
| 3598 | "test/vbinaryc-microkernel-tester.h", |
| 3599 | ] + MICROKERNEL_TEST_HDRS, |
| 3600 | deps = MICROKERNEL_TEST_DEPS, |
| 3601 | ) |
| 3602 | |
| 3603 | xnnpack_unit_test( |
| 3604 | name = "f16_vdiv_minmax_test", |
| 3605 | srcs = [ |
| 3606 | "test/f16-vdiv-minmax.cc", |
| 3607 | "test/vbinary-microkernel-tester.h", |
| 3608 | ] + MICROKERNEL_TEST_HDRS, |
| 3609 | deps = MICROKERNEL_TEST_DEPS, |
| 3610 | ) |
| 3611 | |
| 3612 | xnnpack_unit_test( |
| 3613 | name = "f16_vdivc_minmax_test", |
| 3614 | srcs = [ |
| 3615 | "test/f16-vdivc-minmax.cc", |
| 3616 | "test/vbinaryc-microkernel-tester.h", |
| 3617 | ] + MICROKERNEL_TEST_HDRS, |
| 3618 | deps = MICROKERNEL_TEST_DEPS, |
| 3619 | ) |
| 3620 | |
| 3621 | xnnpack_unit_test( |
| 3622 | name = "f16_vrdivc_minmax_test", |
| 3623 | srcs = [ |
| 3624 | "test/f16-vrdivc-minmax.cc", |
| 3625 | "test/vbinaryc-microkernel-tester.h", |
| 3626 | ] + MICROKERNEL_TEST_HDRS, |
| 3627 | deps = MICROKERNEL_TEST_DEPS, |
| 3628 | ) |
| 3629 | |
| 3630 | xnnpack_unit_test( |
| 3631 | name = "f16_vmax_test", |
| 3632 | srcs = [ |
| 3633 | "test/f16-vmax.cc", |
| 3634 | "test/vbinary-microkernel-tester.h", |
| 3635 | ] + MICROKERNEL_TEST_HDRS, |
| 3636 | deps = MICROKERNEL_TEST_DEPS, |
| 3637 | ) |
| 3638 | |
| 3639 | xnnpack_unit_test( |
| 3640 | name = "f16_vmaxc_test", |
| 3641 | srcs = [ |
| 3642 | "test/f16-vmaxc.cc", |
| 3643 | "test/vbinaryc-microkernel-tester.h", |
| 3644 | ] + MICROKERNEL_TEST_HDRS, |
| 3645 | deps = MICROKERNEL_TEST_DEPS, |
| 3646 | ) |
| 3647 | |
| 3648 | xnnpack_unit_test( |
| 3649 | name = "f16_vmin_test", |
| 3650 | srcs = [ |
| 3651 | "test/f16-vmin.cc", |
| 3652 | "test/vbinary-microkernel-tester.h", |
| 3653 | ] + MICROKERNEL_TEST_HDRS, |
| 3654 | deps = MICROKERNEL_TEST_DEPS, |
| 3655 | ) |
| 3656 | |
| 3657 | xnnpack_unit_test( |
| 3658 | name = "f16_vminc_test", |
| 3659 | srcs = [ |
| 3660 | "test/f16-vminc.cc", |
| 3661 | "test/vbinaryc-microkernel-tester.h", |
| 3662 | ] + MICROKERNEL_TEST_HDRS, |
| 3663 | deps = MICROKERNEL_TEST_DEPS, |
| 3664 | ) |
| 3665 | |
| 3666 | xnnpack_unit_test( |
| 3667 | name = "f16_vmul_minmax_test", |
| 3668 | srcs = [ |
| 3669 | "test/f16-vmul-minmax.cc", |
| 3670 | "test/vbinary-microkernel-tester.h", |
| 3671 | ] + MICROKERNEL_TEST_HDRS, |
| 3672 | deps = MICROKERNEL_TEST_DEPS, |
| 3673 | ) |
| 3674 | |
| 3675 | xnnpack_unit_test( |
| 3676 | name = "f16_vmulc_minmax_test", |
| 3677 | srcs = [ |
| 3678 | "test/f16-vmulc-minmax.cc", |
| 3679 | "test/vbinaryc-microkernel-tester.h", |
| 3680 | ] + MICROKERNEL_TEST_HDRS, |
| 3681 | deps = MICROKERNEL_TEST_DEPS, |
| 3682 | ) |
| 3683 | |
| 3684 | xnnpack_unit_test( |
| 3685 | name = "f16_vsub_minmax_test", |
| 3686 | srcs = [ |
| 3687 | "test/f16-vsub-minmax.cc", |
| 3688 | "test/vbinary-microkernel-tester.h", |
| 3689 | ] + MICROKERNEL_TEST_HDRS, |
| 3690 | deps = MICROKERNEL_TEST_DEPS, |
| 3691 | ) |
| 3692 | |
| 3693 | xnnpack_unit_test( |
| 3694 | name = "f16_vsubc_minmax_test", |
| 3695 | srcs = [ |
| 3696 | "test/f16-vsubc-minmax.cc", |
| 3697 | "test/vbinaryc-microkernel-tester.h", |
| 3698 | ] + MICROKERNEL_TEST_HDRS, |
| 3699 | deps = MICROKERNEL_TEST_DEPS, |
| 3700 | ) |
| 3701 | |
| 3702 | xnnpack_unit_test( |
| 3703 | name = "f16_vrsubc_minmax_test", |
| 3704 | srcs = [ |
| 3705 | "test/f16-vrsubc-minmax.cc", |
| 3706 | "test/vbinaryc-microkernel-tester.h", |
| 3707 | ] + MICROKERNEL_TEST_HDRS, |
| 3708 | deps = MICROKERNEL_TEST_DEPS, |
| 3709 | ) |
| 3710 | |
| 3711 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3712 | name = "f32_vadd_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3713 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3714 | "test/f32-vadd-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3715 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3716 | ] + MICROKERNEL_TEST_HDRS, |
| 3717 | deps = MICROKERNEL_TEST_DEPS, |
| 3718 | ) |
| 3719 | |
| 3720 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3721 | name = "f32_vaddc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3722 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3723 | "test/f32-vaddc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3724 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3725 | ] + MICROKERNEL_TEST_HDRS, |
| 3726 | deps = MICROKERNEL_TEST_DEPS, |
| 3727 | ) |
| 3728 | |
| 3729 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3730 | name = "f32_vdiv_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 3731 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3732 | "test/f32-vdiv-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 3733 | "test/vbinary-microkernel-tester.h", |
| 3734 | ] + MICROKERNEL_TEST_HDRS, |
| 3735 | deps = MICROKERNEL_TEST_DEPS, |
| 3736 | ) |
| 3737 | |
| 3738 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3739 | name = "f32_vdivc_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 3740 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3741 | "test/f32-vdivc-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 3742 | "test/vbinaryc-microkernel-tester.h", |
| 3743 | ] + MICROKERNEL_TEST_HDRS, |
| 3744 | deps = MICROKERNEL_TEST_DEPS, |
| 3745 | ) |
| 3746 | |
| 3747 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3748 | name = "f32_vrdivc_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 3749 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3750 | "test/f32-vrdivc-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 3751 | "test/vbinaryc-microkernel-tester.h", |
| 3752 | ] + MICROKERNEL_TEST_HDRS, |
| 3753 | deps = MICROKERNEL_TEST_DEPS, |
| 3754 | ) |
| 3755 | |
| 3756 | xnnpack_unit_test( |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 3757 | name = "f32_vmax_test", |
| 3758 | srcs = [ |
| 3759 | "test/f32-vmax.cc", |
| 3760 | "test/vbinary-microkernel-tester.h", |
| 3761 | ] + MICROKERNEL_TEST_HDRS, |
| 3762 | deps = MICROKERNEL_TEST_DEPS, |
| 3763 | ) |
| 3764 | |
| 3765 | xnnpack_unit_test( |
| 3766 | name = "f32_vmaxc_test", |
| 3767 | srcs = [ |
| 3768 | "test/f32-vmaxc.cc", |
| 3769 | "test/vbinaryc-microkernel-tester.h", |
| 3770 | ] + MICROKERNEL_TEST_HDRS, |
| 3771 | deps = MICROKERNEL_TEST_DEPS, |
| 3772 | ) |
| 3773 | |
| 3774 | xnnpack_unit_test( |
| 3775 | name = "f32_vmin_test", |
| 3776 | srcs = [ |
| 3777 | "test/f32-vmin.cc", |
| 3778 | "test/vbinary-microkernel-tester.h", |
| 3779 | ] + MICROKERNEL_TEST_HDRS, |
| 3780 | deps = MICROKERNEL_TEST_DEPS, |
| 3781 | ) |
| 3782 | |
| 3783 | xnnpack_unit_test( |
| 3784 | name = "f32_vminc_test", |
| 3785 | srcs = [ |
| 3786 | "test/f32-vminc.cc", |
| 3787 | "test/vbinaryc-microkernel-tester.h", |
| 3788 | ] + MICROKERNEL_TEST_HDRS, |
| 3789 | deps = MICROKERNEL_TEST_DEPS, |
| 3790 | ) |
| 3791 | |
| 3792 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3793 | name = "f32_vmul_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3794 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3795 | "test/f32-vmul-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3796 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3797 | ] + MICROKERNEL_TEST_HDRS, |
| 3798 | deps = MICROKERNEL_TEST_DEPS, |
| 3799 | ) |
| 3800 | |
| 3801 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3802 | name = "f32_vmulc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3803 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3804 | "test/f32-vmulc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3805 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3806 | ] + MICROKERNEL_TEST_HDRS, |
| 3807 | deps = MICROKERNEL_TEST_DEPS, |
| 3808 | ) |
| 3809 | |
| 3810 | xnnpack_unit_test( |
Frank Barchard | 2a1049c | 2020-06-03 02:31:27 -0700 | [diff] [blame^] | 3811 | name = "f16_vmulcaddc_minmax_test", |
| 3812 | srcs = [ |
| 3813 | "test/f16-vmulcaddc-minmax.cc", |
| 3814 | "test/vmulcaddc-microkernel-tester.h", |
| 3815 | "src/xnnpack/AlignedAllocator.h", |
| 3816 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3817 | deps = MICROKERNEL_TEST_DEPS, |
| 3818 | ) |
| 3819 | |
| 3820 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3821 | name = "f32_vmulcaddc_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3822 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3823 | "test/f32-vmulcaddc-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3824 | "test/vmulcaddc-microkernel-tester.h", |
| 3825 | "src/xnnpack/AlignedAllocator.h", |
| 3826 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3827 | deps = MICROKERNEL_TEST_DEPS, |
| 3828 | ) |
| 3829 | |
| 3830 | xnnpack_unit_test( |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 3831 | name = "f32_vscale_test", |
| 3832 | srcs = [ |
| 3833 | "test/f32-vscale.cc", |
| 3834 | "test/vscale-microkernel-tester.h", |
| 3835 | ] + MICROKERNEL_TEST_HDRS, |
| 3836 | deps = MICROKERNEL_TEST_DEPS, |
| 3837 | ) |
| 3838 | |
| 3839 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 3840 | name = "f32_vscaleexpminusmax_test", |
| 3841 | srcs = [ |
| 3842 | "test/f32-vscaleexpminusmax.cc", |
| 3843 | "test/vscaleexpminusmax-microkernel-tester.h", |
| 3844 | ] + MICROKERNEL_TEST_HDRS, |
| 3845 | deps = MICROKERNEL_TEST_DEPS, |
| 3846 | ) |
| 3847 | |
| 3848 | xnnpack_unit_test( |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 3849 | name = "f32_vscaleextexp_test", |
| 3850 | srcs = [ |
| 3851 | "test/f32-vscaleextexp.cc", |
| 3852 | "test/vscaleextexp-microkernel-tester.h", |
| 3853 | ] + MICROKERNEL_TEST_HDRS, |
| 3854 | deps = MICROKERNEL_TEST_DEPS, |
| 3855 | ) |
| 3856 | |
| 3857 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3858 | name = "f32_vsub_minmax_test", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 3859 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3860 | "test/f32-vsub-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3861 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3862 | ] + MICROKERNEL_TEST_HDRS, |
| 3863 | deps = MICROKERNEL_TEST_DEPS, |
| 3864 | ) |
| 3865 | |
| 3866 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3867 | name = "f32_vsubc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3868 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3869 | "test/f32-vsubc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3870 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3871 | ] + MICROKERNEL_TEST_HDRS, |
| 3872 | deps = MICROKERNEL_TEST_DEPS, |
| 3873 | ) |
| 3874 | |
| 3875 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3876 | name = "f32_vrsubc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 3877 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 3878 | "test/f32-vrsubc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 3879 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 3880 | ] + MICROKERNEL_TEST_HDRS, |
| 3881 | deps = MICROKERNEL_TEST_DEPS, |
| 3882 | ) |
| 3883 | |
| 3884 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3885 | name = "q8_avgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3886 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3887 | "test/q8-avgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3888 | "test/avgpool-microkernel-tester.h", |
| 3889 | "src/xnnpack/AlignedAllocator.h", |
| 3890 | ] + MICROKERNEL_TEST_HDRS, |
| 3891 | deps = MICROKERNEL_TEST_DEPS, |
| 3892 | ) |
| 3893 | |
| 3894 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3895 | name = "q8_igemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3896 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3897 | "test/q8-igemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3898 | "test/gemm-microkernel-tester.h", |
| 3899 | "src/xnnpack/AlignedAllocator.h", |
| 3900 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3901 | deps = MICROKERNEL_TEST_DEPS, |
| 3902 | ) |
| 3903 | |
| 3904 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3905 | name = "q8_dwconv_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3906 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3907 | "test/q8-dwconv-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3908 | "test/dwconv-microkernel-tester.h", |
| 3909 | "src/xnnpack/AlignedAllocator.h", |
| 3910 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3911 | deps = MICROKERNEL_TEST_DEPS, |
| 3912 | ) |
| 3913 | |
| 3914 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3915 | name = "q8_gavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3916 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3917 | "test/q8-gavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3918 | "test/gavgpool-microkernel-tester.h", |
| 3919 | "src/xnnpack/AlignedAllocator.h", |
| 3920 | ] + MICROKERNEL_TEST_HDRS, |
| 3921 | deps = MICROKERNEL_TEST_DEPS, |
| 3922 | ) |
| 3923 | |
| 3924 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3925 | name = "q8_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3926 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3927 | "test/q8-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3928 | "test/gemm-microkernel-tester.h", |
| 3929 | "src/xnnpack/AlignedAllocator.h", |
| 3930 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3931 | deps = MICROKERNEL_TEST_DEPS, |
| 3932 | ) |
| 3933 | |
| 3934 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3935 | name = "q8_vadd_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3936 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3937 | "test/q8-vadd-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3938 | "test/vadd-microkernel-tester.h", |
| 3939 | ] + MICROKERNEL_TEST_HDRS, |
| 3940 | deps = MICROKERNEL_TEST_DEPS, |
| 3941 | ) |
| 3942 | |
| 3943 | xnnpack_unit_test( |
| 3944 | name = "u8_clamp_test", |
| 3945 | srcs = [ |
| 3946 | "test/u8-clamp.cc", |
| 3947 | "test/clamp-microkernel-tester.h", |
| 3948 | ] + MICROKERNEL_TEST_HDRS, |
| 3949 | deps = MICROKERNEL_TEST_DEPS, |
| 3950 | ) |
| 3951 | |
| 3952 | xnnpack_unit_test( |
| 3953 | name = "u8_lut32norm_test", |
| 3954 | srcs = [ |
| 3955 | "test/u8-lut32norm.cc", |
| 3956 | "test/lut-norm-microkernel-tester.h", |
| 3957 | ] + MICROKERNEL_TEST_HDRS, |
| 3958 | deps = MICROKERNEL_TEST_DEPS, |
| 3959 | ) |
| 3960 | |
| 3961 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3962 | name = "u8_maxpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3963 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3964 | "test/u8-maxpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3965 | "test/maxpool-microkernel-tester.h", |
| 3966 | ] + MICROKERNEL_TEST_HDRS, |
| 3967 | deps = MICROKERNEL_TEST_DEPS, |
| 3968 | ) |
| 3969 | |
| 3970 | xnnpack_unit_test( |
| 3971 | name = "u8_rmax_test", |
| 3972 | srcs = [ |
| 3973 | "test/u8-rmax.cc", |
| 3974 | "test/rmax-microkernel-tester.h", |
| 3975 | ] + MICROKERNEL_TEST_HDRS, |
| 3976 | deps = MICROKERNEL_TEST_DEPS, |
| 3977 | ) |
| 3978 | |
| 3979 | xnnpack_unit_test( |
Marat Dukhan | 3bb3bfc | 2020-05-19 17:42:46 -0700 | [diff] [blame] | 3980 | name = "x32_fill_test", |
| 3981 | srcs = [ |
| 3982 | "test/x32-fill.cc", |
| 3983 | "test/fill-microkernel-tester.h", |
| 3984 | ] + MICROKERNEL_TEST_HDRS, |
| 3985 | deps = MICROKERNEL_TEST_DEPS, |
| 3986 | ) |
| 3987 | |
| 3988 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3989 | name = "x32_packx_test", |
| 3990 | srcs = [ |
| 3991 | "test/x32-packx.cc", |
| 3992 | "test/pack-microkernel-tester.h", |
| 3993 | "src/xnnpack/AlignedAllocator.h", |
| 3994 | ] + MICROKERNEL_TEST_HDRS, |
| 3995 | deps = MICROKERNEL_TEST_DEPS, |
| 3996 | ) |
| 3997 | |
| 3998 | xnnpack_unit_test( |
| 3999 | name = "x32_pad_test", |
| 4000 | srcs = [ |
| 4001 | "test/x32-pad.cc", |
| 4002 | "test/pad-microkernel-tester.h", |
| 4003 | ] + MICROKERNEL_TEST_HDRS, |
| 4004 | deps = MICROKERNEL_TEST_DEPS, |
| 4005 | ) |
| 4006 | |
| 4007 | xnnpack_unit_test( |
| 4008 | name = "x32_unpool_test", |
| 4009 | srcs = [ |
| 4010 | "test/x32-unpool.cc", |
| 4011 | "test/unpool-microkernel-tester.h", |
| 4012 | ] + MICROKERNEL_TEST_HDRS, |
| 4013 | deps = MICROKERNEL_TEST_DEPS, |
| 4014 | ) |
| 4015 | |
| 4016 | xnnpack_unit_test( |
| 4017 | name = "x32_zip_test", |
| 4018 | srcs = [ |
| 4019 | "test/x32-zip.cc", |
| 4020 | "test/zip-microkernel-tester.h", |
| 4021 | ] + MICROKERNEL_TEST_HDRS, |
| 4022 | deps = MICROKERNEL_TEST_DEPS, |
| 4023 | ) |
| 4024 | |
| 4025 | xnnpack_unit_test( |
| 4026 | name = "x8_lut_test", |
| 4027 | srcs = [ |
| 4028 | "test/x8-lut.cc", |
| 4029 | "test/lut-microkernel-tester.h", |
| 4030 | ] + MICROKERNEL_TEST_HDRS, |
| 4031 | deps = MICROKERNEL_TEST_DEPS, |
| 4032 | ) |
| 4033 | |
| 4034 | xnnpack_unit_test( |
| 4035 | name = "x8_zip_test", |
| 4036 | srcs = [ |
| 4037 | "test/x8-zip.cc", |
| 4038 | "test/zip-microkernel-tester.h", |
| 4039 | ] + MICROKERNEL_TEST_HDRS, |
| 4040 | deps = MICROKERNEL_TEST_DEPS, |
| 4041 | ) |
| 4042 | |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 4043 | xnnpack_unit_test( |
| 4044 | name = "requantization_test", |
| 4045 | srcs = [ |
| 4046 | "src/xnnpack/requantization-stubs.h", |
| 4047 | "test/requantization.cc", |
| 4048 | "test/requantization-tester.h", |
| 4049 | ] + MICROKERNEL_TEST_HDRS, |
| 4050 | deps = MICROKERNEL_TEST_DEPS, |
| 4051 | ) |
| 4052 | |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 4053 | ########################## Size tests for the library ######################### |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4054 | |
| 4055 | xnnpack_binary( |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 4056 | name = "operator_size_test", |
| 4057 | srcs = ["test/operator-size.c"], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 4058 | deps = [":xnnpack_operators_nhwc_f32"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4059 | ) |
| 4060 | |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 4061 | xnnpack_binary( |
| 4062 | name = "subgraph_size_test", |
| 4063 | srcs = ["test/subgraph-size.c"], |
| 4064 | deps = [":XNNPACK"], |
| 4065 | ) |
| 4066 | |
| 4067 | ########################### Unit tests for operators ########################## |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4068 | |
| 4069 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4070 | name = "add_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4071 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4072 | "test/add-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4073 | "test/add-operator-tester.h", |
| 4074 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4075 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4076 | ) |
| 4077 | |
| 4078 | xnnpack_unit_test( |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 4079 | name = "add_nd_test", |
| 4080 | srcs = [ |
| 4081 | "test/add-nd.cc", |
| 4082 | "test/binary-elementwise-operator-tester.h", |
| 4083 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4084 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 4085 | ) |
| 4086 | |
| 4087 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4088 | name = "argmax_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4089 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4090 | "test/argmax-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4091 | "test/argmax-pooling-operator-tester.h", |
| 4092 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4093 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4094 | ) |
| 4095 | |
| 4096 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4097 | name = "average_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4098 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4099 | "test/average-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4100 | "test/average-pooling-operator-tester.h", |
| 4101 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4102 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4103 | ) |
| 4104 | |
| 4105 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4106 | name = "channel_pad_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4107 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4108 | "test/channel-pad-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4109 | "test/channel-pad-operator-tester.h", |
| 4110 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4111 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4112 | ) |
| 4113 | |
| 4114 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4115 | name = "channel_shuffle_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4116 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4117 | "test/channel-shuffle-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4118 | "test/channel-shuffle-operator-tester.h", |
| 4119 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4120 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4121 | ) |
| 4122 | |
| 4123 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4124 | name = "clamp_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4125 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4126 | "test/clamp-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4127 | "test/clamp-operator-tester.h", |
| 4128 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4129 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4130 | ) |
| 4131 | |
| 4132 | xnnpack_unit_test( |
Marat Dukhan | 065b11e | 2020-05-22 09:49:41 -0700 | [diff] [blame] | 4133 | name = "constant_pad_nd_test", |
| 4134 | srcs = [ |
| 4135 | "test/constant-pad-nd.cc", |
| 4136 | "test/constant-pad-operator-tester.h", |
| 4137 | ], |
| 4138 | deps = OPERATOR_TEST_DEPS, |
| 4139 | ) |
| 4140 | |
| 4141 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4142 | name = "convolution_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4143 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4144 | "test/convolution-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4145 | "test/convolution-operator-tester.h", |
| 4146 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4147 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4148 | ) |
| 4149 | |
| 4150 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4151 | name = "convolution_nchw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4152 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4153 | "test/convolution-nchw.cc", |
| 4154 | "test/convolution-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4155 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4156 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4157 | ) |
| 4158 | |
| 4159 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4160 | name = "deconvolution_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4161 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4162 | "test/deconvolution-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4163 | "test/deconvolution-operator-tester.h", |
| 4164 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4165 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4166 | ) |
| 4167 | |
| 4168 | xnnpack_unit_test( |
Marat Dukhan | 6918050 | 2019-12-06 15:00:31 -0800 | [diff] [blame] | 4169 | name = "divide_nd_test", |
| 4170 | srcs = [ |
| 4171 | "test/binary-elementwise-operator-tester.h", |
| 4172 | "test/divide-nd.cc", |
| 4173 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4174 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 6918050 | 2019-12-06 15:00:31 -0800 | [diff] [blame] | 4175 | ) |
| 4176 | |
| 4177 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4178 | name = "fully_connected_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4179 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4180 | "test/fully-connected-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4181 | "test/fully-connected-operator-tester.h", |
| 4182 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4183 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4184 | ) |
| 4185 | |
| 4186 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4187 | name = "global_average_pooling_nwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4188 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4189 | "test/global-average-pooling-nwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4190 | "test/global-average-pooling-operator-tester.h", |
| 4191 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4192 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4193 | ) |
| 4194 | |
| 4195 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4196 | name = "global_average_pooling_ncw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4197 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4198 | "test/global-average-pooling-ncw.cc", |
| 4199 | "test/global-average-pooling-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4200 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4201 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4202 | ) |
| 4203 | |
| 4204 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4205 | name = "hardswish_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4206 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4207 | "test/hardswish-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4208 | "test/hardswish-operator-tester.h", |
| 4209 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4210 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4211 | ) |
| 4212 | |
| 4213 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4214 | name = "leaky_relu_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4215 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4216 | "test/leaky-relu-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4217 | "test/leaky-relu-operator-tester.h", |
| 4218 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4219 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4220 | ) |
| 4221 | |
| 4222 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4223 | name = "max_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4224 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4225 | "test/max-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4226 | "test/max-pooling-operator-tester.h", |
| 4227 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4228 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4229 | ) |
| 4230 | |
| 4231 | xnnpack_unit_test( |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 4232 | name = "maximum_nd_test", |
| 4233 | srcs = [ |
| 4234 | "test/binary-elementwise-operator-tester.h", |
| 4235 | "test/maximum-nd.cc", |
| 4236 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4237 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 4238 | ) |
| 4239 | |
| 4240 | xnnpack_unit_test( |
| 4241 | name = "minimum_nd_test", |
| 4242 | srcs = [ |
| 4243 | "test/binary-elementwise-operator-tester.h", |
| 4244 | "test/minimum-nd.cc", |
| 4245 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4246 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 4247 | ) |
| 4248 | |
| 4249 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4250 | name = "multiply_nd_test", |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 4251 | srcs = [ |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 4252 | "test/binary-elementwise-operator-tester.h", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4253 | "test/multiply-nd.cc", |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 4254 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4255 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 4256 | ) |
| 4257 | |
| 4258 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4259 | name = "prelu_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4260 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4261 | "test/prelu-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4262 | "test/prelu-operator-tester.h", |
| 4263 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4264 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4265 | ) |
| 4266 | |
| 4267 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4268 | name = "resize_bilinear_nhwc_test", |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 4269 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4270 | "test/resize-bilinear-nhwc.cc", |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 4271 | "test/resize-bilinear-operator-tester.h", |
| 4272 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4273 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 4274 | ) |
| 4275 | |
| 4276 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4277 | name = "sigmoid_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4278 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4279 | "test/sigmoid-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4280 | "test/sigmoid-operator-tester.h", |
| 4281 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4282 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4283 | ) |
| 4284 | |
| 4285 | xnnpack_unit_test( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 4286 | name = "softmax_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4287 | srcs = [ |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 4288 | "test/softmax-nc.cc", |
| 4289 | "test/softmax-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4290 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4291 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4292 | ) |
| 4293 | |
| 4294 | xnnpack_unit_test( |
Marat Dukhan | 05f3f6d | 2019-12-03 15:13:53 -0800 | [diff] [blame] | 4295 | name = "subtract_nd_test", |
| 4296 | srcs = [ |
| 4297 | "test/binary-elementwise-operator-tester.h", |
| 4298 | "test/subtract-nd.cc", |
| 4299 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4300 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 05f3f6d | 2019-12-03 15:13:53 -0800 | [diff] [blame] | 4301 | ) |
| 4302 | |
| 4303 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4304 | name = "unpooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4305 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 4306 | "test/unpooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4307 | "test/unpooling-operator-tester.h", |
| 4308 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 4309 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4310 | ) |
| 4311 | |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 4312 | ############################### Misc unit tests ############################### |
| 4313 | |
| 4314 | xnnpack_unit_test( |
| 4315 | name = "memory_planner_test", |
| 4316 | srcs = [ |
| 4317 | "test/memory-planner-test.cc", |
| 4318 | ], |
| 4319 | deps = [ |
| 4320 | ":XNNPACK", |
| 4321 | ":memory_planner", |
| 4322 | ], |
| 4323 | ) |
| 4324 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4325 | ############################# Build configurations ############################# |
| 4326 | |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 4327 | # Enables usage of assembly kernels. |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4328 | config_setting( |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 4329 | name = "xnn_enable_assembly_explicit_true", |
| 4330 | define_values = {"xnn_enable_assembly": "true"}, |
| 4331 | ) |
| 4332 | |
| 4333 | # Disables usage of assembly kernels. |
| 4334 | config_setting( |
| 4335 | name = "xnn_enable_assembly_explicit_false", |
| 4336 | define_values = {"xnn_enable_assembly": "false"}, |
| 4337 | ) |
| 4338 | |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 4339 | # Disables usage of HMP-aware optimizations. |
| 4340 | config_setting( |
| 4341 | name = "xnn_enable_hmp_explicit_false", |
| 4342 | define_values = {"xnn_enable_hmp": "false"}, |
| 4343 | ) |
| 4344 | |
Chao Mei | 6ddfc60 | 2020-05-13 22:29:36 -0700 | [diff] [blame] | 4345 | # Enable usage of optimized memory allocation |
| 4346 | config_setting( |
| 4347 | name = "xnn_enable_memopt_explicit_true", |
| 4348 | define_values = {"xnnpack_enable_memopt": "true"}, |
| 4349 | ) |
| 4350 | |
| 4351 | # Disable usage of optimized memory allocation |
| 4352 | config_setting( |
| 4353 | name = "xnn_enable_memopt_explicit_false", |
| 4354 | define_values = {"xnnpack_enable_memopt": "false"}, |
| 4355 | ) |
| 4356 | |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 4357 | # Builds with -c dbg |
| 4358 | config_setting( |
| 4359 | name = "debug_build", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4360 | values = { |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 4361 | "compilation_mode": "dbg", |
| 4362 | }, |
| 4363 | ) |
| 4364 | |
| 4365 | # Builds with -c opt |
| 4366 | config_setting( |
| 4367 | name = "optimized_build", |
| 4368 | values = { |
| 4369 | "compilation_mode": "opt", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4370 | }, |
| 4371 | ) |
| 4372 | |
| 4373 | config_setting( |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 4374 | name = "linux_k8", |
| 4375 | values = {"cpu": "k8"}, |
| 4376 | ) |
| 4377 | |
| 4378 | config_setting( |
Marat Dukhan | 582094e | 2020-04-30 17:21:25 -0700 | [diff] [blame] | 4379 | name = "linux_arm", |
| 4380 | values = {"cpu": "arm"}, |
Marat Dukhan | 4e45e66 | 2019-10-03 15:40:24 -0700 | [diff] [blame] | 4381 | ) |
| 4382 | |
| 4383 | config_setting( |
Terry Heo | 68eef3f | 2020-04-13 22:53:52 -0700 | [diff] [blame] | 4384 | name = "linux_armhf", |
| 4385 | values = {"cpu": "armhf"}, |
| 4386 | ) |
| 4387 | |
| 4388 | config_setting( |
Marat Dukhan | 582094e | 2020-04-30 17:21:25 -0700 | [diff] [blame] | 4389 | name = "linux_aarch64", |
| 4390 | values = {"cpu": "aarch64"}, |
| 4391 | ) |
| 4392 | |
| 4393 | config_setting( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4394 | name = "android", |
| 4395 | values = {"crosstool_top": "//external:android/crosstool"}, |
| 4396 | ) |
| 4397 | |
| 4398 | config_setting( |
| 4399 | name = "android_armv7", |
| 4400 | values = { |
| 4401 | "crosstool_top": "//external:android/crosstool", |
| 4402 | "cpu": "armeabi-v7a", |
| 4403 | }, |
| 4404 | ) |
| 4405 | |
| 4406 | config_setting( |
| 4407 | name = "android_arm64", |
| 4408 | values = { |
| 4409 | "crosstool_top": "//external:android/crosstool", |
| 4410 | "cpu": "arm64-v8a", |
| 4411 | }, |
| 4412 | ) |
| 4413 | |
| 4414 | config_setting( |
| 4415 | name = "android_x86", |
| 4416 | values = { |
| 4417 | "crosstool_top": "//external:android/crosstool", |
| 4418 | "cpu": "x86", |
| 4419 | }, |
| 4420 | ) |
| 4421 | |
| 4422 | config_setting( |
| 4423 | name = "android_x86_64", |
| 4424 | values = { |
| 4425 | "crosstool_top": "//external:android/crosstool", |
| 4426 | "cpu": "x86_64", |
| 4427 | }, |
| 4428 | ) |
| 4429 | |
| 4430 | config_setting( |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 4431 | name = "windows_x86_64", |
| 4432 | values = {"cpu": "x64_windows"}, |
Marat Dukhan | 9fe932e | 2020-04-11 17:14:15 -0700 | [diff] [blame] | 4433 | ) |
| 4434 | |
| 4435 | config_setting( |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 4436 | name = "windows_x86_64_clang", |
| 4437 | values = { |
| 4438 | "compiler": "clang-cl", |
| 4439 | "cpu": "x64_windows", |
| 4440 | }, |
| 4441 | ) |
| 4442 | |
| 4443 | config_setting( |
| 4444 | name = "windows_x86_64_mingw", |
| 4445 | values = { |
| 4446 | "compiler": "mingw-gcc", |
| 4447 | "cpu": "x64_windows", |
| 4448 | }, |
| 4449 | ) |
| 4450 | |
| 4451 | config_setting( |
| 4452 | name = "windows_x86_64_msys", |
| 4453 | values = { |
| 4454 | "compiler": "msys-gcc", |
| 4455 | "cpu": "x64_windows", |
| 4456 | }, |
Marat Dukhan | 9fe932e | 2020-04-11 17:14:15 -0700 | [diff] [blame] | 4457 | ) |
| 4458 | |
| 4459 | config_setting( |
Marat Dukhan | 885ca24 | 2019-10-07 09:17:32 -0700 | [diff] [blame] | 4460 | name = "macos_x86_64", |
| 4461 | values = { |
| 4462 | "apple_platform_type": "macos", |
| 4463 | "cpu": "darwin", |
| 4464 | }, |
| 4465 | ) |
| 4466 | |
| 4467 | config_setting( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4468 | name = "emscripten", |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 4469 | values = {"crosstool_top": "//toolchain:emscripten"}, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4470 | ) |
| 4471 | |
| 4472 | config_setting( |
| 4473 | name = "emscripten_wasm", |
| 4474 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 4475 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4476 | "cpu": "wasm", |
| 4477 | }, |
| 4478 | ) |
| 4479 | |
| 4480 | config_setting( |
| 4481 | name = "emscripten_wasmsimd", |
| 4482 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 4483 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4484 | "cpu": "wasm", |
Marat Dukhan | 81c6260 | 2020-05-29 13:22:49 -0700 | [diff] [blame] | 4485 | "copt": "-msimd128", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4486 | }, |
| 4487 | ) |
| 4488 | |
| 4489 | config_setting( |
| 4490 | name = "emscripten_asmjs", |
| 4491 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 4492 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 4493 | "cpu": "asmjs", |
| 4494 | }, |
| 4495 | ) |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4496 | |
| 4497 | config_setting( |
| 4498 | name = "ios_armv7", |
| 4499 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4500 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4501 | "cpu": "ios_armv7", |
| 4502 | }, |
| 4503 | ) |
| 4504 | |
| 4505 | config_setting( |
| 4506 | name = "ios_arm64", |
| 4507 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4508 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4509 | "cpu": "ios_arm64", |
| 4510 | }, |
| 4511 | ) |
| 4512 | |
| 4513 | config_setting( |
| 4514 | name = "ios_arm64e", |
| 4515 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4516 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4517 | "cpu": "ios_arm64e", |
| 4518 | }, |
| 4519 | ) |
| 4520 | |
| 4521 | config_setting( |
| 4522 | name = "ios_x86", |
| 4523 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4524 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4525 | "cpu": "ios_i386", |
| 4526 | }, |
| 4527 | ) |
| 4528 | |
| 4529 | config_setting( |
| 4530 | name = "ios_x86_64", |
| 4531 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4532 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4533 | "cpu": "ios_x86_64", |
| 4534 | }, |
| 4535 | ) |
| 4536 | |
| 4537 | config_setting( |
| 4538 | name = "watchos_armv7k", |
| 4539 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4540 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4541 | "cpu": "watchos_armv7k", |
| 4542 | }, |
| 4543 | ) |
| 4544 | |
| 4545 | config_setting( |
| 4546 | name = "watchos_arm64_32", |
| 4547 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4548 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4549 | "cpu": "watchos_arm64_32", |
| 4550 | }, |
| 4551 | ) |
| 4552 | |
| 4553 | config_setting( |
| 4554 | name = "watchos_x86", |
| 4555 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4556 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4557 | "cpu": "watchos_i386", |
| 4558 | }, |
| 4559 | ) |
| 4560 | |
| 4561 | config_setting( |
| 4562 | name = "watchos_x86_64", |
| 4563 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4564 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4565 | "cpu": "watchos_x86_64", |
| 4566 | }, |
| 4567 | ) |
| 4568 | |
| 4569 | config_setting( |
| 4570 | name = "tvos_arm64", |
| 4571 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4572 | "apple_platform_type": "tvos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4573 | "cpu": "tvos_arm64", |
| 4574 | }, |
| 4575 | ) |
| 4576 | |
| 4577 | config_setting( |
| 4578 | name = "tvos_x86_64", |
| 4579 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 4580 | "apple_platform_type": "tvos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 4581 | "cpu": "tvos_x86_64", |
| 4582 | }, |
| 4583 | ) |