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 = [ |
| 39 | ":ukernels", |
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 = [ |
| 47 | ":XNNPACK", |
| 48 | "@pthreadpool", |
| 49 | "@FP16", |
| 50 | ] |
| 51 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 52 | OPERATOR_SRCS = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 53 | "src/add-nc.c", |
| 54 | "src/argmax-pooling-nhwc.c", |
| 55 | "src/average-pooling-nhwc.c", |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 56 | "src/binary-elementwise-nd.c", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 57 | "src/channel-pad-nc.c", |
| 58 | "src/channel-shuffle-nc.c", |
| 59 | "src/clamp-nc.c", |
| 60 | "src/convolution-nchw.c", |
| 61 | "src/convolution-nhwc.c", |
| 62 | "src/deconvolution-nhwc.c", |
| 63 | "src/fully-connected-nc.c", |
| 64 | "src/global-average-pooling-ncw.c", |
| 65 | "src/global-average-pooling-nwc.c", |
| 66 | "src/hardswish-nc.c", |
| 67 | "src/leaky-relu-nc.c", |
| 68 | "src/max-pooling-nhwc.c", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 69 | "src/prelu-nc.c", |
| 70 | "src/resize-bilinear-nhwc.c", |
| 71 | "src/sigmoid-nc.c", |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 72 | "src/softmax-nc.c", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 73 | "src/unpooling-nhwc.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 74 | ] |
| 75 | |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 76 | TABLE_SRCS = [ |
| 77 | "src/tables/exp2-k-over-64.c", |
| 78 | "src/tables/exp2-k-over-2048.c", |
| 79 | ] |
| 80 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 81 | SCALAR_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 82 | "src/f32-argmaxpool/4x-scalar-c1.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 83 | "src/f32-argmaxpool/9p8x-scalar-c1.c", |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 84 | "src/f32-argmaxpool/9x-scalar-c1.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 85 | "src/f32-avgpool/9p8x-minmax-scalar-c1.c", |
| 86 | "src/f32-avgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 87 | "src/f32-clamp/gen/scalar-x1.c", |
| 88 | "src/f32-clamp/gen/scalar-x2.c", |
| 89 | "src/f32-clamp/gen/scalar-x4.c", |
Marat Dukhan | 441e221 | 2019-12-04 18:30:49 -0800 | [diff] [blame] | 90 | "src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c", |
Marat Dukhan | 6b7dfae | 2019-12-04 16:00:52 -0800 | [diff] [blame] | 91 | "src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c", |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 92 | "src/f32-conv-hwc2spchw/3x3s2p1c3x4-scalar-1x1.c", |
Erich Elsen | 0cc2c53 | 2019-10-15 04:44:18 -0700 | [diff] [blame] | 93 | "src/f32-dwconv-spchw/3x3p1-scalar.c", |
Erich Elsen | ac4de80 | 2019-10-16 04:35:30 -0700 | [diff] [blame] | 94 | "src/f32-dwconv-spchw/3x3s2p1-scalar.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 95 | "src/f32-dwconv-spchw/5x5p2-scalar.c", |
Erich Elsen | 38709a6 | 2019-11-08 11:58:45 -0800 | [diff] [blame] | 96 | "src/f32-dwconv-spchw/5x5s2p2-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 97 | "src/f32-dwconv/gen/up1x4-scalar-acc2.c", |
| 98 | "src/f32-dwconv/gen/up1x4-scalar.c", |
| 99 | "src/f32-dwconv/gen/up1x9-scalar-acc2.c", |
| 100 | "src/f32-dwconv/gen/up1x9-scalar.c", |
| 101 | "src/f32-dwconv/gen/up1x25-scalar-acc2.c", |
| 102 | "src/f32-dwconv/gen/up1x25-scalar.c", |
| 103 | "src/f32-dwconv/gen/up2x4-scalar-acc2.c", |
| 104 | "src/f32-dwconv/gen/up2x4-scalar.c", |
| 105 | "src/f32-dwconv/gen/up2x9-scalar-acc2.c", |
| 106 | "src/f32-dwconv/gen/up2x9-scalar.c", |
| 107 | "src/f32-dwconv/gen/up2x25-scalar-acc2.c", |
| 108 | "src/f32-dwconv/gen/up2x25-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 109 | "src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c", |
| 110 | "src/f32-dwconv/gen/up1x4-minmax-scalar.c", |
| 111 | "src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c", |
| 112 | "src/f32-dwconv/gen/up1x9-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 113 | "src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c", |
| 114 | "src/f32-dwconv/gen/up1x25-minmax-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 115 | "src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c", |
| 116 | "src/f32-dwconv/gen/up2x4-minmax-scalar.c", |
| 117 | "src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c", |
| 118 | "src/f32-dwconv/gen/up2x9-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 119 | "src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c", |
| 120 | "src/f32-dwconv/gen/up2x25-minmax-scalar.c", |
Erich Elsen | 34dc2c0 | 2019-10-16 05:11:41 -0700 | [diff] [blame] | 121 | "src/f32-gavgpool-spchw/scalar-x1.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 122 | "src/f32-gavgpool/7p7x-minmax-scalar-c1.c", |
| 123 | "src/f32-gavgpool/7x-minmax-scalar-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 124 | "src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c", |
| 125 | "src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c", |
| 126 | "src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 127 | "src/f32-gemm/gen/1x4-scalar.c", |
| 128 | "src/f32-gemm/gen/2x4-scalar.c", |
| 129 | "src/f32-gemm/gen/4x2-scalar.c", |
| 130 | "src/f32-gemm/gen/4x4-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 131 | "src/f32-gemm/gen/1x4-minmax-scalar.c", |
| 132 | "src/f32-gemm/gen/2x4-minmax-scalar.c", |
| 133 | "src/f32-gemm/gen/4x2-minmax-scalar.c", |
| 134 | "src/f32-gemm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 135 | "src/f32-hswish/gen/scalar-x1.c", |
| 136 | "src/f32-hswish/gen/scalar-x2.c", |
| 137 | "src/f32-hswish/gen/scalar-x4.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 138 | "src/f32-ibilinear/gen/scalar-c1.c", |
| 139 | "src/f32-ibilinear/gen/scalar-c2.c", |
| 140 | "src/f32-ibilinear/gen/scalar-c4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 141 | "src/f32-igemm/gen/1x4-scalar.c", |
| 142 | "src/f32-igemm/gen/2x4-scalar.c", |
| 143 | "src/f32-igemm/gen/4x2-scalar.c", |
| 144 | "src/f32-igemm/gen/4x4-scalar.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 145 | "src/f32-igemm/gen/1x4-minmax-scalar.c", |
| 146 | "src/f32-igemm/gen/2x4-minmax-scalar.c", |
| 147 | "src/f32-igemm/gen/4x2-minmax-scalar.c", |
| 148 | "src/f32-igemm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 149 | "src/f32-maxpool/9p8x-minmax-scalar-c1.c", |
| 150 | "src/f32-pavgpool/9p8x-minmax-scalar-c1.c", |
| 151 | "src/f32-pavgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 152 | "src/f32-ppmm/gen/2x4-minmax-scalar.c", |
| 153 | "src/f32-ppmm/gen/3x3-minmax-scalar.c", |
| 154 | "src/f32-ppmm/gen/4x2-minmax-scalar.c", |
| 155 | "src/f32-ppmm/gen/4x4-minmax-scalar.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 156 | "src/f32-prelu/gen/scalar-2x1.c", |
| 157 | "src/f32-prelu/gen/scalar-2x4.c", |
Marat Dukhan | f46f675 | 2020-01-21 11:03:49 -0800 | [diff] [blame] | 158 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c", |
| 159 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c", |
| 160 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c", |
| 161 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c", |
| 162 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c", |
| 163 | "src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c", |
| 164 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c", |
| 165 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c", |
| 166 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c", |
| 167 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c", |
| 168 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c", |
| 169 | "src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 170 | "src/f32-rmax/scalar.c", |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 171 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c", |
| 172 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c", |
| 173 | "src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c", |
| 174 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c", |
| 175 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c", |
| 176 | "src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c", |
| 177 | "src/f32-sigmoid/gen/scalar-p5-div-x1.c", |
| 178 | "src/f32-sigmoid/gen/scalar-p5-div-x2.c", |
| 179 | "src/f32-sigmoid/gen/scalar-p5-div-x4.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 180 | "src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c", |
| 181 | "src/f32-spmm/gen/1x1-minmax-scalar.c", |
| 182 | "src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c", |
| 183 | "src/f32-spmm/gen/2x1-minmax-scalar.c", |
| 184 | "src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c", |
| 185 | "src/f32-spmm/gen/4x1-minmax-scalar.c", |
| 186 | "src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c", |
| 187 | "src/f32-spmm/gen/8x1-minmax-scalar.c", |
| 188 | "src/f32-spmm/gen/8x2-minmax-scalar.c", |
| 189 | "src/f32-spmm/gen/8x4-minmax-scalar.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 190 | "src/f32-vbinary/gen/vadd-minmax-scalar-x1.c", |
| 191 | "src/f32-vbinary/gen/vadd-minmax-scalar-x2.c", |
| 192 | "src/f32-vbinary/gen/vadd-minmax-scalar-x4.c", |
| 193 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c", |
| 194 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c", |
| 195 | "src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c", |
| 196 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c", |
| 197 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c", |
| 198 | "src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c", |
| 199 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c", |
| 200 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c", |
| 201 | "src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 202 | "src/f32-vbinary/gen/vmax-scalar-x1.c", |
| 203 | "src/f32-vbinary/gen/vmax-scalar-x2.c", |
| 204 | "src/f32-vbinary/gen/vmax-scalar-x4.c", |
| 205 | "src/f32-vbinary/gen/vmaxc-scalar-x1.c", |
| 206 | "src/f32-vbinary/gen/vmaxc-scalar-x2.c", |
| 207 | "src/f32-vbinary/gen/vmaxc-scalar-x4.c", |
| 208 | "src/f32-vbinary/gen/vmin-scalar-x1.c", |
| 209 | "src/f32-vbinary/gen/vmin-scalar-x2.c", |
| 210 | "src/f32-vbinary/gen/vmin-scalar-x4.c", |
| 211 | "src/f32-vbinary/gen/vminc-scalar-x1.c", |
| 212 | "src/f32-vbinary/gen/vminc-scalar-x2.c", |
| 213 | "src/f32-vbinary/gen/vminc-scalar-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 214 | "src/f32-vbinary/gen/vmul-minmax-scalar-x1.c", |
| 215 | "src/f32-vbinary/gen/vmul-minmax-scalar-x2.c", |
| 216 | "src/f32-vbinary/gen/vmul-minmax-scalar-x4.c", |
| 217 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c", |
| 218 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c", |
| 219 | "src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c", |
| 220 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c", |
| 221 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c", |
| 222 | "src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c", |
| 223 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c", |
| 224 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c", |
| 225 | "src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c", |
| 226 | "src/f32-vbinary/gen/vsub-minmax-scalar-x1.c", |
| 227 | "src/f32-vbinary/gen/vsub-minmax-scalar-x2.c", |
| 228 | "src/f32-vbinary/gen/vsub-minmax-scalar-x4.c", |
| 229 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c", |
| 230 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c", |
| 231 | "src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 232 | "src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c", |
| 233 | "src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c", |
| 234 | "src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c", |
Marat Dukhan | 5739f70 | 2019-12-22 19:45:09 -0800 | [diff] [blame] | 235 | "src/math/expminus-scalar-lut2048-p1.c", |
| 236 | "src/math/expminus-scalar-lut64-p2.c", |
| 237 | "src/math/expminus-scalar-p5.c", |
| 238 | "src/math/sigmoid-scalar-lut2048-p1-div.c", |
| 239 | "src/math/sigmoid-scalar-lut64-p2-div.c", |
| 240 | "src/math/sigmoid-scalar-p5-div.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 241 | "src/q8-avgpool/9p8x-minmax-scalar-c1.c", |
| 242 | "src/q8-avgpool/9x-minmax-scalar-c1.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 243 | "src/q8-dwconv/up1x9-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 244 | "src/q8-gavgpool/7p7x-minmax-scalar-c1.c", |
| 245 | "src/q8-gavgpool/7x-minmax-scalar-c1.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 246 | "src/q8-gemm/2x2-minmax-scalar.c", |
| 247 | "src/q8-igemm/2x2-minmax-scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 248 | "src/q8-vadd/minmax-scalar.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 249 | "src/u8-clamp/scalar-x4.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 250 | "src/u8-lut32norm/scalar.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 251 | "src/u8-maxpool/9p8x-minmax-scalar-c1.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 252 | "src/u8-rmax/scalar.c", |
| 253 | "src/x32-packx/x2-scalar.c", |
| 254 | "src/x32-packx/x3-scalar.c", |
| 255 | "src/x32-packx/x4-scalar.c", |
| 256 | "src/x32-pad/x2-scalar.c", |
| 257 | "src/x32-unpool/scalar.c", |
| 258 | "src/x32-zip/x2-scalar.c", |
| 259 | "src/x32-zip/x3-scalar.c", |
| 260 | "src/x32-zip/x4-scalar.c", |
| 261 | "src/x32-zip/xm-scalar.c", |
| 262 | "src/x8-lut/scalar.c", |
| 263 | "src/x8-zip/x2-scalar.c", |
| 264 | "src/x8-zip/x3-scalar.c", |
| 265 | "src/x8-zip/x4-scalar.c", |
| 266 | "src/x8-zip/xm-scalar.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 267 | "src/requantization/precise-scalar.c", |
| 268 | "src/requantization/fp32-scalar.c", |
| 269 | "src/requantization/q31-scalar.c", |
| 270 | "src/requantization/gemmlowp-scalar.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 271 | ] |
| 272 | |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 273 | WASM_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 274 | "src/f32-avgpool/9p8x-minmax-wasm-c1.c", |
| 275 | "src/f32-avgpool/9x-minmax-wasm-c1.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 276 | "src/f32-clamp/gen/wasm-x1.c", |
| 277 | "src/f32-clamp/gen/wasm-x2.c", |
| 278 | "src/f32-clamp/gen/wasm-x4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 279 | "src/f32-dwconv/gen/up1x4-wasm-acc2.c", |
| 280 | "src/f32-dwconv/gen/up1x4-wasm.c", |
| 281 | "src/f32-dwconv/gen/up1x9-wasm-acc2.c", |
| 282 | "src/f32-dwconv/gen/up1x9-wasm.c", |
| 283 | "src/f32-dwconv/gen/up1x25-wasm-acc2.c", |
| 284 | "src/f32-dwconv/gen/up1x25-wasm.c", |
| 285 | "src/f32-dwconv/gen/up2x4-wasm-acc2.c", |
| 286 | "src/f32-dwconv/gen/up2x4-wasm.c", |
| 287 | "src/f32-dwconv/gen/up2x9-wasm-acc2.c", |
| 288 | "src/f32-dwconv/gen/up2x9-wasm.c", |
| 289 | "src/f32-dwconv/gen/up2x25-wasm-acc2.c", |
| 290 | "src/f32-dwconv/gen/up2x25-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 291 | "src/f32-dwconv/gen/up1x4-minmax-wasm-acc2.c", |
| 292 | "src/f32-dwconv/gen/up1x4-minmax-wasm.c", |
| 293 | "src/f32-dwconv/gen/up1x9-minmax-wasm-acc2.c", |
| 294 | "src/f32-dwconv/gen/up1x9-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 295 | "src/f32-dwconv/gen/up1x25-minmax-wasm-acc2.c", |
| 296 | "src/f32-dwconv/gen/up1x25-minmax-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 297 | "src/f32-dwconv/gen/up2x4-minmax-wasm-acc2.c", |
| 298 | "src/f32-dwconv/gen/up2x4-minmax-wasm.c", |
| 299 | "src/f32-dwconv/gen/up2x9-minmax-wasm-acc2.c", |
| 300 | "src/f32-dwconv/gen/up2x9-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 301 | "src/f32-dwconv/gen/up2x25-minmax-wasm-acc2.c", |
| 302 | "src/f32-dwconv/gen/up2x25-minmax-wasm.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 303 | "src/f32-gavgpool/7p7x-minmax-wasm-c1.c", |
| 304 | "src/f32-gavgpool/7x-minmax-wasm-c1.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 305 | "src/f32-gemm/gen-inc/1x4inc-minmax-wasm.c", |
| 306 | "src/f32-gemm/gen-inc/2x4inc-minmax-wasm.c", |
| 307 | "src/f32-gemm/gen-inc/4x4inc-minmax-wasm.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 308 | "src/f32-gemm/gen/1x4-wasm.c", |
| 309 | "src/f32-gemm/gen/2x4-wasm.c", |
| 310 | "src/f32-gemm/gen/4x2-wasm.c", |
| 311 | "src/f32-gemm/gen/4x4-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 312 | "src/f32-gemm/gen/1x4-minmax-wasm.c", |
| 313 | "src/f32-gemm/gen/2x4-minmax-wasm.c", |
| 314 | "src/f32-gemm/gen/4x2-minmax-wasm.c", |
| 315 | "src/f32-gemm/gen/4x4-minmax-wasm.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 316 | "src/f32-hswish/gen/wasm-x1.c", |
| 317 | "src/f32-hswish/gen/wasm-x2.c", |
| 318 | "src/f32-hswish/gen/wasm-x4.c", |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 319 | "src/f32-igemm/gen/1x4-wasm.c", |
| 320 | "src/f32-igemm/gen/2x4-wasm.c", |
| 321 | "src/f32-igemm/gen/4x2-wasm.c", |
| 322 | "src/f32-igemm/gen/4x4-wasm.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 323 | "src/f32-igemm/gen/1x4-minmax-wasm.c", |
| 324 | "src/f32-igemm/gen/2x4-minmax-wasm.c", |
| 325 | "src/f32-igemm/gen/4x2-minmax-wasm.c", |
| 326 | "src/f32-igemm/gen/4x4-minmax-wasm.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 327 | "src/f32-maxpool/9p8x-minmax-wasm-c1.c", |
| 328 | "src/f32-pavgpool/9p8x-minmax-wasm-c1.c", |
| 329 | "src/f32-pavgpool/9x-minmax-wasm-c1.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 330 | "src/f32-vbinary/gen/vadd-minmax-wasm-x1.c", |
| 331 | "src/f32-vbinary/gen/vadd-minmax-wasm-x2.c", |
| 332 | "src/f32-vbinary/gen/vadd-minmax-wasm-x4.c", |
| 333 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x1.c", |
| 334 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x2.c", |
| 335 | "src/f32-vbinary/gen/vaddc-minmax-wasm-x4.c", |
| 336 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x1.c", |
| 337 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x2.c", |
| 338 | "src/f32-vbinary/gen/vdiv-minmax-wasm-x4.c", |
| 339 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x1.c", |
| 340 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x2.c", |
| 341 | "src/f32-vbinary/gen/vdivc-minmax-wasm-x4.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 342 | "src/f32-vbinary/gen/vmax-wasm-x1.c", |
| 343 | "src/f32-vbinary/gen/vmax-wasm-x2.c", |
| 344 | "src/f32-vbinary/gen/vmax-wasm-x4.c", |
| 345 | "src/f32-vbinary/gen/vmaxc-wasm-x1.c", |
| 346 | "src/f32-vbinary/gen/vmaxc-wasm-x2.c", |
| 347 | "src/f32-vbinary/gen/vmaxc-wasm-x4.c", |
| 348 | "src/f32-vbinary/gen/vmin-wasm-x1.c", |
| 349 | "src/f32-vbinary/gen/vmin-wasm-x2.c", |
| 350 | "src/f32-vbinary/gen/vmin-wasm-x4.c", |
| 351 | "src/f32-vbinary/gen/vminc-wasm-x1.c", |
| 352 | "src/f32-vbinary/gen/vminc-wasm-x2.c", |
| 353 | "src/f32-vbinary/gen/vminc-wasm-x4.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 354 | "src/f32-vbinary/gen/vmul-minmax-wasm-x1.c", |
| 355 | "src/f32-vbinary/gen/vmul-minmax-wasm-x2.c", |
| 356 | "src/f32-vbinary/gen/vmul-minmax-wasm-x4.c", |
| 357 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x1.c", |
| 358 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x2.c", |
| 359 | "src/f32-vbinary/gen/vmulc-minmax-wasm-x4.c", |
| 360 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x1.c", |
| 361 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x2.c", |
| 362 | "src/f32-vbinary/gen/vrdivc-minmax-wasm-x4.c", |
| 363 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x1.c", |
| 364 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x2.c", |
| 365 | "src/f32-vbinary/gen/vrsubc-minmax-wasm-x4.c", |
| 366 | "src/f32-vbinary/gen/vsub-minmax-wasm-x1.c", |
| 367 | "src/f32-vbinary/gen/vsub-minmax-wasm-x2.c", |
| 368 | "src/f32-vbinary/gen/vsub-minmax-wasm-x4.c", |
| 369 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x1.c", |
| 370 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x2.c", |
| 371 | "src/f32-vbinary/gen/vsubc-minmax-wasm-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 372 | "src/f32-vmulcaddc/gen/c1-minmax-wasm-2x.c", |
| 373 | "src/f32-vmulcaddc/gen/c2-minmax-wasm-2x.c", |
| 374 | "src/f32-vmulcaddc/gen/c4-minmax-wasm-2x.c", |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 375 | ] |
| 376 | |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 377 | PSIMD_FASTMATH_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 378 | "src/f32-argmaxpool/4x-psimd-c4.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 379 | "src/f32-argmaxpool/9p8x-psimd-c4.c", |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 380 | "src/f32-argmaxpool/9x-psimd-c4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 381 | "src/f32-avgpool/9p8x-minmax-psimd-c4.c", |
| 382 | "src/f32-avgpool/9x-minmax-psimd-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 383 | "src/f32-clamp/gen/psimd-x4.c", |
| 384 | "src/f32-clamp/gen/psimd-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 385 | "src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c", |
| 386 | "src/f32-dwconv/gen/up4x25-minmax-psimd.c", |
| 387 | "src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c", |
| 388 | "src/f32-dwconv/gen/up4x4-minmax-psimd.c", |
| 389 | "src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c", |
| 390 | "src/f32-dwconv/gen/up4x9-minmax-psimd.c", |
| 391 | "src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c", |
| 392 | "src/f32-dwconv/gen/up8x25-minmax-psimd.c", |
| 393 | "src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c", |
| 394 | "src/f32-dwconv/gen/up8x4-minmax-psimd.c", |
| 395 | "src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c", |
| 396 | "src/f32-dwconv/gen/up8x9-minmax-psimd.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 397 | "src/f32-gavgpool/7p7x-minmax-psimd-c4.c", |
| 398 | "src/f32-gavgpool/7x-minmax-psimd-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 399 | "src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c", |
| 400 | "src/f32-gemm/gen/1x8-minmax-psimd-splat.c", |
| 401 | "src/f32-gemm/gen/1x8s4-minmax-psimd.c", |
| 402 | "src/f32-gemm/gen/4x2c4-minmax-psimd.c", |
| 403 | "src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c", |
| 404 | "src/f32-gemm/gen/4x8-minmax-psimd-splat.c", |
| 405 | "src/f32-gemm/gen/4x8s4-minmax-psimd.c", |
| 406 | "src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c", |
| 407 | "src/f32-gemm/gen/6x8-minmax-psimd-splat.c", |
| 408 | "src/f32-gemm/gen/6x8s4-minmax-psimd.c", |
| 409 | "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c", |
| 410 | "src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c", |
| 411 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c", |
| 412 | "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c", |
| 413 | "src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c", |
| 414 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c", |
| 415 | "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c", |
| 416 | "src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c", |
| 417 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 418 | "src/f32-hswish/gen/psimd-x4.c", |
| 419 | "src/f32-hswish/gen/psimd-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 420 | "src/f32-ibilinear/gen/psimd-c4.c", |
| 421 | "src/f32-ibilinear/gen/psimd-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 422 | "src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c", |
| 423 | "src/f32-igemm/gen/1x8-minmax-psimd-splat.c", |
| 424 | "src/f32-igemm/gen/1x8s4-minmax-psimd.c", |
| 425 | "src/f32-igemm/gen/4x2c4-minmax-psimd.c", |
| 426 | "src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c", |
| 427 | "src/f32-igemm/gen/4x8-minmax-psimd-splat.c", |
| 428 | "src/f32-igemm/gen/4x8s4-minmax-psimd.c", |
| 429 | "src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c", |
| 430 | "src/f32-igemm/gen/6x8-minmax-psimd-splat.c", |
| 431 | "src/f32-igemm/gen/6x8s4-minmax-psimd.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 432 | "src/f32-maxpool/9p8x-minmax-psimd-c4.c", |
| 433 | "src/f32-pavgpool/9p8x-minmax-psimd-c4.c", |
| 434 | "src/f32-pavgpool/9x-minmax-psimd-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 435 | "src/f32-ppmm/gen/4x8-minmax-psimd.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 436 | "src/f32-prelu/gen/psimd-2x4.c", |
| 437 | "src/f32-prelu/gen/psimd-2x8.c", |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 438 | "src/f32-rmax/psimd.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 439 | "src/f32-vbinary/gen/vadd-minmax-psimd-x4.c", |
| 440 | "src/f32-vbinary/gen/vadd-minmax-psimd-x8.c", |
| 441 | "src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c", |
| 442 | "src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c", |
| 443 | "src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c", |
| 444 | "src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c", |
| 445 | "src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c", |
| 446 | "src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 447 | "src/f32-vbinary/gen/vmax-psimd-x4.c", |
| 448 | "src/f32-vbinary/gen/vmax-psimd-x8.c", |
| 449 | "src/f32-vbinary/gen/vmaxc-psimd-x4.c", |
| 450 | "src/f32-vbinary/gen/vmaxc-psimd-x8.c", |
| 451 | "src/f32-vbinary/gen/vmin-psimd-x4.c", |
| 452 | "src/f32-vbinary/gen/vmin-psimd-x8.c", |
| 453 | "src/f32-vbinary/gen/vminc-psimd-x4.c", |
| 454 | "src/f32-vbinary/gen/vminc-psimd-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 455 | "src/f32-vbinary/gen/vmul-minmax-psimd-x4.c", |
| 456 | "src/f32-vbinary/gen/vmul-minmax-psimd-x8.c", |
| 457 | "src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c", |
| 458 | "src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c", |
| 459 | "src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c", |
| 460 | "src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c", |
| 461 | "src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c", |
| 462 | "src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c", |
| 463 | "src/f32-vbinary/gen/vsub-minmax-psimd-x4.c", |
| 464 | "src/f32-vbinary/gen/vsub-minmax-psimd-x8.c", |
| 465 | "src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c", |
| 466 | "src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 467 | "src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c", |
| 468 | "src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 469 | "src/x32-packx/x4-psimd.c", |
| 470 | "src/x32-pad/x2-psimd.c", |
| 471 | "src/x32-unpool/psimd.c", |
| 472 | "src/x32-zip/x2-psimd.c", |
| 473 | "src/x32-zip/x3-psimd.c", |
| 474 | "src/x32-zip/x4-psimd.c", |
| 475 | "src/x32-zip/xm-psimd.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 476 | "src/requantization/precise-psimd.c", |
| 477 | "src/requantization/fp32-psimd.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 478 | ] |
| 479 | |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 480 | PSIMD_ACCMATH_UKERNELS = [ |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 481 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c", |
| 482 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c", |
| 483 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c", |
| 484 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c", |
| 485 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c", |
| 486 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c", |
| 487 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c", |
| 488 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c", |
| 489 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c", |
| 490 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c", |
| 491 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c", |
| 492 | "src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 493 | "src/f32-sigmoid/gen/psimd-p5-div-x4.c", |
| 494 | "src/f32-sigmoid/gen/psimd-p5-div-x8.c", |
| 495 | "src/f32-sigmoid/gen/psimd-p5-div-x12.c", |
| 496 | "src/f32-sigmoid/gen/psimd-p5-div-x16.c", |
| 497 | "src/f32-sigmoid/gen/psimd-p5-div-x20.c", |
| 498 | "src/f32-sigmoid/gen/psimd-p5-div-x24.c", |
| 499 | "src/math/sigmoid-psimd-p5-div.c", |
| 500 | ] |
| 501 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 502 | # ISA-specific micro-kernels |
| 503 | NEON_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 504 | "src/f32-avgpool/9p8x-minmax-neon-c4.c", |
| 505 | "src/f32-avgpool/9x-minmax-neon-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 506 | "src/f32-clamp/gen/neon-x4.c", |
| 507 | "src/f32-clamp/gen/neon-x8.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame^] | 508 | "src/f32-dwconv/gen/up4x4-minmax-neon.c", |
| 509 | "src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c", |
| 510 | "src/f32-dwconv/gen/up8x4-minmax-neon.c", |
| 511 | "src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 512 | "src/f32-dwconv/gen/up4x9-minmax-neon.c", |
| 513 | "src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c", |
| 514 | "src/f32-dwconv/gen/up8x9-minmax-neon.c", |
| 515 | "src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame^] | 516 | "src/f32-dwconv/gen/up4x25-minmax-neon.c", |
| 517 | "src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c", |
| 518 | "src/f32-dwconv/gen/up8x25-minmax-neon.c", |
| 519 | "src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 520 | "src/f32-gavgpool-spchw/neon-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 521 | "src/f32-gavgpool/7p7x-minmax-neon-c4.c", |
| 522 | "src/f32-gavgpool/7x-minmax-neon-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 523 | "src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c", |
| 524 | "src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c", |
| 525 | "src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c", |
| 526 | "src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c", |
| 527 | "src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c", |
| 528 | "src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c", |
| 529 | "src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c", |
| 530 | "src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c", |
| 531 | "src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c", |
| 532 | "src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c", |
| 533 | "src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c", |
| 534 | "src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c", |
| 535 | "src/f32-gemm/gen/1x8s4-minmax-neon.c", |
| 536 | "src/f32-gemm/gen/4x8s4-minmax-neon.c", |
| 537 | "src/f32-gemm/gen/6x8s4-minmax-neon.c", |
| 538 | "src/f32-gemm/gen/8x8s4-minmax-neon.c", |
| 539 | "src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c", |
| 540 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c", |
| 541 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c", |
| 542 | "src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c", |
| 543 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c", |
| 544 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c", |
| 545 | "src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c", |
| 546 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c", |
| 547 | "src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c", |
| 548 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c", |
| 549 | "src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c", |
| 550 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c", |
| 551 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c", |
| 552 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c", |
| 553 | "src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 554 | "src/f32-hswish/gen/neon-x4.c", |
| 555 | "src/f32-hswish/gen/neon-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 556 | "src/f32-ibilinear/gen/neon-c4.c", |
| 557 | "src/f32-ibilinear/gen/neon-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 558 | "src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c", |
| 559 | "src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c", |
| 560 | "src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c", |
| 561 | "src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c", |
| 562 | "src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c", |
| 563 | "src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c", |
| 564 | "src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c", |
| 565 | "src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c", |
| 566 | "src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c", |
| 567 | "src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c", |
| 568 | "src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c", |
| 569 | "src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c", |
| 570 | "src/f32-igemm/gen/1x8s4-minmax-neon.c", |
| 571 | "src/f32-igemm/gen/4x8s4-minmax-neon.c", |
| 572 | "src/f32-igemm/gen/6x8s4-minmax-neon.c", |
| 573 | "src/f32-igemm/gen/8x8s4-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 574 | "src/f32-maxpool/9p8x-minmax-neon-c4.c", |
| 575 | "src/f32-pavgpool/9p8x-minmax-neon-c4.c", |
| 576 | "src/f32-pavgpool/9x-minmax-neon-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 577 | "src/f32-ppmm/gen/4x8-minmax-neon.c", |
| 578 | "src/f32-ppmm/gen/8x8-minmax-neon.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 579 | "src/f32-prelu/gen/neon-2x4.c", |
| 580 | "src/f32-prelu/gen/neon-2x8.c", |
Marat Dukhan | 8137e4c | 2020-01-25 12:56:58 -0800 | [diff] [blame] | 581 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c", |
| 582 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c", |
| 583 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c", |
| 584 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c", |
| 585 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c", |
| 586 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c", |
| 587 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c", |
| 588 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c", |
| 589 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c", |
| 590 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c", |
| 591 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c", |
| 592 | "src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c", |
| 593 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c", |
| 594 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c", |
| 595 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c", |
| 596 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c", |
| 597 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c", |
| 598 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c", |
| 599 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c", |
| 600 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c", |
| 601 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c", |
| 602 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c", |
| 603 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c", |
| 604 | "src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 605 | "src/f32-rmax/neon.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 606 | "src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 607 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c", |
| 608 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c", |
| 609 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c", |
| 610 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c", |
| 611 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c", |
| 612 | "src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c", |
| 613 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c", |
| 614 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c", |
| 615 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c", |
| 616 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c", |
| 617 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c", |
| 618 | "src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c", |
| 619 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c", |
| 620 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c", |
| 621 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c", |
| 622 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c", |
| 623 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c", |
| 624 | "src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 625 | "src/f32-vbinary/gen/vadd-minmax-neon-x4.c", |
| 626 | "src/f32-vbinary/gen/vadd-minmax-neon-x8.c", |
| 627 | "src/f32-vbinary/gen/vaddc-minmax-neon-x4.c", |
| 628 | "src/f32-vbinary/gen/vaddc-minmax-neon-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 629 | "src/f32-vbinary/gen/vmax-neon-x4.c", |
| 630 | "src/f32-vbinary/gen/vmax-neon-x8.c", |
| 631 | "src/f32-vbinary/gen/vmaxc-neon-x4.c", |
| 632 | "src/f32-vbinary/gen/vmaxc-neon-x8.c", |
| 633 | "src/f32-vbinary/gen/vmin-neon-x4.c", |
| 634 | "src/f32-vbinary/gen/vmin-neon-x8.c", |
| 635 | "src/f32-vbinary/gen/vminc-neon-x4.c", |
| 636 | "src/f32-vbinary/gen/vminc-neon-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 637 | "src/f32-vbinary/gen/vmul-minmax-neon-x4.c", |
| 638 | "src/f32-vbinary/gen/vmul-minmax-neon-x8.c", |
| 639 | "src/f32-vbinary/gen/vmulc-minmax-neon-x4.c", |
| 640 | "src/f32-vbinary/gen/vmulc-minmax-neon-x8.c", |
| 641 | "src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c", |
| 642 | "src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c", |
| 643 | "src/f32-vbinary/gen/vsub-minmax-neon-x4.c", |
| 644 | "src/f32-vbinary/gen/vsub-minmax-neon-x8.c", |
| 645 | "src/f32-vbinary/gen/vsubc-minmax-neon-x4.c", |
| 646 | "src/f32-vbinary/gen/vsubc-minmax-neon-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 647 | "src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c", |
| 648 | "src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c", |
| 649 | "src/q8-avgpool/9p8x-minmax-neon-c8.c", |
| 650 | "src/q8-avgpool/9x-minmax-neon-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 651 | "src/q8-dwconv/up8x9-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 652 | "src/q8-gavgpool/7p7x-minmax-neon-c8.c", |
| 653 | "src/q8-gavgpool/7x-minmax-neon-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 654 | "src/q8-gemm/4x8-minmax-neon.c", |
| 655 | "src/q8-gemm/8x8-minmax-neon.c", |
| 656 | "src/q8-igemm/4x8-minmax-neon.c", |
| 657 | "src/q8-igemm/8x8-minmax-neon.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 658 | "src/q8-vadd/minmax-neon.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 659 | "src/u8-clamp/neon-x64.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 660 | "src/u8-maxpool/9p8x-minmax-neon-c16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 661 | "src/u8-rmax/neon.c", |
| 662 | "src/x32-packx/x4-neon-st4.c", |
| 663 | "src/x32-pad/x2-neon.c", |
Marat Dukhan | 57dccd8 | 2020-04-14 00:53:10 -0700 | [diff] [blame] | 664 | "src/x32-unpool/neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 665 | "src/x32-zip/x2-neon.c", |
| 666 | "src/x32-zip/x3-neon.c", |
| 667 | "src/x32-zip/x4-neon.c", |
| 668 | "src/x32-zip/xm-neon.c", |
| 669 | "src/x8-zip/x2-neon.c", |
| 670 | "src/x8-zip/x3-neon.c", |
| 671 | "src/x8-zip/x4-neon.c", |
| 672 | "src/x8-zip/xm-neon.c", |
Marat Dukhan | 68b3b45 | 2020-01-02 10:11:15 -0800 | [diff] [blame] | 673 | "src/math/sigmoid-neon-frac-p9-p10-nr1recps.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 674 | "src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c", |
| 675 | "src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c", |
| 676 | "src/math/sigmoid-neon-rr1-p5-nr2recps.c", |
| 677 | "src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c", |
| 678 | "src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c", |
| 679 | "src/math/sigmoid-neon-rr2-p5-nr2recps.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 680 | "src/requantization/precise-neon.c", |
| 681 | "src/requantization/fp32-neon.c", |
| 682 | "src/requantization/q31-neon.c", |
| 683 | "src/requantization/gemmlowp-neon.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 684 | ] |
| 685 | |
| 686 | NEONFMA_UKERNELS = [ |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 687 | "src/f32-ibilinear/gen/neonfma-c4.c", |
| 688 | "src/f32-ibilinear/gen/neonfma-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 689 | "src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c", |
| 690 | "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c", |
| 691 | "src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c", |
| 692 | "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c", |
| 693 | "src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c", |
| 694 | "src/f32-igemm/gen/1x8s4-minmax-neonfma.c", |
| 695 | "src/f32-igemm/gen/4x8s4-minmax-neonfma.c", |
| 696 | "src/f32-igemm/gen/6x8s4-minmax-neonfma.c", |
| 697 | "src/f32-igemm/gen/8x8s4-minmax-neonfma.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame^] | 698 | "src/f32-dwconv/gen/up4x4-minmax-neonfma.c", |
| 699 | "src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c", |
| 700 | "src/f32-dwconv/gen/up8x4-minmax-neonfma.c", |
| 701 | "src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 702 | "src/f32-dwconv/gen/up4x9-minmax-neonfma.c", |
| 703 | "src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c", |
| 704 | "src/f32-dwconv/gen/up8x9-minmax-neonfma.c", |
| 705 | "src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c", |
Marat Dukhan | f5425ea | 2020-04-24 01:46:00 -0700 | [diff] [blame^] | 706 | "src/f32-dwconv/gen/up4x25-minmax-neonfma.c", |
| 707 | "src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c", |
| 708 | "src/f32-dwconv/gen/up8x25-minmax-neonfma.c", |
| 709 | "src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 710 | "src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c", |
| 711 | "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c", |
| 712 | "src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c", |
| 713 | "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c", |
| 714 | "src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c", |
| 715 | "src/f32-gemm/gen/1x8s4-minmax-neonfma.c", |
| 716 | "src/f32-gemm/gen/4x8s4-minmax-neonfma.c", |
| 717 | "src/f32-gemm/gen/6x8s4-minmax-neonfma.c", |
| 718 | "src/f32-gemm/gen/8x8s4-minmax-neonfma.c", |
| 719 | "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c", |
| 720 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c", |
| 721 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c", |
| 722 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c", |
| 723 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c", |
| 724 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c", |
| 725 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c", |
| 726 | "src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c", |
| 727 | "src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 728 | "src/f32-hswish/gen/neonfma-x4.c", |
| 729 | "src/f32-hswish/gen/neonfma-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 730 | "src/f32-ppmm/gen/4x8-minmax-neonfma.c", |
| 731 | "src/f32-ppmm/gen/8x8-minmax-neonfma.c", |
Marat Dukhan | 8137e4c | 2020-01-25 12:56:58 -0800 | [diff] [blame] | 732 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c", |
| 733 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c", |
| 734 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c", |
| 735 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c", |
| 736 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c", |
| 737 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c", |
| 738 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c", |
| 739 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c", |
| 740 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c", |
| 741 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c", |
| 742 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c", |
| 743 | "src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c", |
| 744 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c", |
| 745 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c", |
| 746 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c", |
| 747 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c", |
| 748 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c", |
| 749 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c", |
| 750 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c", |
| 751 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c", |
| 752 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c", |
| 753 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c", |
| 754 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c", |
| 755 | "src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 756 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c", |
| 757 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c", |
| 758 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c", |
| 759 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c", |
| 760 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c", |
| 761 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c", |
| 762 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c", |
| 763 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c", |
| 764 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c", |
| 765 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c", |
| 766 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c", |
| 767 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c", |
| 768 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c", |
| 769 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c", |
| 770 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c", |
| 771 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c", |
| 772 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c", |
| 773 | "src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c", |
| 774 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c", |
| 775 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c", |
| 776 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c", |
| 777 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c", |
| 778 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c", |
| 779 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c", |
| 780 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c", |
| 781 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c", |
| 782 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c", |
| 783 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c", |
| 784 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c", |
| 785 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c", |
| 786 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c", |
| 787 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c", |
| 788 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c", |
| 789 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c", |
| 790 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c", |
| 791 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c", |
| 792 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c", |
| 793 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c", |
| 794 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c", |
| 795 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c", |
| 796 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c", |
| 797 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c", |
| 798 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c", |
| 799 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c", |
| 800 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c", |
| 801 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c", |
| 802 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c", |
| 803 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c", |
| 804 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c", |
| 805 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c", |
| 806 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c", |
| 807 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c", |
| 808 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c", |
| 809 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 810 | "src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c", |
| 811 | "src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c", |
Marat Dukhan | 797a8fe | 2019-11-14 20:21:57 -0800 | [diff] [blame] | 812 | "src/math/exp-neonfma-lut64-p2.c", |
| 813 | "src/math/exp-neonfma-p5.c", |
Marat Dukhan | 189ae80 | 2019-11-26 11:28:44 -0800 | [diff] [blame] | 814 | "src/math/expminus-neonfma-lut2048-p1.c", |
| 815 | "src/math/expminus-neonfma-lut64-p2.c", |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 816 | "src/math/expminus-neonfma-p5.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 817 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c", |
| 818 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c", |
| 819 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c", |
| 820 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c", |
| 821 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c", |
| 822 | "src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c", |
| 823 | "src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c", |
| 824 | "src/math/sigmoid-neonfma-rr1-p5-nr2fma.c", |
| 825 | "src/math/sigmoid-neonfma-rr1-p5-nr2recps.c", |
| 826 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c", |
| 827 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c", |
| 828 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c", |
| 829 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c", |
| 830 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c", |
| 831 | "src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c", |
| 832 | "src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c", |
| 833 | "src/math/sigmoid-neonfma-rr2-p5-nr2fma.c", |
| 834 | "src/math/sigmoid-neonfma-rr2-p5-nr2recps.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 835 | ] |
| 836 | |
| 837 | AARCH64_NEONFMA_UKERNELS = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 838 | "src/f32-vbinary/gen/vdiv-minmax-neon-x4.c", |
| 839 | "src/f32-vbinary/gen/vdiv-minmax-neon-x8.c", |
| 840 | "src/f32-vbinary/gen/vdivc-minmax-neon-x4.c", |
| 841 | "src/f32-vbinary/gen/vdivc-minmax-neon-x8.c", |
| 842 | "src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c", |
| 843 | "src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 844 | "src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c", |
| 845 | "src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c", |
| 846 | "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c", |
| 847 | "src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c", |
| 848 | "src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c", |
| 849 | "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c", |
| 850 | "src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c", |
| 851 | "src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c", |
| 852 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c", |
| 853 | "src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c", |
| 854 | "src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c", |
| 855 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c", |
| 856 | "src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c", |
| 857 | "src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c", |
| 858 | "src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c", |
| 859 | "src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c", |
| 860 | "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c", |
| 861 | "src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c", |
| 862 | "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c", |
| 863 | "src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 864 | "src/f32-conv-hwc/3x3s2p1c3x4-neonfma-2x2.c", |
| 865 | "src/f32-conv-hwc/3x3s2p1c3x8-neonfma-2x2.c", |
| 866 | "src/f32-conv-hwc2spchw/3x3s2p1c3x4-neonfma-2x2.c", |
| 867 | "src/f32-dwconv-spchw/3x3p1-neonfma.c", |
| 868 | "src/f32-dwconv-spchw/5x5p2-neonfma.c", |
| 869 | "src/f32-dwconv-spchw/3x3s2p1-neonfma.c", |
| 870 | "src/f32-dwconv-spchw/5x5s2p2-neonfma.c", |
Marat Dukhan | 4a24a58 | 2020-01-06 13:30:00 -0800 | [diff] [blame] | 871 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c", |
| 872 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c", |
| 873 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c", |
| 874 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c", |
| 875 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c", |
| 876 | "src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c", |
| 877 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c", |
| 878 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c", |
| 879 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c", |
| 880 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c", |
| 881 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c", |
| 882 | "src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c", |
| 883 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c", |
| 884 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c", |
| 885 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c", |
| 886 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c", |
| 887 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c", |
| 888 | "src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 889 | "src/f32-spmm/gen/12x1-minmax-neonfma.c", |
| 890 | "src/f32-spmm/gen/12x2-minmax-neonfma.c", |
| 891 | "src/f32-spmm/gen/12x4-minmax-neonfma.c", |
| 892 | "src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c", |
| 893 | "src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c", |
| 894 | "src/f32-spmm/gen/16x1-minmax-neonfma.c", |
| 895 | "src/f32-spmm/gen/16x2-minmax-neonfma.c", |
| 896 | "src/f32-spmm/gen/16x4-minmax-neonfma.c", |
| 897 | "src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c", |
| 898 | "src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c", |
| 899 | "src/f32-spmm/gen/4x1-minmax-neonfma.c", |
| 900 | "src/f32-spmm/gen/4x2-minmax-neonfma.c", |
| 901 | "src/f32-spmm/gen/4x4-minmax-neonfma.c", |
| 902 | "src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c", |
| 903 | "src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c", |
| 904 | "src/f32-spmm/gen/8x1-minmax-neonfma.c", |
| 905 | "src/f32-spmm/gen/8x2-minmax-neonfma.c", |
| 906 | "src/f32-spmm/gen/8x4-minmax-neonfma.c", |
Marat Dukhan | 77221d3 | 2020-01-06 10:04:39 -0800 | [diff] [blame] | 907 | "src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c", |
| 908 | "src/math/sigmoid-neonfma-rr1-lut64-p2-div.c", |
| 909 | "src/math/sigmoid-neonfma-rr1-p5-div.c", |
| 910 | "src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c", |
| 911 | "src/math/sigmoid-neonfma-rr2-lut64-p2-div.c", |
| 912 | "src/math/sigmoid-neonfma-rr2-p5-div.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 913 | ] |
| 914 | |
| 915 | AARCH64_NEONFP16ARITH_UKERNELS = [ |
Frank Barchard | 83ea939 | 2020-04-20 20:15:14 -0700 | [diff] [blame] | 916 | "src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c", |
| 917 | "src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c", |
| 918 | "src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c", |
| 919 | "src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c", |
| 920 | "src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c", |
| 921 | "src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c", |
| 922 | "src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c", |
| 923 | "src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 924 | "src/f16-spmm/gen/8x1-minmax-neonfp16arith.c", |
| 925 | "src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c", |
| 926 | "src/f16-spmm/gen/16x1-minmax-neonfp16arith.c", |
| 927 | "src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c", |
| 928 | "src/f16-spmm/gen/24x1-minmax-neonfp16arith.c", |
| 929 | "src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c", |
| 930 | "src/f16-spmm/gen/32x1-minmax-neonfp16arith.c", |
| 931 | "src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 932 | ] |
| 933 | |
| 934 | SSE_UKERNELS = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 935 | "src/f32-avgpool/9p8x-minmax-sse-c4.c", |
| 936 | "src/f32-avgpool/9x-minmax-sse-c4.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 937 | "src/f32-clamp/gen/sse-x4.c", |
| 938 | "src/f32-clamp/gen/sse-x8.c", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 939 | "src/f32-dwconv-spchw/3x3p1-sse.c", |
| 940 | "src/f32-dwconv-spchw/3x3s2p1-sse.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 941 | "src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c", |
| 942 | "src/f32-dwconv/gen/up4x25-minmax-sse.c", |
| 943 | "src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c", |
| 944 | "src/f32-dwconv/gen/up4x4-minmax-sse.c", |
| 945 | "src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c", |
| 946 | "src/f32-dwconv/gen/up4x9-minmax-sse.c", |
| 947 | "src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c", |
| 948 | "src/f32-dwconv/gen/up8x25-minmax-sse.c", |
| 949 | "src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c", |
| 950 | "src/f32-dwconv/gen/up8x4-minmax-sse.c", |
| 951 | "src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c", |
| 952 | "src/f32-dwconv/gen/up8x9-minmax-sse.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 953 | "src/f32-gavgpool-spchw/sse-x4.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 954 | "src/f32-gavgpool/7p7x-minmax-sse-c4.c", |
| 955 | "src/f32-gavgpool/7x-minmax-sse-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 956 | "src/f32-gemm/gen/1x8-minmax-sse-dup.c", |
| 957 | "src/f32-gemm/gen/1x8-minmax-sse-load1.c", |
| 958 | "src/f32-gemm/gen/1x8s4-minmax-sse.c", |
| 959 | "src/f32-gemm/gen/4x2c4-minmax-sse.c", |
| 960 | "src/f32-gemm/gen/4x8-minmax-sse-dup.c", |
| 961 | "src/f32-gemm/gen/4x8-minmax-sse-load1.c", |
| 962 | "src/f32-gemm/gen/4x8s4-minmax-sse.c", |
| 963 | "src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c", |
| 964 | "src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c", |
| 965 | "src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c", |
| 966 | "src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c", |
| 967 | "src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c", |
| 968 | "src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 969 | "src/f32-hswish/gen/sse-x4.c", |
| 970 | "src/f32-hswish/gen/sse-x8.c", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 971 | "src/f32-ibilinear/gen/sse-c4.c", |
| 972 | "src/f32-ibilinear/gen/sse-c8.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 973 | "src/f32-igemm/gen/1x8-minmax-sse-dup.c", |
| 974 | "src/f32-igemm/gen/1x8-minmax-sse-load1.c", |
| 975 | "src/f32-igemm/gen/1x8s4-minmax-sse.c", |
| 976 | "src/f32-igemm/gen/4x2c4-minmax-sse.c", |
| 977 | "src/f32-igemm/gen/4x8-minmax-sse-dup.c", |
| 978 | "src/f32-igemm/gen/4x8-minmax-sse-load1.c", |
| 979 | "src/f32-igemm/gen/4x8s4-minmax-sse.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 980 | "src/f32-maxpool/9p8x-minmax-sse-c4.c", |
| 981 | "src/f32-pavgpool/9p8x-minmax-sse-c4.c", |
| 982 | "src/f32-pavgpool/9x-minmax-sse-c4.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 983 | "src/f32-ppmm/gen/4x8-minmax-sse.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 984 | "src/f32-rmax/sse.c", |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 985 | "src/f32-spmm/gen/4x1-minmax-sse.c", |
| 986 | "src/f32-spmm/gen/8x1-minmax-sse.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 987 | "src/f32-vbinary/gen/vadd-minmax-sse-x4.c", |
| 988 | "src/f32-vbinary/gen/vadd-minmax-sse-x8.c", |
| 989 | "src/f32-vbinary/gen/vaddc-minmax-sse-x4.c", |
| 990 | "src/f32-vbinary/gen/vaddc-minmax-sse-x8.c", |
| 991 | "src/f32-vbinary/gen/vdiv-minmax-sse-x4.c", |
| 992 | "src/f32-vbinary/gen/vdiv-minmax-sse-x8.c", |
| 993 | "src/f32-vbinary/gen/vdivc-minmax-sse-x4.c", |
| 994 | "src/f32-vbinary/gen/vdivc-minmax-sse-x8.c", |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 995 | "src/f32-vbinary/gen/vmax-sse-x4.c", |
| 996 | "src/f32-vbinary/gen/vmax-sse-x8.c", |
| 997 | "src/f32-vbinary/gen/vmaxc-sse-x4.c", |
| 998 | "src/f32-vbinary/gen/vmaxc-sse-x8.c", |
| 999 | "src/f32-vbinary/gen/vmin-sse-x4.c", |
| 1000 | "src/f32-vbinary/gen/vmin-sse-x8.c", |
| 1001 | "src/f32-vbinary/gen/vminc-sse-x4.c", |
| 1002 | "src/f32-vbinary/gen/vminc-sse-x8.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1003 | "src/f32-vbinary/gen/vmul-minmax-sse-x4.c", |
| 1004 | "src/f32-vbinary/gen/vmul-minmax-sse-x8.c", |
| 1005 | "src/f32-vbinary/gen/vmulc-minmax-sse-x4.c", |
| 1006 | "src/f32-vbinary/gen/vmulc-minmax-sse-x8.c", |
| 1007 | "src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c", |
| 1008 | "src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c", |
| 1009 | "src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c", |
| 1010 | "src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c", |
| 1011 | "src/f32-vbinary/gen/vsub-minmax-sse-x4.c", |
| 1012 | "src/f32-vbinary/gen/vsub-minmax-sse-x8.c", |
| 1013 | "src/f32-vbinary/gen/vsubc-minmax-sse-x4.c", |
| 1014 | "src/f32-vbinary/gen/vsubc-minmax-sse-x8.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1015 | "src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c", |
| 1016 | "src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1017 | "src/x32-packx/x4-sse.c", |
| 1018 | ] |
| 1019 | |
| 1020 | SSE2_UKERNELS = [ |
Marat Dukhan | 329da64 | 2019-11-19 21:44:39 -0800 | [diff] [blame] | 1021 | "src/f32-argmaxpool/9p8x-sse2-c4.c", |
| 1022 | "src/f32-argmaxpool/4x-sse2-c4.c", |
| 1023 | "src/f32-argmaxpool/9x-sse2-c4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1024 | "src/f32-prelu/gen/sse2-2x4.c", |
| 1025 | "src/f32-prelu/gen/sse2-2x8.c", |
Marat Dukhan | b39689d | 2020-01-24 13:32:20 -0800 | [diff] [blame] | 1026 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c", |
| 1027 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c", |
| 1028 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c", |
| 1029 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c", |
| 1030 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c", |
| 1031 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c", |
| 1032 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c", |
| 1033 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c", |
| 1034 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c", |
| 1035 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c", |
| 1036 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c", |
| 1037 | "src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1038 | "src/f32-sigmoid/gen/sse2-p5-div-x4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1039 | "src/f32-sigmoid/gen/sse2-p5-div-x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1040 | "src/f32-sigmoid/gen/sse2-p5-div-x12.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1041 | "src/f32-sigmoid/gen/sse2-p5-div-x16.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1042 | "src/f32-sigmoid/gen/sse2-p5-div-x20.c", |
| 1043 | "src/f32-sigmoid/gen/sse2-p5-div-x24.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1044 | "src/q8-avgpool/9p8x-minmax-sse2-c8.c", |
| 1045 | "src/q8-avgpool/9x-minmax-sse2-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1046 | "src/q8-igemm/4x4c2-minmax-sse2.c", |
| 1047 | "src/q8-dwconv/up8x9-minmax-sse2.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1048 | "src/q8-gavgpool/7p7x-minmax-sse2-c8.c", |
| 1049 | "src/q8-gavgpool/7x-minmax-sse2-c8.c", |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1050 | "src/q8-gemm/2x4c8-minmax-sse2.c", |
| 1051 | "src/q8-gemm/4x4c2-minmax-sse2.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1052 | "src/q8-vadd/minmax-sse2.c", |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1053 | "src/u8-clamp/sse2-x64.c", |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 1054 | "src/u8-maxpool/9p8x-minmax-sse2-c16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1055 | "src/u8-rmax/sse2.c", |
| 1056 | "src/x32-pad/x2-sse2.c", |
Marat Dukhan | 57dccd8 | 2020-04-14 00:53:10 -0700 | [diff] [blame] | 1057 | "src/x32-unpool/sse2.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1058 | "src/x32-zip/x2-sse2.c", |
| 1059 | "src/x32-zip/x3-sse2.c", |
| 1060 | "src/x32-zip/x4-sse2.c", |
| 1061 | "src/x32-zip/xm-sse2.c", |
| 1062 | "src/x8-zip/x2-sse2.c", |
| 1063 | "src/x8-zip/x3-sse2.c", |
| 1064 | "src/x8-zip/x4-sse2.c", |
| 1065 | "src/x8-zip/xm-sse2.c", |
Marat Dukhan | ffd6840 | 2019-11-15 15:19:11 -0800 | [diff] [blame] | 1066 | "src/math/exp-sse2-p5.c", |
| 1067 | "src/math/expminus-sse2-p5.c", |
Marat Dukhan | 80bafd2 | 2019-11-18 10:16:01 -0800 | [diff] [blame] | 1068 | "src/math/sigmoid-sse2-p5-div.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1069 | "src/requantization/precise-sse2.c", |
| 1070 | "src/requantization/fp32-sse2.c", |
| 1071 | "src/requantization/q31-sse2.c", |
| 1072 | "src/requantization/gemmlowp-sse2.c", |
| 1073 | ] |
| 1074 | |
| 1075 | SSSE3_UKERNELS = [ |
| 1076 | "src/requantization/precise-ssse3.c", |
| 1077 | "src/requantization/q31-ssse3.c", |
| 1078 | "src/requantization/gemmlowp-ssse3.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1079 | ] |
| 1080 | |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1081 | SSE41_UKERNELS = [ |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1082 | "src/f32-prelu/gen/sse41-2x4.c", |
| 1083 | "src/f32-prelu/gen/sse41-2x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1084 | "src/f32-sigmoid/gen/sse41-p5-div-x4.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1085 | "src/f32-sigmoid/gen/sse41-p5-div-x8.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1086 | "src/f32-sigmoid/gen/sse41-p5-div-x12.c", |
Marat Dukhan | 40a672f | 2019-11-25 03:08:22 -0800 | [diff] [blame] | 1087 | "src/f32-sigmoid/gen/sse41-p5-div-x16.c", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1088 | "src/f32-sigmoid/gen/sse41-p5-div-x20.c", |
| 1089 | "src/f32-sigmoid/gen/sse41-p5-div-x24.c", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1090 | "src/requantization/precise-sse4.c", |
| 1091 | "src/requantization/q31-sse4.c", |
| 1092 | "src/requantization/gemmlowp-sse4.c", |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1093 | ] |
| 1094 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1095 | AVX_UKERNELS = [ |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1096 | "src/f32-clamp/gen/avx-x8.c", |
| 1097 | "src/f32-clamp/gen/avx-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1098 | "src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c", |
| 1099 | "src/f32-dwconv/gen/up16x4-minmax-avx.c", |
| 1100 | "src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c", |
| 1101 | "src/f32-dwconv/gen/up8x4-minmax-avx.c", |
| 1102 | "src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c", |
| 1103 | "src/f32-dwconv/gen/up16x9-minmax-avx.c", |
| 1104 | "src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c", |
| 1105 | "src/f32-dwconv/gen/up8x9-minmax-avx.c", |
| 1106 | "src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c", |
| 1107 | "src/f32-dwconv/gen/up16x25-minmax-avx.c", |
| 1108 | "src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c", |
| 1109 | "src/f32-dwconv/gen/up8x25-minmax-avx.c", |
| 1110 | "src/f32-gemm/gen/1x8-minmax-avx-broadcast.c", |
| 1111 | "src/f32-gemm/gen/4x8-minmax-avx-broadcast.c", |
| 1112 | "src/f32-gemm/gen/5x8-minmax-avx-broadcast.c", |
| 1113 | "src/f32-gemm/gen/6x8-minmax-avx-broadcast.c", |
| 1114 | "src/f32-gemm/gen/7x8-minmax-avx-broadcast.c", |
| 1115 | "src/f32-gemm/gen/1x16-minmax-avx-broadcast.c", |
| 1116 | "src/f32-gemm/gen/3x16-minmax-avx-broadcast.c", |
| 1117 | "src/f32-gemm/gen/4x16-minmax-avx-broadcast.c", |
| 1118 | "src/f32-gemm/gen/5x16-minmax-avx-broadcast.c", |
| 1119 | "src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c", |
| 1120 | "src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c", |
| 1121 | "src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c", |
| 1122 | "src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c", |
| 1123 | "src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c", |
| 1124 | "src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c", |
| 1125 | "src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c", |
| 1126 | "src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c", |
| 1127 | "src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1128 | "src/f32-hswish/gen/avx-x8.c", |
| 1129 | "src/f32-hswish/gen/avx-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1130 | "src/f32-igemm/gen/1x8-minmax-avx-broadcast.c", |
| 1131 | "src/f32-igemm/gen/4x8-minmax-avx-broadcast.c", |
| 1132 | "src/f32-igemm/gen/5x8-minmax-avx-broadcast.c", |
| 1133 | "src/f32-igemm/gen/6x8-minmax-avx-broadcast.c", |
| 1134 | "src/f32-igemm/gen/7x8-minmax-avx-broadcast.c", |
| 1135 | "src/f32-igemm/gen/1x16-minmax-avx-broadcast.c", |
| 1136 | "src/f32-igemm/gen/3x16-minmax-avx-broadcast.c", |
| 1137 | "src/f32-igemm/gen/4x16-minmax-avx-broadcast.c", |
| 1138 | "src/f32-igemm/gen/5x16-minmax-avx-broadcast.c", |
Marat Dukhan | 90eca0a | 2020-03-11 00:52:23 -0700 | [diff] [blame] | 1139 | "src/f32-prelu/gen/avx-2x8.c", |
| 1140 | "src/f32-prelu/gen/avx-2x16.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1141 | "src/f32-rmax/avx.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1142 | "src/f32-vbinary/gen/vadd-minmax-avx-x8.c", |
| 1143 | "src/f32-vbinary/gen/vadd-minmax-avx-x16.c", |
| 1144 | "src/f32-vbinary/gen/vaddc-minmax-avx-x8.c", |
| 1145 | "src/f32-vbinary/gen/vaddc-minmax-avx-x16.c", |
| 1146 | "src/f32-vbinary/gen/vdiv-minmax-avx-x8.c", |
| 1147 | "src/f32-vbinary/gen/vdiv-minmax-avx-x16.c", |
| 1148 | "src/f32-vbinary/gen/vdivc-minmax-avx-x8.c", |
| 1149 | "src/f32-vbinary/gen/vdivc-minmax-avx-x16.c", |
Marat Dukhan | 9a88efe | 2019-12-10 15:54:24 -0800 | [diff] [blame] | 1150 | "src/f32-vbinary/gen/vmax-avx-x8.c", |
| 1151 | "src/f32-vbinary/gen/vmax-avx-x16.c", |
| 1152 | "src/f32-vbinary/gen/vmaxc-avx-x8.c", |
| 1153 | "src/f32-vbinary/gen/vmaxc-avx-x16.c", |
| 1154 | "src/f32-vbinary/gen/vmin-avx-x8.c", |
| 1155 | "src/f32-vbinary/gen/vmin-avx-x16.c", |
| 1156 | "src/f32-vbinary/gen/vminc-avx-x8.c", |
| 1157 | "src/f32-vbinary/gen/vminc-avx-x16.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1158 | "src/f32-vbinary/gen/vmul-minmax-avx-x8.c", |
| 1159 | "src/f32-vbinary/gen/vmul-minmax-avx-x16.c", |
| 1160 | "src/f32-vbinary/gen/vmulc-minmax-avx-x8.c", |
| 1161 | "src/f32-vbinary/gen/vmulc-minmax-avx-x16.c", |
| 1162 | "src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c", |
| 1163 | "src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c", |
| 1164 | "src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c", |
| 1165 | "src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c", |
| 1166 | "src/f32-vbinary/gen/vsub-minmax-avx-x8.c", |
| 1167 | "src/f32-vbinary/gen/vsub-minmax-avx-x16.c", |
| 1168 | "src/f32-vbinary/gen/vsubc-minmax-avx-x8.c", |
| 1169 | "src/f32-vbinary/gen/vsubc-minmax-avx-x16.c", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1170 | "src/f32-vscale/avx-unroll32.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1171 | ] |
| 1172 | |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1173 | FMA3_UKERNELS = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1174 | "src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c", |
| 1175 | "src/f32-dwconv/gen/up16x4-minmax-fma3.c", |
| 1176 | "src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c", |
| 1177 | "src/f32-dwconv/gen/up8x4-minmax-fma3.c", |
| 1178 | "src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c", |
| 1179 | "src/f32-dwconv/gen/up16x9-minmax-fma3.c", |
| 1180 | "src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c", |
| 1181 | "src/f32-dwconv/gen/up8x9-minmax-fma3.c", |
| 1182 | "src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c", |
| 1183 | "src/f32-dwconv/gen/up16x25-minmax-fma3.c", |
| 1184 | "src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c", |
| 1185 | "src/f32-dwconv/gen/up8x25-minmax-fma3.c", |
| 1186 | "src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c", |
| 1187 | "src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c", |
| 1188 | "src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c", |
| 1189 | "src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c", |
| 1190 | "src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c", |
| 1191 | "src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c", |
| 1192 | "src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c", |
| 1193 | "src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c", |
| 1194 | "src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c", |
| 1195 | "src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c", |
| 1196 | "src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c", |
| 1197 | "src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c", |
| 1198 | "src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c", |
| 1199 | "src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c", |
| 1200 | "src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c", |
| 1201 | "src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c", |
| 1202 | "src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c", |
| 1203 | "src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c", |
| 1204 | "src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c", |
| 1205 | "src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c", |
| 1206 | "src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c", |
| 1207 | "src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c", |
| 1208 | "src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c", |
| 1209 | "src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c", |
| 1210 | "src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c", |
| 1211 | "src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c", |
| 1212 | "src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c", |
| 1213 | "src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1214 | "src/f32-hswish/gen/fma3-x8.c", |
| 1215 | "src/f32-hswish/gen/fma3-x16.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1216 | "src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c", |
| 1217 | "src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c", |
| 1218 | "src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c", |
| 1219 | "src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c", |
| 1220 | "src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c", |
| 1221 | "src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c", |
| 1222 | "src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c", |
| 1223 | "src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c", |
| 1224 | "src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c", |
| 1225 | "src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c", |
| 1226 | "src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c", |
| 1227 | "src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c", |
| 1228 | "src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c", |
| 1229 | "src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1230 | ] |
| 1231 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1232 | AVX2_UKERNELS = [ |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1233 | "src/f32-raddexpminusmax/gen/avx2-p5-x64.c", |
| 1234 | "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c", |
| 1235 | "src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c", |
| 1236 | "src/f32-raddexpminusmax/gen/avx2-p5-x72.c", |
| 1237 | "src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c", |
| 1238 | "src/f32-raddexpminusmax/gen/avx2-p5-x80.c", |
| 1239 | "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c", |
| 1240 | "src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c", |
| 1241 | "src/f32-raddexpminusmax/gen/avx2-p5-x96.c", |
| 1242 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c", |
| 1243 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c", |
| 1244 | "src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c", |
| 1245 | "src/f32-raddextexp/gen/avx2-p5-x64.c", |
| 1246 | "src/f32-raddextexp/gen/avx2-p5-x64-acc2.c", |
| 1247 | "src/f32-raddextexp/gen/avx2-p5-x64-acc4.c", |
| 1248 | "src/f32-raddextexp/gen/avx2-p5-x72.c", |
| 1249 | "src/f32-raddextexp/gen/avx2-p5-x72-acc3.c", |
| 1250 | "src/f32-raddextexp/gen/avx2-p5-x80.c", |
| 1251 | "src/f32-raddextexp/gen/avx2-p5-x80-acc2.c", |
| 1252 | "src/f32-raddextexp/gen/avx2-p5-x80-acc5.c", |
| 1253 | "src/f32-raddextexp/gen/avx2-p5-x96.c", |
| 1254 | "src/f32-raddextexp/gen/avx2-p5-x96-acc2.c", |
| 1255 | "src/f32-raddextexp/gen/avx2-p5-x96-acc3.c", |
| 1256 | "src/f32-raddextexp/gen/avx2-p5-x96-acc6.c", |
| 1257 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c", |
| 1258 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c", |
| 1259 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c", |
| 1260 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c", |
| 1261 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c", |
| 1262 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c", |
| 1263 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c", |
| 1264 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c", |
| 1265 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c", |
| 1266 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c", |
| 1267 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c", |
| 1268 | "src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c", |
Marat Dukhan | fa0a432 | 2020-01-06 16:14:29 -0800 | [diff] [blame] | 1269 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c", |
| 1270 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c", |
| 1271 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c", |
| 1272 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c", |
| 1273 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c", |
| 1274 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c", |
| 1275 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c", |
| 1276 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c", |
| 1277 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c", |
| 1278 | "src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c", |
| 1279 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c", |
| 1280 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c", |
| 1281 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c", |
| 1282 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c", |
| 1283 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c", |
| 1284 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c", |
| 1285 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c", |
| 1286 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c", |
| 1287 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c", |
| 1288 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c", |
| 1289 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c", |
| 1290 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c", |
| 1291 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c", |
| 1292 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c", |
| 1293 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c", |
| 1294 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c", |
| 1295 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c", |
| 1296 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c", |
| 1297 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c", |
| 1298 | "src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1299 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c", |
| 1300 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c", |
| 1301 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c", |
| 1302 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c", |
| 1303 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c", |
| 1304 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c", |
| 1305 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c", |
| 1306 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c", |
| 1307 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c", |
| 1308 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c", |
| 1309 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c", |
| 1310 | "src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c", |
| 1311 | "src/f32-vscaleextexp/gen/avx2-p5-x8.c", |
| 1312 | "src/f32-vscaleextexp/gen/avx2-p5-x16.c", |
| 1313 | "src/f32-vscaleextexp/gen/avx2-p5-x24.c", |
| 1314 | "src/f32-vscaleextexp/gen/avx2-p5-x32.c", |
| 1315 | "src/f32-vscaleextexp/gen/avx2-p5-x40.c", |
| 1316 | "src/f32-vscaleextexp/gen/avx2-p5-x48.c", |
| 1317 | "src/f32-vscaleextexp/gen/avx2-p5-x56.c", |
| 1318 | "src/f32-vscaleextexp/gen/avx2-p5-x64.c", |
| 1319 | "src/f32-vscaleextexp/gen/avx2-p5-x72.c", |
| 1320 | "src/f32-vscaleextexp/gen/avx2-p5-x80.c", |
| 1321 | "src/f32-vscaleextexp/gen/avx2-p5-x88.c", |
| 1322 | "src/f32-vscaleextexp/gen/avx2-p5-x96.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1323 | "src/math/exp-avx2-p5.c", |
| 1324 | "src/math/exp-avx2-perm-p3.c", |
| 1325 | "src/math/exp-avx2-perm-p4.c", |
Marat Dukhan | 515c977 | 2019-10-17 18:07:57 -0700 | [diff] [blame] | 1326 | "src/math/expminus-avx2-p5.c", |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 1327 | "src/math/extexp-avx2-p5.c", |
Marat Dukhan | 7241600 | 2020-01-05 21:53:19 -0800 | [diff] [blame] | 1328 | "src/math/sigmoid-avx2-rr2-p5-div.c", |
| 1329 | "src/math/sigmoid-avx2-rr1-p5-div.c", |
| 1330 | "src/math/sigmoid-avx2-rr2-p5-nr2fma.c", |
| 1331 | "src/math/sigmoid-avx2-rr1-p5-nr2fma.c", |
| 1332 | "src/math/sigmoid-avx2-rr2-p5-nr1fma.c", |
| 1333 | "src/math/sigmoid-avx2-rr1-p5-nr1fma.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1334 | ] |
| 1335 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1336 | AVX512F_UKERNELS = [ |
Marat Dukhan | 5c5fa96 | 2020-03-10 18:38:33 -0700 | [diff] [blame] | 1337 | "src/f32-clamp/gen/avx512f-x16.c", |
| 1338 | "src/f32-clamp/gen/avx512f-x32.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1339 | "src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c", |
| 1340 | "src/f32-dwconv/gen/up32x4-minmax-avx512f.c", |
| 1341 | "src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c", |
| 1342 | "src/f32-dwconv/gen/up16x4-minmax-avx512f.c", |
| 1343 | "src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c", |
| 1344 | "src/f32-dwconv/gen/up32x9-minmax-avx512f.c", |
| 1345 | "src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c", |
| 1346 | "src/f32-dwconv/gen/up16x9-minmax-avx512f.c", |
| 1347 | "src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c", |
| 1348 | "src/f32-dwconv/gen/up32x25-minmax-avx512f.c", |
| 1349 | "src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c", |
| 1350 | "src/f32-dwconv/gen/up16x25-minmax-avx512f.c", |
| 1351 | "src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c", |
| 1352 | "src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c", |
| 1353 | "src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c", |
| 1354 | "src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c", |
| 1355 | "src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c", |
| 1356 | "src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c", |
| 1357 | "src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c", |
| 1358 | "src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c", |
| 1359 | "src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c", |
| 1360 | "src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c", |
| 1361 | "src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c", |
| 1362 | "src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c", |
Marat Dukhan | 662faa0 | 2019-12-09 22:48:16 -0800 | [diff] [blame] | 1363 | "src/f32-hswish/gen/avx512f-x16.c", |
| 1364 | "src/f32-hswish/gen/avx512f-x32.c", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1365 | "src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c", |
| 1366 | "src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c", |
| 1367 | "src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c", |
| 1368 | "src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c", |
| 1369 | "src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c", |
| 1370 | "src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c", |
Marat Dukhan | 90eca0a | 2020-03-11 00:52:23 -0700 | [diff] [blame] | 1371 | "src/f32-prelu/gen/avx512f-2x16.c", |
| 1372 | "src/f32-prelu/gen/avx512f-2x32.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1373 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 1374 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c", |
| 1375 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c", |
| 1376 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 1377 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c", |
| 1378 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 1379 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c", |
| 1380 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c", |
| 1381 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 1382 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c", |
| 1383 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c", |
| 1384 | "src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c", |
| 1385 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c", |
| 1386 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c", |
| 1387 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c", |
| 1388 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c", |
| 1389 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c", |
| 1390 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c", |
| 1391 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c", |
| 1392 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c", |
| 1393 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c", |
| 1394 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c", |
| 1395 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c", |
| 1396 | "src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c", |
| 1397 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 1398 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c", |
| 1399 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c", |
| 1400 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 1401 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c", |
| 1402 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 1403 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c", |
| 1404 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c", |
| 1405 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 1406 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c", |
| 1407 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c", |
| 1408 | "src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1409 | "src/f32-rmax/avx512f.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1410 | "src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c", |
| 1411 | "src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c", |
| 1412 | "src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c", |
| 1413 | "src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c", |
| 1414 | "src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c", |
| 1415 | "src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c", |
| 1416 | "src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c", |
| 1417 | "src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c", |
Marat Dukhan | 9a88efe | 2019-12-10 15:54:24 -0800 | [diff] [blame] | 1418 | "src/f32-vbinary/gen/vmax-avx512f-x16.c", |
| 1419 | "src/f32-vbinary/gen/vmax-avx512f-x32.c", |
| 1420 | "src/f32-vbinary/gen/vmaxc-avx512f-x16.c", |
| 1421 | "src/f32-vbinary/gen/vmaxc-avx512f-x32.c", |
| 1422 | "src/f32-vbinary/gen/vmin-avx512f-x16.c", |
| 1423 | "src/f32-vbinary/gen/vmin-avx512f-x32.c", |
| 1424 | "src/f32-vbinary/gen/vminc-avx512f-x16.c", |
| 1425 | "src/f32-vbinary/gen/vminc-avx512f-x32.c", |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 1426 | "src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c", |
| 1427 | "src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c", |
| 1428 | "src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c", |
| 1429 | "src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c", |
| 1430 | "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c", |
| 1431 | "src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c", |
| 1432 | "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c", |
| 1433 | "src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c", |
| 1434 | "src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c", |
| 1435 | "src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c", |
| 1436 | "src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c", |
| 1437 | "src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1438 | "src/f32-vscale/avx512f-unroll64.c", |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 1439 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c", |
| 1440 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c", |
| 1441 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c", |
| 1442 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c", |
| 1443 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c", |
| 1444 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c", |
| 1445 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c", |
| 1446 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c", |
| 1447 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c", |
| 1448 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c", |
| 1449 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c", |
| 1450 | "src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c", |
| 1451 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c", |
| 1452 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c", |
| 1453 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c", |
| 1454 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c", |
| 1455 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c", |
| 1456 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c", |
| 1457 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c", |
| 1458 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c", |
| 1459 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c", |
| 1460 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c", |
| 1461 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c", |
| 1462 | "src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1463 | "src/math/exp-avx512f-p5-scalef.c", |
| 1464 | "src/math/exp-avx512f-p5.c", |
| 1465 | "src/math/exp-avx512f-perm-p3.c", |
Marat Dukhan | feb4923 | 2019-10-28 11:03:31 -0700 | [diff] [blame] | 1466 | "src/math/exp-avx512f-perm2-p2.c", |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 1467 | "src/math/extexp-avx512f-p5.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1468 | ] |
| 1469 | |
| 1470 | AARCH32_ASM_UKERNELS = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 1471 | "src/q8-dwconv/up8x9-minmax-aarch32-neon.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1472 | "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S", |
| 1473 | "src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S", |
| 1474 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S", |
| 1475 | "src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S", |
| 1476 | "src/f32-gemm/4x8-minmax-aarch32-neon-ld64.S", |
| 1477 | "src/f32-igemm/4x8-minmax-aarch32-neon-ld64.S", |
| 1478 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S", |
| 1479 | "src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S", |
| 1480 | "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S", |
| 1481 | "src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1482 | ] |
| 1483 | |
| 1484 | AARCH64_ASM_UKERNELS = [ |
Frank Barchard | 36b76b6 | 2020-04-10 12:39:17 -0700 | [diff] [blame] | 1485 | "src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 1486 | "src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S", |
| 1487 | "src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 36b76b6 | 2020-04-10 12:39:17 -0700 | [diff] [blame] | 1488 | "src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 1489 | "src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
| 1490 | "src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S", |
Frank Barchard | bddfbcd | 2020-04-15 12:32:41 -0700 | [diff] [blame] | 1491 | "src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S", |
| 1492 | "src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S", |
| 1493 | "src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | 3b8e566 | 2020-04-20 12:12:53 -0700 | [diff] [blame] | 1494 | "src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | bddfbcd | 2020-04-15 12:32:41 -0700 | [diff] [blame] | 1495 | "src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
| 1496 | "src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
| 1497 | "src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
Frank Barchard | 3b8e566 | 2020-04-20 12:12:53 -0700 | [diff] [blame] | 1498 | "src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1499 | "src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S", |
| 1500 | "src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S", |
Frank Barchard | 3cb54f9 | 2020-04-10 10:46:08 -0700 | [diff] [blame] | 1501 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1502 | "src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1503 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1504 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1505 | "src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1506 | "src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1507 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1508 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1509 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1510 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1511 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S", |
| 1512 | "src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S", |
| 1513 | "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1514 | "src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1515 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1516 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1517 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S", |
| 1518 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1519 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1520 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ios.S", |
| 1521 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S", |
| 1522 | "src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S", |
Frank Barchard | 3cb54f9 | 2020-04-10 10:46:08 -0700 | [diff] [blame] | 1523 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S", |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 1524 | "src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1525 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1526 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1527 | "src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1528 | "src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1529 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1530 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S", |
| 1531 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1532 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1533 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S", |
| 1534 | "src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S", |
| 1535 | "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1536 | "src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1537 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S", |
| 1538 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S", |
| 1539 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S", |
| 1540 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S", |
| 1541 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S", |
| 1542 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ios.S", |
| 1543 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S", |
| 1544 | "src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S", |
| 1545 | "src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1546 | "src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1547 | "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1548 | "src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1549 | "src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S", |
| 1550 | "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1551 | "src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1552 | "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1553 | "src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1554 | "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1555 | "src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1556 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S", |
| 1557 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S", |
| 1558 | "src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S", |
| 1559 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S", |
| 1560 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S", |
| 1561 | "src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-ios.S", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1562 | ] |
| 1563 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1564 | INTERNAL_MICROKERNEL_HDRS = [ |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1565 | "src/requantization/gemmlowp-requantization.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1566 | "src/xnnpack/argmaxpool.h", |
| 1567 | "src/xnnpack/avgpool.h", |
| 1568 | "src/xnnpack/clamp.h", |
| 1569 | "src/xnnpack/common.h", |
| 1570 | "src/xnnpack/conv.h", |
| 1571 | "src/xnnpack/dwconv.h", |
| 1572 | "src/xnnpack/gavgpool.h", |
| 1573 | "src/xnnpack/gemm.h", |
| 1574 | "src/xnnpack/hswish.h", |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 1575 | "src/xnnpack/ibilinear.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1576 | "src/xnnpack/igemm.h", |
Marat Dukhan | cfb3134 | 2019-12-05 10:42:57 -0800 | [diff] [blame] | 1577 | "src/xnnpack/intrinsics-polyfill.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1578 | "src/xnnpack/lut.h", |
| 1579 | "src/xnnpack/math.h", |
| 1580 | "src/xnnpack/maxpool.h", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1581 | "src/xnnpack/memory.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1582 | "src/xnnpack/packx.h", |
| 1583 | "src/xnnpack/pad.h", |
| 1584 | "src/xnnpack/params.h", |
| 1585 | "src/xnnpack/pavgpool.h", |
| 1586 | "src/xnnpack/ppmm.h", |
| 1587 | "src/xnnpack/prelu.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 1588 | "src/xnnpack/raddexpminusmax.h", |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 1589 | "src/xnnpack/raddextexp.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 1590 | "src/xnnpack/raddstoreexpminusmax.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1591 | "src/xnnpack/rmax.h", |
| 1592 | "src/xnnpack/scalar-utils.h", |
| 1593 | "src/xnnpack/spmm.h", |
| 1594 | "src/xnnpack/unpool.h", |
| 1595 | "src/xnnpack/vadd.h", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 1596 | "src/xnnpack/vbinary.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1597 | "src/xnnpack/vmulcaddc.h", |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 1598 | "src/xnnpack/vscale.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 1599 | "src/xnnpack/vscaleexpminusmax.h", |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 1600 | "src/xnnpack/vscaleextexp.h", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 1601 | "src/xnnpack/vunary.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1602 | "src/xnnpack/zip.h", |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1603 | ] |
| 1604 | |
| 1605 | INTERNAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1606 | "include/xnnpack.h", |
| 1607 | "src/xnnpack/allocator.h", |
| 1608 | "src/xnnpack/compute.h", |
| 1609 | "src/xnnpack/im2col.h", |
| 1610 | "src/xnnpack/indirection.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1611 | "src/xnnpack/math-stubs.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1612 | "src/xnnpack/operator.h", |
| 1613 | "src/xnnpack/pack.h", |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 1614 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1615 | "src/xnnpack/requantization-stubs.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1616 | "src/xnnpack/requantization.h", |
Marat Dukhan | 1d75a54 | 2020-02-03 12:23:01 -0800 | [diff] [blame] | 1617 | "src/xnnpack/subgraph.h", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1618 | ] |
| 1619 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1620 | ACCURACY_EVAL_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1621 | "src/xnnpack/math-stubs.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1622 | ] |
| 1623 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1624 | MICROKERNEL_BENCHMARK_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 1625 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1626 | "include/xnnpack.h", |
| 1627 | ] |
| 1628 | |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 1629 | MICROKERNEL_TEST_HDRS = INTERNAL_MICROKERNEL_HDRS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1630 | "src/xnnpack/isa-checks.h", |
Marat Dukhan | eeaa7bd | 2019-10-25 17:31:25 -0700 | [diff] [blame] | 1631 | "src/xnnpack/params-init.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1632 | "src/xnnpack/requantization.h", |
| 1633 | "include/xnnpack.h", |
| 1634 | ] |
| 1635 | |
| 1636 | OPERATOR_TEST_PARAMS_HDRS = [ |
| 1637 | "src/xnnpack/params.h", |
| 1638 | "src/xnnpack/common.h", |
| 1639 | ] |
| 1640 | |
| 1641 | WEIGHTS_PACK_HDRS = [ |
| 1642 | "src/xnnpack/pack.h", |
| 1643 | "src/xnnpack/operator.h", |
| 1644 | "src/xnnpack/compute.h", |
| 1645 | ] |
| 1646 | |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 1647 | LOGGING_COPTS = select({ |
| 1648 | # No logging in optimized mode |
| 1649 | ":optimized_build": ["-DXNN_LOG_LEVEL=0"], |
| 1650 | # Full logging in debug mode |
| 1651 | ":debug_build": ["-DXNN_LOG_LEVEL=5"], |
| 1652 | # Error-only logging in default (fastbuild) mode |
| 1653 | "//conditions:default": ["-DXNN_LOG_LEVEL=2"], |
| 1654 | }) |
| 1655 | |
| 1656 | LOGGING_HDRS = [ |
| 1657 | "src/xnnpack/log.h", |
| 1658 | ] |
| 1659 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1660 | xnnpack_cc_library( |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1661 | name = "tables", |
| 1662 | srcs = TABLE_SRCS, |
| 1663 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1664 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1665 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1666 | ) |
| 1667 | |
| 1668 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1669 | name = "scalar_ukernels", |
| 1670 | srcs = SCALAR_UKERNELS, |
| 1671 | hdrs = INTERNAL_HDRS, |
| 1672 | aarch32_copts = ["-marm"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1673 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1674 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1675 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1676 | ":tables", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1677 | "@FP16", |
| 1678 | "@FXdiv", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1679 | "@pthreadpool", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1680 | ], |
| 1681 | ) |
| 1682 | |
| 1683 | xnnpack_cc_library( |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 1684 | name = "wasm_ukernels", |
| 1685 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1686 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1687 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 1688 | wasm_srcs = WASM_UKERNELS, |
| 1689 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1690 | ":tables", |
Marat Dukhan | 436ebe6 | 2019-12-04 15:10:12 -0800 | [diff] [blame] | 1691 | "@FP16", |
| 1692 | "@FXdiv", |
| 1693 | "@pthreadpool", |
| 1694 | ], |
| 1695 | ) |
| 1696 | |
| 1697 | xnnpack_cc_library( |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1698 | name = "psimd_fastmath_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1699 | hdrs = INTERNAL_HDRS, |
| 1700 | aarch32_copts = [ |
| 1701 | "-marm", |
| 1702 | "-mfpu=neon", |
| 1703 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1704 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1705 | gcc_x86_copts = ["-msse2"], |
| 1706 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1707 | optimized_copts = [ |
| 1708 | "-O3", |
| 1709 | "-ffast-math", |
| 1710 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 1711 | psimd_srcs = PSIMD_FASTMATH_UKERNELS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1712 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1713 | ":tables", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1714 | "@FP16", |
| 1715 | "@psimd", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1716 | "@pthreadpool", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1717 | ], |
| 1718 | ) |
| 1719 | |
| 1720 | xnnpack_cc_library( |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1721 | name = "psimd_accmath_ukernels", |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1722 | hdrs = INTERNAL_HDRS, |
| 1723 | aarch32_copts = [ |
| 1724 | "-marm", |
| 1725 | "-mfpu=neon", |
| 1726 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1727 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1728 | gcc_x86_copts = ["-msse2"], |
| 1729 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1730 | optimized_copts = [ |
| 1731 | "-O3", |
| 1732 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 1733 | psimd_srcs = PSIMD_ACCMATH_UKERNELS, |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1734 | deps = [ |
| 1735 | ":tables", |
| 1736 | "@FP16", |
| 1737 | "@psimd", |
| 1738 | "@pthreadpool", |
| 1739 | ], |
| 1740 | ) |
| 1741 | |
| 1742 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1743 | name = "neon_ukernels", |
| 1744 | hdrs = INTERNAL_HDRS, |
| 1745 | aarch32_copts = [ |
| 1746 | "-marm", |
| 1747 | "-mfpu=neon", |
| 1748 | ], |
| 1749 | aarch32_srcs = NEON_UKERNELS, |
| 1750 | aarch64_srcs = NEON_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1751 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1752 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1753 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1754 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1755 | "@FP16", |
| 1756 | "@pthreadpool", |
| 1757 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1758 | ) |
| 1759 | |
| 1760 | xnnpack_cc_library( |
| 1761 | name = "neonfma_ukernels", |
| 1762 | hdrs = INTERNAL_HDRS, |
| 1763 | aarch32_copts = [ |
| 1764 | "-marm", |
| 1765 | "-mfpu=neon-vfpv4", |
| 1766 | ], |
| 1767 | aarch32_srcs = NEONFMA_UKERNELS, |
| 1768 | aarch64_srcs = NEONFMA_UKERNELS + AARCH64_NEONFMA_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1769 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1770 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1771 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1772 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1773 | "@FP16", |
| 1774 | "@pthreadpool", |
| 1775 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1776 | ) |
| 1777 | |
| 1778 | xnnpack_cc_library( |
| 1779 | name = "neonfp16arith_ukernels", |
| 1780 | hdrs = INTERNAL_HDRS, |
| 1781 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
| 1782 | aarch64_srcs = AARCH64_NEONFP16ARITH_UKERNELS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1783 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1784 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1785 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1786 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1787 | "@FP16", |
| 1788 | "@pthreadpool", |
| 1789 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1790 | ) |
| 1791 | |
| 1792 | xnnpack_cc_library( |
| 1793 | name = "sse2_ukernels", |
| 1794 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1795 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1796 | gcc_x86_copts = ["-msse2"], |
| 1797 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1798 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1799 | x86_srcs = SSE_UKERNELS + SSE2_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1800 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1801 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1802 | "@FP16", |
| 1803 | "@pthreadpool", |
| 1804 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1805 | ) |
| 1806 | |
| 1807 | xnnpack_cc_library( |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1808 | name = "ssse3_ukernels", |
| 1809 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1810 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1811 | gcc_x86_copts = ["-mssse3"], |
| 1812 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1813 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1814 | x86_srcs = SSSE3_UKERNELS, |
| 1815 | deps = [ |
| 1816 | ":tables", |
| 1817 | "@FP16", |
| 1818 | "@pthreadpool", |
| 1819 | ], |
| 1820 | ) |
| 1821 | |
| 1822 | xnnpack_cc_library( |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1823 | name = "sse41_ukernels", |
| 1824 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1825 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1826 | gcc_x86_copts = ["-msse4.1"], |
| 1827 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1828 | msvc_x86_32_copts = ["/arch:SSE2"], |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1829 | x86_srcs = SSE41_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1830 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1831 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1832 | "@FP16", |
| 1833 | "@pthreadpool", |
| 1834 | ], |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1835 | ) |
| 1836 | |
| 1837 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1838 | name = "avx_ukernels", |
| 1839 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1840 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1841 | gcc_x86_copts = ["-mavx"], |
| 1842 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1843 | msvc_x86_32_copts = ["/arch:AVX"], |
| 1844 | msvc_x86_64_copts = ["/arch:AVX"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1845 | x86_srcs = AVX_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1846 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1847 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1848 | "@FP16", |
| 1849 | "@pthreadpool", |
| 1850 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1851 | ) |
| 1852 | |
| 1853 | xnnpack_cc_library( |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1854 | name = "fma3_ukernels", |
| 1855 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1856 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1857 | gcc_x86_copts = ["-mfma"], |
| 1858 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1859 | msvc_x86_32_copts = ["/arch:AVX"], |
| 1860 | msvc_x86_64_copts = ["/arch:AVX"], |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1861 | x86_srcs = FMA3_UKERNELS, |
| 1862 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1863 | ":tables", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1864 | "@FP16", |
| 1865 | "@pthreadpool", |
| 1866 | ], |
| 1867 | ) |
| 1868 | |
| 1869 | xnnpack_cc_library( |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1870 | name = "avx2_ukernels", |
| 1871 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1872 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1873 | gcc_x86_copts = [ |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1874 | "-mfma", |
| 1875 | "-mavx2", |
| 1876 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1877 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1878 | msvc_x86_32_copts = ["/arch:AVX2"], |
| 1879 | msvc_x86_64_copts = ["/arch:AVX2"], |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1880 | x86_srcs = AVX2_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1881 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1882 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1883 | "@FP16", |
| 1884 | "@pthreadpool", |
| 1885 | ], |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1886 | ) |
| 1887 | |
| 1888 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1889 | name = "avx512f_ukernels", |
| 1890 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1891 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1892 | gcc_x86_copts = ["-mavx512f"], |
| 1893 | mingw_copts = ["-fno-asynchronous-unwind-tables"], |
| 1894 | msvc_copts = xnnpack_msvc_std_copts(), |
| 1895 | msvc_x86_32_copts = ["/arch:AVX512"], |
| 1896 | msvc_x86_64_copts = ["/arch:AVX512"], |
| 1897 | msys_copts = ["-fno-asynchronous-unwind-tables"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1898 | x86_srcs = AVX512F_UKERNELS, |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1899 | deps = [ |
Marat Dukhan | 3a77ea7 | 2019-12-23 12:10:24 -0800 | [diff] [blame] | 1900 | ":tables", |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1901 | "@FP16", |
| 1902 | "@pthreadpool", |
| 1903 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1904 | ) |
| 1905 | |
| 1906 | xnnpack_cc_library( |
| 1907 | name = "asm_ukernels", |
| 1908 | hdrs = ["src/xnnpack/assembly.h"], |
| 1909 | aarch32_srcs = AARCH32_ASM_UKERNELS, |
Frank Barchard | 683f559 | 2020-04-10 00:48:26 -0700 | [diff] [blame] | 1910 | aarch64_copts = ["-march=armv8.2-a+fp16"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1911 | aarch64_srcs = AARCH64_ASM_UKERNELS, |
| 1912 | ) |
| 1913 | |
| 1914 | xnnpack_aggregate_library( |
| 1915 | name = "ukernels", |
| 1916 | aarch32_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1917 | ":neon_ukernels", |
| 1918 | ":neonfma_ukernels", |
| 1919 | ":asm_ukernels", |
| 1920 | ], |
| 1921 | aarch64_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1922 | ":neon_ukernels", |
| 1923 | ":neonfma_ukernels", |
| 1924 | ":neonfp16arith_ukernels", |
| 1925 | ":asm_ukernels", |
| 1926 | ], |
| 1927 | generic_deps = [":scalar_ukernels"], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 1928 | psimd_deps = [ |
Marat Dukhan | 8d3c07e | 2020-01-02 01:20:59 -0800 | [diff] [blame] | 1929 | ":psimd_fastmath_ukernels", |
| 1930 | ":psimd_accmath_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1931 | ], |
Marat Dukhan | 500b889 | 2020-04-15 17:09:50 -0700 | [diff] [blame] | 1932 | wasm_deps = [":wasm_ukernels"], |
| 1933 | wasmsimd_deps = [":wasm_ukernels"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1934 | x86_deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1935 | ":sse2_ukernels", |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 1936 | ":ssse3_ukernels", |
Marat Dukhan | 69c3f2c | 2019-11-06 12:30:01 -0800 | [diff] [blame] | 1937 | ":sse41_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1938 | ":avx_ukernels", |
Marat Dukhan | fda12b8 | 2019-11-21 12:27:59 -0800 | [diff] [blame] | 1939 | ":fma3_ukernels", |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 1940 | ":avx2_ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1941 | ":avx512f_ukernels", |
| 1942 | ], |
| 1943 | ) |
| 1944 | |
| 1945 | xnnpack_cc_library( |
| 1946 | name = "im2col", |
| 1947 | srcs = ["src/im2col.c"], |
| 1948 | hdrs = [ |
| 1949 | "src/xnnpack/common.h", |
| 1950 | "src/xnnpack/im2col.h", |
| 1951 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1952 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1953 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1954 | ) |
| 1955 | |
| 1956 | xnnpack_cc_library( |
| 1957 | name = "indirection", |
| 1958 | srcs = ["src/indirection.c"], |
| 1959 | hdrs = INTERNAL_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1960 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1961 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1962 | deps = [ |
| 1963 | "@FP16", |
| 1964 | "@FXdiv", |
| 1965 | "@pthreadpool", |
| 1966 | ], |
| 1967 | ) |
| 1968 | |
| 1969 | xnnpack_cc_library( |
| 1970 | name = "operator_run", |
| 1971 | srcs = ["src/operator-run.c"], |
Marat Dukhan | c8e00eb | 2019-10-04 14:55:26 -0700 | [diff] [blame] | 1972 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1973 | copts = LOGGING_COPTS + select({ |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 1974 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 1975 | "//conditions:default": [], |
| 1976 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 1977 | gcc_copts = xnnpack_gcc_std_copts(), |
| 1978 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1979 | deps = [ |
| 1980 | "@FP16", |
| 1981 | "@FXdiv", |
| 1982 | "@clog", |
| 1983 | "@pthreadpool", |
| 1984 | ], |
| 1985 | ) |
| 1986 | |
| 1987 | cc_library( |
| 1988 | name = "enable_assembly", |
| 1989 | defines = select({ |
| 1990 | ":xnn_enable_assembly_explicit_true": ["XNN_ENABLE_ASSEMBLY=1"], |
| 1991 | ":xnn_enable_assembly_explicit_false": ["XNN_ENABLE_ASSEMBLY=0"], |
Frank Barchard | 810171d | 2019-10-10 10:34:51 -0700 | [diff] [blame] | 1992 | "//conditions:default": ["XNN_ENABLE_ASSEMBLY=1"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1993 | }), |
| 1994 | ) |
| 1995 | |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 1996 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1997 | name = "operators", |
| 1998 | srcs = OPERATOR_SRCS + [ |
Marat Dukhan | 04f03be | 2019-11-19 12:36:47 -0800 | [diff] [blame] | 1999 | "src/memory.c", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2000 | "src/operator-delete.c", |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 2001 | ], |
| 2002 | hdrs = INTERNAL_HDRS + LOGGING_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2003 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2004 | "-Isrc", |
| 2005 | "-Iinclude", |
| 2006 | ] + select({ |
| 2007 | ":debug_build": [], |
| 2008 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2009 | }) + select({ |
| 2010 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2011 | "//conditions:default": [], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2012 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2013 | gcc_copts = xnnpack_gcc_std_copts(), |
| 2014 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 2015 | wasm_srcs = ["src/wasm-stubs.c"], |
| 2016 | wasmsimd_srcs = ["src/wasm-stubs.c"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2017 | deps = [ |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2018 | ":indirection", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2019 | "@FP16", |
| 2020 | "@FXdiv", |
| 2021 | "@clog", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2022 | "@pthreadpool", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2023 | ], |
| 2024 | ) |
| 2025 | |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2026 | xnnpack_cc_library( |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2027 | name = "XNNPACK", |
| 2028 | srcs = [ |
| 2029 | "src/init.c", |
Marat Dukhan | ccfdbd1 | 2020-02-03 14:27:45 -0800 | [diff] [blame] | 2030 | "src/runtime.c", |
| 2031 | "src/subgraph.c", |
| 2032 | "src/tensor.c", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2033 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2034 | hdrs = ["include/xnnpack.h"], |
| 2035 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2036 | "-Isrc", |
| 2037 | "-Iinclude", |
| 2038 | ] + select({ |
| 2039 | ":debug_build": [], |
| 2040 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2041 | }) + select({ |
| 2042 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2043 | "//conditions:default": [], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2044 | }), |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2045 | gcc_copts = xnnpack_gcc_std_copts(), |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2046 | includes = ["include"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2047 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2048 | visibility = xnnpack_visibility(), |
| 2049 | deps = [ |
| 2050 | ":enable_assembly", |
| 2051 | ":ukernels", |
| 2052 | ":operator_run", |
| 2053 | ":operators", |
| 2054 | "@clog", |
| 2055 | "@pthreadpool", |
Marat Dukhan | d343c22 | 2019-10-07 09:22:14 -0700 | [diff] [blame] | 2056 | ] + select({ |
| 2057 | ":emscripten": [], |
| 2058 | "//conditions:default": ["@cpuinfo"], |
| 2059 | }), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2060 | ) |
| 2061 | |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2062 | xnnpack_cc_library( |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2063 | name = "xnnpack_operators_nhwc_f32", |
| 2064 | srcs = [ |
| 2065 | "src/init.c", |
| 2066 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2067 | hdrs = ["include/xnnpack.h"], |
| 2068 | copts = LOGGING_COPTS + [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2069 | "-Isrc", |
| 2070 | "-Iinclude", |
| 2071 | ] + select({ |
| 2072 | ":debug_build": [], |
| 2073 | "//conditions:default": xnnpack_min_size_copts(), |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 2074 | }) + select({ |
| 2075 | ":xnn_enable_hmp_explicit_false": ["-DXNN_MAX_UARCH_TYPES=1"], |
| 2076 | "//conditions:default": [], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2077 | }), |
| 2078 | defines = [ |
| 2079 | "XNN_NO_Q8_OPERATORS", |
| 2080 | "XNN_NO_U8_OPERATORS", |
| 2081 | "XNN_NO_X8_OPERATORS", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 2082 | "XNN_NO_NCHW_OPERATORS", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2083 | ], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2084 | gcc_copts = xnnpack_gcc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2085 | includes = ["include"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2086 | msvc_copts = xnnpack_msvc_std_copts(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2087 | visibility = xnnpack_visibility(), |
| 2088 | deps = [ |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2089 | ":enable_assembly", |
| 2090 | ":ukernels", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2091 | ":operator_run", |
| 2092 | ":operators", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2093 | "@clog", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2094 | "@pthreadpool", |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 2095 | ] + select({ |
| 2096 | ":emscripten": [], |
| 2097 | "//conditions:default": ["@cpuinfo"], |
| 2098 | }), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2099 | ) |
| 2100 | |
Marat Dukhan | cf056b2 | 2019-10-07 10:26:29 -0700 | [diff] [blame] | 2101 | xnnpack_cc_library( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2102 | name = "bench_utils", |
| 2103 | srcs = ["bench/utils.cc"], |
| 2104 | hdrs = ["bench/utils.h"], |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2105 | gcc_copts = ["-Wno-unused-result"], |
Marat Dukhan | bad48fe | 2019-11-04 10:35:22 -0800 | [diff] [blame] | 2106 | deps = [ |
| 2107 | "@com_google_benchmark//:benchmark", |
| 2108 | "@cpuinfo", |
| 2109 | ], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2110 | ) |
| 2111 | |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 2112 | ######################### Benchmarks for micro-kernels ######################### |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2113 | |
| 2114 | xnnpack_benchmark( |
| 2115 | name = "q8_gemm_bench", |
| 2116 | srcs = [ |
| 2117 | "bench/gemm.h", |
| 2118 | "bench/q8-gemm.cc", |
| 2119 | "src/xnnpack/AlignedAllocator.h", |
| 2120 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2121 | copts = xnnpack_optional_ruy_copts() + xnnpack_optional_gemmlowp_copts(), |
| 2122 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2123 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps() + xnnpack_optional_gemmlowp_deps(), |
| 2124 | ) |
| 2125 | |
| 2126 | xnnpack_benchmark( |
| 2127 | name = "f16_gemm_bench", |
| 2128 | srcs = [ |
| 2129 | "bench/f16-gemm.cc", |
| 2130 | "bench/gemm.h", |
| 2131 | "src/xnnpack/AlignedAllocator.h", |
| 2132 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2133 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2134 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2135 | ) |
| 2136 | |
| 2137 | xnnpack_benchmark( |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2138 | name = "f16_spmm_bench", |
| 2139 | srcs = [ |
| 2140 | "bench/f16-spmm.cc", |
| 2141 | "bench/gemm.h", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2142 | "src/xnnpack/AlignedAllocator.h", |
| 2143 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2144 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2145 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2146 | ) |
| 2147 | |
| 2148 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2149 | name = "f32_igemm_bench", |
| 2150 | srcs = [ |
| 2151 | "bench/f32-igemm.cc", |
| 2152 | "bench/conv.h", |
| 2153 | "src/xnnpack/AlignedAllocator.h", |
| 2154 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 2155 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2156 | ) |
| 2157 | |
| 2158 | xnnpack_benchmark( |
| 2159 | name = "f32_conv_hwc_bench", |
| 2160 | srcs = [ |
| 2161 | "bench/f32-conv-hwc.cc", |
| 2162 | "bench/dconv.h", |
| 2163 | "src/xnnpack/AlignedAllocator.h", |
| 2164 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2165 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2166 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2167 | ) |
| 2168 | |
| 2169 | xnnpack_benchmark( |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 2170 | name = "f32_conv_hwc2spchw_bench", |
| 2171 | srcs = [ |
| 2172 | "bench/f32-conv-hwc2spchw.cc", |
| 2173 | "bench/dconv.h", |
| 2174 | "src/xnnpack/AlignedAllocator.h", |
| 2175 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2176 | gcc_copts = ["-Wno-unused-function"], |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 2177 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2178 | ) |
| 2179 | |
| 2180 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2181 | name = "f32_dwconv_bench", |
| 2182 | srcs = [ |
| 2183 | "bench/f32-dwconv.cc", |
| 2184 | "bench/dwconv.h", |
| 2185 | "src/xnnpack/AlignedAllocator.h", |
| 2186 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2187 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
| 2188 | ) |
| 2189 | |
| 2190 | xnnpack_benchmark( |
| 2191 | name = "f32_dwconv_spchw_bench", |
| 2192 | srcs = [ |
| 2193 | "bench/f32-dwconv-spchw.cc", |
| 2194 | "bench/dwconv.h", |
| 2195 | "src/xnnpack/AlignedAllocator.h", |
| 2196 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
| 2197 | deps = MICROKERNEL_BENCHMARK_DEPS + [":indirection"], |
| 2198 | ) |
| 2199 | |
| 2200 | xnnpack_benchmark( |
| 2201 | name = "f32_gemm_bench", |
| 2202 | srcs = [ |
| 2203 | "bench/f32-gemm.cc", |
| 2204 | "bench/gemm.h", |
| 2205 | "src/xnnpack/AlignedAllocator.h", |
| 2206 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2207 | copts = xnnpack_optional_ruy_copts(), |
| 2208 | gcc_copts = ["-Wno-unused-function"], |
Frank Barchard | 7e95597 | 2019-10-11 10:34:25 -0700 | [diff] [blame] | 2209 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_ruy_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2210 | ) |
| 2211 | |
| 2212 | xnnpack_benchmark( |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 2213 | name = "f32_raddexpminusmax_bench", |
| 2214 | srcs = [ |
| 2215 | "bench/f32-raddexpminusmax.cc", |
| 2216 | "src/xnnpack/AlignedAllocator.h", |
| 2217 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2218 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2219 | ) |
| 2220 | |
| 2221 | xnnpack_benchmark( |
| 2222 | name = "f32_raddextexp_bench", |
| 2223 | srcs = [ |
| 2224 | "bench/f32-raddextexp.cc", |
| 2225 | "src/xnnpack/AlignedAllocator.h", |
| 2226 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2227 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2228 | ) |
| 2229 | |
| 2230 | xnnpack_benchmark( |
| 2231 | name = "f32_raddstoreexpminusmax_bench", |
| 2232 | srcs = [ |
| 2233 | "bench/f32-raddstoreexpminusmax.cc", |
| 2234 | "src/xnnpack/AlignedAllocator.h", |
| 2235 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2236 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2237 | ) |
| 2238 | |
| 2239 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2240 | name = "f32_rmax_bench", |
| 2241 | srcs = [ |
| 2242 | "bench/f32-rmax.cc", |
| 2243 | "src/xnnpack/AlignedAllocator.h", |
| 2244 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2245 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2246 | ) |
| 2247 | |
| 2248 | xnnpack_benchmark( |
Marat Dukhan | 14bec50 | 2019-11-18 11:35:31 -0800 | [diff] [blame] | 2249 | name = "f32_sigmoid_bench", |
| 2250 | srcs = [ |
| 2251 | "bench/f32-sigmoid.cc", |
| 2252 | "src/xnnpack/AlignedAllocator.h", |
| 2253 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2254 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 14bec50 | 2019-11-18 11:35:31 -0800 | [diff] [blame] | 2255 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2256 | ) |
| 2257 | |
| 2258 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2259 | name = "f32_spmm_bench", |
| 2260 | srcs = [ |
| 2261 | "bench/f32-spmm.cc", |
| 2262 | "bench/gemm.h", |
| 2263 | "src/xnnpack/AlignedAllocator.h", |
| 2264 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2265 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2266 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2267 | ) |
| 2268 | |
| 2269 | xnnpack_benchmark( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 2270 | name = "f32_softmax_bench", |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 2271 | srcs = [ |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 2272 | "bench/f32-softmax.cc", |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 2273 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2274 | copts = xnnpack_optional_dnnl_copts(), |
| 2275 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 8d3c693 | 2020-03-06 20:27:27 -0800 | [diff] [blame] | 2276 | deps = MICROKERNEL_BENCHMARK_DEPS + xnnpack_optional_dnnl_deps(), |
Marat Dukhan | 4a4a7fa | 2019-10-21 13:46:14 -0700 | [diff] [blame] | 2277 | ) |
| 2278 | |
| 2279 | xnnpack_benchmark( |
Marat Dukhan | 4c4eb00 | 2019-12-08 21:27:49 -0800 | [diff] [blame] | 2280 | name = "f32_vscaleexpminusmax_bench", |
| 2281 | srcs = [ |
| 2282 | "bench/f32-vscaleexpminusmax.cc", |
| 2283 | "src/xnnpack/AlignedAllocator.h", |
| 2284 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2285 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2286 | ) |
| 2287 | |
| 2288 | xnnpack_benchmark( |
| 2289 | name = "f32_vscaleextexp_bench", |
| 2290 | srcs = [ |
| 2291 | "bench/f32-vscaleextexp.cc", |
| 2292 | "src/xnnpack/AlignedAllocator.h", |
| 2293 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2294 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2295 | ) |
| 2296 | |
| 2297 | xnnpack_benchmark( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2298 | name = "f32_im2col_gemm_bench", |
| 2299 | srcs = [ |
| 2300 | "bench/f32-im2col-gemm.cc", |
| 2301 | "bench/conv.h", |
| 2302 | "src/xnnpack/AlignedAllocator.h", |
| 2303 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_BENCHMARK_HDRS, |
| 2304 | deps = MICROKERNEL_BENCHMARK_DEPS + [":im2col"], |
| 2305 | ) |
| 2306 | |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 2307 | xnnpack_benchmark( |
| 2308 | name = "requantization_bench", |
| 2309 | srcs = [ |
| 2310 | "bench/requantization.cc", |
| 2311 | "src/xnnpack/requantization-stubs.h", |
| 2312 | "src/xnnpack/AlignedAllocator.h", |
| 2313 | ] + MICROKERNEL_BENCHMARK_HDRS, |
| 2314 | deps = MICROKERNEL_BENCHMARK_DEPS, |
| 2315 | ) |
| 2316 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2317 | ########################### Benchmarks for operators ########################### |
| 2318 | |
| 2319 | xnnpack_benchmark( |
| 2320 | name = "add_bench", |
| 2321 | srcs = ["bench/add.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2322 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2323 | ) |
| 2324 | |
| 2325 | xnnpack_benchmark( |
| 2326 | name = "average_pooling_bench", |
| 2327 | srcs = ["bench/average-pooling.cc"], |
Marat Dukhan | 7a16d8b | 2020-03-11 04:22:44 -0700 | [diff] [blame] | 2328 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 2329 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2330 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2331 | ) |
| 2332 | |
| 2333 | xnnpack_benchmark( |
| 2334 | name = "channel_shuffle_bench", |
| 2335 | srcs = ["bench/channel-shuffle.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2336 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2337 | ) |
| 2338 | |
| 2339 | xnnpack_benchmark( |
| 2340 | name = "convolution_bench", |
| 2341 | srcs = ["bench/convolution.cc"], |
| 2342 | copts = xnnpack_optional_tflite_copts() + xnnpack_optional_armcl_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 2343 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2344 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps() + xnnpack_optional_armcl_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2345 | ) |
| 2346 | |
| 2347 | xnnpack_benchmark( |
| 2348 | name = "deconvolution_bench", |
| 2349 | srcs = ["bench/deconvolution.cc"], |
| 2350 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 2351 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2352 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2353 | ) |
| 2354 | |
| 2355 | xnnpack_benchmark( |
| 2356 | name = "global_average_pooling_bench", |
| 2357 | srcs = ["bench/global-average-pooling.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2358 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2359 | ) |
| 2360 | |
| 2361 | xnnpack_benchmark( |
| 2362 | name = "max_pooling_bench", |
| 2363 | srcs = ["bench/max-pooling.cc"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2364 | deps = OPERATOR_BENCHMARK_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2365 | ) |
| 2366 | |
| 2367 | xnnpack_benchmark( |
| 2368 | name = "sigmoid_bench", |
| 2369 | srcs = ["bench/sigmoid.cc"], |
Marat Dukhan | c3b9e86 | 2019-11-17 13:18:54 -0800 | [diff] [blame] | 2370 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | ca2ba70 | 2020-04-24 01:31:47 -0700 | [diff] [blame] | 2371 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2372 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2373 | ) |
| 2374 | |
| 2375 | xnnpack_benchmark( |
Marat Dukhan | 95b2243 | 2019-10-30 16:30:14 -0700 | [diff] [blame] | 2376 | name = "prelu_bench", |
| 2377 | srcs = ["bench/prelu.cc"], |
| 2378 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | 8ea0b07 | 2020-04-23 16:12:18 -0700 | [diff] [blame] | 2379 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2380 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 95b2243 | 2019-10-30 16:30:14 -0700 | [diff] [blame] | 2381 | ) |
| 2382 | |
| 2383 | xnnpack_benchmark( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 2384 | name = "softmax_bench", |
| 2385 | srcs = ["bench/softmax.cc"], |
Marat Dukhan | 9c0db96 | 2020-01-28 12:30:14 -0800 | [diff] [blame] | 2386 | copts = xnnpack_optional_tflite_copts(), |
Marat Dukhan | ca2ba70 | 2020-04-24 01:31:47 -0700 | [diff] [blame] | 2387 | tags = ["nowin32"], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 2388 | deps = OPERATOR_BENCHMARK_DEPS + xnnpack_optional_tflite_deps(), |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2389 | ) |
| 2390 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2391 | ############################# End-to-end benchmarks ############################ |
| 2392 | |
| 2393 | cc_library( |
| 2394 | name = "mobilenet_v1", |
| 2395 | srcs = ["models/mobilenet-v1.cc"], |
| 2396 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 2397 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2398 | linkstatic = True, |
| 2399 | deps = [ |
| 2400 | ":XNNPACK", |
| 2401 | "@pthreadpool", |
| 2402 | ], |
| 2403 | ) |
| 2404 | |
| 2405 | cc_library( |
| 2406 | name = "mobilenet_v2", |
| 2407 | srcs = ["models/mobilenet-v2.cc"], |
| 2408 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 2409 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2410 | linkstatic = True, |
| 2411 | deps = [ |
| 2412 | ":XNNPACK", |
| 2413 | "@pthreadpool", |
| 2414 | ], |
| 2415 | ) |
| 2416 | |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2417 | cc_library( |
| 2418 | name = "mobilenet_v3_large", |
| 2419 | srcs = ["models/mobilenet-v3-large.cc"], |
| 2420 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 2421 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2422 | linkstatic = True, |
| 2423 | deps = [ |
| 2424 | ":XNNPACK", |
| 2425 | "@pthreadpool", |
| 2426 | ], |
| 2427 | ) |
| 2428 | |
| 2429 | cc_library( |
| 2430 | name = "mobilenet_v3_small", |
| 2431 | srcs = ["models/mobilenet-v3-small.cc"], |
| 2432 | hdrs = ["models/models.h"], |
Marat Dukhan | a84e40b | 2019-12-11 15:38:03 -0800 | [diff] [blame] | 2433 | copts = xnnpack_std_cxxopts(), |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2434 | linkstatic = True, |
| 2435 | deps = [ |
| 2436 | ":XNNPACK", |
| 2437 | "@pthreadpool", |
| 2438 | ], |
| 2439 | ) |
| 2440 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2441 | xnnpack_benchmark( |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 2442 | name = "f32_dwconv_e2e_bench", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2443 | srcs = [ |
| 2444 | "bench/f32-dwconv-e2e.cc", |
| 2445 | "bench/end2end.h", |
| 2446 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2447 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 2448 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 2449 | ":XNNPACK", |
| 2450 | ":mobilenet_v1", |
| 2451 | ":mobilenet_v2", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2452 | ":mobilenet_v3_large", |
| 2453 | ":mobilenet_v3_small", |
Marat Dukhan | ef4416e | 2019-10-31 13:44:40 -0700 | [diff] [blame] | 2454 | ], |
| 2455 | ) |
| 2456 | |
| 2457 | xnnpack_benchmark( |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 2458 | name = "f32_gemm_e2e_bench", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2459 | srcs = [ |
| 2460 | "bench/f32-gemm-e2e.cc", |
| 2461 | "bench/end2end.h", |
| 2462 | ] + MICROKERNEL_BENCHMARK_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2463 | gcc_copts = ["-Wno-unused-function"], |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 2464 | deps = MICROKERNEL_BENCHMARK_DEPS + [ |
| 2465 | ":XNNPACK", |
| 2466 | ":mobilenet_v1", |
| 2467 | ":mobilenet_v2", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2468 | ":mobilenet_v3_large", |
| 2469 | ":mobilenet_v3_small", |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 2470 | ], |
| 2471 | ) |
| 2472 | |
| 2473 | xnnpack_benchmark( |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2474 | name = "end2end_bench", |
| 2475 | srcs = ["bench/end2end.cc"], |
| 2476 | deps = [ |
| 2477 | ":XNNPACK", |
Frank Barchard | c712fa4 | 2019-10-31 14:00:21 -0700 | [diff] [blame] | 2478 | ":bench_utils", |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2479 | ":mobilenet_v1", |
| 2480 | ":mobilenet_v2", |
Marat Dukhan | c08cdf5 | 2019-12-09 09:17:51 -0800 | [diff] [blame] | 2481 | ":mobilenet_v3_large", |
| 2482 | ":mobilenet_v3_small", |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 2483 | "@pthreadpool", |
| 2484 | ], |
| 2485 | ) |
| 2486 | |
Marat Dukhan | 6adff4e | 2019-10-14 18:32:07 -0700 | [diff] [blame] | 2487 | #################### Accuracy evaluation for math functions #################### |
| 2488 | |
| 2489 | xnnpack_benchmark( |
| 2490 | name = "f32_exp_eval", |
| 2491 | srcs = [ |
| 2492 | "eval/f32-exp.cc", |
| 2493 | "src/xnnpack/AlignedAllocator.h", |
| 2494 | ] + ACCURACY_EVAL_HDRS, |
| 2495 | deps = ACCURACY_EVAL_DEPS, |
| 2496 | ) |
| 2497 | |
Marat Dukhan | 515c977 | 2019-10-17 18:07:57 -0700 | [diff] [blame] | 2498 | xnnpack_benchmark( |
| 2499 | name = "f32_expminus_eval", |
| 2500 | srcs = [ |
| 2501 | "eval/f32-expminus.cc", |
| 2502 | "src/xnnpack/AlignedAllocator.h", |
| 2503 | ] + ACCURACY_EVAL_HDRS, |
| 2504 | deps = ACCURACY_EVAL_DEPS, |
| 2505 | ) |
| 2506 | |
Marat Dukhan | 98ba441 | 2019-10-23 02:14:28 -0700 | [diff] [blame] | 2507 | xnnpack_benchmark( |
| 2508 | name = "f32_extexp_eval", |
| 2509 | srcs = [ |
| 2510 | "eval/f32-extexp.cc", |
| 2511 | "src/xnnpack/AlignedAllocator.h", |
| 2512 | ] + ACCURACY_EVAL_HDRS, |
| 2513 | deps = ACCURACY_EVAL_DEPS, |
| 2514 | ) |
| 2515 | |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 2516 | xnnpack_benchmark( |
| 2517 | name = "f32_sigmoid_eval", |
| 2518 | srcs = [ |
| 2519 | "eval/f32-sigmoid.cc", |
| 2520 | "src/xnnpack/AlignedAllocator.h", |
| 2521 | ] + ACCURACY_EVAL_HDRS, |
| 2522 | deps = ACCURACY_EVAL_DEPS, |
| 2523 | ) |
| 2524 | |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2525 | ######################### Unit tests for micro-kernels ######################### |
| 2526 | |
| 2527 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 2528 | name = "f16_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2529 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 2530 | "test/f16-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2531 | "test/gemm-microkernel-tester.h", |
| 2532 | "src/xnnpack/AlignedAllocator.h", |
| 2533 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2534 | deps = MICROKERNEL_TEST_DEPS, |
| 2535 | ) |
| 2536 | |
| 2537 | xnnpack_unit_test( |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 2538 | name = "f16_spmm_minmax_test", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2539 | srcs = [ |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 2540 | "test/f16-spmm-minmax.cc", |
Marat Dukhan | bdb56f5 | 2020-02-05 21:42:49 -0800 | [diff] [blame] | 2541 | "test/spmm-microkernel-tester.h", |
| 2542 | "src/xnnpack/AlignedAllocator.h", |
| 2543 | ] + MICROKERNEL_TEST_HDRS, |
| 2544 | deps = MICROKERNEL_TEST_DEPS, |
| 2545 | ) |
| 2546 | |
| 2547 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2548 | name = "f32_argmaxpool_test", |
| 2549 | srcs = [ |
| 2550 | "test/f32-argmaxpool.cc", |
| 2551 | "test/argmaxpool-microkernel-tester.h", |
| 2552 | "src/xnnpack/AlignedAllocator.h", |
| 2553 | ] + MICROKERNEL_TEST_HDRS, |
| 2554 | deps = MICROKERNEL_TEST_DEPS, |
| 2555 | ) |
| 2556 | |
| 2557 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2558 | name = "f32_avgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2559 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2560 | "test/f32-avgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2561 | "test/avgpool-microkernel-tester.h", |
| 2562 | "src/xnnpack/AlignedAllocator.h", |
| 2563 | ] + MICROKERNEL_TEST_HDRS, |
| 2564 | deps = MICROKERNEL_TEST_DEPS, |
| 2565 | ) |
| 2566 | |
| 2567 | xnnpack_unit_test( |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 2568 | name = "f32_ibilinear_test", |
Marat Dukhan | 35dacfb | 2019-11-07 19:18:16 -0800 | [diff] [blame] | 2569 | srcs = [ |
Marat Dukhan | 660fd19 | 2020-03-10 04:55:30 -0700 | [diff] [blame] | 2570 | "test/f32-ibilinear.cc", |
| 2571 | "test/ibilinear-microkernel-tester.h", |
Marat Dukhan | 35dacfb | 2019-11-07 19:18:16 -0800 | [diff] [blame] | 2572 | "src/xnnpack/AlignedAllocator.h", |
| 2573 | ] + MICROKERNEL_TEST_HDRS, |
| 2574 | deps = MICROKERNEL_TEST_DEPS, |
| 2575 | ) |
| 2576 | |
| 2577 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2578 | name = "f32_clamp_test", |
| 2579 | srcs = [ |
| 2580 | "test/f32-clamp.cc", |
| 2581 | "test/clamp-microkernel-tester.h", |
| 2582 | ] + MICROKERNEL_TEST_HDRS, |
| 2583 | deps = MICROKERNEL_TEST_DEPS, |
| 2584 | ) |
| 2585 | |
| 2586 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 2587 | name = "f32_igemm_test", |
| 2588 | srcs = [ |
| 2589 | "test/f32-igemm.cc", |
| 2590 | "test/gemm-microkernel-tester.h", |
| 2591 | "src/xnnpack/AlignedAllocator.h", |
| 2592 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2593 | deps = MICROKERNEL_TEST_DEPS, |
| 2594 | ) |
| 2595 | |
| 2596 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2597 | name = "f32_igemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2598 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2599 | "test/f32-igemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2600 | "test/gemm-microkernel-tester.h", |
| 2601 | "src/xnnpack/AlignedAllocator.h", |
| 2602 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 2603 | # Work-around for "too many sections" error |
| 2604 | mingw_copts = ["-Wa,-mbig-obj"], |
| 2605 | msys_copts = ["-Wa,-mbig-obj"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2606 | deps = MICROKERNEL_TEST_DEPS, |
| 2607 | ) |
| 2608 | |
| 2609 | xnnpack_unit_test( |
| 2610 | name = "f32_conv_hwc_test", |
| 2611 | srcs = [ |
| 2612 | "test/f32-conv-hwc.cc", |
| 2613 | "test/conv-hwc-microkernel-tester.h", |
| 2614 | "src/xnnpack/AlignedAllocator.h", |
| 2615 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2616 | deps = MICROKERNEL_TEST_DEPS, |
| 2617 | ) |
| 2618 | |
| 2619 | xnnpack_unit_test( |
| 2620 | name = "f32_conv_hwc2spchw_test", |
| 2621 | srcs = [ |
| 2622 | "test/f32-conv-hwc2spchw.cc", |
| 2623 | "test/conv-hwc2spchw-microkernel-tester.h", |
| 2624 | "src/xnnpack/AlignedAllocator.h", |
| 2625 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2626 | deps = MICROKERNEL_TEST_DEPS, |
| 2627 | ) |
| 2628 | |
| 2629 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 2630 | name = "f32_dwconv_test", |
| 2631 | srcs = [ |
| 2632 | "test/f32-dwconv.cc", |
| 2633 | "test/dwconv-microkernel-tester.h", |
| 2634 | "src/xnnpack/AlignedAllocator.h", |
| 2635 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2636 | deps = MICROKERNEL_TEST_DEPS, |
| 2637 | ) |
| 2638 | |
| 2639 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2640 | name = "f32_dwconv_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2641 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2642 | "test/f32-dwconv-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2643 | "test/dwconv-microkernel-tester.h", |
| 2644 | "src/xnnpack/AlignedAllocator.h", |
| 2645 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2646 | deps = MICROKERNEL_TEST_DEPS, |
| 2647 | ) |
| 2648 | |
| 2649 | xnnpack_unit_test( |
| 2650 | name = "f32_dwconv_spchw_test", |
| 2651 | srcs = [ |
| 2652 | "test/f32-dwconv-spchw.cc", |
| 2653 | "test/dwconv-spchw-microkernel-tester.h", |
| 2654 | "src/xnnpack/AlignedAllocator.h", |
| 2655 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2656 | deps = MICROKERNEL_TEST_DEPS, |
| 2657 | ) |
| 2658 | |
| 2659 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2660 | name = "f32_gavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2661 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2662 | "test/f32-gavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2663 | "test/gavgpool-microkernel-tester.h", |
| 2664 | "src/xnnpack/AlignedAllocator.h", |
| 2665 | ] + MICROKERNEL_TEST_HDRS, |
| 2666 | deps = MICROKERNEL_TEST_DEPS, |
| 2667 | ) |
| 2668 | |
| 2669 | xnnpack_unit_test( |
| 2670 | name = "f32_gavgpool_spchw_test", |
| 2671 | srcs = [ |
| 2672 | "test/f32-gavgpool-spchw.cc", |
| 2673 | "test/gavgpool-spchw-microkernel-tester.h", |
| 2674 | "src/xnnpack/AlignedAllocator.h", |
| 2675 | ] + MICROKERNEL_TEST_HDRS, |
| 2676 | deps = MICROKERNEL_TEST_DEPS, |
| 2677 | ) |
| 2678 | |
| 2679 | xnnpack_unit_test( |
Marat Dukhan | 163a7e6 | 2020-04-09 04:19:26 -0700 | [diff] [blame] | 2680 | name = "f32_gemm_test", |
| 2681 | srcs = [ |
| 2682 | "test/f32-gemm.cc", |
| 2683 | "test/gemm-microkernel-tester.h", |
| 2684 | "src/xnnpack/AlignedAllocator.h", |
| 2685 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2686 | deps = MICROKERNEL_TEST_DEPS, |
| 2687 | ) |
| 2688 | |
| 2689 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2690 | name = "f32_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2691 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2692 | "test/f32-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2693 | "test/gemm-microkernel-tester.h", |
| 2694 | "src/xnnpack/AlignedAllocator.h", |
| 2695 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2696 | deps = MICROKERNEL_TEST_DEPS, |
| 2697 | ) |
| 2698 | |
| 2699 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2700 | name = "f32_gemminc_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2701 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2702 | "test/f32-gemminc-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2703 | "test/gemm-microkernel-tester.h", |
| 2704 | "src/xnnpack/AlignedAllocator.h", |
| 2705 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2706 | deps = MICROKERNEL_TEST_DEPS, |
| 2707 | ) |
| 2708 | |
| 2709 | xnnpack_unit_test( |
| 2710 | name = "f32_hswish_test", |
| 2711 | srcs = [ |
| 2712 | "test/f32-hswish.cc", |
| 2713 | "test/hswish-microkernel-tester.h", |
| 2714 | ] + MICROKERNEL_TEST_HDRS, |
| 2715 | deps = MICROKERNEL_TEST_DEPS, |
| 2716 | ) |
| 2717 | |
| 2718 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2719 | name = "f32_maxpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2720 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2721 | "test/f32-maxpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2722 | "test/maxpool-microkernel-tester.h", |
| 2723 | ] + MICROKERNEL_TEST_HDRS, |
| 2724 | deps = MICROKERNEL_TEST_DEPS, |
| 2725 | ) |
| 2726 | |
| 2727 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2728 | name = "f32_pavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2729 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2730 | "test/f32-pavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2731 | "test/avgpool-microkernel-tester.h", |
| 2732 | "src/xnnpack/AlignedAllocator.h", |
| 2733 | ] + MICROKERNEL_TEST_HDRS, |
| 2734 | deps = MICROKERNEL_TEST_DEPS, |
| 2735 | ) |
| 2736 | |
| 2737 | xnnpack_unit_test( |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2738 | name = "f32_ppmm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2739 | srcs = [ |
Marat Dukhan | 1c58711 | 2020-04-08 20:04:28 -0700 | [diff] [blame] | 2740 | "test/f32-ppmm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2741 | "test/gemm-microkernel-tester.h", |
| 2742 | "src/xnnpack/AlignedAllocator.h", |
| 2743 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2744 | deps = MICROKERNEL_TEST_DEPS, |
| 2745 | ) |
| 2746 | |
| 2747 | xnnpack_unit_test( |
| 2748 | name = "f32_prelu_test", |
| 2749 | srcs = [ |
| 2750 | "test/f32-prelu.cc", |
| 2751 | "test/prelu-microkernel-tester.h", |
| 2752 | "src/xnnpack/AlignedAllocator.h", |
| 2753 | ] + MICROKERNEL_TEST_HDRS, |
| 2754 | deps = MICROKERNEL_TEST_DEPS, |
| 2755 | ) |
| 2756 | |
| 2757 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2758 | name = "f32_raddexpminusmax_test", |
| 2759 | srcs = [ |
| 2760 | "test/f32-raddexpminusmax.cc", |
| 2761 | "test/raddexpminusmax-microkernel-tester.h", |
| 2762 | ] + MICROKERNEL_TEST_HDRS, |
| 2763 | deps = MICROKERNEL_TEST_DEPS, |
| 2764 | ) |
| 2765 | |
| 2766 | xnnpack_unit_test( |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 2767 | name = "f32_raddextexp_test", |
| 2768 | srcs = [ |
| 2769 | "test/f32-raddextexp.cc", |
| 2770 | "test/raddextexp-microkernel-tester.h", |
| 2771 | ] + MICROKERNEL_TEST_HDRS, |
| 2772 | deps = MICROKERNEL_TEST_DEPS, |
| 2773 | ) |
| 2774 | |
| 2775 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2776 | name = "f32_raddstoreexpminusmax_test", |
| 2777 | srcs = [ |
| 2778 | "test/f32-raddstoreexpminusmax.cc", |
| 2779 | "test/raddstoreexpminusmax-microkernel-tester.h", |
| 2780 | ] + MICROKERNEL_TEST_HDRS, |
| 2781 | deps = MICROKERNEL_TEST_DEPS, |
| 2782 | ) |
| 2783 | |
| 2784 | xnnpack_unit_test( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2785 | name = "f32_rmax_test", |
| 2786 | srcs = [ |
| 2787 | "test/f32-rmax.cc", |
| 2788 | "test/rmax-microkernel-tester.h", |
| 2789 | ] + MICROKERNEL_TEST_HDRS, |
| 2790 | deps = MICROKERNEL_TEST_DEPS, |
| 2791 | ) |
| 2792 | |
| 2793 | xnnpack_unit_test( |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 2794 | name = "f32_sigmoid_test", |
| 2795 | srcs = [ |
| 2796 | "test/f32-sigmoid.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2797 | "test/vunary-microkernel-tester.h", |
Marat Dukhan | 346a9e5 | 2019-11-15 09:06:30 -0800 | [diff] [blame] | 2798 | ] + MICROKERNEL_TEST_HDRS, |
| 2799 | deps = MICROKERNEL_TEST_DEPS, |
| 2800 | ) |
| 2801 | |
| 2802 | xnnpack_unit_test( |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 2803 | name = "f32_spmm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2804 | srcs = [ |
Marat Dukhan | 355ab43 | 2020-04-09 19:01:52 -0700 | [diff] [blame] | 2805 | "test/f32-spmm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2806 | "test/spmm-microkernel-tester.h", |
| 2807 | "src/xnnpack/AlignedAllocator.h", |
| 2808 | ] + MICROKERNEL_TEST_HDRS, |
| 2809 | deps = MICROKERNEL_TEST_DEPS, |
| 2810 | ) |
| 2811 | |
| 2812 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2813 | name = "f32_vadd_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2814 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2815 | "test/f32-vadd-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2816 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2817 | ] + MICROKERNEL_TEST_HDRS, |
| 2818 | deps = MICROKERNEL_TEST_DEPS, |
| 2819 | ) |
| 2820 | |
| 2821 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2822 | name = "f32_vaddc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2823 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2824 | "test/f32-vaddc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2825 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2826 | ] + MICROKERNEL_TEST_HDRS, |
| 2827 | deps = MICROKERNEL_TEST_DEPS, |
| 2828 | ) |
| 2829 | |
| 2830 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2831 | name = "f32_vdiv_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 2832 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2833 | "test/f32-vdiv-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 2834 | "test/vbinary-microkernel-tester.h", |
| 2835 | ] + MICROKERNEL_TEST_HDRS, |
| 2836 | deps = MICROKERNEL_TEST_DEPS, |
| 2837 | ) |
| 2838 | |
| 2839 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2840 | name = "f32_vdivc_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 2841 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2842 | "test/f32-vdivc-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 2843 | "test/vbinaryc-microkernel-tester.h", |
| 2844 | ] + MICROKERNEL_TEST_HDRS, |
| 2845 | deps = MICROKERNEL_TEST_DEPS, |
| 2846 | ) |
| 2847 | |
| 2848 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2849 | name = "f32_vrdivc_minmax_test", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 2850 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2851 | "test/f32-vrdivc-minmax.cc", |
Marat Dukhan | 77ca630 | 2019-12-06 12:48:15 -0800 | [diff] [blame] | 2852 | "test/vbinaryc-microkernel-tester.h", |
| 2853 | ] + MICROKERNEL_TEST_HDRS, |
| 2854 | deps = MICROKERNEL_TEST_DEPS, |
| 2855 | ) |
| 2856 | |
| 2857 | xnnpack_unit_test( |
Marat Dukhan | 403b7d4 | 2019-12-05 12:49:11 -0800 | [diff] [blame] | 2858 | name = "f32_vmax_test", |
| 2859 | srcs = [ |
| 2860 | "test/f32-vmax.cc", |
| 2861 | "test/vbinary-microkernel-tester.h", |
| 2862 | ] + MICROKERNEL_TEST_HDRS, |
| 2863 | deps = MICROKERNEL_TEST_DEPS, |
| 2864 | ) |
| 2865 | |
| 2866 | xnnpack_unit_test( |
| 2867 | name = "f32_vmaxc_test", |
| 2868 | srcs = [ |
| 2869 | "test/f32-vmaxc.cc", |
| 2870 | "test/vbinaryc-microkernel-tester.h", |
| 2871 | ] + MICROKERNEL_TEST_HDRS, |
| 2872 | deps = MICROKERNEL_TEST_DEPS, |
| 2873 | ) |
| 2874 | |
| 2875 | xnnpack_unit_test( |
| 2876 | name = "f32_vmin_test", |
| 2877 | srcs = [ |
| 2878 | "test/f32-vmin.cc", |
| 2879 | "test/vbinary-microkernel-tester.h", |
| 2880 | ] + MICROKERNEL_TEST_HDRS, |
| 2881 | deps = MICROKERNEL_TEST_DEPS, |
| 2882 | ) |
| 2883 | |
| 2884 | xnnpack_unit_test( |
| 2885 | name = "f32_vminc_test", |
| 2886 | srcs = [ |
| 2887 | "test/f32-vminc.cc", |
| 2888 | "test/vbinaryc-microkernel-tester.h", |
| 2889 | ] + MICROKERNEL_TEST_HDRS, |
| 2890 | deps = MICROKERNEL_TEST_DEPS, |
| 2891 | ) |
| 2892 | |
| 2893 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2894 | name = "f32_vmul_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2895 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2896 | "test/f32-vmul-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2897 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2898 | ] + MICROKERNEL_TEST_HDRS, |
| 2899 | deps = MICROKERNEL_TEST_DEPS, |
| 2900 | ) |
| 2901 | |
| 2902 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2903 | name = "f32_vmulc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2904 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2905 | "test/f32-vmulc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2906 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2907 | ] + MICROKERNEL_TEST_HDRS, |
| 2908 | deps = MICROKERNEL_TEST_DEPS, |
| 2909 | ) |
| 2910 | |
| 2911 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2912 | name = "f32_vmulcaddc_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2913 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2914 | "test/f32-vmulcaddc-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2915 | "test/vmulcaddc-microkernel-tester.h", |
| 2916 | "src/xnnpack/AlignedAllocator.h", |
| 2917 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2918 | deps = MICROKERNEL_TEST_DEPS, |
| 2919 | ) |
| 2920 | |
| 2921 | xnnpack_unit_test( |
Marat Dukhan | 05ac8e3 | 2019-10-21 15:39:33 -0700 | [diff] [blame] | 2922 | name = "f32_vscale_test", |
| 2923 | srcs = [ |
| 2924 | "test/f32-vscale.cc", |
| 2925 | "test/vscale-microkernel-tester.h", |
| 2926 | ] + MICROKERNEL_TEST_HDRS, |
| 2927 | deps = MICROKERNEL_TEST_DEPS, |
| 2928 | ) |
| 2929 | |
| 2930 | xnnpack_unit_test( |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2931 | name = "f32_vscaleexpminusmax_test", |
| 2932 | srcs = [ |
| 2933 | "test/f32-vscaleexpminusmax.cc", |
| 2934 | "test/vscaleexpminusmax-microkernel-tester.h", |
| 2935 | ] + MICROKERNEL_TEST_HDRS, |
| 2936 | deps = MICROKERNEL_TEST_DEPS, |
| 2937 | ) |
| 2938 | |
| 2939 | xnnpack_unit_test( |
Marat Dukhan | 6f8d4d3 | 2019-10-25 17:07:09 -0700 | [diff] [blame] | 2940 | name = "f32_vscaleextexp_test", |
| 2941 | srcs = [ |
| 2942 | "test/f32-vscaleextexp.cc", |
| 2943 | "test/vscaleextexp-microkernel-tester.h", |
| 2944 | ] + MICROKERNEL_TEST_HDRS, |
| 2945 | deps = MICROKERNEL_TEST_DEPS, |
| 2946 | ) |
| 2947 | |
| 2948 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2949 | name = "f32_vsub_minmax_test", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2950 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2951 | "test/f32-vsub-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2952 | "test/vbinary-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2953 | ] + MICROKERNEL_TEST_HDRS, |
| 2954 | deps = MICROKERNEL_TEST_DEPS, |
| 2955 | ) |
| 2956 | |
| 2957 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2958 | name = "f32_vsubc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2959 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2960 | "test/f32-vsubc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2961 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2962 | ] + MICROKERNEL_TEST_HDRS, |
| 2963 | deps = MICROKERNEL_TEST_DEPS, |
| 2964 | ) |
| 2965 | |
| 2966 | xnnpack_unit_test( |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2967 | name = "f32_vrsubc_minmax_test", |
Marat Dukhan | c07cb7f | 2019-11-14 15:32:05 -0800 | [diff] [blame] | 2968 | srcs = [ |
Marat Dukhan | 91cd2b7 | 2020-04-09 23:57:31 -0700 | [diff] [blame] | 2969 | "test/f32-vrsubc-minmax.cc", |
Marat Dukhan | 1e782c4 | 2019-11-21 17:02:40 -0800 | [diff] [blame] | 2970 | "test/vbinaryc-microkernel-tester.h", |
Marat Dukhan | 9757953 | 2019-10-18 16:40:39 -0700 | [diff] [blame] | 2971 | ] + MICROKERNEL_TEST_HDRS, |
| 2972 | deps = MICROKERNEL_TEST_DEPS, |
| 2973 | ) |
| 2974 | |
| 2975 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2976 | name = "q8_avgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2977 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 2978 | "test/q8-avgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2979 | "test/avgpool-microkernel-tester.h", |
| 2980 | "src/xnnpack/AlignedAllocator.h", |
| 2981 | ] + MICROKERNEL_TEST_HDRS, |
| 2982 | deps = MICROKERNEL_TEST_DEPS, |
| 2983 | ) |
| 2984 | |
| 2985 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 2986 | name = "q8_igemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2987 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 2988 | "test/q8-igemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2989 | "test/gemm-microkernel-tester.h", |
| 2990 | "src/xnnpack/AlignedAllocator.h", |
| 2991 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 2992 | deps = MICROKERNEL_TEST_DEPS, |
| 2993 | ) |
| 2994 | |
| 2995 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 2996 | name = "q8_dwconv_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2997 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 2998 | "test/q8-dwconv-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 2999 | "test/dwconv-microkernel-tester.h", |
| 3000 | "src/xnnpack/AlignedAllocator.h", |
| 3001 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3002 | deps = MICROKERNEL_TEST_DEPS, |
| 3003 | ) |
| 3004 | |
| 3005 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3006 | name = "q8_gavgpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3007 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3008 | "test/q8-gavgpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3009 | "test/gavgpool-microkernel-tester.h", |
| 3010 | "src/xnnpack/AlignedAllocator.h", |
| 3011 | ] + MICROKERNEL_TEST_HDRS, |
| 3012 | deps = MICROKERNEL_TEST_DEPS, |
| 3013 | ) |
| 3014 | |
| 3015 | xnnpack_unit_test( |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3016 | name = "q8_gemm_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3017 | srcs = [ |
Marat Dukhan | de06f49 | 2020-04-09 00:19:31 -0700 | [diff] [blame] | 3018 | "test/q8-gemm-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3019 | "test/gemm-microkernel-tester.h", |
| 3020 | "src/xnnpack/AlignedAllocator.h", |
| 3021 | ] + WEIGHTS_PACK_HDRS + MICROKERNEL_TEST_HDRS, |
| 3022 | deps = MICROKERNEL_TEST_DEPS, |
| 3023 | ) |
| 3024 | |
| 3025 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3026 | name = "q8_vadd_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3027 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3028 | "test/q8-vadd-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3029 | "test/vadd-microkernel-tester.h", |
| 3030 | ] + MICROKERNEL_TEST_HDRS, |
| 3031 | deps = MICROKERNEL_TEST_DEPS, |
| 3032 | ) |
| 3033 | |
| 3034 | xnnpack_unit_test( |
| 3035 | name = "u8_clamp_test", |
| 3036 | srcs = [ |
| 3037 | "test/u8-clamp.cc", |
| 3038 | "test/clamp-microkernel-tester.h", |
| 3039 | ] + MICROKERNEL_TEST_HDRS, |
| 3040 | deps = MICROKERNEL_TEST_DEPS, |
| 3041 | ) |
| 3042 | |
| 3043 | xnnpack_unit_test( |
| 3044 | name = "u8_lut32norm_test", |
| 3045 | srcs = [ |
| 3046 | "test/u8-lut32norm.cc", |
| 3047 | "test/lut-norm-microkernel-tester.h", |
| 3048 | ] + MICROKERNEL_TEST_HDRS, |
| 3049 | deps = MICROKERNEL_TEST_DEPS, |
| 3050 | ) |
| 3051 | |
| 3052 | xnnpack_unit_test( |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3053 | name = "u8_maxpool_minmax_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3054 | srcs = [ |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 3055 | "test/u8-maxpool-minmax.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3056 | "test/maxpool-microkernel-tester.h", |
| 3057 | ] + MICROKERNEL_TEST_HDRS, |
| 3058 | deps = MICROKERNEL_TEST_DEPS, |
| 3059 | ) |
| 3060 | |
| 3061 | xnnpack_unit_test( |
| 3062 | name = "u8_rmax_test", |
| 3063 | srcs = [ |
| 3064 | "test/u8-rmax.cc", |
| 3065 | "test/rmax-microkernel-tester.h", |
| 3066 | ] + MICROKERNEL_TEST_HDRS, |
| 3067 | deps = MICROKERNEL_TEST_DEPS, |
| 3068 | ) |
| 3069 | |
| 3070 | xnnpack_unit_test( |
| 3071 | name = "x32_packx_test", |
| 3072 | srcs = [ |
| 3073 | "test/x32-packx.cc", |
| 3074 | "test/pack-microkernel-tester.h", |
| 3075 | "src/xnnpack/AlignedAllocator.h", |
| 3076 | ] + MICROKERNEL_TEST_HDRS, |
| 3077 | deps = MICROKERNEL_TEST_DEPS, |
| 3078 | ) |
| 3079 | |
| 3080 | xnnpack_unit_test( |
| 3081 | name = "x32_pad_test", |
| 3082 | srcs = [ |
| 3083 | "test/x32-pad.cc", |
| 3084 | "test/pad-microkernel-tester.h", |
| 3085 | ] + MICROKERNEL_TEST_HDRS, |
| 3086 | deps = MICROKERNEL_TEST_DEPS, |
| 3087 | ) |
| 3088 | |
| 3089 | xnnpack_unit_test( |
| 3090 | name = "x32_unpool_test", |
| 3091 | srcs = [ |
| 3092 | "test/x32-unpool.cc", |
| 3093 | "test/unpool-microkernel-tester.h", |
| 3094 | ] + MICROKERNEL_TEST_HDRS, |
| 3095 | deps = MICROKERNEL_TEST_DEPS, |
| 3096 | ) |
| 3097 | |
| 3098 | xnnpack_unit_test( |
| 3099 | name = "x32_zip_test", |
| 3100 | srcs = [ |
| 3101 | "test/x32-zip.cc", |
| 3102 | "test/zip-microkernel-tester.h", |
| 3103 | ] + MICROKERNEL_TEST_HDRS, |
| 3104 | deps = MICROKERNEL_TEST_DEPS, |
| 3105 | ) |
| 3106 | |
| 3107 | xnnpack_unit_test( |
| 3108 | name = "x8_lut_test", |
| 3109 | srcs = [ |
| 3110 | "test/x8-lut.cc", |
| 3111 | "test/lut-microkernel-tester.h", |
| 3112 | ] + MICROKERNEL_TEST_HDRS, |
| 3113 | deps = MICROKERNEL_TEST_DEPS, |
| 3114 | ) |
| 3115 | |
| 3116 | xnnpack_unit_test( |
| 3117 | name = "x8_zip_test", |
| 3118 | srcs = [ |
| 3119 | "test/x8-zip.cc", |
| 3120 | "test/zip-microkernel-tester.h", |
| 3121 | ] + MICROKERNEL_TEST_HDRS, |
| 3122 | deps = MICROKERNEL_TEST_DEPS, |
| 3123 | ) |
| 3124 | |
Marat Dukhan | fe7acb6 | 2020-03-09 19:30:05 -0700 | [diff] [blame] | 3125 | xnnpack_unit_test( |
| 3126 | name = "requantization_test", |
| 3127 | srcs = [ |
| 3128 | "src/xnnpack/requantization-stubs.h", |
| 3129 | "test/requantization.cc", |
| 3130 | "test/requantization-tester.h", |
| 3131 | ] + MICROKERNEL_TEST_HDRS, |
| 3132 | deps = MICROKERNEL_TEST_DEPS, |
| 3133 | ) |
| 3134 | |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 3135 | ########################## Size tests for the library ######################### |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3136 | |
| 3137 | xnnpack_binary( |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 3138 | name = "operator_size_test", |
| 3139 | srcs = ["test/operator-size.c"], |
Marat Dukhan | 8fe54e4 | 2019-10-10 14:12:59 -0700 | [diff] [blame] | 3140 | deps = [":xnnpack_operators_nhwc_f32"], |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3141 | ) |
| 3142 | |
Marat Dukhan | 20c3b92 | 2020-03-10 03:45:06 -0700 | [diff] [blame] | 3143 | xnnpack_binary( |
| 3144 | name = "subgraph_size_test", |
| 3145 | srcs = ["test/subgraph-size.c"], |
| 3146 | deps = [":XNNPACK"], |
| 3147 | ) |
| 3148 | |
| 3149 | ########################### Unit tests for operators ########################## |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3150 | |
| 3151 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3152 | name = "add_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3153 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3154 | "test/add-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3155 | "test/add-operator-tester.h", |
| 3156 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3157 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3158 | ) |
| 3159 | |
| 3160 | xnnpack_unit_test( |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 3161 | name = "add_nd_test", |
| 3162 | srcs = [ |
| 3163 | "test/add-nd.cc", |
| 3164 | "test/binary-elementwise-operator-tester.h", |
| 3165 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3166 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 3167 | ) |
| 3168 | |
| 3169 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3170 | name = "argmax_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3171 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3172 | "test/argmax-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3173 | "test/argmax-pooling-operator-tester.h", |
| 3174 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3175 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3176 | ) |
| 3177 | |
| 3178 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3179 | name = "average_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3180 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3181 | "test/average-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3182 | "test/average-pooling-operator-tester.h", |
| 3183 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3184 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3185 | ) |
| 3186 | |
| 3187 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3188 | name = "channel_pad_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3189 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3190 | "test/channel-pad-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3191 | "test/channel-pad-operator-tester.h", |
| 3192 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3193 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3194 | ) |
| 3195 | |
| 3196 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3197 | name = "channel_shuffle_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3198 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3199 | "test/channel-shuffle-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3200 | "test/channel-shuffle-operator-tester.h", |
| 3201 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3202 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3203 | ) |
| 3204 | |
| 3205 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3206 | name = "clamp_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3207 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3208 | "test/clamp-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3209 | "test/clamp-operator-tester.h", |
| 3210 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3211 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3212 | ) |
| 3213 | |
| 3214 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3215 | name = "convolution_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3216 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3217 | "test/convolution-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3218 | "test/convolution-operator-tester.h", |
| 3219 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3220 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3221 | ) |
| 3222 | |
| 3223 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3224 | name = "convolution_nchw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3225 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3226 | "test/convolution-nchw.cc", |
| 3227 | "test/convolution-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3228 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3229 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3230 | ) |
| 3231 | |
| 3232 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3233 | name = "deconvolution_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3234 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3235 | "test/deconvolution-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3236 | "test/deconvolution-operator-tester.h", |
| 3237 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3238 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3239 | ) |
| 3240 | |
| 3241 | xnnpack_unit_test( |
Marat Dukhan | 6918050 | 2019-12-06 15:00:31 -0800 | [diff] [blame] | 3242 | name = "divide_nd_test", |
| 3243 | srcs = [ |
| 3244 | "test/binary-elementwise-operator-tester.h", |
| 3245 | "test/divide-nd.cc", |
| 3246 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3247 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 6918050 | 2019-12-06 15:00:31 -0800 | [diff] [blame] | 3248 | ) |
| 3249 | |
| 3250 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3251 | name = "fully_connected_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3252 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3253 | "test/fully-connected-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3254 | "test/fully-connected-operator-tester.h", |
| 3255 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3256 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3257 | ) |
| 3258 | |
| 3259 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3260 | name = "global_average_pooling_nwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3261 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3262 | "test/global-average-pooling-nwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3263 | "test/global-average-pooling-operator-tester.h", |
| 3264 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3265 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3266 | ) |
| 3267 | |
| 3268 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3269 | name = "global_average_pooling_ncw_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3270 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3271 | "test/global-average-pooling-ncw.cc", |
| 3272 | "test/global-average-pooling-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3273 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3274 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3275 | ) |
| 3276 | |
| 3277 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3278 | name = "hardswish_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3279 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3280 | "test/hardswish-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3281 | "test/hardswish-operator-tester.h", |
| 3282 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3283 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3284 | ) |
| 3285 | |
| 3286 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3287 | name = "leaky_relu_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3288 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3289 | "test/leaky-relu-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3290 | "test/leaky-relu-operator-tester.h", |
| 3291 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3292 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3293 | ) |
| 3294 | |
| 3295 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3296 | name = "max_pooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3297 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3298 | "test/max-pooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3299 | "test/max-pooling-operator-tester.h", |
| 3300 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3301 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3302 | ) |
| 3303 | |
| 3304 | xnnpack_unit_test( |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 3305 | name = "maximum_nd_test", |
| 3306 | srcs = [ |
| 3307 | "test/binary-elementwise-operator-tester.h", |
| 3308 | "test/maximum-nd.cc", |
| 3309 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3310 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 3311 | ) |
| 3312 | |
| 3313 | xnnpack_unit_test( |
| 3314 | name = "minimum_nd_test", |
| 3315 | srcs = [ |
| 3316 | "test/binary-elementwise-operator-tester.h", |
| 3317 | "test/minimum-nd.cc", |
| 3318 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3319 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 79e7f84 | 2019-12-05 14:35:50 -0800 | [diff] [blame] | 3320 | ) |
| 3321 | |
| 3322 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3323 | name = "multiply_nd_test", |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 3324 | srcs = [ |
Marat Dukhan | b1a0fc3 | 2019-12-02 19:32:02 -0800 | [diff] [blame] | 3325 | "test/binary-elementwise-operator-tester.h", |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3326 | "test/multiply-nd.cc", |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 3327 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3328 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | ca2733c | 2019-11-15 23:21:17 -0800 | [diff] [blame] | 3329 | ) |
| 3330 | |
| 3331 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3332 | name = "prelu_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3333 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3334 | "test/prelu-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3335 | "test/prelu-operator-tester.h", |
| 3336 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3337 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3338 | ) |
| 3339 | |
| 3340 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3341 | name = "resize_bilinear_nhwc_test", |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 3342 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3343 | "test/resize-bilinear-nhwc.cc", |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 3344 | "test/resize-bilinear-operator-tester.h", |
| 3345 | ] + OPERATOR_TEST_PARAMS_HDRS, |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3346 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 6972249 | 2019-11-11 19:55:50 -0800 | [diff] [blame] | 3347 | ) |
| 3348 | |
| 3349 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3350 | name = "sigmoid_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3351 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3352 | "test/sigmoid-nc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3353 | "test/sigmoid-operator-tester.h", |
| 3354 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3355 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3356 | ) |
| 3357 | |
| 3358 | xnnpack_unit_test( |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 3359 | name = "softmax_nc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3360 | srcs = [ |
Marat Dukhan | fd8e689 | 2020-01-27 15:25:25 -0800 | [diff] [blame] | 3361 | "test/softmax-nc.cc", |
| 3362 | "test/softmax-operator-tester.h", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3363 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3364 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3365 | ) |
| 3366 | |
| 3367 | xnnpack_unit_test( |
Marat Dukhan | 05f3f6d | 2019-12-03 15:13:53 -0800 | [diff] [blame] | 3368 | name = "subtract_nd_test", |
| 3369 | srcs = [ |
| 3370 | "test/binary-elementwise-operator-tester.h", |
| 3371 | "test/subtract-nd.cc", |
| 3372 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3373 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 05f3f6d | 2019-12-03 15:13:53 -0800 | [diff] [blame] | 3374 | ) |
| 3375 | |
| 3376 | xnnpack_unit_test( |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3377 | name = "unpooling_nhwc_test", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3378 | srcs = [ |
Marat Dukhan | efc47b8 | 2019-11-18 09:25:38 -0800 | [diff] [blame] | 3379 | "test/unpooling-nhwc.cc", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3380 | "test/unpooling-operator-tester.h", |
| 3381 | ], |
Marat Dukhan | 1b35463 | 2020-03-23 12:50:22 -0700 | [diff] [blame] | 3382 | deps = OPERATOR_TEST_DEPS, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3383 | ) |
| 3384 | |
| 3385 | ############################# Build configurations ############################# |
| 3386 | |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 3387 | # Enables usage of assembly kernels. |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3388 | config_setting( |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 3389 | name = "xnn_enable_assembly_explicit_true", |
| 3390 | define_values = {"xnn_enable_assembly": "true"}, |
| 3391 | ) |
| 3392 | |
| 3393 | # Disables usage of assembly kernels. |
| 3394 | config_setting( |
| 3395 | name = "xnn_enable_assembly_explicit_false", |
| 3396 | define_values = {"xnn_enable_assembly": "false"}, |
| 3397 | ) |
| 3398 | |
Marat Dukhan | 05702cf | 2020-03-26 15:41:33 -0700 | [diff] [blame] | 3399 | # Disables usage of HMP-aware optimizations. |
| 3400 | config_setting( |
| 3401 | name = "xnn_enable_hmp_explicit_false", |
| 3402 | define_values = {"xnn_enable_hmp": "false"}, |
| 3403 | ) |
| 3404 | |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 3405 | # Builds with -c dbg |
| 3406 | config_setting( |
| 3407 | name = "debug_build", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3408 | values = { |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 3409 | "compilation_mode": "dbg", |
| 3410 | }, |
| 3411 | ) |
| 3412 | |
| 3413 | # Builds with -c opt |
| 3414 | config_setting( |
| 3415 | name = "optimized_build", |
| 3416 | values = { |
| 3417 | "compilation_mode": "opt", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3418 | }, |
| 3419 | ) |
| 3420 | |
| 3421 | config_setting( |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 3422 | name = "linux_k8", |
| 3423 | values = {"cpu": "k8"}, |
| 3424 | ) |
| 3425 | |
| 3426 | config_setting( |
Marat Dukhan | 4e45e66 | 2019-10-03 15:40:24 -0700 | [diff] [blame] | 3427 | name = "linux_aarch64", |
Marat Dukhan | b864235 | 2019-10-30 15:43:02 -0700 | [diff] [blame] | 3428 | values = {"cpu": "aarch64"}, |
Marat Dukhan | 4e45e66 | 2019-10-03 15:40:24 -0700 | [diff] [blame] | 3429 | ) |
| 3430 | |
| 3431 | config_setting( |
Terry Heo | 68eef3f | 2020-04-13 22:53:52 -0700 | [diff] [blame] | 3432 | name = "linux_armhf", |
| 3433 | values = {"cpu": "armhf"}, |
| 3434 | ) |
| 3435 | |
| 3436 | config_setting( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3437 | name = "android", |
| 3438 | values = {"crosstool_top": "//external:android/crosstool"}, |
| 3439 | ) |
| 3440 | |
| 3441 | config_setting( |
| 3442 | name = "android_armv7", |
| 3443 | values = { |
| 3444 | "crosstool_top": "//external:android/crosstool", |
| 3445 | "cpu": "armeabi-v7a", |
| 3446 | }, |
| 3447 | ) |
| 3448 | |
| 3449 | config_setting( |
| 3450 | name = "android_arm64", |
| 3451 | values = { |
| 3452 | "crosstool_top": "//external:android/crosstool", |
| 3453 | "cpu": "arm64-v8a", |
| 3454 | }, |
| 3455 | ) |
| 3456 | |
| 3457 | config_setting( |
| 3458 | name = "android_x86", |
| 3459 | values = { |
| 3460 | "crosstool_top": "//external:android/crosstool", |
| 3461 | "cpu": "x86", |
| 3462 | }, |
| 3463 | ) |
| 3464 | |
| 3465 | config_setting( |
| 3466 | name = "android_x86_64", |
| 3467 | values = { |
| 3468 | "crosstool_top": "//external:android/crosstool", |
| 3469 | "cpu": "x86_64", |
| 3470 | }, |
| 3471 | ) |
| 3472 | |
| 3473 | config_setting( |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3474 | name = "windows_x86_64", |
| 3475 | values = {"cpu": "x64_windows"}, |
Marat Dukhan | 9fe932e | 2020-04-11 17:14:15 -0700 | [diff] [blame] | 3476 | ) |
| 3477 | |
| 3478 | config_setting( |
Marat Dukhan | 10a3808 | 2020-04-17 03:58:35 -0700 | [diff] [blame] | 3479 | name = "windows_x86_64_clang", |
| 3480 | values = { |
| 3481 | "compiler": "clang-cl", |
| 3482 | "cpu": "x64_windows", |
| 3483 | }, |
| 3484 | ) |
| 3485 | |
| 3486 | config_setting( |
| 3487 | name = "windows_x86_64_mingw", |
| 3488 | values = { |
| 3489 | "compiler": "mingw-gcc", |
| 3490 | "cpu": "x64_windows", |
| 3491 | }, |
| 3492 | ) |
| 3493 | |
| 3494 | config_setting( |
| 3495 | name = "windows_x86_64_msys", |
| 3496 | values = { |
| 3497 | "compiler": "msys-gcc", |
| 3498 | "cpu": "x64_windows", |
| 3499 | }, |
Marat Dukhan | 9fe932e | 2020-04-11 17:14:15 -0700 | [diff] [blame] | 3500 | ) |
| 3501 | |
| 3502 | config_setting( |
Marat Dukhan | 885ca24 | 2019-10-07 09:17:32 -0700 | [diff] [blame] | 3503 | name = "macos_x86_64", |
| 3504 | values = { |
| 3505 | "apple_platform_type": "macos", |
| 3506 | "cpu": "darwin", |
| 3507 | }, |
| 3508 | ) |
| 3509 | |
| 3510 | config_setting( |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3511 | name = "emscripten", |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 3512 | values = {"crosstool_top": "//toolchain:emscripten"}, |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3513 | ) |
| 3514 | |
| 3515 | config_setting( |
| 3516 | name = "emscripten_wasm", |
| 3517 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 3518 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3519 | "cpu": "wasm", |
| 3520 | }, |
| 3521 | ) |
| 3522 | |
| 3523 | config_setting( |
| 3524 | name = "emscripten_wasmsimd", |
| 3525 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 3526 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3527 | "cpu": "wasm", |
Marat Dukhan | 8c19e3c | 2019-10-30 12:14:58 -0700 | [diff] [blame] | 3528 | "features": "wasm_simd", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3529 | }, |
| 3530 | ) |
| 3531 | |
| 3532 | config_setting( |
| 3533 | name = "emscripten_asmjs", |
| 3534 | values = { |
Marat Dukhan | 1a729ec | 2019-10-07 09:31:44 -0700 | [diff] [blame] | 3535 | "crosstool_top": "//toolchain:emscripten", |
Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 3536 | "cpu": "asmjs", |
| 3537 | }, |
| 3538 | ) |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3539 | |
| 3540 | config_setting( |
| 3541 | name = "ios_armv7", |
| 3542 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3543 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3544 | "cpu": "ios_armv7", |
| 3545 | }, |
| 3546 | ) |
| 3547 | |
| 3548 | config_setting( |
| 3549 | name = "ios_arm64", |
| 3550 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3551 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3552 | "cpu": "ios_arm64", |
| 3553 | }, |
| 3554 | ) |
| 3555 | |
| 3556 | config_setting( |
| 3557 | name = "ios_arm64e", |
| 3558 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3559 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3560 | "cpu": "ios_arm64e", |
| 3561 | }, |
| 3562 | ) |
| 3563 | |
| 3564 | config_setting( |
| 3565 | name = "ios_x86", |
| 3566 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3567 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3568 | "cpu": "ios_i386", |
| 3569 | }, |
| 3570 | ) |
| 3571 | |
| 3572 | config_setting( |
| 3573 | name = "ios_x86_64", |
| 3574 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3575 | "apple_platform_type": "ios", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3576 | "cpu": "ios_x86_64", |
| 3577 | }, |
| 3578 | ) |
| 3579 | |
| 3580 | config_setting( |
| 3581 | name = "watchos_armv7k", |
| 3582 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3583 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3584 | "cpu": "watchos_armv7k", |
| 3585 | }, |
| 3586 | ) |
| 3587 | |
| 3588 | config_setting( |
| 3589 | name = "watchos_arm64_32", |
| 3590 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3591 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3592 | "cpu": "watchos_arm64_32", |
| 3593 | }, |
| 3594 | ) |
| 3595 | |
| 3596 | config_setting( |
| 3597 | name = "watchos_x86", |
| 3598 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3599 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3600 | "cpu": "watchos_i386", |
| 3601 | }, |
| 3602 | ) |
| 3603 | |
| 3604 | config_setting( |
| 3605 | name = "watchos_x86_64", |
| 3606 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3607 | "apple_platform_type": "watchos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3608 | "cpu": "watchos_x86_64", |
| 3609 | }, |
| 3610 | ) |
| 3611 | |
| 3612 | config_setting( |
| 3613 | name = "tvos_arm64", |
| 3614 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3615 | "apple_platform_type": "tvos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3616 | "cpu": "tvos_arm64", |
| 3617 | }, |
| 3618 | ) |
| 3619 | |
| 3620 | config_setting( |
| 3621 | name = "tvos_x86_64", |
| 3622 | values = { |
Marat Dukhan | f85fc33 | 2020-02-13 00:05:20 -0800 | [diff] [blame] | 3623 | "apple_platform_type": "tvos", |
Marat Dukhan | 1498d1d | 2020-02-11 20:00:05 -0800 | [diff] [blame] | 3624 | "cpu": "tvos_x86_64", |
| 3625 | }, |
| 3626 | ) |