blob: db7146d1bfb0afd388d9cb9e9e494bdf55297704 [file] [log] [blame]
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001# Copyright (c) Facebook, Inc. and its affiliates.
2# All rights reserved.
3#
4# Copyright 2019 Google LLC
5#
6# This source code is licensed under the BSD-style license found in the
7# LICENSE file in the root directory of this source tree.
8
9CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
10
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070011# ---[ Project and semantic versioning.
12PROJECT(XNNPACK C CXX ASM)
13
14# ---[ Options.
15SET(XNNPACK_LIBRARY_TYPE "default" CACHE STRING "Type of library (shared, static, or default) to build")
16SET_PROPERTY(CACHE XNNPACK_LIBRARY_TYPE PROPERTY STRINGS default static shared)
Marat Dukhanefc184a2020-02-13 09:47:01 -080017OPTION(XNNPACK_ENABLE_ASSEMBLY "Build XNNPACK with assembly micro-kernels" ON)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070018OPTION(XNNPACK_BUILD_TESTS "Build XNNPACK unit tests" ON)
19OPTION(XNNPACK_BUILD_BENCHMARKS "Build XNNPACK benchmarks" ON)
Mo Zhou6cafcdb2020-04-26 10:41:41 +080020OPTION(XNNPACK_USE_SYSTEM_LIBS "Use system-provided dependency libraries" OFF)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070021
22# ---[ CMake options
Marat Dukhanbcbae1e2020-04-13 10:54:18 -070023INCLUDE(GNUInstallDirs)
24
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070025IF(XNNPACK_BUILD_TESTS)
26 ENABLE_TESTING()
27ENDIF()
28
Marat Dukhanefc184a2020-02-13 09:47:01 -080029IF(XNNPACK_ENABLE_ASSEMBLY)
30 ADD_DEFINITIONS(-DXNN_ENABLE_ASSEMBLY=1)
31ELSE()
32 ADD_DEFINITIONS(-DXNN_ENABLE_ASSEMBLY=0)
33ENDIF()
34
Marat Dukhan8a9be592020-05-09 21:49:19 -070035IF(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
Marat Dukhan1b555e02020-04-14 22:40:29 -070036 # Disable "unary minus operator applied to unsigned type, result still unsigned" warning
37 ADD_COMPILE_OPTIONS("/wd4146")
38ENDIF()
39
Marat Dukhan8a9be592020-05-09 21:49:19 -070040IF(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
41 # Disable "note: parameter passing for argument of type ... changed/will change in ..."
42 ADD_COMPILE_OPTIONS("-Wno-psabi")
43ENDIF()
44
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070045# ---[ Build flags
46IF(NOT CMAKE_SYSTEM_PROCESSOR)
47 IF(IOS)
48 LIST(LENGTH IOS_ARCH IOS_ARCH_COUNT)
49 IF(IOS_ARCH_COUNT GREATER 1)
50 MESSAGE(FATAL_ERROR "Unsupported XNNPACK build with multiple iOS architectures (${IOS_ARCH}). "
51 "Specify a single architecture in IOS_ARCH and re-configure. ")
52 ENDIF()
Yasuhiro Matsumoto462be052020-02-29 13:41:14 +090053 IF(NOT IOS_ARCH MATCHES "^(i386|x86_64|AMD64|armv7.*|arm64.*)$")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070054 MESSAGE(FATAL_ERROR "Unrecognized IOS_ARCH = ${IOS_ARCH}")
55 ENDIF()
56 ELSE()
57 MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_PROCESSOR is not defined")
58 ENDIF()
Marat Dukhan7795c3a2020-04-14 20:45:36 -070059ELSEIF(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3-6]86|x86|x86_64|AMD64|armv[5-8].*|aarch64)$")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070060 MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}")
61ENDIF()
62
63IF(NOT CMAKE_SYSTEM_NAME)
64 MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_NAME not defined")
Marat Dukhan78583c72020-04-26 22:00:43 -070065ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Darwin|Linux|Android|Windows|CYGWIN|MSYS)$")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070066 MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_NAME = ${CMAKE_SYSTEM_NAME}")
67ENDIF()
68
69# ---[ Download deps
Mo Zhou6cafcdb2020-04-26 10:41:41 +080070IF(NOT XNNPACK_USE_SYSTEM_LIBS)
71 IF(NOT DEFINED CLOG_SOURCE_DIR)
72 MESSAGE(STATUS "Downloading clog to ${CMAKE_BINARY_DIR}/clog-source (define CLOG_SOURCE_DIR to avoid it)")
73 CONFIGURE_FILE(cmake/DownloadCLog.cmake "${CMAKE_BINARY_DIR}/clog-download/CMakeLists.txt")
74 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
75 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/clog-download")
76 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
77 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/clog-download")
78 SET(CLOG_SOURCE_DIR "${CMAKE_BINARY_DIR}/clog-source" CACHE STRING "clog source directory")
79 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070080
Mo Zhou6cafcdb2020-04-26 10:41:41 +080081 IF(NOT DEFINED CPUINFO_SOURCE_DIR)
82 MESSAGE(STATUS "Downloading cpuinfo to ${CMAKE_BINARY_DIR}/cpuinfo-source (define CPUINFO_SOURCE_DIR to avoid it)")
83 CONFIGURE_FILE(cmake/DownloadCpuinfo.cmake "${CMAKE_BINARY_DIR}/cpuinfo-download/CMakeLists.txt")
84 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
85 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/cpuinfo-download")
86 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
87 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/cpuinfo-download")
88 SET(CPUINFO_SOURCE_DIR "${CMAKE_BINARY_DIR}/cpuinfo-source" CACHE STRING "cpuinfo source directory")
89 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -070090
Mo Zhou6cafcdb2020-04-26 10:41:41 +080091 IF(NOT DEFINED FP16_SOURCE_DIR)
92 MESSAGE(STATUS "Downloading FP16 to ${CMAKE_BINARY_DIR}/FP16-source (define FP16_SOURCE_DIR to avoid it)")
93 CONFIGURE_FILE(cmake/DownloadFP16.cmake "${CMAKE_BINARY_DIR}/FP16-download/CMakeLists.txt")
94 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
95 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FP16-download")
96 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
97 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FP16-download")
98 SET(FP16_SOURCE_DIR "${CMAKE_BINARY_DIR}/FP16-source" CACHE STRING "FP16 source directory")
99 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700100
Mo Zhou6cafcdb2020-04-26 10:41:41 +0800101 IF(NOT DEFINED FXDIV_SOURCE_DIR)
102 MESSAGE(STATUS "Downloading FXdiv to ${CMAKE_BINARY_DIR}/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)")
103 CONFIGURE_FILE(cmake/DownloadFXdiv.cmake "${CMAKE_BINARY_DIR}/FXdiv-download/CMakeLists.txt")
104 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
105 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download")
106 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
107 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download")
108 SET(FXDIV_SOURCE_DIR "${CMAKE_BINARY_DIR}/FXdiv-source" CACHE STRING "FXdiv source directory")
109 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700110
Mo Zhou6cafcdb2020-04-26 10:41:41 +0800111 IF(NOT DEFINED PSIMD_SOURCE_DIR)
112 MESSAGE(STATUS "Downloading PSimd to ${CMAKE_BINARY_DIR}/psimd-source (define PSIMD_SOURCE_DIR to avoid it)")
113 CONFIGURE_FILE(cmake/DownloadPSimd.cmake "${CMAKE_BINARY_DIR}/psimd-download/CMakeLists.txt")
114 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
115 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/psimd-download")
116 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
117 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/psimd-download")
118 SET(PSIMD_SOURCE_DIR "${CMAKE_BINARY_DIR}/psimd-source" CACHE STRING "PSimd source directory")
119 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700120
Mo Zhou6cafcdb2020-04-26 10:41:41 +0800121 IF(NOT DEFINED PTHREADPOOL_SOURCE_DIR)
122 MESSAGE(STATUS "Downloading pthreadpool to ${CMAKE_BINARY_DIR}/pthreadpool-source (define PTHREADPOOL_SOURCE_DIR to avoid it)")
123 CONFIGURE_FILE(cmake/DownloadPThreadPool.cmake "${CMAKE_BINARY_DIR}/pthreadpool-download/CMakeLists.txt")
124 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
125 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/pthreadpool-download")
126 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
127 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/pthreadpool-download")
128 SET(PTHREADPOOL_SOURCE_DIR "${CMAKE_BINARY_DIR}/pthreadpool-source" CACHE STRING "pthreadpool source directory")
129 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700130
Mo Zhou6cafcdb2020-04-26 10:41:41 +0800131 IF(XNNPACK_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR)
132 MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)")
133 CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt")
134 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
135 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download")
136 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
137 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download")
138 SET(GOOGLETEST_SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" CACHE STRING "Google Test source directory")
139 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700140
Mo Zhou6cafcdb2020-04-26 10:41:41 +0800141 IF(XNNPACK_BUILD_BENCHMARKS AND NOT DEFINED GOOGLEBENCHMARK_SOURCE_DIR)
142 MESSAGE(STATUS "Downloading Google Benchmark to ${CMAKE_BINARY_DIR}/googlebenchmark-source (define GOOGLEBENCHMARK_SOURCE_DIR to avoid it)")
143 CONFIGURE_FILE(cmake/DownloadGoogleBenchmark.cmake "${CMAKE_BINARY_DIR}/googlebenchmark-download/CMakeLists.txt")
144 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
145 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googlebenchmark-download")
146 EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
147 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googlebenchmark-download")
148 SET(GOOGLEBENCHMARK_SOURCE_DIR "${CMAKE_BINARY_DIR}/googlebenchmark-source" CACHE STRING "Google Benchmark source directory")
149 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700150ENDIF()
151
152# ---[ XNNPACK library
153SET(XNNPACK_OPERATOR_SRCS
Marat Dukhane8265432020-04-28 18:42:59 -0700154 src/operators/add-nc.c
155 src/operators/argmax-pooling-nhwc.c
156 src/operators/average-pooling-nhwc.c
157 src/operators/binary-elementwise-nd.c
158 src/operators/channel-pad-nc.c
159 src/operators/channel-shuffle-nc.c
160 src/operators/clamp-nc.c
161 src/operators/convolution-nchw.c
162 src/operators/convolution-nhwc.c
163 src/operators/deconvolution-nhwc.c
164 src/operators/fully-connected-nc.c
165 src/operators/global-average-pooling-ncw.c
166 src/operators/global-average-pooling-nwc.c
167 src/operators/hardswish-nc.c
168 src/operators/leaky-relu-nc.c
169 src/operators/max-pooling-nhwc.c
170 src/operators/prelu-nc.c
171 src/operators/resize-bilinear-nhwc.c
172 src/operators/sigmoid-nc.c
173 src/operators/softmax-nc.c
174 src/operators/unpooling-nhwc.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700175
176SET(XNNPACK_COLD_SRCS ${XNNPACK_OPERATOR_SRCS})
177LIST(APPEND XNNPACK_COLD_SRCS
178 src/init.c
Ashkan Aliabadi1f8a2b82019-11-20 11:27:00 -0800179 src/memory.c
Marat Dukhan98ca6352020-02-03 12:53:02 -0800180 src/operator-delete.c
181 src/runtime.c
182 src/subgraph.c
183 src/tensor.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700184
185SET(XNNPACK_HOT_SRCS
186 src/indirection.c
187 src/operator-run.c)
188
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800189SET(XNNPACK_TABLE_SRCS
190 src/tables/exp2-k-over-64.c
191 src/tables/exp2-k-over-2048.c)
192
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700193SET(XNNPACK_SCALAR_MICROKERNEL_SRCS
Ashkan Aliabadif866a452019-11-20 10:58:51 -0800194 src/f32-argmaxpool/4x-scalar-c1.c
195 src/f32-argmaxpool/9p8x-scalar-c1.c
196 src/f32-argmaxpool/9x-scalar-c1.c
Marat Dukhan99936602020-04-11 16:47:01 -0700197 src/f32-avgpool/9p8x-minmax-scalar-c1.c
198 src/f32-avgpool/9x-minmax-scalar-c1.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700199 src/f32-clamp/gen/scalar-x1.c
200 src/f32-clamp/gen/scalar-x2.c
201 src/f32-clamp/gen/scalar-x4.c
Marat Dukhan6b7dfae2019-12-04 16:00:52 -0800202 src/f32-conv-hwc/3x3s2p1c3x4-scalar-1x1.c
Marat Dukhan441e2212019-12-04 18:30:49 -0800203 src/f32-conv-hwc/3x3s2p0p1c3x4-scalar-1x1.c
Erich Elsen563df5f2019-10-23 08:02:21 -0700204 src/f32-conv-hwc2spchw/3x3s2p1c3x4-scalar-1x1.c
Erich Elsen0cc2c532019-10-15 04:44:18 -0700205 src/f32-dwconv-spchw/3x3p1-scalar.c
Erich Elsenac4de802019-10-16 04:35:30 -0700206 src/f32-dwconv-spchw/3x3s2p1-scalar.c
Marat Dukhan1e782c42019-11-21 17:02:40 -0800207 src/f32-dwconv-spchw/5x5p2-scalar.c
Erich Elsen38709a62019-11-08 11:58:45 -0800208 src/f32-dwconv-spchw/5x5s2p2-scalar.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700209 src/f32-dwconv/gen/up1x4-scalar.c
210 src/f32-dwconv/gen/up1x4-scalar-acc2.c
211 src/f32-dwconv/gen/up1x9-scalar.c
212 src/f32-dwconv/gen/up1x9-scalar-acc2.c
213 src/f32-dwconv/gen/up1x25-scalar.c
214 src/f32-dwconv/gen/up1x25-scalar-acc2.c
215 src/f32-dwconv/gen/up2x4-scalar.c
216 src/f32-dwconv/gen/up2x4-scalar-acc2.c
217 src/f32-dwconv/gen/up2x9-scalar.c
218 src/f32-dwconv/gen/up2x9-scalar-acc2.c
219 src/f32-dwconv/gen/up2x25-scalar.c
220 src/f32-dwconv/gen/up2x25-scalar-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700221 src/f32-dwconv/gen/up1x4-minmax-scalar.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700222 src/f32-dwconv/gen/up1x4-minmax-scalar-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700223 src/f32-dwconv/gen/up1x9-minmax-scalar.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700224 src/f32-dwconv/gen/up1x9-minmax-scalar-acc2.c
225 src/f32-dwconv/gen/up1x25-minmax-scalar.c
226 src/f32-dwconv/gen/up1x25-minmax-scalar-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700227 src/f32-dwconv/gen/up2x4-minmax-scalar.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700228 src/f32-dwconv/gen/up2x4-minmax-scalar-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700229 src/f32-dwconv/gen/up2x9-minmax-scalar.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700230 src/f32-dwconv/gen/up2x9-minmax-scalar-acc2.c
231 src/f32-dwconv/gen/up2x25-minmax-scalar.c
232 src/f32-dwconv/gen/up2x25-minmax-scalar-acc2.c
Erich Elsen34dc2c02019-10-16 05:11:41 -0700233 src/f32-gavgpool-spchw/scalar-x1.c
Marat Dukhanb9d07cf2020-04-11 20:25:31 -0700234 src/f32-gavgpool/7p7x-minmax-scalar-c1.c
235 src/f32-gavgpool/7x-minmax-scalar-c1.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700236 src/f32-gemm/gen/1x4-scalar.c
237 src/f32-gemm/gen/2x4-scalar.c
238 src/f32-gemm/gen/4x2-scalar.c
239 src/f32-gemm/gen/4x4-scalar.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700240 src/f32-gemm/gen/1x4-minmax-scalar.c
241 src/f32-gemm/gen/2x4-minmax-scalar.c
242 src/f32-gemm/gen/4x2-minmax-scalar.c
243 src/f32-gemm/gen/4x4-minmax-scalar.c
244 src/f32-gemm/gen-inc/1x4inc-minmax-scalar.c
245 src/f32-gemm/gen-inc/2x4inc-minmax-scalar.c
246 src/f32-gemm/gen-inc/4x4inc-minmax-scalar.c
Marat Dukhan662faa02019-12-09 22:48:16 -0800247 src/f32-hswish/gen/scalar-x1.c
248 src/f32-hswish/gen/scalar-x2.c
249 src/f32-hswish/gen/scalar-x4.c
Marat Dukhan660fd192020-03-10 04:55:30 -0700250 src/f32-ibilinear/gen/scalar-c1.c
251 src/f32-ibilinear/gen/scalar-c2.c
252 src/f32-ibilinear/gen/scalar-c4.c
Marat Dukhan163a7e62020-04-09 04:19:26 -0700253 src/f32-igemm/gen/1x4-scalar.c
254 src/f32-igemm/gen/2x4-scalar.c
255 src/f32-igemm/gen/4x2-scalar.c
256 src/f32-igemm/gen/4x4-scalar.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700257 src/f32-igemm/gen/1x4-minmax-scalar.c
258 src/f32-igemm/gen/2x4-minmax-scalar.c
259 src/f32-igemm/gen/4x2-minmax-scalar.c
260 src/f32-igemm/gen/4x4-minmax-scalar.c
Marat Dukhan99936602020-04-11 16:47:01 -0700261 src/f32-maxpool/9p8x-minmax-scalar-c1.c
262 src/f32-pavgpool/9p8x-minmax-scalar-c1.c
263 src/f32-pavgpool/9x-minmax-scalar-c1.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700264 src/f32-ppmm/gen/2x4-minmax-scalar.c
265 src/f32-ppmm/gen/3x3-minmax-scalar.c
266 src/f32-ppmm/gen/4x2-minmax-scalar.c
267 src/f32-ppmm/gen/4x4-minmax-scalar.c
Marat Dukhan40a672f2019-11-25 03:08:22 -0800268 src/f32-prelu/gen/scalar-2x1.c
269 src/f32-prelu/gen/scalar-2x4.c
Marat Dukhanf46f6752020-01-21 11:03:49 -0800270 src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x1.c
271 src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2.c
272 src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x2-acc2.c
273 src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4.c
274 src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc2.c
275 src/f32-raddstoreexpminusmax/gen/scalar-lut64-p2-x4-acc4.c
276 src/f32-raddstoreexpminusmax/gen/scalar-p5-x1.c
277 src/f32-raddstoreexpminusmax/gen/scalar-p5-x2.c
278 src/f32-raddstoreexpminusmax/gen/scalar-p5-x2-acc2.c
279 src/f32-raddstoreexpminusmax/gen/scalar-p5-x4.c
280 src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc2.c
281 src/f32-raddstoreexpminusmax/gen/scalar-p5-x4-acc4.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700282 src/f32-rmax/scalar.c
Marat Dukhan3a77ea72019-12-23 12:10:24 -0800283 src/f32-sigmoid/gen/scalar-lut2048-p1-div-x1.c
284 src/f32-sigmoid/gen/scalar-lut2048-p1-div-x2.c
285 src/f32-sigmoid/gen/scalar-lut2048-p1-div-x4.c
286 src/f32-sigmoid/gen/scalar-lut64-p2-div-x1.c
287 src/f32-sigmoid/gen/scalar-lut64-p2-div-x2.c
288 src/f32-sigmoid/gen/scalar-lut64-p2-div-x4.c
289 src/f32-sigmoid/gen/scalar-p5-div-x1.c
290 src/f32-sigmoid/gen/scalar-p5-div-x2.c
291 src/f32-sigmoid/gen/scalar-p5-div-x4.c
Marat Dukhan355ab432020-04-09 19:01:52 -0700292 src/f32-spmm/gen/1x1-minmax-scalar-pipelined.c
293 src/f32-spmm/gen/1x1-minmax-scalar.c
294 src/f32-spmm/gen/2x1-minmax-scalar-pipelined.c
295 src/f32-spmm/gen/2x1-minmax-scalar.c
296 src/f32-spmm/gen/4x1-minmax-scalar-pipelined.c
297 src/f32-spmm/gen/4x1-minmax-scalar.c
298 src/f32-spmm/gen/8x1-minmax-scalar-pipelined.c
299 src/f32-spmm/gen/8x1-minmax-scalar.c
300 src/f32-spmm/gen/8x2-minmax-scalar.c
301 src/f32-spmm/gen/8x4-minmax-scalar.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700302 src/f32-vbinary/gen/vadd-minmax-scalar-x1.c
303 src/f32-vbinary/gen/vadd-minmax-scalar-x2.c
304 src/f32-vbinary/gen/vadd-minmax-scalar-x4.c
305 src/f32-vbinary/gen/vaddc-minmax-scalar-x1.c
306 src/f32-vbinary/gen/vaddc-minmax-scalar-x2.c
307 src/f32-vbinary/gen/vaddc-minmax-scalar-x4.c
308 src/f32-vbinary/gen/vdiv-minmax-scalar-x1.c
309 src/f32-vbinary/gen/vdiv-minmax-scalar-x2.c
310 src/f32-vbinary/gen/vdiv-minmax-scalar-x4.c
311 src/f32-vbinary/gen/vdivc-minmax-scalar-x1.c
312 src/f32-vbinary/gen/vdivc-minmax-scalar-x2.c
313 src/f32-vbinary/gen/vdivc-minmax-scalar-x4.c
Marat Dukhan403b7d42019-12-05 12:49:11 -0800314 src/f32-vbinary/gen/vmax-scalar-x1.c
315 src/f32-vbinary/gen/vmax-scalar-x2.c
316 src/f32-vbinary/gen/vmax-scalar-x4.c
317 src/f32-vbinary/gen/vmaxc-scalar-x1.c
318 src/f32-vbinary/gen/vmaxc-scalar-x2.c
319 src/f32-vbinary/gen/vmaxc-scalar-x4.c
320 src/f32-vbinary/gen/vmin-scalar-x1.c
321 src/f32-vbinary/gen/vmin-scalar-x2.c
322 src/f32-vbinary/gen/vmin-scalar-x4.c
323 src/f32-vbinary/gen/vminc-scalar-x1.c
324 src/f32-vbinary/gen/vminc-scalar-x2.c
325 src/f32-vbinary/gen/vminc-scalar-x4.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700326 src/f32-vbinary/gen/vmul-minmax-scalar-x1.c
327 src/f32-vbinary/gen/vmul-minmax-scalar-x2.c
328 src/f32-vbinary/gen/vmul-minmax-scalar-x4.c
329 src/f32-vbinary/gen/vmulc-minmax-scalar-x1.c
330 src/f32-vbinary/gen/vmulc-minmax-scalar-x2.c
331 src/f32-vbinary/gen/vmulc-minmax-scalar-x4.c
332 src/f32-vbinary/gen/vrdivc-minmax-scalar-x1.c
333 src/f32-vbinary/gen/vrdivc-minmax-scalar-x2.c
334 src/f32-vbinary/gen/vrdivc-minmax-scalar-x4.c
335 src/f32-vbinary/gen/vrsubc-minmax-scalar-x1.c
336 src/f32-vbinary/gen/vrsubc-minmax-scalar-x2.c
337 src/f32-vbinary/gen/vrsubc-minmax-scalar-x4.c
338 src/f32-vbinary/gen/vsub-minmax-scalar-x1.c
339 src/f32-vbinary/gen/vsub-minmax-scalar-x2.c
340 src/f32-vbinary/gen/vsub-minmax-scalar-x4.c
341 src/f32-vbinary/gen/vsubc-minmax-scalar-x1.c
342 src/f32-vbinary/gen/vsubc-minmax-scalar-x2.c
343 src/f32-vbinary/gen/vsubc-minmax-scalar-x4.c
Marat Dukhan99936602020-04-11 16:47:01 -0700344 src/f32-vmulcaddc/gen/c1-minmax-scalar-2x.c
345 src/f32-vmulcaddc/gen/c2-minmax-scalar-2x.c
346 src/f32-vmulcaddc/gen/c4-minmax-scalar-2x.c
Marat Dukhan5739f702019-12-22 19:45:09 -0800347 src/math/expminus-scalar-lut2048-p1.c
348 src/math/expminus-scalar-lut64-p2.c
349 src/math/expminus-scalar-p5.c
Marat Dukhan075088a2020-05-12 19:42:12 -0700350 src/math/roundne-scalar-addsub.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700351 src/math/roundd-scalar-addsub.c
352 src/math/roundd-scalar-cvt.c
353 src/math/roundu-scalar-addsub.c
354 src/math/roundu-scalar-cvt.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700355 src/math/roundz-scalar-addsub.c
356 src/math/roundz-scalar-cvt.c
Marat Dukhan5739f702019-12-22 19:45:09 -0800357 src/math/sigmoid-scalar-lut2048-p1-div.c
358 src/math/sigmoid-scalar-lut64-p2-div.c
359 src/math/sigmoid-scalar-p5-div.c
Marat Dukhan99936602020-04-11 16:47:01 -0700360 src/q8-avgpool/9p8x-minmax-scalar-c1.c
361 src/q8-avgpool/9x-minmax-scalar-c1.c
Marat Dukhande06f492020-04-09 00:19:31 -0700362 src/q8-dwconv/up1x9-minmax-scalar.c
Marat Dukhan99936602020-04-11 16:47:01 -0700363 src/q8-gavgpool/7p7x-minmax-scalar-c1.c
364 src/q8-gavgpool/7x-minmax-scalar-c1.c
Marat Dukhande06f492020-04-09 00:19:31 -0700365 src/q8-gemm/2x2-minmax-scalar.c
366 src/q8-igemm/2x2-minmax-scalar.c
Marat Dukhan99936602020-04-11 16:47:01 -0700367 src/q8-vadd/minmax-scalar.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700368 src/u8-clamp/scalar-x4.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700369 src/u8-lut32norm/scalar.c
Marat Dukhan99936602020-04-11 16:47:01 -0700370 src/u8-maxpool/9p8x-minmax-scalar-c1.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700371 src/u8-rmax/scalar.c
372 src/x32-packx/x2-scalar.c
373 src/x32-packx/x3-scalar.c
374 src/x32-packx/x4-scalar.c
375 src/x32-pad/x2-scalar.c
376 src/x32-unpool/scalar.c
377 src/x32-zip/x2-scalar.c
378 src/x32-zip/x3-scalar.c
379 src/x32-zip/x4-scalar.c
380 src/x32-zip/xm-scalar.c
381 src/x8-lut/scalar.c
382 src/x8-zip/x2-scalar.c
383 src/x8-zip/x3-scalar.c
384 src/x8-zip/x4-scalar.c
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700385 src/x8-zip/xm-scalar.c
386 src/requantization/precise-scalar.c
387 src/requantization/fp32-scalar.c
388 src/requantization/q31-scalar.c
389 src/requantization/gemmlowp-scalar.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700390
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800391SET(XNNPACK_PSIMD_FASTMATH_MICROKERNEL_SRCS
Ashkan Aliabadif866a452019-11-20 10:58:51 -0800392 src/f32-argmaxpool/4x-psimd-c4.c
393 src/f32-argmaxpool/9p8x-psimd-c4.c
394 src/f32-argmaxpool/9x-psimd-c4.c
Marat Dukhan99936602020-04-11 16:47:01 -0700395 src/f32-avgpool/9p8x-minmax-psimd-c4.c
396 src/f32-avgpool/9x-minmax-psimd-c4.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700397 src/f32-clamp/gen/psimd-x4.c
398 src/f32-clamp/gen/psimd-x8.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700399 src/f32-dwconv/gen/up4x25-minmax-psimd-acc2.c
400 src/f32-dwconv/gen/up4x25-minmax-psimd.c
401 src/f32-dwconv/gen/up4x4-minmax-psimd-acc2.c
402 src/f32-dwconv/gen/up4x4-minmax-psimd.c
403 src/f32-dwconv/gen/up4x9-minmax-psimd-acc2.c
404 src/f32-dwconv/gen/up4x9-minmax-psimd.c
405 src/f32-dwconv/gen/up8x25-minmax-psimd-acc2.c
406 src/f32-dwconv/gen/up8x25-minmax-psimd.c
407 src/f32-dwconv/gen/up8x4-minmax-psimd-acc2.c
408 src/f32-dwconv/gen/up8x4-minmax-psimd.c
409 src/f32-dwconv/gen/up8x9-minmax-psimd-acc2.c
410 src/f32-dwconv/gen/up8x9-minmax-psimd.c
Marat Dukhanb9d07cf2020-04-11 20:25:31 -0700411 src/f32-gavgpool/7p7x-minmax-psimd-c4.c
412 src/f32-gavgpool/7x-minmax-psimd-c4.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700413 src/f32-gemm/gen/1x8-minmax-psimd-loadsplat.c
414 src/f32-gemm/gen/1x8-minmax-psimd-splat.c
415 src/f32-gemm/gen/1x8s4-minmax-psimd.c
416 src/f32-gemm/gen/4x2c4-minmax-psimd.c
417 src/f32-gemm/gen/4x8-minmax-psimd-loadsplat.c
418 src/f32-gemm/gen/4x8-minmax-psimd-splat.c
419 src/f32-gemm/gen/4x8s4-minmax-psimd.c
420 src/f32-gemm/gen/6x8-minmax-psimd-loadsplat.c
421 src/f32-gemm/gen/6x8-minmax-psimd-splat.c
422 src/f32-gemm/gen/6x8s4-minmax-psimd.c
423 src/f32-gemm/gen-inc/1x8inc-minmax-psimd-loadsplat.c
424 src/f32-gemm/gen-inc/1x8inc-minmax-psimd-splat.c
425 src/f32-gemm/gen-inc/1x8s4inc-minmax-psimd.c
426 src/f32-gemm/gen-inc/4x8inc-minmax-psimd-loadsplat.c
427 src/f32-gemm/gen-inc/4x8inc-minmax-psimd-splat.c
428 src/f32-gemm/gen-inc/4x8s4inc-minmax-psimd.c
429 src/f32-gemm/gen-inc/6x8inc-minmax-psimd-loadsplat.c
430 src/f32-gemm/gen-inc/6x8inc-minmax-psimd-splat.c
431 src/f32-gemm/gen-inc/6x8s4inc-minmax-psimd.c
Marat Dukhan662faa02019-12-09 22:48:16 -0800432 src/f32-hswish/gen/psimd-x4.c
433 src/f32-hswish/gen/psimd-x8.c
Marat Dukhan660fd192020-03-10 04:55:30 -0700434 src/f32-ibilinear/gen/psimd-c4.c
435 src/f32-ibilinear/gen/psimd-c8.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700436 src/f32-igemm/gen/1x8-minmax-psimd-loadsplat.c
437 src/f32-igemm/gen/1x8-minmax-psimd-splat.c
438 src/f32-igemm/gen/1x8s4-minmax-psimd.c
439 src/f32-igemm/gen/4x2c4-minmax-psimd.c
440 src/f32-igemm/gen/4x8-minmax-psimd-loadsplat.c
441 src/f32-igemm/gen/4x8-minmax-psimd-splat.c
442 src/f32-igemm/gen/4x8s4-minmax-psimd.c
443 src/f32-igemm/gen/6x8-minmax-psimd-loadsplat.c
444 src/f32-igemm/gen/6x8-minmax-psimd-splat.c
445 src/f32-igemm/gen/6x8s4-minmax-psimd.c
Marat Dukhan99936602020-04-11 16:47:01 -0700446 src/f32-maxpool/9p8x-minmax-psimd-c4.c
447 src/f32-pavgpool/9p8x-minmax-psimd-c4.c
448 src/f32-pavgpool/9x-minmax-psimd-c4.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700449 src/f32-ppmm/gen/4x8-minmax-psimd.c
Marat Dukhan40a672f2019-11-25 03:08:22 -0800450 src/f32-prelu/gen/psimd-2x4.c
451 src/f32-prelu/gen/psimd-2x8.c
Marat Dukhanb39689d2020-01-24 13:32:20 -0800452 src/f32-rmax/psimd.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700453 src/f32-vbinary/gen/vadd-minmax-psimd-x4.c
454 src/f32-vbinary/gen/vadd-minmax-psimd-x8.c
455 src/f32-vbinary/gen/vaddc-minmax-psimd-x4.c
456 src/f32-vbinary/gen/vaddc-minmax-psimd-x8.c
457 src/f32-vbinary/gen/vdiv-minmax-psimd-x4.c
458 src/f32-vbinary/gen/vdiv-minmax-psimd-x8.c
459 src/f32-vbinary/gen/vdivc-minmax-psimd-x4.c
460 src/f32-vbinary/gen/vdivc-minmax-psimd-x8.c
Marat Dukhan403b7d42019-12-05 12:49:11 -0800461 src/f32-vbinary/gen/vmax-psimd-x4.c
462 src/f32-vbinary/gen/vmax-psimd-x8.c
463 src/f32-vbinary/gen/vmaxc-psimd-x4.c
464 src/f32-vbinary/gen/vmaxc-psimd-x8.c
465 src/f32-vbinary/gen/vmin-psimd-x4.c
466 src/f32-vbinary/gen/vmin-psimd-x8.c
467 src/f32-vbinary/gen/vminc-psimd-x4.c
468 src/f32-vbinary/gen/vminc-psimd-x8.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700469 src/f32-vbinary/gen/vmul-minmax-psimd-x4.c
470 src/f32-vbinary/gen/vmul-minmax-psimd-x8.c
471 src/f32-vbinary/gen/vmulc-minmax-psimd-x4.c
472 src/f32-vbinary/gen/vmulc-minmax-psimd-x8.c
473 src/f32-vbinary/gen/vrdivc-minmax-psimd-x4.c
474 src/f32-vbinary/gen/vrdivc-minmax-psimd-x8.c
475 src/f32-vbinary/gen/vrsubc-minmax-psimd-x4.c
476 src/f32-vbinary/gen/vrsubc-minmax-psimd-x8.c
477 src/f32-vbinary/gen/vsub-minmax-psimd-x4.c
478 src/f32-vbinary/gen/vsub-minmax-psimd-x8.c
479 src/f32-vbinary/gen/vsubc-minmax-psimd-x4.c
480 src/f32-vbinary/gen/vsubc-minmax-psimd-x8.c
Marat Dukhan99936602020-04-11 16:47:01 -0700481 src/f32-vmulcaddc/gen/c4-minmax-psimd-2x.c
482 src/f32-vmulcaddc/gen/c8-minmax-psimd-2x.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700483 src/x32-packx/x4-psimd.c
484 src/x32-pad/x2-psimd.c
485 src/x32-unpool/psimd.c
486 src/x32-zip/x2-psimd.c
487 src/x32-zip/x3-psimd.c
488 src/x32-zip/x4-psimd.c
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700489 src/x32-zip/xm-psimd.c
490 src/requantization/precise-psimd.c
491 src/requantization/fp32-psimd.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700492
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800493SET(XNNPACK_PSIMD_ACCMATH_MICROKERNEL_SRCS
Marat Dukhanb39689d2020-01-24 13:32:20 -0800494 src/f32-raddstoreexpminusmax/gen/psimd-p5-x4.c
495 src/f32-raddstoreexpminusmax/gen/psimd-p5-x8.c
496 src/f32-raddstoreexpminusmax/gen/psimd-p5-x8-acc2.c
497 src/f32-raddstoreexpminusmax/gen/psimd-p5-x12.c
498 src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc2.c
499 src/f32-raddstoreexpminusmax/gen/psimd-p5-x12-acc3.c
500 src/f32-raddstoreexpminusmax/gen/psimd-p5-x16.c
501 src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc2.c
502 src/f32-raddstoreexpminusmax/gen/psimd-p5-x16-acc4.c
503 src/f32-raddstoreexpminusmax/gen/psimd-p5-x20.c
504 src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc2.c
505 src/f32-raddstoreexpminusmax/gen/psimd-p5-x20-acc5.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800506 src/f32-sigmoid/gen/psimd-p5-div-x4.c
507 src/f32-sigmoid/gen/psimd-p5-div-x8.c
508 src/f32-sigmoid/gen/psimd-p5-div-x12.c
509 src/f32-sigmoid/gen/psimd-p5-div-x16.c
510 src/f32-sigmoid/gen/psimd-p5-div-x20.c
511 src/f32-sigmoid/gen/psimd-p5-div-x24.c
Marat Dukhan075088a2020-05-12 19:42:12 -0700512 src/math/roundne-psimd-addsub.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700513 src/math/roundd-psimd-addsub.c
514 src/math/roundu-psimd-addsub.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700515 src/math/roundz-psimd-addsub.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800516 src/math/sigmoid-psimd-p5-div.c)
517
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700518SET(XNNPACK_NEON_MICROKERNEL_SRCS
Marat Dukhan99936602020-04-11 16:47:01 -0700519 src/f32-avgpool/9p8x-minmax-neon-c4.c
520 src/f32-avgpool/9x-minmax-neon-c4.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700521 src/f32-clamp/gen/neon-x4.c
522 src/f32-clamp/gen/neon-x8.c
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700523 src/f32-dwconv/gen/up4x4-minmax-neon.c
524 src/f32-dwconv/gen/up4x4-minmax-neon-acc2.c
525 src/f32-dwconv/gen/up8x4-minmax-neon.c
526 src/f32-dwconv/gen/up8x4-minmax-neon-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700527 src/f32-dwconv/gen/up4x9-minmax-neon.c
528 src/f32-dwconv/gen/up4x9-minmax-neon-acc2.c
529 src/f32-dwconv/gen/up8x9-minmax-neon.c
530 src/f32-dwconv/gen/up8x9-minmax-neon-acc2.c
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700531 src/f32-dwconv/gen/up4x25-minmax-neon.c
532 src/f32-dwconv/gen/up4x25-minmax-neon-acc2.c
533 src/f32-dwconv/gen/up8x25-minmax-neon.c
534 src/f32-dwconv/gen/up8x25-minmax-neon-acc2.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800535 src/f32-gavgpool-spchw/neon-x4.c
Marat Dukhanb9d07cf2020-04-11 20:25:31 -0700536 src/f32-gavgpool/7p7x-minmax-neon-c4.c
537 src/f32-gavgpool/7x-minmax-neon-c4.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700538 src/f32-gemm/gen/1x8-minmax-neon-lane-ld64.c
539 src/f32-gemm/gen/4x2-minmax-neon-lane-ld64.c
540 src/f32-gemm/gen/4x8-minmax-neon-lane-ld128.c
541 src/f32-gemm/gen/4x8-minmax-neon-lane-ld64.c
542 src/f32-gemm/gen/5x8-minmax-neon-lane-ld64.c
543 src/f32-gemm/gen/6x8-minmax-neon-lane-ld64.c
544 src/f32-gemm/gen/6x8-minmax-neon-lane-ld128.c
545 src/f32-gemm/gen/1x8-minmax-neon-dup-ld64.c
546 src/f32-gemm/gen/4x8-minmax-neon-dup-ld128.c
547 src/f32-gemm/gen/4x8-minmax-neon-dup-ld64.c
548 src/f32-gemm/gen/6x8-minmax-neon-dup-ld64.c
549 src/f32-gemm/gen/6x8-minmax-neon-dup-ld128.c
550 src/f32-gemm/gen/1x8s4-minmax-neon.c
551 src/f32-gemm/gen/4x8s4-minmax-neon.c
552 src/f32-gemm/gen/6x8s4-minmax-neon.c
553 src/f32-gemm/gen/8x8s4-minmax-neon.c
554 src/f32-gemm/gen-inc/1x8inc-minmax-neon-lane-ld64.c
555 src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld128.c
556 src/f32-gemm/gen-inc/4x8inc-minmax-neon-lane-ld64.c
557 src/f32-gemm/gen-inc/5x8inc-minmax-neon-lane-ld64.c
558 src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld64.c
559 src/f32-gemm/gen-inc/6x8inc-minmax-neon-lane-ld128.c
560 src/f32-gemm/gen-inc/1x8inc-minmax-neon-dup-ld64.c
561 src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld128.c
562 src/f32-gemm/gen-inc/4x8inc-minmax-neon-dup-ld64.c
563 src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld64.c
564 src/f32-gemm/gen-inc/6x8inc-minmax-neon-dup-ld128.c
565 src/f32-gemm/gen-inc/1x8s4inc-minmax-neon.c
566 src/f32-gemm/gen-inc/4x8s4inc-minmax-neon.c
567 src/f32-gemm/gen-inc/6x8s4inc-minmax-neon.c
568 src/f32-gemm/gen-inc/8x8s4inc-minmax-neon.c
Marat Dukhan662faa02019-12-09 22:48:16 -0800569 src/f32-hswish/gen/neon-x4.c
570 src/f32-hswish/gen/neon-x8.c
Marat Dukhan660fd192020-03-10 04:55:30 -0700571 src/f32-ibilinear/gen/neon-c4.c
572 src/f32-ibilinear/gen/neon-c8.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700573 src/f32-igemm/gen/1x8-minmax-neon-lane-ld64.c
574 src/f32-igemm/gen/4x2-minmax-neon-lane-ld64.c
575 src/f32-igemm/gen/4x4-minmax-neon-lane-ld64.c
576 src/f32-igemm/gen/4x8-minmax-neon-lane-ld128.c
577 src/f32-igemm/gen/4x8-minmax-neon-lane-ld64.c
578 src/f32-igemm/gen/6x8-minmax-neon-lane-ld64.c
579 src/f32-igemm/gen/6x8-minmax-neon-lane-ld128.c
580 src/f32-igemm/gen/1x8-minmax-neon-dup-ld64.c
581 src/f32-igemm/gen/4x8-minmax-neon-dup-ld128.c
582 src/f32-igemm/gen/4x8-minmax-neon-dup-ld64.c
583 src/f32-igemm/gen/6x8-minmax-neon-dup-ld64.c
584 src/f32-igemm/gen/6x8-minmax-neon-dup-ld128.c
585 src/f32-igemm/gen/1x8s4-minmax-neon.c
586 src/f32-igemm/gen/4x8s4-minmax-neon.c
587 src/f32-igemm/gen/6x8s4-minmax-neon.c
588 src/f32-igemm/gen/8x8s4-minmax-neon.c
Marat Dukhan99936602020-04-11 16:47:01 -0700589 src/f32-maxpool/9p8x-minmax-neon-c4.c
590 src/f32-pavgpool/9p8x-minmax-neon-c4.c
591 src/f32-pavgpool/9x-minmax-neon-c4.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700592 src/f32-ppmm/gen/4x8-minmax-neon.c
593 src/f32-ppmm/gen/8x8-minmax-neon.c
Marat Dukhan40a672f2019-11-25 03:08:22 -0800594 src/f32-prelu/gen/neon-2x4.c
595 src/f32-prelu/gen/neon-2x8.c
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800596 src/f32-raddstoreexpminusmax/gen/neon-p5-x4.c
597 src/f32-raddstoreexpminusmax/gen/neon-p5-x8.c
598 src/f32-raddstoreexpminusmax/gen/neon-p5-x8-acc2.c
599 src/f32-raddstoreexpminusmax/gen/neon-p5-x12.c
600 src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc2.c
601 src/f32-raddstoreexpminusmax/gen/neon-p5-x12-acc3.c
602 src/f32-raddstoreexpminusmax/gen/neon-p5-x16.c
603 src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc2.c
604 src/f32-raddstoreexpminusmax/gen/neon-p5-x16-acc4.c
605 src/f32-raddstoreexpminusmax/gen/neon-p5-x20.c
606 src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc2.c
607 src/f32-raddstoreexpminusmax/gen/neon-p5-x20-acc5.c
608 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x4.c
609 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8.c
610 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x8-acc2.c
611 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12.c
612 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc2.c
613 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x12-acc3.c
614 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16.c
615 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc2.c
616 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x16-acc4.c
617 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20.c
618 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc2.c
619 src/f32-raddstoreexpminusmax/gen/neon-lut64-p2-x20-acc5.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800620 src/f32-rmax/neon.c
Marat Dukhan40a672f2019-11-25 03:08:22 -0800621 src/f32-sigmoid/gen/neon-frac-p9-p10-nr1recps-x16.c
Marat Dukhan4a24a582020-01-06 13:30:00 -0800622 src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x4.c
623 src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x8.c
624 src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x12.c
625 src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x16.c
626 src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x20.c
627 src/f32-sigmoid/gen/neon-rr2-p5-nr2recps-x24.c
628 src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x4.c
629 src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x8.c
630 src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x12.c
631 src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x16.c
632 src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x20.c
633 src/f32-sigmoid/gen/neon-rr2-lut64-p2-nr2recps-x24.c
634 src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x4.c
635 src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x8.c
636 src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x12.c
637 src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x16.c
638 src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x20.c
639 src/f32-sigmoid/gen/neon-rr2-lut2048-p1-nr2recps-x24.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700640 src/f32-vbinary/gen/vadd-minmax-neon-x4.c
641 src/f32-vbinary/gen/vadd-minmax-neon-x8.c
642 src/f32-vbinary/gen/vaddc-minmax-neon-x4.c
643 src/f32-vbinary/gen/vaddc-minmax-neon-x8.c
Marat Dukhan403b7d42019-12-05 12:49:11 -0800644 src/f32-vbinary/gen/vmax-neon-x4.c
645 src/f32-vbinary/gen/vmax-neon-x8.c
646 src/f32-vbinary/gen/vmaxc-neon-x4.c
647 src/f32-vbinary/gen/vmaxc-neon-x8.c
648 src/f32-vbinary/gen/vmin-neon-x4.c
649 src/f32-vbinary/gen/vmin-neon-x8.c
650 src/f32-vbinary/gen/vminc-neon-x4.c
651 src/f32-vbinary/gen/vminc-neon-x8.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700652 src/f32-vbinary/gen/vmul-minmax-neon-x4.c
653 src/f32-vbinary/gen/vmul-minmax-neon-x8.c
654 src/f32-vbinary/gen/vmulc-minmax-neon-x4.c
655 src/f32-vbinary/gen/vmulc-minmax-neon-x8.c
656 src/f32-vbinary/gen/vrsubc-minmax-neon-x4.c
657 src/f32-vbinary/gen/vrsubc-minmax-neon-x8.c
658 src/f32-vbinary/gen/vsub-minmax-neon-x4.c
659 src/f32-vbinary/gen/vsub-minmax-neon-x8.c
660 src/f32-vbinary/gen/vsubc-minmax-neon-x4.c
661 src/f32-vbinary/gen/vsubc-minmax-neon-x8.c
Marat Dukhan99936602020-04-11 16:47:01 -0700662 src/f32-vmulcaddc/gen/c4-minmax-neon-2x.c
663 src/f32-vmulcaddc/gen/c8-minmax-neon-2x.c
664 src/q8-avgpool/9p8x-minmax-neon-c8.c
665 src/q8-avgpool/9x-minmax-neon-c8.c
Marat Dukhande06f492020-04-09 00:19:31 -0700666 src/q8-dwconv/up8x9-minmax-neon.c
Marat Dukhan99936602020-04-11 16:47:01 -0700667 src/q8-gavgpool/7p7x-minmax-neon-c8.c
668 src/q8-gavgpool/7x-minmax-neon-c8.c
Marat Dukhande06f492020-04-09 00:19:31 -0700669 src/q8-gemm/4x8-minmax-neon.c
670 src/q8-gemm/8x8-minmax-neon.c
671 src/q8-igemm/4x8-minmax-neon.c
672 src/q8-igemm/8x8-minmax-neon.c
Marat Dukhan99936602020-04-11 16:47:01 -0700673 src/q8-vadd/minmax-neon.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -0700674 src/u8-clamp/neon-x64.c
Marat Dukhan99936602020-04-11 16:47:01 -0700675 src/u8-maxpool/9p8x-minmax-neon-c16.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800676 src/u8-rmax/neon.c
677 src/x32-packx/x4-neon-st4.c
678 src/x32-pad/x2-neon.c
Marat Dukhan57dccd82020-04-14 00:53:10 -0700679 src/x32-unpool/neon.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800680 src/x32-zip/x2-neon.c
681 src/x32-zip/x3-neon.c
682 src/x32-zip/x4-neon.c
683 src/x32-zip/xm-neon.c
684 src/x8-zip/x2-neon.c
685 src/x8-zip/x3-neon.c
686 src/x8-zip/x4-neon.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -0800687 src/x8-zip/xm-neon.c
Marat Dukhan075088a2020-05-12 19:42:12 -0700688 src/math/roundne-neon-addsub.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700689 src/math/roundd-neon-addsub.c
690 src/math/roundd-neon-cvt.c
691 src/math/roundu-neon-addsub.c
692 src/math/roundu-neon-cvt.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700693 src/math/roundz-neon-addsub.c
694 src/math/roundz-neon-cvt.c
Marat Dukhan68b3b452020-01-02 10:11:15 -0800695 src/math/sigmoid-neon-frac-p9-p10-nr1recps.c
Marat Dukhan77221d32020-01-06 10:04:39 -0800696 src/math/sigmoid-neon-rr1-lut2048-p1-nr2recps.c
697 src/math/sigmoid-neon-rr1-lut64-p2-nr2recps.c
698 src/math/sigmoid-neon-rr1-p5-nr2recps.c
699 src/math/sigmoid-neon-rr2-lut2048-p1-nr2recps.c
700 src/math/sigmoid-neon-rr2-lut64-p2-nr2recps.c
Marat Dukhanfe7acb62020-03-09 19:30:05 -0700701 src/math/sigmoid-neon-rr2-p5-nr2recps.c
702 src/requantization/precise-neon.c
703 src/requantization/fp32-neon.c
704 src/requantization/q31-neon.c
705 src/requantization/gemmlowp-neon.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700706
707SET(XNNPACK_NEONFMA_MICROKERNEL_SRCS
Marat Dukhan660fd192020-03-10 04:55:30 -0700708 src/f32-ibilinear/gen/neonfma-c4.c
709 src/f32-ibilinear/gen/neonfma-c8.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700710 src/f32-igemm/gen/1x8-minmax-neonfma-dup-ld64.c
711 src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld128.c
712 src/f32-igemm/gen/4x8-minmax-neonfma-dup-ld64.c
713 src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld64.c
714 src/f32-igemm/gen/6x8-minmax-neonfma-dup-ld128.c
715 src/f32-igemm/gen/1x8s4-minmax-neonfma.c
716 src/f32-igemm/gen/4x8s4-minmax-neonfma.c
717 src/f32-igemm/gen/6x8s4-minmax-neonfma.c
718 src/f32-igemm/gen/8x8s4-minmax-neonfma.c
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700719 src/f32-dwconv/gen/up4x4-minmax-neonfma.c
720 src/f32-dwconv/gen/up4x4-minmax-neonfma-acc2.c
721 src/f32-dwconv/gen/up8x4-minmax-neonfma.c
722 src/f32-dwconv/gen/up8x4-minmax-neonfma-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700723 src/f32-dwconv/gen/up4x9-minmax-neonfma.c
724 src/f32-dwconv/gen/up4x9-minmax-neonfma-acc2.c
725 src/f32-dwconv/gen/up8x9-minmax-neonfma.c
726 src/f32-dwconv/gen/up8x9-minmax-neonfma-acc2.c
Marat Dukhanf5425ea2020-04-24 01:46:00 -0700727 src/f32-dwconv/gen/up4x25-minmax-neonfma.c
728 src/f32-dwconv/gen/up4x25-minmax-neonfma-acc2.c
729 src/f32-dwconv/gen/up8x25-minmax-neonfma.c
730 src/f32-dwconv/gen/up8x25-minmax-neonfma-acc2.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700731 src/f32-gemm/gen/1x8-minmax-neonfma-dup-ld64.c
732 src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld128.c
733 src/f32-gemm/gen/4x8-minmax-neonfma-dup-ld64.c
734 src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld64.c
735 src/f32-gemm/gen/6x8-minmax-neonfma-dup-ld128.c
736 src/f32-gemm/gen/1x8s4-minmax-neonfma.c
737 src/f32-gemm/gen/4x8s4-minmax-neonfma.c
738 src/f32-gemm/gen/6x8s4-minmax-neonfma.c
739 src/f32-gemm/gen/8x8s4-minmax-neonfma.c
740 src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-dup-ld64.c
741 src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld128.c
742 src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-dup-ld64.c
743 src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld64.c
744 src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-dup-ld128.c
745 src/f32-gemm/gen-inc/1x8s4inc-minmax-neonfma.c
746 src/f32-gemm/gen-inc/4x8s4inc-minmax-neonfma.c
747 src/f32-gemm/gen-inc/6x8s4inc-minmax-neonfma.c
748 src/f32-gemm/gen-inc/8x8s4inc-minmax-neonfma.c
Marat Dukhan662faa02019-12-09 22:48:16 -0800749 src/f32-hswish/gen/neonfma-x4.c
750 src/f32-hswish/gen/neonfma-x8.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700751 src/f32-ppmm/gen/4x8-minmax-neonfma.c
752 src/f32-ppmm/gen/8x8-minmax-neonfma.c
Marat Dukhan8137e4c2020-01-25 12:56:58 -0800753 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x4.c
754 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8.c
755 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x8-acc2.c
756 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12.c
757 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc2.c
758 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x12-acc3.c
759 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16.c
760 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc2.c
761 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x16-acc4.c
762 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20.c
763 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc2.c
764 src/f32-raddstoreexpminusmax/gen/neonfma-p5-x20-acc5.c
765 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x4.c
766 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8.c
767 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x8-acc2.c
768 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12.c
769 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc2.c
770 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x12-acc3.c
771 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16.c
772 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc2.c
773 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x16-acc4.c
774 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20.c
775 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc2.c
776 src/f32-raddstoreexpminusmax/gen/neonfma-lut64-p2-x20-acc5.c
Marat Dukhan4a24a582020-01-06 13:30:00 -0800777 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x4.c
778 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x8.c
779 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x12.c
780 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x16.c
781 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x20.c
782 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2fma-x24.c
783 src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x4.c
784 src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x8.c
785 src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x12.c
786 src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x16.c
787 src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x20.c
788 src/f32-sigmoid/gen/neonfma-rr1-p5-nr1recps1fma-x24.c
789 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x4.c
790 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x8.c
791 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x12.c
792 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x16.c
793 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x20.c
794 src/f32-sigmoid/gen/neonfma-rr1-p5-nr2recps-x24.c
795 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x4.c
796 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x8.c
797 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x12.c
798 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x16.c
799 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x20.c
800 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2fma-x24.c
801 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x4.c
802 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x8.c
803 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x12.c
804 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x16.c
805 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x20.c
806 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr1recps1fma-x24.c
807 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x4.c
808 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x8.c
809 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x12.c
810 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x16.c
811 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x20.c
812 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-nr2recps-x24.c
813 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x4.c
814 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x8.c
815 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x12.c
816 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x16.c
817 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x20.c
818 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2fma-x24.c
819 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x4.c
820 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x8.c
821 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x12.c
822 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x16.c
823 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x20.c
824 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr1recps1fma-x24.c
825 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x4.c
826 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x8.c
827 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x12.c
828 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x16.c
829 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x20.c
830 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-nr2recps-x24.c
Marat Dukhan99936602020-04-11 16:47:01 -0700831 src/f32-vmulcaddc/gen/c4-minmax-neonfma-2x.c
832 src/f32-vmulcaddc/gen/c8-minmax-neonfma-2x.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800833 src/math/exp-neonfma-lut64-p2.c
834 src/math/exp-neonfma-p5.c
Marat Dukhan191e5cd2019-11-28 00:52:01 -0800835 src/math/expminus-neonfma-lut2048-p1.c
Marat Dukhan189ae802019-11-26 11:28:44 -0800836 src/math/expminus-neonfma-lut64-p2.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800837 src/math/expminus-neonfma-p5.c
Marat Dukhan77221d32020-01-06 10:04:39 -0800838 src/math/sigmoid-neonfma-rr1-lut2048-p1-nr1recps1fma.c
839 src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2fma.c
840 src/math/sigmoid-neonfma-rr1-lut2048-p1-nr2recps.c
841 src/math/sigmoid-neonfma-rr1-lut64-p2-nr1recps1fma.c
842 src/math/sigmoid-neonfma-rr1-lut64-p2-nr2fma.c
843 src/math/sigmoid-neonfma-rr1-lut64-p2-nr2recps.c
844 src/math/sigmoid-neonfma-rr1-p5-nr1recps1fma.c
845 src/math/sigmoid-neonfma-rr1-p5-nr2fma.c
846 src/math/sigmoid-neonfma-rr1-p5-nr2recps.c
847 src/math/sigmoid-neonfma-rr2-lut2048-p1-nr1recps1fma.c
848 src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2fma.c
849 src/math/sigmoid-neonfma-rr2-lut2048-p1-nr2recps.c
850 src/math/sigmoid-neonfma-rr2-lut64-p2-nr1recps1fma.c
851 src/math/sigmoid-neonfma-rr2-lut64-p2-nr2fma.c
852 src/math/sigmoid-neonfma-rr2-lut64-p2-nr2recps.c
853 src/math/sigmoid-neonfma-rr2-p5-nr1recps1fma.c
854 src/math/sigmoid-neonfma-rr2-p5-nr2fma.c
855 src/math/sigmoid-neonfma-rr2-p5-nr2recps.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700856
Marat Dukhan8853b822020-05-07 12:19:01 -0700857SET(XNNPACK_NEONV8_MICROKERNEL_SRCS
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700858 src/math/roundne-neonv8.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -0700859 src/math/roundd-neonv8.c
860 src/math/roundu-neonv8.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -0700861 src/math/roundz-neonv8.c)
Marat Dukhan8853b822020-05-07 12:19:01 -0700862
Marat Dukhan36aecb52019-11-22 17:21:49 -0800863SET(XNNPACK_AARCH64_NEONFMA_MICROKERNEL_SRCS
Marat Dukhan91cd2b72020-04-09 23:57:31 -0700864 src/f32-vbinary/gen/vdiv-minmax-neon-x4.c
865 src/f32-vbinary/gen/vdiv-minmax-neon-x8.c
866 src/f32-vbinary/gen/vdivc-minmax-neon-x4.c
867 src/f32-vbinary/gen/vdivc-minmax-neon-x8.c
868 src/f32-vbinary/gen/vrdivc-minmax-neon-x4.c
869 src/f32-vbinary/gen/vrdivc-minmax-neon-x8.c
Marat Dukhan1c587112020-04-08 20:04:28 -0700870 src/f32-gemm/gen/1x8-minmax-neonfma-lane-ld64.c
871 src/f32-gemm/gen/4x2-minmax-neonfma-lane-ld64.c
872 src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld128.c
873 src/f32-gemm/gen/4x8-minmax-neonfma-lane-ld64.c
874 src/f32-gemm/gen/5x8-minmax-neonfma-lane-ld64.c
875 src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld64.c
876 src/f32-gemm/gen/6x8-minmax-neonfma-lane-ld128.c
877 src/f32-gemm/gen-inc/1x8inc-minmax-neonfma-lane-ld64.c
878 src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld128.c
879 src/f32-gemm/gen-inc/4x8inc-minmax-neonfma-lane-ld64.c
880 src/f32-gemm/gen-inc/5x8inc-minmax-neonfma-lane-ld64.c
881 src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld64.c
882 src/f32-gemm/gen-inc/6x8inc-minmax-neonfma-lane-ld128.c
883 src/f32-igemm/gen/1x8-minmax-neonfma-lane-ld64.c
884 src/f32-igemm/gen/4x2-minmax-neonfma-lane-ld64.c
885 src/f32-igemm/gen/4x4-minmax-neonfma-lane-ld64.c
886 src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld128.c
887 src/f32-igemm/gen/4x8-minmax-neonfma-lane-ld64.c
888 src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld64.c
889 src/f32-igemm/gen/6x8-minmax-neonfma-lane-ld128.c
Marat Dukhan36aecb52019-11-22 17:21:49 -0800890 src/f32-conv-hwc/3x3s2p1c3x4-neonfma-2x2.c
891 src/f32-conv-hwc/3x3s2p1c3x8-neonfma-2x2.c
892 src/f32-conv-hwc2spchw/3x3s2p1c3x4-neonfma-2x2.c
893 src/f32-dwconv-spchw/3x3p1-neonfma.c
894 src/f32-dwconv-spchw/5x5p2-neonfma.c
895 src/f32-dwconv-spchw/3x3s2p1-neonfma.c
896 src/f32-dwconv-spchw/5x5s2p2-neonfma.c
Marat Dukhan4a24a582020-01-06 13:30:00 -0800897 src/f32-sigmoid/gen/neonfma-rr1-p5-div-x4.c
898 src/f32-sigmoid/gen/neonfma-rr1-p5-div-x8.c
899 src/f32-sigmoid/gen/neonfma-rr1-p5-div-x12.c
900 src/f32-sigmoid/gen/neonfma-rr1-p5-div-x16.c
901 src/f32-sigmoid/gen/neonfma-rr1-p5-div-x20.c
902 src/f32-sigmoid/gen/neonfma-rr1-p5-div-x24.c
903 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x4.c
904 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x8.c
905 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x12.c
906 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x16.c
907 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x20.c
908 src/f32-sigmoid/gen/neonfma-rr1-lut64-p2-div-x24.c
909 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x4.c
910 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x8.c
911 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x12.c
912 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x16.c
913 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x20.c
914 src/f32-sigmoid/gen/neonfma-rr1-lut2048-p1-div-x24.c
Marat Dukhan355ab432020-04-09 19:01:52 -0700915 src/f32-spmm/gen/12x1-minmax-neonfma.c
916 src/f32-spmm/gen/12x2-minmax-neonfma.c
917 src/f32-spmm/gen/12x4-minmax-neonfma.c
918 src/f32-spmm/gen/16x1-minmax-neonfma-pipelined.c
919 src/f32-spmm/gen/16x1-minmax-neonfma-unroll2.c
920 src/f32-spmm/gen/16x1-minmax-neonfma.c
921 src/f32-spmm/gen/16x2-minmax-neonfma.c
922 src/f32-spmm/gen/16x4-minmax-neonfma.c
923 src/f32-spmm/gen/4x1-minmax-neonfma-pipelined.c
924 src/f32-spmm/gen/4x1-minmax-neonfma-unroll2.c
925 src/f32-spmm/gen/4x1-minmax-neonfma.c
926 src/f32-spmm/gen/4x2-minmax-neonfma.c
927 src/f32-spmm/gen/4x4-minmax-neonfma.c
928 src/f32-spmm/gen/8x1-minmax-neonfma-pipelined.c
929 src/f32-spmm/gen/8x1-minmax-neonfma-unroll2.c
930 src/f32-spmm/gen/8x1-minmax-neonfma.c
931 src/f32-spmm/gen/8x2-minmax-neonfma.c
932 src/f32-spmm/gen/8x4-minmax-neonfma.c
Marat Dukhan77221d32020-01-06 10:04:39 -0800933 src/math/sigmoid-neonfma-rr1-lut2048-p1-div.c
934 src/math/sigmoid-neonfma-rr1-lut64-p2-div.c
935 src/math/sigmoid-neonfma-rr1-p5-div.c
936 src/math/sigmoid-neonfma-rr2-lut2048-p1-div.c
937 src/math/sigmoid-neonfma-rr2-lut64-p2-div.c
938 src/math/sigmoid-neonfma-rr2-p5-div.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -0700939
940SET(XNNPACK_AARCH64_NEONFP16ARITH_MICROKERNEL_SRCS
Frank Barchardb1966592020-05-12 13:47:06 -0700941 src/f16-clamp/gen/neonfp16arith-x16.c
942 src/f16-clamp/gen/neonfp16arith-x8.c
943 src/f16-hswish/gen/neonfp16arith-x16.c
944 src/f16-hswish/gen/neonfp16arith-x8.c
945 src/f16-prelu/gen/neonfp16arith-2x16.c
946 src/f16-prelu/gen/neonfp16arith-2x8.c
Frank Barchardd793f6c2020-05-08 13:37:43 -0700947 src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x16.c
948 src/f16-vbinary/gen/vaddc-minmax-neonfp16arith-x8.c
949 src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x16.c
950 src/f16-vbinary/gen/vadd-minmax-neonfp16arith-x8.c
951 src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x16.c
952 src/f16-vbinary/gen/vdivc-minmax-neonfp16arith-x8.c
953 src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x16.c
954 src/f16-vbinary/gen/vdiv-minmax-neonfp16arith-x8.c
955 src/f16-vbinary/gen/vmaxc-neonfp16arith-x16.c
956 src/f16-vbinary/gen/vmaxc-neonfp16arith-x8.c
957 src/f16-vbinary/gen/vmax-neonfp16arith-x16.c
958 src/f16-vbinary/gen/vmax-neonfp16arith-x8.c
959 src/f16-vbinary/gen/vminc-neonfp16arith-x16.c
960 src/f16-vbinary/gen/vminc-neonfp16arith-x8.c
961 src/f16-vbinary/gen/vmin-neonfp16arith-x16.c
962 src/f16-vbinary/gen/vmin-neonfp16arith-x8.c
963 src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x16.c
964 src/f16-vbinary/gen/vmulc-minmax-neonfp16arith-x8.c
965 src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x16.c
966 src/f16-vbinary/gen/vmul-minmax-neonfp16arith-x8.c
967 src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x16.c
968 src/f16-vbinary/gen/vrdivc-minmax-neonfp16arith-x8.c
969 src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x16.c
970 src/f16-vbinary/gen/vrsubc-minmax-neonfp16arith-x8.c
971 src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x16.c
972 src/f16-vbinary/gen/vsubc-minmax-neonfp16arith-x8.c
973 src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x16.c
974 src/f16-vbinary/gen/vsub-minmax-neonfp16arith-x8.c
Frank Barchard83ea9392020-04-20 20:15:14 -0700975 src/f16-gemm/gen/1x8-minmax-neonfp16arith-ld64.c
976 src/f16-gemm/gen/4x8-minmax-neonfp16arith-ld64.c
977 src/f16-gemm/gen/6x8-minmax-neonfp16arith-ld64.c
978 src/f16-gemm/gen/8x8-minmax-neonfp16arith-ld64.c
979 src/f16-gemm/gen-inc/1x8inc-minmax-neonfp16arith-ld64.c
980 src/f16-gemm/gen-inc/4x8inc-minmax-neonfp16arith-ld64.c
981 src/f16-gemm/gen-inc/6x8inc-minmax-neonfp16arith-ld64.c
982 src/f16-gemm/gen-inc/8x8inc-minmax-neonfp16arith-ld64.c
Frank Barchardb0e4fae2020-05-04 15:27:51 -0700983 src/f16-igemm/gen/1x8-minmax-neonfp16arith-ld64.c
984 src/f16-igemm/gen/4x8-minmax-neonfp16arith-ld64.c
985 src/f16-igemm/gen/6x8-minmax-neonfp16arith-ld64.c
986 src/f16-igemm/gen/8x8-minmax-neonfp16arith-ld64.c
Frank Barchard3f9f99f2020-05-06 01:12:04 -0700987 src/f16-gemm/gen/1x16-minmax-neonfp16arith-ld64.c
988 src/f16-gemm/gen/4x16-minmax-neonfp16arith-ld64.c
989 src/f16-gemm/gen/6x16-minmax-neonfp16arith-ld64.c
990 src/f16-gemm/gen/8x16-minmax-neonfp16arith-ld64.c
991 src/f16-gemm/gen-inc/1x16inc-minmax-neonfp16arith-ld64.c
992 src/f16-gemm/gen-inc/4x16inc-minmax-neonfp16arith-ld64.c
993 src/f16-gemm/gen-inc/6x16inc-minmax-neonfp16arith-ld64.c
994 src/f16-gemm/gen-inc/8x16inc-minmax-neonfp16arith-ld64.c
995 src/f16-igemm/gen/1x16-minmax-neonfp16arith-ld64.c
996 src/f16-igemm/gen/4x16-minmax-neonfp16arith-ld64.c
997 src/f16-igemm/gen/6x16-minmax-neonfp16arith-ld64.c
998 src/f16-igemm/gen/8x16-minmax-neonfp16arith-ld64.c
Marat Dukhan355ab432020-04-09 19:01:52 -0700999 src/f16-spmm/gen/8x1-minmax-neonfp16arith.c
1000 src/f16-spmm/gen/8x1-minmax-neonfp16arith-unroll2.c
1001 src/f16-spmm/gen/16x1-minmax-neonfp16arith.c
1002 src/f16-spmm/gen/16x1-minmax-neonfp16arith-unroll2.c
1003 src/f16-spmm/gen/24x1-minmax-neonfp16arith.c
1004 src/f16-spmm/gen/24x1-minmax-neonfp16arith-unroll2.c
1005 src/f16-spmm/gen/32x1-minmax-neonfp16arith.c
1006 src/f16-spmm/gen/32x1-minmax-neonfp16arith-unroll2.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001007
1008SET(XNNPACK_SSE_MICROKERNEL_SRCS
Marat Dukhan99936602020-04-11 16:47:01 -07001009 src/f32-avgpool/9p8x-minmax-sse-c4.c
1010 src/f32-avgpool/9x-minmax-sse-c4.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001011 src/f32-clamp/gen/sse-x4.c
1012 src/f32-clamp/gen/sse-x8.c
Marat Dukhan1e782c42019-11-21 17:02:40 -08001013 src/f32-dwconv-spchw/3x3p1-sse.c
1014 src/f32-dwconv-spchw/3x3s2p1-sse.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001015 src/f32-dwconv/gen/up4x25-minmax-sse-acc2.c
1016 src/f32-dwconv/gen/up4x25-minmax-sse.c
1017 src/f32-dwconv/gen/up4x4-minmax-sse-acc2.c
1018 src/f32-dwconv/gen/up4x4-minmax-sse.c
1019 src/f32-dwconv/gen/up4x9-minmax-sse-acc2.c
1020 src/f32-dwconv/gen/up4x9-minmax-sse.c
1021 src/f32-dwconv/gen/up8x25-minmax-sse-acc2.c
1022 src/f32-dwconv/gen/up8x25-minmax-sse.c
1023 src/f32-dwconv/gen/up8x4-minmax-sse-acc2.c
1024 src/f32-dwconv/gen/up8x4-minmax-sse.c
1025 src/f32-dwconv/gen/up8x9-minmax-sse-acc2.c
1026 src/f32-dwconv/gen/up8x9-minmax-sse.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001027 src/f32-gavgpool-spchw/sse-x4.c
Marat Dukhanb9d07cf2020-04-11 20:25:31 -07001028 src/f32-gavgpool/7p7x-minmax-sse-c4.c
1029 src/f32-gavgpool/7x-minmax-sse-c4.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001030 src/f32-gemm/gen/1x8-minmax-sse-dup.c
1031 src/f32-gemm/gen/1x8-minmax-sse-load1.c
1032 src/f32-gemm/gen/1x8s4-minmax-sse.c
1033 src/f32-gemm/gen/4x2c4-minmax-sse.c
1034 src/f32-gemm/gen/4x8-minmax-sse-dup.c
1035 src/f32-gemm/gen/4x8-minmax-sse-load1.c
1036 src/f32-gemm/gen/4x8s4-minmax-sse.c
1037 src/f32-gemm/gen-inc/1x8inc-minmax-sse-dup.c
1038 src/f32-gemm/gen-inc/1x8inc-minmax-sse-load1.c
1039 src/f32-gemm/gen-inc/1x8s4inc-minmax-sse.c
1040 src/f32-gemm/gen-inc/4x8inc-minmax-sse-dup.c
1041 src/f32-gemm/gen-inc/4x8inc-minmax-sse-load1.c
1042 src/f32-gemm/gen-inc/4x8s4inc-minmax-sse.c
Marat Dukhan662faa02019-12-09 22:48:16 -08001043 src/f32-hswish/gen/sse-x4.c
1044 src/f32-hswish/gen/sse-x8.c
Marat Dukhan660fd192020-03-10 04:55:30 -07001045 src/f32-ibilinear/gen/sse-c4.c
1046 src/f32-ibilinear/gen/sse-c8.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001047 src/f32-igemm/gen/1x8-minmax-sse-dup.c
1048 src/f32-igemm/gen/1x8-minmax-sse-load1.c
1049 src/f32-igemm/gen/1x8s4-minmax-sse.c
1050 src/f32-igemm/gen/4x2c4-minmax-sse.c
1051 src/f32-igemm/gen/4x8-minmax-sse-dup.c
1052 src/f32-igemm/gen/4x8-minmax-sse-load1.c
1053 src/f32-igemm/gen/4x8s4-minmax-sse.c
Marat Dukhan99936602020-04-11 16:47:01 -07001054 src/f32-maxpool/9p8x-minmax-sse-c4.c
1055 src/f32-pavgpool/9p8x-minmax-sse-c4.c
1056 src/f32-pavgpool/9x-minmax-sse-c4.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001057 src/f32-ppmm/gen/4x8-minmax-sse.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001058 src/f32-rmax/sse.c
Marat Dukhan355ab432020-04-09 19:01:52 -07001059 src/f32-spmm/gen/4x1-minmax-sse.c
1060 src/f32-spmm/gen/8x1-minmax-sse.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001061 src/f32-vbinary/gen/vadd-minmax-sse-x4.c
1062 src/f32-vbinary/gen/vadd-minmax-sse-x8.c
1063 src/f32-vbinary/gen/vaddc-minmax-sse-x4.c
1064 src/f32-vbinary/gen/vaddc-minmax-sse-x8.c
1065 src/f32-vbinary/gen/vdiv-minmax-sse-x4.c
1066 src/f32-vbinary/gen/vdiv-minmax-sse-x8.c
1067 src/f32-vbinary/gen/vdivc-minmax-sse-x4.c
1068 src/f32-vbinary/gen/vdivc-minmax-sse-x8.c
Marat Dukhan403b7d42019-12-05 12:49:11 -08001069 src/f32-vbinary/gen/vmax-sse-x4.c
1070 src/f32-vbinary/gen/vmax-sse-x8.c
1071 src/f32-vbinary/gen/vmaxc-sse-x4.c
1072 src/f32-vbinary/gen/vmaxc-sse-x8.c
1073 src/f32-vbinary/gen/vmin-sse-x4.c
1074 src/f32-vbinary/gen/vmin-sse-x8.c
1075 src/f32-vbinary/gen/vminc-sse-x4.c
1076 src/f32-vbinary/gen/vminc-sse-x8.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001077 src/f32-vbinary/gen/vmul-minmax-sse-x4.c
1078 src/f32-vbinary/gen/vmul-minmax-sse-x8.c
1079 src/f32-vbinary/gen/vmulc-minmax-sse-x4.c
1080 src/f32-vbinary/gen/vmulc-minmax-sse-x8.c
1081 src/f32-vbinary/gen/vrdivc-minmax-sse-x4.c
1082 src/f32-vbinary/gen/vrdivc-minmax-sse-x8.c
1083 src/f32-vbinary/gen/vrsubc-minmax-sse-x4.c
1084 src/f32-vbinary/gen/vrsubc-minmax-sse-x8.c
1085 src/f32-vbinary/gen/vsub-minmax-sse-x4.c
1086 src/f32-vbinary/gen/vsub-minmax-sse-x8.c
1087 src/f32-vbinary/gen/vsubc-minmax-sse-x4.c
1088 src/f32-vbinary/gen/vsubc-minmax-sse-x8.c
Marat Dukhan99936602020-04-11 16:47:01 -07001089 src/f32-vmulcaddc/gen/c4-minmax-sse-2x.c
1090 src/f32-vmulcaddc/gen/c8-minmax-sse-2x.c
Marat Dukhan8853b822020-05-07 12:19:01 -07001091 src/x32-packx/x4-sse.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001092 src/math/roundne-sse-addsub.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001093 src/math/roundd-sse-addsub.c
1094 src/math/roundu-sse-addsub.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001095 src/math/roundz-sse-addsub.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001096
1097SET(XNNPACK_SSE2_MICROKERNEL_SRCS
Ashkan Aliabadif866a452019-11-20 10:58:51 -08001098 src/f32-argmaxpool/4x-sse2-c4.c
1099 src/f32-argmaxpool/9p8x-sse2-c4.c
1100 src/f32-argmaxpool/9x-sse2-c4.c
Marat Dukhan40a672f2019-11-25 03:08:22 -08001101 src/f32-prelu/gen/sse2-2x4.c
1102 src/f32-prelu/gen/sse2-2x8.c
Marat Dukhanb39689d2020-01-24 13:32:20 -08001103 src/f32-raddstoreexpminusmax/gen/sse2-p5-x4.c
1104 src/f32-raddstoreexpminusmax/gen/sse2-p5-x8.c
1105 src/f32-raddstoreexpminusmax/gen/sse2-p5-x8-acc2.c
1106 src/f32-raddstoreexpminusmax/gen/sse2-p5-x12.c
1107 src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc2.c
1108 src/f32-raddstoreexpminusmax/gen/sse2-p5-x12-acc3.c
1109 src/f32-raddstoreexpminusmax/gen/sse2-p5-x16.c
1110 src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc2.c
1111 src/f32-raddstoreexpminusmax/gen/sse2-p5-x16-acc4.c
1112 src/f32-raddstoreexpminusmax/gen/sse2-p5-x20.c
1113 src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc2.c
1114 src/f32-raddstoreexpminusmax/gen/sse2-p5-x20-acc5.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001115 src/f32-sigmoid/gen/sse2-p5-div-x4.c
Marat Dukhan40a672f2019-11-25 03:08:22 -08001116 src/f32-sigmoid/gen/sse2-p5-div-x8.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001117 src/f32-sigmoid/gen/sse2-p5-div-x12.c
Marat Dukhan40a672f2019-11-25 03:08:22 -08001118 src/f32-sigmoid/gen/sse2-p5-div-x16.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001119 src/f32-sigmoid/gen/sse2-p5-div-x20.c
1120 src/f32-sigmoid/gen/sse2-p5-div-x24.c
Marat Dukhan99936602020-04-11 16:47:01 -07001121 src/q8-avgpool/9p8x-minmax-sse2-c8.c
1122 src/q8-avgpool/9x-minmax-sse2-c8.c
Marat Dukhande06f492020-04-09 00:19:31 -07001123 src/q8-igemm/4x4c2-minmax-sse2.c
1124 src/q8-dwconv/up8x9-minmax-sse2.c
Marat Dukhan99936602020-04-11 16:47:01 -07001125 src/q8-gavgpool/7p7x-minmax-sse2-c8.c
1126 src/q8-gavgpool/7x-minmax-sse2-c8.c
Marat Dukhande06f492020-04-09 00:19:31 -07001127 src/q8-gemm/2x4c8-minmax-sse2.c
1128 src/q8-gemm/4x4c2-minmax-sse2.c
Marat Dukhan99936602020-04-11 16:47:01 -07001129 src/q8-vadd/minmax-sse2.c
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001130 src/u8-clamp/sse2-x64.c
Marat Dukhan99936602020-04-11 16:47:01 -07001131 src/u8-maxpool/9p8x-minmax-sse2-c16.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001132 src/u8-rmax/sse2.c
1133 src/x32-pad/x2-sse2.c
Marat Dukhan57dccd82020-04-14 00:53:10 -07001134 src/x32-unpool/sse2.c
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001135 src/x32-zip/x2-sse2.c
1136 src/x32-zip/x3-sse2.c
1137 src/x32-zip/x4-sse2.c
1138 src/x32-zip/xm-sse2.c
1139 src/x8-zip/x2-sse2.c
1140 src/x8-zip/x3-sse2.c
1141 src/x8-zip/x4-sse2.c
Marat Dukhan9d501d52019-11-16 02:30:50 -08001142 src/x8-zip/xm-sse2.c
1143 src/math/exp-sse2-p5.c
Marat Dukhan80bafd22019-11-18 10:16:01 -08001144 src/math/expminus-sse2-p5.c
Marat Dukhan075088a2020-05-12 19:42:12 -07001145 src/math/roundne-sse2-cvt.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001146 src/math/roundd-sse2-cvt.c
1147 src/math/roundu-sse2-cvt.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001148 src/math/roundz-sse2-cvt.c
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001149 src/math/sigmoid-sse2-p5-div.c
1150 src/requantization/precise-sse2.c
1151 src/requantization/fp32-sse2.c
1152 src/requantization/q31-sse2.c
1153 src/requantization/gemmlowp-sse2.c)
1154
1155SET(XNNPACK_SSSE3_MICROKERNEL_SRCS
1156 src/requantization/precise-ssse3.c
1157 src/requantization/q31-ssse3.c
1158 src/requantization/gemmlowp-ssse3.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001159
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001160SET(XNNPACK_SSE41_MICROKERNEL_SRCS
Marat Dukhan40a672f2019-11-25 03:08:22 -08001161 src/f32-prelu/gen/sse41-2x4.c
1162 src/f32-prelu/gen/sse41-2x8.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001163 src/f32-sigmoid/gen/sse41-p5-div-x4.c
Marat Dukhan40a672f2019-11-25 03:08:22 -08001164 src/f32-sigmoid/gen/sse41-p5-div-x8.c
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001165 src/f32-sigmoid/gen/sse41-p5-div-x12.c
1166 src/f32-sigmoid/gen/sse41-p5-div-x16.c
1167 src/f32-sigmoid/gen/sse41-p5-div-x20.c
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001168 src/f32-sigmoid/gen/sse41-p5-div-x24.c
Marat Dukhan8853b822020-05-07 12:19:01 -07001169 src/math/roundne-sse41.c
Marat Dukhanc9852ba2020-05-13 17:21:29 -07001170 src/math/roundd-sse41.c
1171 src/math/roundu-sse41.c
Marat Dukhan2dbb9442020-05-12 20:43:43 -07001172 src/math/roundz-sse41.c
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001173 src/requantization/precise-sse4.c
1174 src/requantization/q31-sse4.c
1175 src/requantization/gemmlowp-sse4.c)
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001176
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001177SET(XNNPACK_AVX_MICROKERNEL_SRCS
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001178 src/f32-clamp/gen/avx-x8.c
1179 src/f32-clamp/gen/avx-x16.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001180 src/f32-dwconv/gen/up16x4-minmax-avx-acc2.c
1181 src/f32-dwconv/gen/up16x4-minmax-avx.c
1182 src/f32-dwconv/gen/up8x4-minmax-avx-acc2.c
1183 src/f32-dwconv/gen/up8x4-minmax-avx.c
1184 src/f32-dwconv/gen/up16x9-minmax-avx-acc2.c
1185 src/f32-dwconv/gen/up16x9-minmax-avx.c
1186 src/f32-dwconv/gen/up8x9-minmax-avx-acc2.c
1187 src/f32-dwconv/gen/up8x9-minmax-avx.c
1188 src/f32-dwconv/gen/up16x25-minmax-avx-acc2.c
1189 src/f32-dwconv/gen/up16x25-minmax-avx.c
1190 src/f32-dwconv/gen/up8x25-minmax-avx-acc2.c
1191 src/f32-dwconv/gen/up8x25-minmax-avx.c
1192 src/f32-gemm/gen/1x8-minmax-avx-broadcast.c
1193 src/f32-gemm/gen/4x8-minmax-avx-broadcast.c
1194 src/f32-gemm/gen/5x8-minmax-avx-broadcast.c
1195 src/f32-gemm/gen/6x8-minmax-avx-broadcast.c
1196 src/f32-gemm/gen/7x8-minmax-avx-broadcast.c
1197 src/f32-gemm/gen/1x16-minmax-avx-broadcast.c
1198 src/f32-gemm/gen/3x16-minmax-avx-broadcast.c
1199 src/f32-gemm/gen/4x16-minmax-avx-broadcast.c
1200 src/f32-gemm/gen/5x16-minmax-avx-broadcast.c
1201 src/f32-gemm/gen-inc/1x8inc-minmax-avx-broadcast.c
1202 src/f32-gemm/gen-inc/4x8inc-minmax-avx-broadcast.c
1203 src/f32-gemm/gen-inc/5x8inc-minmax-avx-broadcast.c
1204 src/f32-gemm/gen-inc/6x8inc-minmax-avx-broadcast.c
1205 src/f32-gemm/gen-inc/7x8inc-minmax-avx-broadcast.c
1206 src/f32-gemm/gen-inc/1x16inc-minmax-avx-broadcast.c
1207 src/f32-gemm/gen-inc/3x16inc-minmax-avx-broadcast.c
1208 src/f32-gemm/gen-inc/4x16inc-minmax-avx-broadcast.c
1209 src/f32-gemm/gen-inc/5x16inc-minmax-avx-broadcast.c
Marat Dukhan662faa02019-12-09 22:48:16 -08001210 src/f32-hswish/gen/avx-x8.c
1211 src/f32-hswish/gen/avx-x16.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001212 src/f32-igemm/gen/1x8-minmax-avx-broadcast.c
1213 src/f32-igemm/gen/4x8-minmax-avx-broadcast.c
1214 src/f32-igemm/gen/5x8-minmax-avx-broadcast.c
1215 src/f32-igemm/gen/6x8-minmax-avx-broadcast.c
1216 src/f32-igemm/gen/7x8-minmax-avx-broadcast.c
1217 src/f32-igemm/gen/1x16-minmax-avx-broadcast.c
1218 src/f32-igemm/gen/3x16-minmax-avx-broadcast.c
1219 src/f32-igemm/gen/4x16-minmax-avx-broadcast.c
1220 src/f32-igemm/gen/5x16-minmax-avx-broadcast.c
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001221 src/f32-prelu/gen/avx-2x8.c
1222 src/f32-prelu/gen/avx-2x16.c
Marat Dukhana5977df2019-10-30 22:02:15 -07001223 src/f32-rmax/avx.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001224 src/f32-vbinary/gen/vadd-minmax-avx-x8.c
1225 src/f32-vbinary/gen/vadd-minmax-avx-x16.c
1226 src/f32-vbinary/gen/vaddc-minmax-avx-x8.c
1227 src/f32-vbinary/gen/vaddc-minmax-avx-x16.c
1228 src/f32-vbinary/gen/vdiv-minmax-avx-x8.c
1229 src/f32-vbinary/gen/vdiv-minmax-avx-x16.c
1230 src/f32-vbinary/gen/vdivc-minmax-avx-x8.c
1231 src/f32-vbinary/gen/vdivc-minmax-avx-x16.c
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001232 src/f32-vbinary/gen/vmax-avx-x8.c
1233 src/f32-vbinary/gen/vmax-avx-x16.c
1234 src/f32-vbinary/gen/vmaxc-avx-x8.c
1235 src/f32-vbinary/gen/vmaxc-avx-x16.c
1236 src/f32-vbinary/gen/vmin-avx-x8.c
1237 src/f32-vbinary/gen/vmin-avx-x16.c
1238 src/f32-vbinary/gen/vminc-avx-x8.c
1239 src/f32-vbinary/gen/vminc-avx-x16.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001240 src/f32-vbinary/gen/vmul-minmax-avx-x8.c
1241 src/f32-vbinary/gen/vmul-minmax-avx-x16.c
1242 src/f32-vbinary/gen/vmulc-minmax-avx-x8.c
1243 src/f32-vbinary/gen/vmulc-minmax-avx-x16.c
1244 src/f32-vbinary/gen/vrdivc-minmax-avx-x8.c
1245 src/f32-vbinary/gen/vrdivc-minmax-avx-x16.c
1246 src/f32-vbinary/gen/vrsubc-minmax-avx-x8.c
1247 src/f32-vbinary/gen/vrsubc-minmax-avx-x16.c
1248 src/f32-vbinary/gen/vsub-minmax-avx-x8.c
1249 src/f32-vbinary/gen/vsub-minmax-avx-x16.c
1250 src/f32-vbinary/gen/vsubc-minmax-avx-x8.c
1251 src/f32-vbinary/gen/vsubc-minmax-avx-x16.c
Marat Dukhana5977df2019-10-30 22:02:15 -07001252 src/f32-vscale/avx-unroll32.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001253
Marat Dukhanfda12b82019-11-21 12:27:59 -08001254SET(XNNPACK_FMA3_MICROKERNEL_SRCS
Marat Dukhan1c587112020-04-08 20:04:28 -07001255 src/f32-dwconv/gen/up16x4-minmax-fma3-acc2.c
1256 src/f32-dwconv/gen/up16x4-minmax-fma3.c
1257 src/f32-dwconv/gen/up8x4-minmax-fma3-acc2.c
1258 src/f32-dwconv/gen/up8x4-minmax-fma3.c
1259 src/f32-dwconv/gen/up16x9-minmax-fma3-acc2.c
1260 src/f32-dwconv/gen/up16x9-minmax-fma3.c
1261 src/f32-dwconv/gen/up8x9-minmax-fma3-acc2.c
1262 src/f32-dwconv/gen/up8x9-minmax-fma3.c
1263 src/f32-dwconv/gen/up16x25-minmax-fma3-acc2.c
1264 src/f32-dwconv/gen/up16x25-minmax-fma3.c
1265 src/f32-dwconv/gen/up8x25-minmax-fma3-acc2.c
1266 src/f32-dwconv/gen/up8x25-minmax-fma3.c
1267 src/f32-gemm/gen/1x8-minmax-fma3-broadcast.c
1268 src/f32-gemm/gen/4x8-minmax-fma3-broadcast.c
1269 src/f32-gemm/gen/5x8-minmax-fma3-broadcast.c
1270 src/f32-gemm/gen/6x8-minmax-fma3-broadcast.c
1271 src/f32-gemm/gen/7x8-minmax-fma3-broadcast.c
1272 src/f32-gemm/gen/8x8-minmax-fma3-broadcast.c
1273 src/f32-gemm/gen/1x16-minmax-fma3-broadcast.c
1274 src/f32-gemm/gen/3x16-minmax-fma3-broadcast.c
1275 src/f32-gemm/gen/4x16-minmax-fma3-broadcast.c
1276 src/f32-gemm/gen/5x16-minmax-fma3-broadcast.c
1277 src/f32-gemm/gen/1x16s4-minmax-fma3-broadcast.c
1278 src/f32-gemm/gen/3x16s4-minmax-fma3-broadcast.c
1279 src/f32-gemm/gen/4x16s4-minmax-fma3-broadcast.c
1280 src/f32-gemm/gen/5x16s4-minmax-fma3-broadcast.c
1281 src/f32-gemm/gen-inc/1x8inc-minmax-fma3-broadcast.c
1282 src/f32-gemm/gen-inc/4x8inc-minmax-fma3-broadcast.c
1283 src/f32-gemm/gen-inc/5x8inc-minmax-fma3-broadcast.c
1284 src/f32-gemm/gen-inc/6x8inc-minmax-fma3-broadcast.c
1285 src/f32-gemm/gen-inc/7x8inc-minmax-fma3-broadcast.c
1286 src/f32-gemm/gen-inc/8x8inc-minmax-fma3-broadcast.c
1287 src/f32-gemm/gen-inc/1x16inc-minmax-fma3-broadcast.c
1288 src/f32-gemm/gen-inc/3x16inc-minmax-fma3-broadcast.c
1289 src/f32-gemm/gen-inc/4x16inc-minmax-fma3-broadcast.c
1290 src/f32-gemm/gen-inc/5x16inc-minmax-fma3-broadcast.c
1291 src/f32-gemm/gen-inc/1x16s4inc-minmax-fma3-broadcast.c
1292 src/f32-gemm/gen-inc/3x16s4inc-minmax-fma3-broadcast.c
1293 src/f32-gemm/gen-inc/4x16s4inc-minmax-fma3-broadcast.c
1294 src/f32-gemm/gen-inc/5x16s4inc-minmax-fma3-broadcast.c
Marat Dukhan662faa02019-12-09 22:48:16 -08001295 src/f32-hswish/gen/fma3-x8.c
1296 src/f32-hswish/gen/fma3-x16.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001297 src/f32-igemm/gen/1x8-minmax-fma3-broadcast.c
1298 src/f32-igemm/gen/4x8-minmax-fma3-broadcast.c
1299 src/f32-igemm/gen/5x8-minmax-fma3-broadcast.c
1300 src/f32-igemm/gen/6x8-minmax-fma3-broadcast.c
1301 src/f32-igemm/gen/7x8-minmax-fma3-broadcast.c
1302 src/f32-igemm/gen/8x8-minmax-fma3-broadcast.c
1303 src/f32-igemm/gen/1x16-minmax-fma3-broadcast.c
1304 src/f32-igemm/gen/3x16-minmax-fma3-broadcast.c
1305 src/f32-igemm/gen/4x16-minmax-fma3-broadcast.c
1306 src/f32-igemm/gen/5x16-minmax-fma3-broadcast.c
1307 src/f32-igemm/gen/1x16s4-minmax-fma3-broadcast.c
1308 src/f32-igemm/gen/3x16s4-minmax-fma3-broadcast.c
1309 src/f32-igemm/gen/4x16s4-minmax-fma3-broadcast.c
1310 src/f32-igemm/gen/5x16s4-minmax-fma3-broadcast.c)
Marat Dukhanfda12b82019-11-21 12:27:59 -08001311
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001312SET(XNNPACK_AVX2_MICROKERNEL_SRCS
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001313 src/f32-raddexpminusmax/gen/avx2-p5-x64.c
1314 src/f32-raddexpminusmax/gen/avx2-p5-x64-acc2.c
1315 src/f32-raddexpminusmax/gen/avx2-p5-x64-acc4.c
1316 src/f32-raddexpminusmax/gen/avx2-p5-x72.c
1317 src/f32-raddexpminusmax/gen/avx2-p5-x72-acc3.c
1318 src/f32-raddexpminusmax/gen/avx2-p5-x80.c
1319 src/f32-raddexpminusmax/gen/avx2-p5-x80-acc2.c
1320 src/f32-raddexpminusmax/gen/avx2-p5-x80-acc5.c
1321 src/f32-raddexpminusmax/gen/avx2-p5-x96.c
1322 src/f32-raddexpminusmax/gen/avx2-p5-x96-acc2.c
1323 src/f32-raddexpminusmax/gen/avx2-p5-x96-acc3.c
1324 src/f32-raddexpminusmax/gen/avx2-p5-x96-acc6.c
1325 src/f32-raddextexp/gen/avx2-p5-x64.c
1326 src/f32-raddextexp/gen/avx2-p5-x64-acc2.c
1327 src/f32-raddextexp/gen/avx2-p5-x64-acc4.c
1328 src/f32-raddextexp/gen/avx2-p5-x72.c
1329 src/f32-raddextexp/gen/avx2-p5-x72-acc3.c
1330 src/f32-raddextexp/gen/avx2-p5-x80.c
1331 src/f32-raddextexp/gen/avx2-p5-x80-acc2.c
1332 src/f32-raddextexp/gen/avx2-p5-x80-acc5.c
1333 src/f32-raddextexp/gen/avx2-p5-x96.c
1334 src/f32-raddextexp/gen/avx2-p5-x96-acc2.c
1335 src/f32-raddextexp/gen/avx2-p5-x96-acc3.c
1336 src/f32-raddextexp/gen/avx2-p5-x96-acc6.c
1337 src/f32-raddstoreexpminusmax/gen/avx2-p5-x64.c
1338 src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc2.c
1339 src/f32-raddstoreexpminusmax/gen/avx2-p5-x64-acc4.c
1340 src/f32-raddstoreexpminusmax/gen/avx2-p5-x72.c
1341 src/f32-raddstoreexpminusmax/gen/avx2-p5-x72-acc3.c
1342 src/f32-raddstoreexpminusmax/gen/avx2-p5-x80.c
1343 src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc2.c
1344 src/f32-raddstoreexpminusmax/gen/avx2-p5-x80-acc5.c
1345 src/f32-raddstoreexpminusmax/gen/avx2-p5-x96.c
1346 src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc2.c
1347 src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc3.c
1348 src/f32-raddstoreexpminusmax/gen/avx2-p5-x96-acc6.c
Marat Dukhanfa0a4322020-01-06 16:14:29 -08001349 src/f32-sigmoid/gen/avx2-rr1-p5-div-x8.c
1350 src/f32-sigmoid/gen/avx2-rr1-p5-div-x16.c
1351 src/f32-sigmoid/gen/avx2-rr1-p5-div-x24.c
1352 src/f32-sigmoid/gen/avx2-rr1-p5-div-x32.c
1353 src/f32-sigmoid/gen/avx2-rr1-p5-div-x40.c
1354 src/f32-sigmoid/gen/avx2-rr1-p5-div-x48.c
1355 src/f32-sigmoid/gen/avx2-rr1-p5-div-x56.c
1356 src/f32-sigmoid/gen/avx2-rr1-p5-div-x64.c
1357 src/f32-sigmoid/gen/avx2-rr1-p5-div-x72.c
1358 src/f32-sigmoid/gen/avx2-rr1-p5-div-x80.c
1359 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x8.c
1360 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x16.c
1361 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x24.c
1362 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x32.c
1363 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x40.c
1364 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x48.c
1365 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x56.c
1366 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x64.c
1367 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x72.c
1368 src/f32-sigmoid/gen/avx2-rr1-p5-nr1fma-x80.c
1369 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x8.c
1370 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x16.c
1371 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x24.c
1372 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x32.c
1373 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x40.c
1374 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x48.c
1375 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x56.c
1376 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x64.c
1377 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x72.c
1378 src/f32-sigmoid/gen/avx2-rr1-p5-nr2fma-x80.c
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001379 src/f32-vscaleexpminusmax/gen/avx2-p5-x8.c
1380 src/f32-vscaleexpminusmax/gen/avx2-p5-x16.c
1381 src/f32-vscaleexpminusmax/gen/avx2-p5-x24.c
1382 src/f32-vscaleexpminusmax/gen/avx2-p5-x32.c
1383 src/f32-vscaleexpminusmax/gen/avx2-p5-x40.c
1384 src/f32-vscaleexpminusmax/gen/avx2-p5-x48.c
1385 src/f32-vscaleexpminusmax/gen/avx2-p5-x56.c
1386 src/f32-vscaleexpminusmax/gen/avx2-p5-x64.c
1387 src/f32-vscaleexpminusmax/gen/avx2-p5-x72.c
1388 src/f32-vscaleexpminusmax/gen/avx2-p5-x80.c
1389 src/f32-vscaleexpminusmax/gen/avx2-p5-x88.c
1390 src/f32-vscaleexpminusmax/gen/avx2-p5-x96.c
1391 src/f32-vscaleextexp/gen/avx2-p5-x8.c
1392 src/f32-vscaleextexp/gen/avx2-p5-x16.c
1393 src/f32-vscaleextexp/gen/avx2-p5-x24.c
1394 src/f32-vscaleextexp/gen/avx2-p5-x32.c
1395 src/f32-vscaleextexp/gen/avx2-p5-x40.c
1396 src/f32-vscaleextexp/gen/avx2-p5-x48.c
1397 src/f32-vscaleextexp/gen/avx2-p5-x56.c
1398 src/f32-vscaleextexp/gen/avx2-p5-x64.c
1399 src/f32-vscaleextexp/gen/avx2-p5-x72.c
1400 src/f32-vscaleextexp/gen/avx2-p5-x80.c
1401 src/f32-vscaleextexp/gen/avx2-p5-x88.c
1402 src/f32-vscaleextexp/gen/avx2-p5-x96.c
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001403 src/math/exp-avx2-p5.c
1404 src/math/exp-avx2-perm-p3.c
Marat Dukhan515c9772019-10-17 18:07:57 -07001405 src/math/exp-avx2-perm-p4.c
Marat Dukhan9d501d52019-11-16 02:30:50 -08001406 src/math/expminus-avx2-p5.c
Marat Dukhan72416002020-01-05 21:53:19 -08001407 src/math/extexp-avx2-p5.c
1408 src/math/sigmoid-avx2-rr2-p5-div.c
1409 src/math/sigmoid-avx2-rr1-p5-div.c
1410 src/math/sigmoid-avx2-rr2-p5-nr2fma.c
1411 src/math/sigmoid-avx2-rr1-p5-nr2fma.c
1412 src/math/sigmoid-avx2-rr2-p5-nr1fma.c
1413 src/math/sigmoid-avx2-rr1-p5-nr1fma.c)
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001414
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001415SET(XNNPACK_AVX512F_MICROKERNEL_SRCS
Marat Dukhan5c5fa962020-03-10 18:38:33 -07001416 src/f32-clamp/gen/avx512f-x16.c
1417 src/f32-clamp/gen/avx512f-x32.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001418 src/f32-dwconv/gen/up32x4-minmax-avx512f-acc2.c
1419 src/f32-dwconv/gen/up32x4-minmax-avx512f.c
1420 src/f32-dwconv/gen/up16x4-minmax-avx512f-acc2.c
1421 src/f32-dwconv/gen/up16x4-minmax-avx512f.c
1422 src/f32-dwconv/gen/up32x9-minmax-avx512f-acc2.c
1423 src/f32-dwconv/gen/up32x9-minmax-avx512f.c
1424 src/f32-dwconv/gen/up16x9-minmax-avx512f-acc2.c
1425 src/f32-dwconv/gen/up16x9-minmax-avx512f.c
1426 src/f32-dwconv/gen/up32x25-minmax-avx512f-acc2.c
1427 src/f32-dwconv/gen/up32x25-minmax-avx512f.c
1428 src/f32-dwconv/gen/up16x25-minmax-avx512f-acc2.c
1429 src/f32-dwconv/gen/up16x25-minmax-avx512f.c
1430 src/f32-gemm/gen/1x16-minmax-avx512f-broadcast.c
1431 src/f32-gemm/gen/4x16-minmax-avx512f-broadcast.c
1432 src/f32-gemm/gen/5x16-minmax-avx512f-broadcast.c
1433 src/f32-gemm/gen/6x16-minmax-avx512f-broadcast.c
1434 src/f32-gemm/gen/7x16-minmax-avx512f-broadcast.c
1435 src/f32-gemm/gen/8x16-minmax-avx512f-broadcast.c
1436 src/f32-gemm/gen-inc/1x16inc-minmax-avx512f-broadcast.c
1437 src/f32-gemm/gen-inc/4x16inc-minmax-avx512f-broadcast.c
1438 src/f32-gemm/gen-inc/5x16inc-minmax-avx512f-broadcast.c
1439 src/f32-gemm/gen-inc/6x16inc-minmax-avx512f-broadcast.c
1440 src/f32-gemm/gen-inc/7x16inc-minmax-avx512f-broadcast.c
1441 src/f32-gemm/gen-inc/8x16inc-minmax-avx512f-broadcast.c
Marat Dukhan662faa02019-12-09 22:48:16 -08001442 src/f32-hswish/gen/avx512f-x16.c
1443 src/f32-hswish/gen/avx512f-x32.c
Marat Dukhan1c587112020-04-08 20:04:28 -07001444 src/f32-igemm/gen/1x16-minmax-avx512f-broadcast.c
1445 src/f32-igemm/gen/4x16-minmax-avx512f-broadcast.c
1446 src/f32-igemm/gen/5x16-minmax-avx512f-broadcast.c
1447 src/f32-igemm/gen/6x16-minmax-avx512f-broadcast.c
1448 src/f32-igemm/gen/7x16-minmax-avx512f-broadcast.c
1449 src/f32-igemm/gen/8x16-minmax-avx512f-broadcast.c
Marat Dukhan90eca0a2020-03-11 00:52:23 -07001450 src/f32-prelu/gen/avx512f-2x16.c
1451 src/f32-prelu/gen/avx512f-2x32.c
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001452 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128.c
1453 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c
1454 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c
1455 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144.c
1456 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c
1457 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160.c
1458 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c
1459 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c
1460 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192.c
1461 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c
1462 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c
1463 src/f32-raddexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c
1464 src/f32-raddextexp/gen/avx512f-p5-scalef-x128.c
1465 src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc2.c
1466 src/f32-raddextexp/gen/avx512f-p5-scalef-x128-acc4.c
1467 src/f32-raddextexp/gen/avx512f-p5-scalef-x144.c
1468 src/f32-raddextexp/gen/avx512f-p5-scalef-x144-acc3.c
1469 src/f32-raddextexp/gen/avx512f-p5-scalef-x160.c
1470 src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc2.c
1471 src/f32-raddextexp/gen/avx512f-p5-scalef-x160-acc5.c
1472 src/f32-raddextexp/gen/avx512f-p5-scalef-x192.c
1473 src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc2.c
1474 src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc3.c
1475 src/f32-raddextexp/gen/avx512f-p5-scalef-x192-acc6.c
1476 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128.c
1477 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc2.c
1478 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x128-acc4.c
1479 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144.c
1480 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x144-acc3.c
1481 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160.c
1482 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc2.c
1483 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x160-acc5.c
1484 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192.c
1485 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc2.c
1486 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc3.c
1487 src/f32-raddstoreexpminusmax/gen/avx512f-p5-scalef-x192-acc6.c
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001488 src/f32-rmax/avx512f.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001489 src/f32-vbinary/gen/vadd-minmax-avx512f-x16.c
1490 src/f32-vbinary/gen/vadd-minmax-avx512f-x32.c
1491 src/f32-vbinary/gen/vaddc-minmax-avx512f-x16.c
1492 src/f32-vbinary/gen/vaddc-minmax-avx512f-x32.c
1493 src/f32-vbinary/gen/vdiv-minmax-avx512f-x16.c
1494 src/f32-vbinary/gen/vdiv-minmax-avx512f-x32.c
1495 src/f32-vbinary/gen/vdivc-minmax-avx512f-x16.c
1496 src/f32-vbinary/gen/vdivc-minmax-avx512f-x32.c
Marat Dukhan9a88efe2019-12-10 15:54:24 -08001497 src/f32-vbinary/gen/vmax-avx512f-x16.c
1498 src/f32-vbinary/gen/vmax-avx512f-x32.c
1499 src/f32-vbinary/gen/vmaxc-avx512f-x16.c
1500 src/f32-vbinary/gen/vmaxc-avx512f-x32.c
1501 src/f32-vbinary/gen/vmin-avx512f-x16.c
1502 src/f32-vbinary/gen/vmin-avx512f-x32.c
1503 src/f32-vbinary/gen/vminc-avx512f-x16.c
1504 src/f32-vbinary/gen/vminc-avx512f-x32.c
Marat Dukhan91cd2b72020-04-09 23:57:31 -07001505 src/f32-vbinary/gen/vmul-minmax-avx512f-x16.c
1506 src/f32-vbinary/gen/vmul-minmax-avx512f-x32.c
1507 src/f32-vbinary/gen/vmulc-minmax-avx512f-x16.c
1508 src/f32-vbinary/gen/vmulc-minmax-avx512f-x32.c
1509 src/f32-vbinary/gen/vrdivc-minmax-avx512f-x16.c
1510 src/f32-vbinary/gen/vrdivc-minmax-avx512f-x32.c
1511 src/f32-vbinary/gen/vrsubc-minmax-avx512f-x16.c
1512 src/f32-vbinary/gen/vrsubc-minmax-avx512f-x32.c
1513 src/f32-vbinary/gen/vsub-minmax-avx512f-x16.c
1514 src/f32-vbinary/gen/vsub-minmax-avx512f-x32.c
1515 src/f32-vbinary/gen/vsubc-minmax-avx512f-x16.c
1516 src/f32-vbinary/gen/vsubc-minmax-avx512f-x32.c
Marat Dukhana5977df2019-10-30 22:02:15 -07001517 src/f32-vscale/avx512f-unroll64.c
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001518 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x16.c
1519 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x32.c
1520 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x48.c
1521 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x64.c
1522 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x80.c
1523 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x96.c
1524 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x112.c
1525 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x128.c
1526 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x144.c
1527 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x160.c
1528 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x176.c
1529 src/f32-vscaleexpminusmax/gen/avx512f-p5-scalef-x192.c
1530 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c
1531 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c
1532 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c
1533 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c
1534 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c
1535 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c
1536 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c
1537 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c
1538 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c
1539 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c
1540 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c
1541 src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001542 src/math/exp-avx512f-p5-scalef.c
1543 src/math/exp-avx512f-p5.c
Marat Dukhanfeb49232019-10-28 11:03:31 -07001544 src/math/exp-avx512f-perm-p3.c
Marat Dukhan9d501d52019-11-16 02:30:50 -08001545 src/math/exp-avx512f-perm2-p2.c
1546 src/math/extexp-avx512f-p5.c)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001547
1548SET(XNNPACK_AARCH32_ASM_MICROKERNEL_SRCS
Marat Dukhan1c587112020-04-08 20:04:28 -07001549 src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a53.S
1550 src/f32-gemm/4x8-minmax-aarch32-neon-cortex-a55.S
1551 src/f32-gemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S
1552 src/f32-gemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S
1553 src/f32-gemm/4x8-minmax-aarch32-neon-ld64.S
1554 src/f32-igemm/4x8-minmax-aarch32-neon-ld64.S
1555 src/f32-igemm/gen/4x8-minmax-aarch32-neon-cortex-a75.S
1556 src/f32-igemm/gen/4x8-minmax-aarch32-neon-pld-cortex-a75.S
1557 src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a53.S
1558 src/f32-igemm/4x8-minmax-aarch32-neon-cortex-a55.S)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001559
1560SET(XNNPACK_AARCH64_ASM_MICROKERNEL_SRCS
Frank Barchard36b76b62020-04-10 12:39:17 -07001561 src/f16-gemm/gen/1x16-minmax-aarch64-neonfp16arith-ld32.S
Frank Barchard683f5592020-04-10 00:48:26 -07001562 src/f16-gemm/gen/4x16-minmax-aarch64-neonfp16arith-ld32.S
1563 src/f16-gemm/gen/6x16-minmax-aarch64-neonfp16arith-ld32.S
Frank Barchard36b76b62020-04-10 12:39:17 -07001564 src/f16-gemm/gen-inc/1x16inc-minmax-aarch64-neonfp16arith-ld32.S
Frank Barchard683f5592020-04-10 00:48:26 -07001565 src/f16-gemm/gen-inc/4x16inc-minmax-aarch64-neonfp16arith-ld32.S
1566 src/f16-gemm/gen-inc/6x16inc-minmax-aarch64-neonfp16arith-ld32.S
Frank Barchardbddfbcd2020-04-15 12:32:41 -07001567 src/f16-gemm/gen/1x8-minmax-aarch64-neonfp16arith-ld64.S
1568 src/f16-gemm/gen/4x8-minmax-aarch64-neonfp16arith-ld64.S
1569 src/f16-gemm/gen/6x8-minmax-aarch64-neonfp16arith-ld64.S
Frank Barchard3b8e5662020-04-20 12:12:53 -07001570 src/f16-gemm/gen/8x8-minmax-aarch64-neonfp16arith-ld64.S
Frank Barchardbddfbcd2020-04-15 12:32:41 -07001571 src/f16-gemm/gen-inc/1x8inc-minmax-aarch64-neonfp16arith-ld64.S
1572 src/f16-gemm/gen-inc/4x8inc-minmax-aarch64-neonfp16arith-ld64.S
1573 src/f16-gemm/gen-inc/6x8inc-minmax-aarch64-neonfp16arith-ld64.S
Frank Barchard3b8e5662020-04-20 12:12:53 -07001574 src/f16-gemm/gen-inc/8x8inc-minmax-aarch64-neonfp16arith-ld64.S
Marat Dukhan1c587112020-04-08 20:04:28 -07001575 src/f32-dwconv/up4x9-minmax-aarch64-neonfma-cortex-a55.S
1576 src/f32-dwconv/up4x9-minmax-aarch64-neonfma.S
Frank Barchard3cb54f92020-04-10 10:46:08 -07001577 src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-ld64.S
Marat Dukhan1c587112020-04-08 20:04:28 -07001578 src/f32-gemm/gen/1x12-minmax-aarch64-neonfma-cortex-a53.S
1579 src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a53.S
1580 src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S
1581 src/f32-gemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S
1582 src/f32-gemm/gen/4x12-minmax-aarch64-neonfma-cortex-a53.S
1583 src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a53.S
1584 src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a55.S
1585 src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S
1586 src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S
1587 src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld128.S
1588 src/f32-gemm/gen/4x8-minmax-aarch64-neonfma-ld64.S
1589 src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S
1590 src/f32-gemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S
1591 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a53.S
1592 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a55.S
1593 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a73.S
1594 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S
1595 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S
1596 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ios.S
1597 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld128.S
1598 src/f32-gemm/gen/6x8-minmax-aarch64-neonfma-ld64.S
Frank Barchard3cb54f92020-04-10 10:46:08 -07001599 src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-ld64.S
Marat Dukhan1c587112020-04-08 20:04:28 -07001600 src/f32-gemm/gen-inc/1x12inc-minmax-aarch64-neonfma-cortex-a53.S
1601 src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a53.S
1602 src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a57.S
1603 src/f32-gemm/gen-inc/1x8inc-minmax-aarch64-neonfma-cortex-a75.S
1604 src/f32-gemm/gen-inc/4x12inc-minmax-aarch64-neonfma-cortex-a53.S
1605 src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a53.S
1606 src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a55.S
1607 src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a57.S
1608 src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-cortex-a75.S
1609 src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld128.S
1610 src/f32-gemm/gen-inc/4x8inc-minmax-aarch64-neonfma-ld64.S
1611 src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a57.S
1612 src/f32-gemm/gen-inc/5x8inc-minmax-aarch64-neonfma-cortex-a75.S
1613 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a53.S
1614 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a55.S
1615 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a73.S
1616 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a57.S
1617 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-cortex-a75.S
1618 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ios.S
1619 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld128.S
1620 src/f32-gemm/gen-inc/6x8inc-minmax-aarch64-neonfma-ld64.S
1621 src/f32-igemm/1x12-minmax-aarch64-neonfma-cortex-a53.S
1622 src/f32-igemm/1x8-minmax-aarch64-neonfma-cortex-a53.S
1623 src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a57.S
1624 src/f32-igemm/gen/1x8-minmax-aarch64-neonfma-cortex-a75.S
1625 src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a53.S
1626 src/f32-igemm/4x8-minmax-aarch64-neonfma-cortex-a55.S
1627 src/f32-igemm/4x12-minmax-aarch64-neonfma-cortex-a53.S
1628 src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a57.S
1629 src/f32-igemm/gen/4x8-minmax-aarch64-neonfma-cortex-a75.S
1630 src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a57.S
1631 src/f32-igemm/gen/5x8-minmax-aarch64-neonfma-cortex-a75.S
1632 src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a53.S
1633 src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a55.S
1634 src/f32-igemm/6x8-minmax-aarch64-neonfma-cortex-a73.S
1635 src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a57.S
1636 src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-cortex-a75.S
1637 src/f32-igemm/gen/6x8-minmax-aarch64-neonfma-ios.S)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001638
1639SET(XNNPACK_MICROKERNEL_SRCS ${XNNPACK_SCALAR_MICROKERNEL_SRCS})
Marat Dukhan29c6b262020-04-14 18:07:56 -07001640IF(NOT EMSCRIPTEN AND NOT MSVC AND NOT CMAKE_C_COMPILER_ID STREQUAL "Intel")
Marat Dukhan8d3c07e2020-01-02 01:20:59 -08001641 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_PSIMD_FASTMATH_MICROKERNEL_SRCS})
1642 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_PSIMD_ACCMATH_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001643ENDIF()
1644IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^armv[5-8]" OR IOS_ARCH MATCHES "^armv7")
1645 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_NEON_MICROKERNEL_SRCS})
1646 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_NEONFMA_MICROKERNEL_SRCS})
Marat Dukhan8853b822020-05-07 12:19:01 -07001647 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_NEONV8_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001648 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AARCH32_ASM_MICROKERNEL_SRCS})
1649ENDIF()
1650IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR IOS_ARCH MATCHES "^arm64.*")
1651 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_NEON_MICROKERNEL_SRCS})
1652 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_NEONFMA_MICROKERNEL_SRCS})
Marat Dukhan8853b822020-05-07 12:19:01 -07001653 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_NEONV8_MICROKERNEL_SRCS})
Marat Dukhan36aecb52019-11-22 17:21:49 -08001654 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AARCH64_NEONFMA_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001655 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AARCH64_NEONFP16ARITH_MICROKERNEL_SRCS})
1656 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AARCH64_ASM_MICROKERNEL_SRCS})
1657ENDIF()
Yasuhiro Matsumoto462be052020-02-29 13:41:14 +09001658IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3-6]86|x86_64|AMD64)$" OR IOS_ARCH MATCHES "^(i386|x86_64|AMD64)$")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001659 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_SSE_MICROKERNEL_SRCS})
1660 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_SSE2_MICROKERNEL_SRCS})
Marat Dukhanfe7acb62020-03-09 19:30:05 -07001661 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_SSSE3_MICROKERNEL_SRCS})
Marat Dukhan69c3f2c2019-11-06 12:30:01 -08001662 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_SSE41_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001663 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AVX_MICROKERNEL_SRCS})
Marat Dukhanfda12b82019-11-21 12:27:59 -08001664 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_FMA3_MICROKERNEL_SRCS})
Marat Dukhan6adff4e2019-10-14 18:32:07 -07001665 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AVX2_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001666 LIST(APPEND XNNPACK_MICROKERNEL_SRCS ${XNNPACK_AVX512F_MICROKERNEL_SRCS})
1667ENDIF()
1668
1669IF(XNNPACK_LIBRARY_TYPE STREQUAL "default")
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001670 ADD_LIBRARY(XNNPACK ${XNNPACK_COLD_SRCS} ${XNNPACK_HOT_SRCS} ${XNNPACK_TABLE_SRCS} ${XNNPACK_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001671ELSEIF(XNNPACK_LIBRARY_TYPE STREQUAL "shared")
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001672 ADD_LIBRARY(XNNPACK SHARED ${XNNPACK_COLD_SRCS} ${XNNPACK_HOT_SRCS} ${XNNPACK_TABLE_SRCS} ${XNNPACK_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001673ELSEIF(XNNPACK_LIBRARY_TYPE STREQUAL "static")
Marat Dukhan3a77ea72019-12-23 12:10:24 -08001674 ADD_LIBRARY(XNNPACK STATIC ${XNNPACK_COLD_SRCS} ${XNNPACK_HOT_SRCS} ${XNNPACK_TABLE_SRCS} ${XNNPACK_MICROKERNEL_SRCS})
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001675ELSE()
1676 MESSAGE(FATAL_ERROR "Unsupported XNNPACK library type \"${XNNPACK_LIBRARY_TYPE}\". Must be \"static\", \"shared\", or \"default\"")
1677ENDIF()
1678SET_TARGET_PROPERTIES(XNNPACK PROPERTIES
1679 C_STANDARD 99
1680 C_EXTENSIONS YES)
1681IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^armv[5-8]" OR IOS_ARCH MATCHES "^armv7")
1682 SET_PROPERTY(SOURCE ${XNNPACK_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -marm ")
Marat Dukhan8853b822020-05-07 12:19:01 -07001683 SET_PROPERTY(SOURCE ${XNNPACK_PSIMD_FASTMATH_MICROKERNEL_SRCS} ${XNNPACK_PSIMD_ACCMATH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon ")
1684 SET_PROPERTY(SOURCE ${XNNPACK_NEON_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon ")
1685 SET_PROPERTY(SOURCE ${XNNPACK_NEONFMA_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon-vfpv4 ")
1686 SET_PROPERTY(SOURCE ${XNNPACK_NEONV8_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8-a -mfpu=neon-fp-armv8 ")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001687 IF(IOS)
Tao Xu84268142020-02-03 15:18:31 -08001688 SET_PROPERTY(SOURCE ${XNNPACK_AARCH32_ASM_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -arch ${IOS_ARCH} ")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001689 ENDIF()
1690ENDIF()
1691IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR IOS_ARCH MATCHES "^arm64.*")
1692 SET_PROPERTY(SOURCE ${XNNPACK_AARCH64_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ")
Frank Barchard683f5592020-04-10 00:48:26 -07001693 SET_PROPERTY(SOURCE ${XNNPACK_AARCH64_ASM_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001694 IF(IOS)
Tao Xu84268142020-02-03 15:18:31 -08001695 SET_PROPERTY(SOURCE ${XNNPACK_AARCH64_ASM_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -arch ${IOS_ARCH} ")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001696 ENDIF()
1697ENDIF()
Marat Dukhan7795c3a2020-04-14 20:45:36 -07001698IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3-6]86|x86|x86_64|AMD64)$" OR IOS_ARCH MATCHES "^(i386|x86_64|AMD64)$")
1699 IF(MSVC)
1700 IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86" OR CMAKE_SIZEOF_VOID_P EQUAL 4)
1701 SET_PROPERTY(SOURCE ${XNNPACK_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE ")
1702 SET_PROPERTY(SOURCE ${XNNPACK_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ")
1703 SET_PROPERTY(SOURCE ${XNNPACK_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ")
1704 SET_PROPERTY(SOURCE ${XNNPACK_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ")
1705 ENDIF()
1706 SET_PROPERTY(SOURCE ${XNNPACK_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ")
1707 SET_PROPERTY(SOURCE ${XNNPACK_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ")
1708 SET_PROPERTY(SOURCE ${XNNPACK_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX2 ")
1709 SET_PROPERTY(SOURCE ${XNNPACK_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ")
1710 ELSE()
1711 SET_PROPERTY(SOURCE ${XNNPACK_PSIMD_ACCMATH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse2 ")
1712 SET_PROPERTY(SOURCE ${XNNPACK_PSIMD_FASTMATH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse2 ")
1713 SET_PROPERTY(SOURCE ${XNNPACK_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse ")
1714 SET_PROPERTY(SOURCE ${XNNPACK_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse2 ")
1715 SET_PROPERTY(SOURCE ${XNNPACK_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mssse3 ")
1716 SET_PROPERTY(SOURCE ${XNNPACK_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse4.1 ")
1717 SET_PROPERTY(SOURCE ${XNNPACK_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mavx ")
1718 SET_PROPERTY(SOURCE ${XNNPACK_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfma ")
1719 SET_PROPERTY(SOURCE ${XNNPACK_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfma -mavx2 ")
1720 SET_PROPERTY(SOURCE ${XNNPACK_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mavx512f ")
Marat Dukhan78583c72020-04-26 22:00:43 -07001721 IF(MINGW OR CMAKE_SYSTEM_NAME MATCHES "^(CYGWIN|MSYS)$")
Marat Dukhan7795c3a2020-04-14 20:45:36 -07001722 # Work-around for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782
1723 SET_PROPERTY(SOURCE ${XNNPACK_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ")
1724 ENDIF()
Yasuhiro Matsumoto081b77c2020-03-02 10:20:53 +09001725 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001726ENDIF()
Marat Dukhanef25e752020-04-13 02:45:37 -07001727TARGET_COMPILE_DEFINITIONS(XNNPACK PRIVATE "XNN_LOG_LEVEL=$<IF:$<CONFIG:Debug>,5,0>")
Marat Dukhan7795c3a2020-04-14 20:45:36 -07001728IF(MSVC)
Marat Dukhanf196d012020-04-15 11:50:03 -07001729 # Even though MSVC has __restrict, it can't be used in all the same contexts as the C99 restrict keyword
1730 TARGET_COMPILE_DEFINITIONS(XNNPACK PRIVATE "restrict=")
Marat Dukhan7795c3a2020-04-14 20:45:36 -07001731 SET_PROPERTY(SOURCE ${XNNPACK_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: /O2 >")
1732 SET_PROPERTY(SOURCE ${XNNPACK_HOT_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: /O2 >")
1733 SET_PROPERTY(SOURCE ${XNNPACK_COLD_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: /O1 >")
1734ELSE()
1735 SET_PROPERTY(SOURCE ${XNNPACK_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: -O2 >")
1736 SET_PROPERTY(SOURCE ${XNNPACK_HOT_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: -O2 >")
1737 SET_PROPERTY(SOURCE ${XNNPACK_COLD_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: -Os >")
1738ENDIF()
Marat Dukhanef25e752020-04-13 02:45:37 -07001739IF(NOT EMSCRIPTEN)
1740 SET_PROPERTY(SOURCE ${XNNPACK_PSIMD_ACCMATH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: -O3 >")
1741 SET_PROPERTY(SOURCE ${XNNPACK_PSIMD_FASTMATH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS "$<$<NOT:$<CONFIG:Debug>>: -O3 -ffast-math >")
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001742ENDIF()
1743
1744TARGET_INCLUDE_DIRECTORIES(XNNPACK PUBLIC include)
1745TARGET_INCLUDE_DIRECTORIES(XNNPACK PRIVATE src)
Marat Dukhan6ae741a2020-04-13 02:33:53 -07001746IF(WIN32)
1747 # Target Windows 7+ API
1748 TARGET_COMPILE_DEFINITIONS(XNNPACK PRIVATE _WIN32_WINNT=0x0601)
1749ENDIF()
Ashkan Aliabadid255a312019-12-03 12:44:34 -08001750SET_TARGET_PROPERTIES(XNNPACK PROPERTIES PUBLIC_HEADER include/xnnpack.h)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001751
Marat Dukhan43130882020-03-12 22:33:07 -07001752# ---[ Find libm
1753FIND_LIBRARY(LIBM m)
1754IF(LIBM)
1755 TARGET_LINK_LIBRARIES(XNNPACK PRIVATE ${LIBM})
1756ENDIF()
1757
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001758# ---[ Configure clog
1759IF(NOT TARGET clog)
Mo Zhou6cafcdb2020-04-26 10:41:41 +08001760 IF(NOT XNNPACK_USE_SYSTEM_LIBS)
1761 SET(CLOG_BUILD_TESTS OFF CACHE BOOL "")
1762 SET(CLOG_RUNTIME_TYPE "${CPUINFO_RUNTIME_TYPE}" CACHE STRING "")
1763 ADD_SUBDIRECTORY(
1764 "${CLOG_SOURCE_DIR}/deps/clog"
1765 "${CMAKE_BINARY_DIR}/clog")
1766 # We build static version of clog but a dynamic library may indirectly depend on it
1767 SET_PROPERTY(TARGET clog PROPERTY POSITION_INDEPENDENT_CODE ON)
1768 ELSE()
1769 ADD_LIBRARY(clog STATIC IMPORTED)
1770 FIND_LIBRARY(CLOG_LIBRARY clog)
1771 IF(NOT CLOG_LIBRARY)
1772 MESSAGE(FATAL_ERROR "Cannot find clog")
1773 ENDIF()
1774 SET_PROPERTY(TARGET clog PROPERTY IMPORTED_LOCATION "${CLOG_LIBRARY}")
1775 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001776ENDIF()
1777TARGET_LINK_LIBRARIES(XNNPACK PRIVATE clog)
1778
1779# ---[ Configure cpuinfo
1780IF(NOT TARGET cpuinfo)
Mo Zhou6cafcdb2020-04-26 10:41:41 +08001781 IF(NOT XNNPACK_USE_SYSTEM_LIBS)
1782 SET(CPUINFO_BUILD_TOOLS OFF CACHE BOOL "")
1783 SET(CPUINFO_BUILD_UNIT_TESTS OFF CACHE BOOL "")
1784 SET(CPUINFO_BUILD_MOCK_TESTS OFF CACHE BOOL "")
1785 SET(CPUINFO_BUILD_BENCHMARKS OFF CACHE BOOL "")
1786 ADD_SUBDIRECTORY(
1787 "${CPUINFO_SOURCE_DIR}"
1788 "${CMAKE_BINARY_DIR}/cpuinfo")
1789 ELSE()
1790 ADD_LIBRARY(cpuinfo SHARED IMPORTED)
1791 FIND_LIBRARY(CPUINFO_LIBRARY cpuinfo)
1792 IF(NOT CPUINFO_LIBRARY)
1793 MESSAGE(FATAL_ERROR "Cannot find cpuinfo")
1794 ENDIF()
1795 SET_PROPERTY(TARGET cpuinfo PROPERTY IMPORTED_LOCATION "${CPUINFO_LIBRARY}")
1796 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001797ENDIF()
1798TARGET_LINK_LIBRARIES(XNNPACK PRIVATE cpuinfo)
1799
1800# ---[ Configure pthreadpool
1801IF(NOT TARGET pthreadpool)
Mo Zhou6cafcdb2020-04-26 10:41:41 +08001802 IF(NOT XNNPACK_USE_SYSTEM_LIBS)
1803 SET(PTHREADPOOL_BUILD_TESTS OFF CACHE BOOL "")
1804 SET(PTHREADPOOL_BUILD_BENCHMARKS OFF CACHE BOOL "")
1805 SET(PTHREADPOOL_ALLOW_DEPRECATED_API OFF CACHE BOOL "")
1806 ADD_SUBDIRECTORY(
1807 "${PTHREADPOOL_SOURCE_DIR}"
1808 "${CMAKE_BINARY_DIR}/pthreadpool")
1809 ELSE()
1810 ADD_LIBRARY(pthreadpool SHARED IMPORTED)
1811 FIND_LIBRARY(PTHREADPOOL_LIBRARY pthreadpool)
1812 IF(NOT PTHREADPOOL_LIBRARY)
1813 MESSAGE(FATAL_ERROR "Cannot find pthreadpool")
1814 ENDIF()
1815 SET_PROPERTY(TARGET pthreadpool PROPERTY IMPORTED_LOCATION "${PTHREADPOOL_LIBRARY}")
1816 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001817ENDIF()
1818TARGET_LINK_LIBRARIES(XNNPACK PUBLIC pthreadpool)
1819
1820# ---[ Configure FXdiv
1821IF(NOT TARGET fxdiv)
Mo Zhou6cafcdb2020-04-26 10:41:41 +08001822 IF(NOT XNNPACK_USE_SYSTEM_LIBS)
1823 SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "")
1824 SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "")
1825 ADD_SUBDIRECTORY(
1826 "${FXDIV_SOURCE_DIR}"
1827 "${CMAKE_BINARY_DIR}/FXdiv")
1828 ELSE()
1829 FIND_FILE(FXDIV_HDR fxdiv.h PATH_SUFFIXES include)
1830 IF(NOT FXDIV_HDR)
1831 MESSAGE(FATAL_ERROR "Cannot find fxdiv")
1832 ENDIF()
1833 ADD_LIBRARY(fxdiv STATIC "${FXDIV_HDR}")
1834 SET_PROPERTY(TARGET fxdiv PROPERTY LINKER_LANGUAGE C)
1835 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001836ENDIF()
1837TARGET_LINK_LIBRARIES(XNNPACK PRIVATE fxdiv)
1838
1839# ---[ Configure psimd
1840IF(NOT TARGET psimd)
Mo Zhou6cafcdb2020-04-26 10:41:41 +08001841 IF(NOT XNNPACK_USE_SYSTEM_LIBS)
1842 ADD_SUBDIRECTORY(
1843 "${PSIMD_SOURCE_DIR}"
1844 "${CMAKE_BINARY_DIR}/psimd")
1845 ELSE()
1846 FIND_FILE(PSIMD_HDR psimd.h PATH_SUFFIXES include)
1847 IF(NOT PSIMD_HDR)
1848 MESSAGE(FATAL_ERROR "Cannot find psimd")
1849 ENDIF()
1850 ADD_LIBRARY(psimd STATIC "${PSIMD_HDR}")
1851 SET_PROPERTY(TARGET psimd PROPERTY LINKER_LANGUAGE C)
1852 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001853ENDIF()
1854TARGET_LINK_LIBRARIES(XNNPACK PRIVATE psimd)
1855
1856# ---[ Configure FP16
1857IF(NOT TARGET fp16)
Mo Zhou6cafcdb2020-04-26 10:41:41 +08001858 IF(NOT XNNPACK_USE_SYSTEM_LIBS)
1859 SET(FP16_BUILD_TESTS OFF CACHE BOOL "")
1860 SET(FP16_BUILD_BENCHMARKS OFF CACHE BOOL "")
1861 ADD_SUBDIRECTORY(
1862 "${FP16_SOURCE_DIR}"
1863 "${CMAKE_BINARY_DIR}/FP16")
1864 ELSE()
1865 FIND_FILE(FP16_HDR fp16.h PATH_SUFFIXES include)
1866 IF(NOT FP16_HDR)
1867 MESSAGE(FATAL_ERROR "Cannot find fp16")
1868 ENDIF()
1869 ADD_LIBRARY(fp16 STATIC "${FP16_HDR}")
1870 SET_PROPERTY(TARGET fp16 PROPERTY LINKER_LANGUAGE C)
1871 ENDIF()
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001872ENDIF()
1873TARGET_LINK_LIBRARIES(XNNPACK PRIVATE fp16)
1874
1875INSTALL(TARGETS XNNPACK
1876 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1877 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1878 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
1879
1880# ---[ XNNPACK unit tests
1881IF(XNNPACK_BUILD_TESTS)
1882 # ---[ Build google test
1883 IF(NOT TARGET gtest)
1884 SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
1885 ADD_SUBDIRECTORY(
1886 "${GOOGLETEST_SOURCE_DIR}"
1887 "${CMAKE_BINARY_DIR}/googletest")
1888 ENDIF()
1889
Marat Dukhan20c3b922020-03-10 03:45:06 -07001890 # ---[ Build size tests
1891
Marat Dukhan43130882020-03-12 22:33:07 -07001892 ADD_EXECUTABLE(operator-size-test test/operator-size.c)
Marat Dukhan20c3b922020-03-10 03:45:06 -07001893 SET_TARGET_PROPERTIES(operator-size-test PROPERTIES
1894 C_STANDARD 99
1895 C_EXTENSIONS NO)
1896 TARGET_LINK_LIBRARIES(operator-size-test PRIVATE XNNPACK)
1897
Marat Dukhan43130882020-03-12 22:33:07 -07001898 ADD_EXECUTABLE(subgraph-size-test test/subgraph-size.c)
Marat Dukhan20c3b922020-03-10 03:45:06 -07001899 SET_TARGET_PROPERTIES(subgraph-size-test PROPERTIES
1900 C_STANDARD 99
1901 C_EXTENSIONS NO)
1902 TARGET_LINK_LIBRARIES(subgraph-size-test PRIVATE XNNPACK)
1903
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001904 # ---[ Build operator-level unit tests
Marat Dukhanefc47b82019-11-18 09:25:38 -08001905 ADD_EXECUTABLE(add-nc-test test/add-nc.cc)
1906 SET_TARGET_PROPERTIES(add-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001907 CXX_STANDARD 11
1908 CXX_STANDARD_REQUIRED YES
1909 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001910 TARGET_INCLUDE_DIRECTORIES(add-nc-test PRIVATE src test)
1911 TARGET_LINK_LIBRARIES(add-nc-test PRIVATE XNNPACK gtest gtest_main)
1912 ADD_TEST(add-nc-test add-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001913
Marat Dukhanb1a0fc32019-12-02 19:32:02 -08001914 ADD_EXECUTABLE(add-nd-test test/add-nd.cc)
1915 SET_TARGET_PROPERTIES(add-nd-test PROPERTIES
1916 CXX_STANDARD 11
1917 CXX_STANDARD_REQUIRED YES
1918 CXX_EXTENSIONS NO)
1919 TARGET_INCLUDE_DIRECTORIES(add-nd-test PRIVATE src test)
1920 TARGET_LINK_LIBRARIES(add-nd-test PRIVATE XNNPACK gtest gtest_main)
1921 ADD_TEST(add-nd-test add-nd-test)
1922
Marat Dukhanefc47b82019-11-18 09:25:38 -08001923 ADD_EXECUTABLE(argmax-pooling-nhwc-test test/argmax-pooling-nhwc.cc)
1924 SET_TARGET_PROPERTIES(argmax-pooling-nhwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001925 CXX_STANDARD 11
1926 CXX_STANDARD_REQUIRED YES
1927 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001928 TARGET_INCLUDE_DIRECTORIES(argmax-pooling-nhwc-test PRIVATE src test)
1929 TARGET_LINK_LIBRARIES(argmax-pooling-nhwc-test PRIVATE XNNPACK gtest gtest_main)
1930 ADD_TEST(argmax-pooling-nhwc-test argmax-pooling-nhwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001931
Marat Dukhanefc47b82019-11-18 09:25:38 -08001932 ADD_EXECUTABLE(average-pooling-nhwc-test test/average-pooling-nhwc.cc)
1933 SET_TARGET_PROPERTIES(average-pooling-nhwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001934 CXX_STANDARD 11
1935 CXX_STANDARD_REQUIRED YES
1936 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001937 TARGET_INCLUDE_DIRECTORIES(average-pooling-nhwc-test PRIVATE src test)
1938 TARGET_LINK_LIBRARIES(average-pooling-nhwc-test PRIVATE XNNPACK gtest gtest_main)
1939 ADD_TEST(average-pooling-nhwc-test average-pooling-nhwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001940
Marat Dukhanefc47b82019-11-18 09:25:38 -08001941 ADD_EXECUTABLE(channel-pad-nc-test test/channel-pad-nc.cc)
1942 SET_TARGET_PROPERTIES(channel-pad-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001943 CXX_STANDARD 11
1944 CXX_STANDARD_REQUIRED YES
1945 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001946 TARGET_INCLUDE_DIRECTORIES(channel-pad-nc-test PRIVATE src test)
1947 TARGET_LINK_LIBRARIES(channel-pad-nc-test PRIVATE XNNPACK gtest gtest_main)
1948 ADD_TEST(channel-pad-nc-test channel-pad-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001949
Marat Dukhanefc47b82019-11-18 09:25:38 -08001950 ADD_EXECUTABLE(channel-shuffle-nc-test test/channel-shuffle-nc.cc)
1951 SET_TARGET_PROPERTIES(channel-shuffle-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001952 CXX_STANDARD 11
1953 CXX_STANDARD_REQUIRED YES
1954 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001955 TARGET_INCLUDE_DIRECTORIES(channel-shuffle-nc-test PRIVATE src test)
1956 TARGET_LINK_LIBRARIES(channel-shuffle-nc-test PRIVATE XNNPACK gtest gtest_main)
1957 ADD_TEST(channel-shuffle-nc-test channel-shuffle-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001958
Marat Dukhanefc47b82019-11-18 09:25:38 -08001959 ADD_EXECUTABLE(clamp-nc-test test/clamp-nc.cc)
1960 SET_TARGET_PROPERTIES(clamp-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001961 CXX_STANDARD 11
1962 CXX_STANDARD_REQUIRED YES
1963 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001964 TARGET_INCLUDE_DIRECTORIES(clamp-nc-test PRIVATE src test)
1965 TARGET_LINK_LIBRARIES(clamp-nc-test PRIVATE XNNPACK gtest gtest_main)
1966 ADD_TEST(clamp-nc-test clamp-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001967
Marat Dukhanefc47b82019-11-18 09:25:38 -08001968 ADD_EXECUTABLE(convolution-nhwc-test test/convolution-nhwc.cc)
1969 SET_TARGET_PROPERTIES(convolution-nhwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001970 CXX_STANDARD 11
1971 CXX_STANDARD_REQUIRED YES
1972 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001973 TARGET_INCLUDE_DIRECTORIES(convolution-nhwc-test PRIVATE src test)
1974 TARGET_LINK_LIBRARIES(convolution-nhwc-test PRIVATE XNNPACK gtest gtest_main)
1975 ADD_TEST(convolution-nhwc-test convolution-nhwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001976
Marat Dukhanefc47b82019-11-18 09:25:38 -08001977 ADD_EXECUTABLE(convolution-nchw-test test/convolution-nchw.cc)
1978 SET_TARGET_PROPERTIES(convolution-nchw-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001979 CXX_STANDARD 11
1980 CXX_STANDARD_REQUIRED YES
1981 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001982 TARGET_INCLUDE_DIRECTORIES(convolution-nchw-test PRIVATE src test)
1983 TARGET_LINK_LIBRARIES(convolution-nchw-test PRIVATE XNNPACK gtest gtest_main)
1984 ADD_TEST(convolution-nchw-test convolution-nchw-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001985
Marat Dukhanefc47b82019-11-18 09:25:38 -08001986 ADD_EXECUTABLE(deconvolution-nhwc-test test/deconvolution-nhwc.cc)
1987 SET_TARGET_PROPERTIES(deconvolution-nhwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001988 CXX_STANDARD 11
1989 CXX_STANDARD_REQUIRED YES
1990 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08001991 TARGET_INCLUDE_DIRECTORIES(deconvolution-nhwc-test PRIVATE src test)
1992 TARGET_LINK_LIBRARIES(deconvolution-nhwc-test PRIVATE XNNPACK gtest gtest_main)
1993 ADD_TEST(deconvolution-nhwc-test deconvolution-nhwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07001994
Marat Dukhan69180502019-12-06 15:00:31 -08001995 ADD_EXECUTABLE(divide-nd-test test/divide-nd.cc)
1996 SET_TARGET_PROPERTIES(divide-nd-test PROPERTIES
1997 CXX_STANDARD 11
1998 CXX_STANDARD_REQUIRED YES
1999 CXX_EXTENSIONS NO)
2000 TARGET_INCLUDE_DIRECTORIES(divide-nd-test PRIVATE src test)
2001 TARGET_LINK_LIBRARIES(divide-nd-test PRIVATE XNNPACK gtest gtest_main)
2002 ADD_TEST(divide-nd-test divide-nd-test)
2003
Marat Dukhanefc47b82019-11-18 09:25:38 -08002004 ADD_EXECUTABLE(fully-connected-nc-test test/fully-connected-nc.cc)
2005 SET_TARGET_PROPERTIES(fully-connected-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002006 CXX_STANDARD 11
2007 CXX_STANDARD_REQUIRED YES
2008 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002009 TARGET_INCLUDE_DIRECTORIES(fully-connected-nc-test PRIVATE src test)
2010 TARGET_LINK_LIBRARIES(fully-connected-nc-test PRIVATE XNNPACK gtest gtest_main)
2011 ADD_TEST(fully-connected-nc-test fully-connected-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002012
Marat Dukhanefc47b82019-11-18 09:25:38 -08002013 ADD_EXECUTABLE(global-average-pooling-nwc-test test/global-average-pooling-nwc.cc)
2014 SET_TARGET_PROPERTIES(global-average-pooling-nwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002015 CXX_STANDARD 11
2016 CXX_STANDARD_REQUIRED YES
2017 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002018 TARGET_INCLUDE_DIRECTORIES(global-average-pooling-nwc-test PRIVATE src test)
2019 TARGET_LINK_LIBRARIES(global-average-pooling-nwc-test PRIVATE XNNPACK gtest gtest_main)
2020 ADD_TEST(global-average-pooling-nwc-test global-average-pooling-nwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002021
Marat Dukhanefc47b82019-11-18 09:25:38 -08002022 ADD_EXECUTABLE(global-average-pooling-ncw-test test/global-average-pooling-ncw.cc)
2023 SET_TARGET_PROPERTIES(global-average-pooling-ncw-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002024 CXX_STANDARD 11
2025 CXX_STANDARD_REQUIRED YES
2026 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002027 TARGET_INCLUDE_DIRECTORIES(global-average-pooling-ncw-test PRIVATE src test)
2028 TARGET_LINK_LIBRARIES(global-average-pooling-ncw-test PRIVATE XNNPACK gtest gtest_main)
2029 ADD_TEST(global-average-pooling-ncw-test global-average-pooling-ncw-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002030
Marat Dukhanefc47b82019-11-18 09:25:38 -08002031 ADD_EXECUTABLE(hardswish-nc-test test/hardswish-nc.cc)
2032 SET_TARGET_PROPERTIES(hardswish-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002033 CXX_STANDARD 11
2034 CXX_STANDARD_REQUIRED YES
2035 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002036 TARGET_INCLUDE_DIRECTORIES(hardswish-nc-test PRIVATE src test)
2037 TARGET_LINK_LIBRARIES(hardswish-nc-test PRIVATE XNNPACK gtest gtest_main)
2038 ADD_TEST(hardswish-nc-test hardswish-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002039
Marat Dukhanefc47b82019-11-18 09:25:38 -08002040 ADD_EXECUTABLE(leaky-relu-nc-test test/leaky-relu-nc.cc)
2041 SET_TARGET_PROPERTIES(leaky-relu-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002042 CXX_STANDARD 11
2043 CXX_STANDARD_REQUIRED YES
2044 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002045 TARGET_INCLUDE_DIRECTORIES(leaky-relu-nc-test PRIVATE src test)
2046 TARGET_LINK_LIBRARIES(leaky-relu-nc-test PRIVATE XNNPACK gtest gtest_main)
2047 ADD_TEST(leaky-relu-nc-test leaky-relu-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002048
Marat Dukhanefc47b82019-11-18 09:25:38 -08002049 ADD_EXECUTABLE(max-pooling-nhwc-test test/max-pooling-nhwc.cc)
2050 SET_TARGET_PROPERTIES(max-pooling-nhwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002051 CXX_STANDARD 11
2052 CXX_STANDARD_REQUIRED YES
2053 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002054 TARGET_INCLUDE_DIRECTORIES(max-pooling-nhwc-test PRIVATE src test)
2055 TARGET_LINK_LIBRARIES(max-pooling-nhwc-test PRIVATE XNNPACK gtest gtest_main)
2056 ADD_TEST(max-pooling-nhwc-test max-pooling-nhwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002057
Marat Dukhan79e7f842019-12-05 14:35:50 -08002058 ADD_EXECUTABLE(maximum-nd-test test/multiply-nd.cc)
2059 SET_TARGET_PROPERTIES(maximum-nd-test PROPERTIES
2060 CXX_STANDARD 11
2061 CXX_STANDARD_REQUIRED YES
2062 CXX_EXTENSIONS NO)
2063 TARGET_INCLUDE_DIRECTORIES(maximum-nd-test PRIVATE src test)
2064 TARGET_LINK_LIBRARIES(maximum-nd-test PRIVATE XNNPACK gtest gtest_main)
2065 ADD_TEST(maximum-nd-test maximum-nd-test)
2066
2067 ADD_EXECUTABLE(minimum-nd-test test/multiply-nd.cc)
2068 SET_TARGET_PROPERTIES(minimum-nd-test PROPERTIES
2069 CXX_STANDARD 11
2070 CXX_STANDARD_REQUIRED YES
2071 CXX_EXTENSIONS NO)
2072 TARGET_INCLUDE_DIRECTORIES(minimum-nd-test PRIVATE src test)
2073 TARGET_LINK_LIBRARIES(minimum-nd-test PRIVATE XNNPACK gtest gtest_main)
2074 ADD_TEST(minimum-nd-test minimum-nd-test)
2075
Marat Dukhanefc47b82019-11-18 09:25:38 -08002076 ADD_EXECUTABLE(multiply-nd-test test/multiply-nd.cc)
2077 SET_TARGET_PROPERTIES(multiply-nd-test PROPERTIES
Marat Dukhan9d501d52019-11-16 02:30:50 -08002078 CXX_STANDARD 11
2079 CXX_STANDARD_REQUIRED YES
2080 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002081 TARGET_INCLUDE_DIRECTORIES(multiply-nd-test PRIVATE src test)
2082 TARGET_LINK_LIBRARIES(multiply-nd-test PRIVATE XNNPACK gtest gtest_main)
2083 ADD_TEST(multiply-nd-test multiply-nd-test)
Marat Dukhan9d501d52019-11-16 02:30:50 -08002084
Marat Dukhanefc47b82019-11-18 09:25:38 -08002085 ADD_EXECUTABLE(prelu-nc-test test/prelu-nc.cc)
2086 SET_TARGET_PROPERTIES(prelu-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002087 CXX_STANDARD 11
2088 CXX_STANDARD_REQUIRED YES
2089 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002090 TARGET_INCLUDE_DIRECTORIES(prelu-nc-test PRIVATE src test)
2091 TARGET_LINK_LIBRARIES(prelu-nc-test PRIVATE XNNPACK gtest gtest_main)
2092 ADD_TEST(prelu-nc-test prelu-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002093
Marat Dukhanefc47b82019-11-18 09:25:38 -08002094 ADD_EXECUTABLE(resize-bilinear-nhwc-test test/resize-bilinear-nhwc.cc)
2095 SET_TARGET_PROPERTIES(resize-bilinear-nhwc-test PROPERTIES
Marat Dukhan69722492019-11-11 19:55:50 -08002096 CXX_STANDARD 11
2097 CXX_STANDARD_REQUIRED YES
2098 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002099 TARGET_INCLUDE_DIRECTORIES(resize-bilinear-nhwc-test PRIVATE src test)
2100 TARGET_LINK_LIBRARIES(resize-bilinear-nhwc-test PRIVATE XNNPACK gtest gtest_main)
2101 ADD_TEST(resize-bilinear-nhwc-test resize-bilinear-nhwc-test)
Marat Dukhan69722492019-11-11 19:55:50 -08002102
Marat Dukhanefc47b82019-11-18 09:25:38 -08002103 ADD_EXECUTABLE(sigmoid-nc-test test/sigmoid-nc.cc)
2104 SET_TARGET_PROPERTIES(sigmoid-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002105 CXX_STANDARD 11
2106 CXX_STANDARD_REQUIRED YES
2107 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002108 TARGET_INCLUDE_DIRECTORIES(sigmoid-nc-test PRIVATE src test)
2109 TARGET_LINK_LIBRARIES(sigmoid-nc-test PRIVATE XNNPACK gtest gtest_main)
2110 ADD_TEST(sigmoid-nc-test sigmoid-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002111
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002112 ADD_EXECUTABLE(softmax-nc-test test/softmax-nc.cc)
2113 SET_TARGET_PROPERTIES(softmax-nc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002114 CXX_STANDARD 11
2115 CXX_STANDARD_REQUIRED YES
2116 CXX_EXTENSIONS NO)
Marat Dukhanfd8e6892020-01-27 15:25:25 -08002117 TARGET_INCLUDE_DIRECTORIES(softmax-nc-test PRIVATE src test)
2118 TARGET_LINK_LIBRARIES(softmax-nc-test PRIVATE XNNPACK gtest gtest_main)
2119 ADD_TEST(softmax-nc-test softmax-nc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002120
Marat Dukhan05f3f6d2019-12-03 15:13:53 -08002121 ADD_EXECUTABLE(subtract-nd-test test/subtract-nd.cc)
2122 SET_TARGET_PROPERTIES(subtract-nd-test PROPERTIES
2123 CXX_STANDARD 11
2124 CXX_STANDARD_REQUIRED YES
2125 CXX_EXTENSIONS NO)
2126 TARGET_INCLUDE_DIRECTORIES(subtract-nd-test PRIVATE src test)
2127 TARGET_LINK_LIBRARIES(subtract-nd-test PRIVATE XNNPACK gtest gtest_main)
2128 ADD_TEST(subtract-nd-test subtract-nd-test)
2129
Marat Dukhanefc47b82019-11-18 09:25:38 -08002130 ADD_EXECUTABLE(unpooling-nhwc-test test/unpooling-nhwc.cc)
2131 SET_TARGET_PROPERTIES(unpooling-nhwc-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002132 CXX_STANDARD 11
2133 CXX_STANDARD_REQUIRED YES
2134 CXX_EXTENSIONS NO)
Marat Dukhanefc47b82019-11-18 09:25:38 -08002135 TARGET_INCLUDE_DIRECTORIES(unpooling-nhwc-test PRIVATE src test)
2136 TARGET_LINK_LIBRARIES(unpooling-nhwc-test PRIVATE XNNPACK gtest gtest_main)
2137 ADD_TEST(unpooling-nhwc-test unpooling-nhwc-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002138
2139 # ---[ Build microkernel-level unit tests
Marat Dukhande06f492020-04-09 00:19:31 -07002140 ADD_EXECUTABLE(f16-gemm-minmax-test test/f16-gemm-minmax.cc)
2141 SET_TARGET_PROPERTIES(f16-gemm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002142 CXX_STANDARD 11
2143 CXX_STANDARD_REQUIRED YES
2144 CXX_EXTENSIONS YES)
Marat Dukhande06f492020-04-09 00:19:31 -07002145 TARGET_INCLUDE_DIRECTORIES(f16-gemm-minmax-test PRIVATE src test)
2146 TARGET_LINK_LIBRARIES(f16-gemm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2147 ADD_TEST(f16-gemm-minmax-test f16-gemm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002148
Marat Dukhan355ab432020-04-09 19:01:52 -07002149 ADD_EXECUTABLE(f16-spmm-minmax-test test/f16-spmm-minmax.cc)
2150 SET_TARGET_PROPERTIES(f16-spmm-minmax-test PROPERTIES
2151 CXX_STANDARD 11
2152 CXX_STANDARD_REQUIRED YES
2153 CXX_EXTENSIONS YES)
2154 TARGET_INCLUDE_DIRECTORIES(f16-spmm-minmax-test PRIVATE src test)
2155 TARGET_LINK_LIBRARIES(f16-spmm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2156 ADD_TEST(f16-spmm-minmax-test f16-spmm-minmax-test)
2157
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002158 ADD_EXECUTABLE(f32-argmaxpool-test test/f32-argmaxpool.cc)
2159 SET_TARGET_PROPERTIES(f32-argmaxpool-test PROPERTIES
2160 CXX_STANDARD 11
2161 CXX_STANDARD_REQUIRED YES
2162 CXX_EXTENSIONS YES)
2163 TARGET_INCLUDE_DIRECTORIES(f32-argmaxpool-test PRIVATE src test)
2164 TARGET_LINK_LIBRARIES(f32-argmaxpool-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2165 ADD_TEST(f32-argmaxpool-test f32-argmaxpool-test)
2166
Marat Dukhan99936602020-04-11 16:47:01 -07002167 ADD_EXECUTABLE(f32-avgpool-minmax-test test/f32-avgpool-minmax.cc)
2168 SET_TARGET_PROPERTIES(f32-avgpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002169 CXX_STANDARD 11
2170 CXX_STANDARD_REQUIRED YES
2171 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002172 TARGET_INCLUDE_DIRECTORIES(f32-avgpool-minmax-test PRIVATE src test)
2173 TARGET_LINK_LIBRARIES(f32-avgpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2174 ADD_TEST(f32-avgpool-minmax-test f32-avgpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002175
Frank Barchardb1966592020-05-12 13:47:06 -07002176 ADD_EXECUTABLE(f16-clamp-test test/f16-clamp.cc)
2177 SET_TARGET_PROPERTIES(f16-clamp-test PROPERTIES
2178 CXX_STANDARD 11
2179 CXX_STANDARD_REQUIRED YES
2180 CXX_EXTENSIONS YES)
2181 TARGET_INCLUDE_DIRECTORIES(f16-clamp-test PRIVATE src test)
2182 TARGET_LINK_LIBRARIES(f16-clamp-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2183 ADD_TEST(f16-clamp-test f16-clamp-test)
2184
Marat Dukhan53873d02019-12-06 17:21:30 -08002185 ADD_EXECUTABLE(f32-clamp-test test/f32-clamp.cc)
2186 SET_TARGET_PROPERTIES(f32-clamp-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002187 CXX_STANDARD 11
2188 CXX_STANDARD_REQUIRED YES
2189 CXX_EXTENSIONS YES)
Marat Dukhan53873d02019-12-06 17:21:30 -08002190 TARGET_INCLUDE_DIRECTORIES(f32-clamp-test PRIVATE src test)
2191 TARGET_LINK_LIBRARIES(f32-clamp-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2192 ADD_TEST(f32-clamp-test f32-clamp-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002193
2194 ADD_EXECUTABLE(f32-conv-hwc-test test/f32-conv-hwc.cc)
2195 SET_TARGET_PROPERTIES(f32-conv-hwc-test PROPERTIES
2196 CXX_STANDARD 11
2197 CXX_STANDARD_REQUIRED YES
2198 CXX_EXTENSIONS YES)
2199 TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc-test PRIVATE src test)
2200 TARGET_LINK_LIBRARIES(f32-conv-hwc-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2201 ADD_TEST(f32-conv-hwc-test f32-conv-hwc-test)
2202
2203 ADD_EXECUTABLE(f32-conv-hwc2spchw-test test/f32-conv-hwc2spchw.cc)
2204 SET_TARGET_PROPERTIES(f32-conv-hwc2spchw-test PROPERTIES
2205 CXX_STANDARD 11
2206 CXX_STANDARD_REQUIRED YES
2207 CXX_EXTENSIONS YES)
2208 TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc2spchw-test PRIVATE src test)
2209 TARGET_LINK_LIBRARIES(f32-conv-hwc2spchw-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2210 ADD_TEST(f32-conv-hwc2spchw-test f32-conv-hwc2spchw-test)
2211
2212 ADD_EXECUTABLE(f32-dwconv-spchw-test test/f32-dwconv-spchw.cc)
2213 SET_TARGET_PROPERTIES(f32-dwconv-spchw-test PROPERTIES
2214 CXX_STANDARD 11
2215 CXX_STANDARD_REQUIRED YES
2216 CXX_EXTENSIONS YES)
2217 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-spchw-test PRIVATE src test)
2218 TARGET_LINK_LIBRARIES(f32-dwconv-spchw-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2219 ADD_TEST(f32-dwconv-spchw-test f32-dwconv-spchw-test)
2220
Marat Dukhan163a7e62020-04-09 04:19:26 -07002221 ADD_EXECUTABLE(f32-dwconv-test test/f32-dwconv.cc)
2222 SET_TARGET_PROPERTIES(f32-dwconv-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002223 CXX_STANDARD 11
2224 CXX_STANDARD_REQUIRED YES
2225 CXX_EXTENSIONS YES)
Marat Dukhan163a7e62020-04-09 04:19:26 -07002226 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-test PRIVATE src test)
2227 TARGET_LINK_LIBRARIES(f32-dwconv-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2228 ADD_TEST(f32-dwconv-test f32-dwconv-test)
2229
2230 ADD_EXECUTABLE(f32-dwconv-minmax-test test/f32-dwconv-minmax.cc)
2231 SET_TARGET_PROPERTIES(f32-dwconv-minmax-test PROPERTIES
2232 CXX_STANDARD 11
2233 CXX_STANDARD_REQUIRED YES
2234 CXX_EXTENSIONS YES)
2235 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-minmax-test PRIVATE src test)
2236 TARGET_LINK_LIBRARIES(f32-dwconv-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2237 ADD_TEST(f32-dwconv-minmax-test f32-dwconv-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002238
2239 ADD_EXECUTABLE(f32-gavgpool-spchw-test test/f32-gavgpool-spchw.cc)
2240 SET_TARGET_PROPERTIES(f32-gavgpool-spchw-test PROPERTIES
2241 CXX_STANDARD 11
2242 CXX_STANDARD_REQUIRED YES
2243 CXX_EXTENSIONS YES)
2244 TARGET_INCLUDE_DIRECTORIES(f32-gavgpool-spchw-test PRIVATE src test)
2245 TARGET_LINK_LIBRARIES(f32-gavgpool-spchw-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2246 ADD_TEST(f32-gavgpool-spchw-test f32-gavgpool-spchw-test)
2247
Marat Dukhan99936602020-04-11 16:47:01 -07002248 ADD_EXECUTABLE(f32-gavgpool-minmax-test test/f32-gavgpool-minmax.cc)
2249 SET_TARGET_PROPERTIES(f32-gavgpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002250 CXX_STANDARD 11
2251 CXX_STANDARD_REQUIRED YES
2252 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002253 TARGET_INCLUDE_DIRECTORIES(f32-gavgpool-minmax-test PRIVATE src test)
2254 TARGET_LINK_LIBRARIES(f32-gavgpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2255 ADD_TEST(f32-gavgpool-minmax-test f32-gavgpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002256
Marat Dukhan163a7e62020-04-09 04:19:26 -07002257 ADD_EXECUTABLE(f32-gemm-test test/f32-gemm.cc)
2258 SET_TARGET_PROPERTIES(f32-gemm-test PROPERTIES
2259 CXX_STANDARD 11
2260 CXX_STANDARD_REQUIRED YES
2261 CXX_EXTENSIONS YES)
2262 TARGET_INCLUDE_DIRECTORIES(f32-gemm-test PRIVATE src test)
2263 TARGET_LINK_LIBRARIES(f32-gemm-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2264 ADD_TEST(f32-gemm-test f32-gemm-test)
2265
Marat Dukhan1c587112020-04-08 20:04:28 -07002266 ADD_EXECUTABLE(f32-gemm-minmax-test test/f32-gemm-minmax.cc)
2267 SET_TARGET_PROPERTIES(f32-gemm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002268 CXX_STANDARD 11
2269 CXX_STANDARD_REQUIRED YES
2270 CXX_EXTENSIONS YES)
Marat Dukhan1c587112020-04-08 20:04:28 -07002271 TARGET_INCLUDE_DIRECTORIES(f32-gemm-minmax-test PRIVATE src test)
2272 TARGET_LINK_LIBRARIES(f32-gemm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2273 ADD_TEST(f32-gemm-minmax-test f32-gemm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002274
Marat Dukhan1c587112020-04-08 20:04:28 -07002275 ADD_EXECUTABLE(f32-gemminc-minmax-test test/f32-gemminc-minmax.cc)
2276 SET_TARGET_PROPERTIES(f32-gemminc-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002277 CXX_STANDARD 11
2278 CXX_STANDARD_REQUIRED YES
2279 CXX_EXTENSIONS YES)
Marat Dukhan1c587112020-04-08 20:04:28 -07002280 TARGET_INCLUDE_DIRECTORIES(f32-gemminc-minmax-test PRIVATE src test)
2281 TARGET_LINK_LIBRARIES(f32-gemminc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2282 ADD_TEST(f32-gemminc-minmax-test f32-gemminc-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002283
Frank Barchardb1966592020-05-12 13:47:06 -07002284 ADD_EXECUTABLE(f16-hswish-test test/f16-hswish.cc)
2285 SET_TARGET_PROPERTIES(f16-hswish-test PROPERTIES
2286 CXX_STANDARD 11
2287 CXX_STANDARD_REQUIRED YES
2288 CXX_EXTENSIONS YES)
2289 TARGET_INCLUDE_DIRECTORIES(f16-hswish-test PRIVATE src test)
2290 TARGET_LINK_LIBRARIES(f16-hswish-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2291 ADD_TEST(f16-hswish-test f16-hswish-test)
2292
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002293 ADD_EXECUTABLE(f32-hswish-test test/f32-hswish.cc)
2294 SET_TARGET_PROPERTIES(f32-hswish-test PROPERTIES
2295 CXX_STANDARD 11
2296 CXX_STANDARD_REQUIRED YES
2297 CXX_EXTENSIONS YES)
2298 TARGET_INCLUDE_DIRECTORIES(f32-hswish-test PRIVATE src test)
2299 TARGET_LINK_LIBRARIES(f32-hswish-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2300 ADD_TEST(f32-hswish-test f32-hswish-test)
2301
Marat Dukhan660fd192020-03-10 04:55:30 -07002302 ADD_EXECUTABLE(f32-ibilinear-test test/f32-ibilinear.cc)
2303 SET_TARGET_PROPERTIES(f32-ibilinear-test PROPERTIES
2304 CXX_STANDARD 11
2305 CXX_STANDARD_REQUIRED YES
2306 CXX_EXTENSIONS YES)
2307 TARGET_INCLUDE_DIRECTORIES(f32-ibilinear-test PRIVATE src test)
2308 TARGET_LINK_LIBRARIES(f32-ibilinear-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2309 ADD_TEST(f32-ibilinear-test f32-ibilinear-test)
2310
Marat Dukhan163a7e62020-04-09 04:19:26 -07002311 ADD_EXECUTABLE(f32-igemm-test test/f32-igemm.cc)
2312 SET_TARGET_PROPERTIES(f32-igemm-test PROPERTIES
2313 CXX_STANDARD 11
2314 CXX_STANDARD_REQUIRED YES
2315 CXX_EXTENSIONS YES)
2316 TARGET_INCLUDE_DIRECTORIES(f32-igemm-test PRIVATE src test)
2317 TARGET_LINK_LIBRARIES(f32-igemm-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2318 ADD_TEST(f32-igemm-test f32-igemm-test)
2319
Marat Dukhan1c587112020-04-08 20:04:28 -07002320 ADD_EXECUTABLE(f32-igemm-minmax-test test/f32-igemm-minmax.cc)
2321 SET_TARGET_PROPERTIES(f32-igemm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002322 CXX_STANDARD 11
2323 CXX_STANDARD_REQUIRED YES
2324 CXX_EXTENSIONS YES)
Marat Dukhan1c587112020-04-08 20:04:28 -07002325 TARGET_INCLUDE_DIRECTORIES(f32-igemm-minmax-test PRIVATE src test)
Marat Dukhan3fd4b292020-04-13 10:29:32 -07002326 IF(MINGW)
2327 # Work-around for "too many sections" error
2328 TARGET_COMPILE_OPTIONS(f32-igemm-minmax-test PRIVATE "$<$<NOT:$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>>:-Wa,-mbig-obj>")
2329 ENDIF()
Marat Dukhan1c587112020-04-08 20:04:28 -07002330 TARGET_LINK_LIBRARIES(f32-igemm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2331 ADD_TEST(f32-igemm-minmax-test f32-igemm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002332
Frank Barchardb0e4fae2020-05-04 15:27:51 -07002333 ADD_EXECUTABLE(f16-igemm-minmax-test test/f16-igemm-minmax.cc)
2334 SET_TARGET_PROPERTIES(f16-igemm-minmax-test PROPERTIES
2335 CXX_STANDARD 11
2336 CXX_STANDARD_REQUIRED YES
2337 CXX_EXTENSIONS YES)
2338 TARGET_INCLUDE_DIRECTORIES(f16-igemm-minmax-test PRIVATE src test)
2339 TARGET_LINK_LIBRARIES(f16-igemm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2340 ADD_TEST(f16-igemm-minmax-test f16-igemm-minmax-test)
2341
Marat Dukhan99936602020-04-11 16:47:01 -07002342 ADD_EXECUTABLE(f32-maxpool-minmax-test test/f32-maxpool-minmax.cc)
2343 SET_TARGET_PROPERTIES(f32-maxpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002344 CXX_STANDARD 11
2345 CXX_STANDARD_REQUIRED YES
2346 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002347 TARGET_INCLUDE_DIRECTORIES(f32-maxpool-minmax-test PRIVATE src test)
2348 TARGET_LINK_LIBRARIES(f32-maxpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2349 ADD_TEST(f32-maxpool-minmax-test f32-maxpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002350
Marat Dukhan99936602020-04-11 16:47:01 -07002351 ADD_EXECUTABLE(f32-pavgpool-minmax-test test/f32-pavgpool-minmax.cc)
2352 SET_TARGET_PROPERTIES(f32-pavgpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002353 CXX_STANDARD 11
2354 CXX_STANDARD_REQUIRED YES
2355 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002356 TARGET_INCLUDE_DIRECTORIES(f32-pavgpool-minmax-test PRIVATE src test)
2357 TARGET_LINK_LIBRARIES(f32-pavgpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2358 ADD_TEST(f32-pavgpool-minmax-test f32-pavgpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002359
Marat Dukhan1c587112020-04-08 20:04:28 -07002360 ADD_EXECUTABLE(f32-ppmm-minmax-test test/f32-ppmm-minmax.cc)
2361 SET_TARGET_PROPERTIES(f32-ppmm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002362 CXX_STANDARD 11
2363 CXX_STANDARD_REQUIRED YES
2364 CXX_EXTENSIONS YES)
Marat Dukhan1c587112020-04-08 20:04:28 -07002365 TARGET_INCLUDE_DIRECTORIES(f32-ppmm-minmax-test PRIVATE src test)
2366 TARGET_LINK_LIBRARIES(f32-ppmm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2367 ADD_TEST(f32-ppmm-minmax-test f32-ppmm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002368
Frank Barchardb1966592020-05-12 13:47:06 -07002369 ADD_EXECUTABLE(f16-prelu-test test/f16-prelu.cc)
2370 SET_TARGET_PROPERTIES(f16-prelu-test PROPERTIES
2371 CXX_STANDARD 11
2372 CXX_STANDARD_REQUIRED YES
2373 CXX_EXTENSIONS YES)
2374 TARGET_INCLUDE_DIRECTORIES(f16-prelu-test PRIVATE src test)
2375 TARGET_LINK_LIBRARIES(f16-prelu-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2376 ADD_TEST(f16-prelu-test f16-prelu-test)
2377
Marat Dukhan53873d02019-12-06 17:21:30 -08002378 ADD_EXECUTABLE(f32-prelu-test test/f32-prelu.cc)
2379 SET_TARGET_PROPERTIES(f32-prelu-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002380 CXX_STANDARD 11
2381 CXX_STANDARD_REQUIRED YES
2382 CXX_EXTENSIONS YES)
Marat Dukhan53873d02019-12-06 17:21:30 -08002383 TARGET_INCLUDE_DIRECTORIES(f32-prelu-test PRIVATE src test)
2384 TARGET_LINK_LIBRARIES(f32-prelu-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2385 ADD_TEST(f32-prelu-test f32-prelu-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002386
Marat Dukhan97579532019-10-18 16:40:39 -07002387 ADD_EXECUTABLE(f32-raddexpminusmax-test test/f32-raddexpminusmax.cc)
2388 SET_TARGET_PROPERTIES(f32-raddexpminusmax-test PROPERTIES
2389 CXX_STANDARD 11
2390 CXX_STANDARD_REQUIRED YES
2391 CXX_EXTENSIONS YES)
2392 TARGET_INCLUDE_DIRECTORIES(f32-raddexpminusmax-test PRIVATE src test)
2393 TARGET_LINK_LIBRARIES(f32-raddexpminusmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2394 ADD_TEST(f32-raddexpminusmax-test f32-raddexpminusmax-test)
2395
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002396 ADD_EXECUTABLE(f32-raddextexp-test test/f32-raddextexp.cc)
2397 SET_TARGET_PROPERTIES(f32-raddextexp-test PROPERTIES
2398 CXX_STANDARD 11
2399 CXX_STANDARD_REQUIRED YES
2400 CXX_EXTENSIONS YES)
2401 TARGET_INCLUDE_DIRECTORIES(f32-raddextexp-test PRIVATE src test)
Marat Dukhana5977df2019-10-30 22:02:15 -07002402 TARGET_LINK_LIBRARIES(f32-raddextexp-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002403 ADD_TEST(f32-raddextexp-test f32-raddextexp-test)
2404
Marat Dukhan97579532019-10-18 16:40:39 -07002405 ADD_EXECUTABLE(f32-raddstoreexpminusmax-test test/f32-raddstoreexpminusmax.cc)
2406 SET_TARGET_PROPERTIES(f32-raddstoreexpminusmax-test PROPERTIES
2407 CXX_STANDARD 11
2408 CXX_STANDARD_REQUIRED YES
2409 CXX_EXTENSIONS YES)
2410 TARGET_INCLUDE_DIRECTORIES(f32-raddstoreexpminusmax-test PRIVATE src test)
2411 TARGET_LINK_LIBRARIES(f32-raddstoreexpminusmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2412 ADD_TEST(f32-raddstoreexpminusmax-test f32-raddstoreexpminusmax-test)
2413
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002414 ADD_EXECUTABLE(f32-rmax-test test/f32-rmax.cc)
2415 SET_TARGET_PROPERTIES(f32-rmax-test PROPERTIES
2416 CXX_STANDARD 11
2417 CXX_STANDARD_REQUIRED YES
2418 CXX_EXTENSIONS YES)
2419 TARGET_INCLUDE_DIRECTORIES(f32-rmax-test PRIVATE src test)
2420 TARGET_LINK_LIBRARIES(f32-rmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2421 ADD_TEST(f32-rmax-test f32-rmax-test)
2422
Marat Dukhan581c1ac2019-11-18 14:57:54 -08002423 ADD_EXECUTABLE(f32-sigmoid-test test/f32-sigmoid.cc)
2424 SET_TARGET_PROPERTIES(f32-sigmoid-test PROPERTIES
2425 CXX_STANDARD 11
2426 CXX_STANDARD_REQUIRED YES
2427 CXX_EXTENSIONS YES)
2428 TARGET_INCLUDE_DIRECTORIES(f32-sigmoid-test PRIVATE src test)
2429 TARGET_LINK_LIBRARIES(f32-sigmoid-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2430 ADD_TEST(f32-sigmoid-test f32-sigmoid-test)
2431
Marat Dukhan355ab432020-04-09 19:01:52 -07002432 ADD_EXECUTABLE(f32-spmm-minmax-test test/f32-spmm-minmax.cc)
2433 SET_TARGET_PROPERTIES(f32-spmm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002434 CXX_STANDARD 11
2435 CXX_STANDARD_REQUIRED YES
2436 CXX_EXTENSIONS YES)
Marat Dukhan355ab432020-04-09 19:01:52 -07002437 TARGET_INCLUDE_DIRECTORIES(f32-spmm-minmax-test PRIVATE src test)
2438 TARGET_LINK_LIBRARIES(f32-spmm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2439 ADD_TEST(f32-spmm-minmax-test f32-spmm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002440
Frank Barchardd793f6c2020-05-08 13:37:43 -07002441 ADD_EXECUTABLE(f16-vadd-minmax-test test/f16-vadd-minmax.cc)
2442 SET_TARGET_PROPERTIES(f16-vadd-minmax-test PROPERTIES
2443 CXX_STANDARD 11
2444 CXX_STANDARD_REQUIRED YES
2445 CXX_EXTENSIONS YES)
2446 TARGET_INCLUDE_DIRECTORIES(f16-vadd-minmax-test PRIVATE src test)
2447 TARGET_LINK_LIBRARIES(f16-vadd-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2448 ADD_TEST(f16-vadd-minmax-test f16-vadd-minmax-test)
2449
2450 ADD_EXECUTABLE(f16-vaddc-minmax-test test/f16-vaddc-minmax.cc)
2451 SET_TARGET_PROPERTIES(f16-vaddc-minmax-test PROPERTIES
2452 CXX_STANDARD 11
2453 CXX_STANDARD_REQUIRED YES
2454 CXX_EXTENSIONS YES)
2455 TARGET_INCLUDE_DIRECTORIES(f16-vaddc-minmax-test PRIVATE src test)
2456 TARGET_LINK_LIBRARIES(f16-vaddc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2457 ADD_TEST(f16-vaddc-minmax-test f16-vaddc-minmax-test)
2458
2459 ADD_EXECUTABLE(f16-vdiv-minmax-test test/f16-vdiv-minmax.cc)
2460 SET_TARGET_PROPERTIES(f16-vdiv-minmax-test PROPERTIES
2461 CXX_STANDARD 11
2462 CXX_STANDARD_REQUIRED YES
2463 CXX_EXTENSIONS YES)
2464 TARGET_INCLUDE_DIRECTORIES(f16-vdiv-minmax-test PRIVATE src test)
2465 TARGET_LINK_LIBRARIES(f16-vdiv-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2466 ADD_TEST(f16-vdiv-minmax-test f16-vdiv-minmax-test)
2467
2468 ADD_EXECUTABLE(f16-vdivc-minmax-test test/f16-vdivc-minmax.cc)
2469 SET_TARGET_PROPERTIES(f16-vdivc-minmax-test PROPERTIES
2470 CXX_STANDARD 11
2471 CXX_STANDARD_REQUIRED YES
2472 CXX_EXTENSIONS YES)
2473 TARGET_INCLUDE_DIRECTORIES(f16-vdivc-minmax-test PRIVATE src test)
2474 TARGET_LINK_LIBRARIES(f16-vdivc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2475 ADD_TEST(f16-vdivc-minmax-test f16-vdivc-minmax-test)
2476
2477 ADD_EXECUTABLE(f16-vrdivc-minmax-test test/f16-vrdivc-minmax.cc)
2478 SET_TARGET_PROPERTIES(f16-vrdivc-minmax-test PROPERTIES
2479 CXX_STANDARD 11
2480 CXX_STANDARD_REQUIRED YES
2481 CXX_EXTENSIONS YES)
2482 TARGET_INCLUDE_DIRECTORIES(f16-vrdivc-minmax-test PRIVATE src test)
2483 TARGET_LINK_LIBRARIES(f16-vrdivc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2484 ADD_TEST(f16-vrdivc-minmax-test f16-vrdivc-minmax-test)
2485
2486 ADD_EXECUTABLE(f16-vmax-test test/f16-vmax.cc)
2487 SET_TARGET_PROPERTIES(f16-vmax-test PROPERTIES
2488 CXX_STANDARD 11
2489 CXX_STANDARD_REQUIRED YES
2490 CXX_EXTENSIONS YES)
2491 TARGET_INCLUDE_DIRECTORIES(f16-vmax-test PRIVATE src test)
2492 TARGET_LINK_LIBRARIES(f16-vmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2493 ADD_TEST(f16-vmax-test f16-vmax-test)
2494
2495 ADD_EXECUTABLE(f16-vmaxc-test test/f16-vmaxc.cc)
2496 SET_TARGET_PROPERTIES(f16-vmaxc-test PROPERTIES
2497 CXX_STANDARD 11
2498 CXX_STANDARD_REQUIRED YES
2499 CXX_EXTENSIONS YES)
2500 TARGET_INCLUDE_DIRECTORIES(f16-vmaxc-test PRIVATE src test)
2501 TARGET_LINK_LIBRARIES(f16-vmaxc-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2502 ADD_TEST(f16-vmaxc-test f16-vmaxc-test)
2503
2504 ADD_EXECUTABLE(f16-vmin-test test/f16-vmin.cc)
2505 SET_TARGET_PROPERTIES(f16-vmin-test PROPERTIES
2506 CXX_STANDARD 11
2507 CXX_STANDARD_REQUIRED YES
2508 CXX_EXTENSIONS YES)
2509 TARGET_INCLUDE_DIRECTORIES(f16-vmin-test PRIVATE src test)
2510 TARGET_LINK_LIBRARIES(f16-vmin-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2511 ADD_TEST(f16-vmin-test f16-vmin-test)
2512
2513 ADD_EXECUTABLE(f16-vminc-test test/f16-vminc.cc)
2514 SET_TARGET_PROPERTIES(f16-vminc-test PROPERTIES
2515 CXX_STANDARD 11
2516 CXX_STANDARD_REQUIRED YES
2517 CXX_EXTENSIONS YES)
2518 TARGET_INCLUDE_DIRECTORIES(f16-vminc-test PRIVATE src test)
2519 TARGET_LINK_LIBRARIES(f16-vminc-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2520 ADD_TEST(f16-vminc-test f16-vminc-test)
2521
2522 ADD_EXECUTABLE(f16-vmul-minmax-test test/f16-vmul-minmax.cc)
2523 SET_TARGET_PROPERTIES(f16-vmul-minmax-test PROPERTIES
2524 CXX_STANDARD 11
2525 CXX_STANDARD_REQUIRED YES
2526 CXX_EXTENSIONS YES)
2527 TARGET_INCLUDE_DIRECTORIES(f16-vmul-minmax-test PRIVATE src test)
2528 TARGET_LINK_LIBRARIES(f16-vmul-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2529 ADD_TEST(f16-vmul-minmax-test f16-vmul-minmax-test)
2530
2531 ADD_EXECUTABLE(f16-vmulc-minmax-test test/f16-vmulc-minmax.cc)
2532 SET_TARGET_PROPERTIES(f16-vmulc-minmax-test PROPERTIES
2533 CXX_STANDARD 11
2534 CXX_STANDARD_REQUIRED YES
2535 CXX_EXTENSIONS YES)
2536 TARGET_INCLUDE_DIRECTORIES(f16-vmulc-minmax-test PRIVATE src test)
2537 TARGET_LINK_LIBRARIES(f16-vmulc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2538 ADD_TEST(f16-vmulc-minmax-test f16-vmulc-minmax-test)
2539
2540 ADD_EXECUTABLE(f16-vsub-minmax-test test/f16-vsub-minmax.cc)
2541 SET_TARGET_PROPERTIES(f16-vsub-minmax-test PROPERTIES
2542 CXX_STANDARD 11
2543 CXX_STANDARD_REQUIRED YES
2544 CXX_EXTENSIONS YES)
2545 TARGET_INCLUDE_DIRECTORIES(f16-vsub-minmax-test PRIVATE src test)
2546 TARGET_LINK_LIBRARIES(f16-vsub-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2547 ADD_TEST(f16-vsub-minmax-test f16-vsub-minmax-test)
2548
2549 ADD_EXECUTABLE(f16-vsubc-minmax-test test/f16-vsubc-minmax.cc)
2550 SET_TARGET_PROPERTIES(f16-vsubc-minmax-test PROPERTIES
2551 CXX_STANDARD 11
2552 CXX_STANDARD_REQUIRED YES
2553 CXX_EXTENSIONS YES)
2554 TARGET_INCLUDE_DIRECTORIES(f16-vsubc-minmax-test PRIVATE src test)
2555 TARGET_LINK_LIBRARIES(f16-vsubc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2556 ADD_TEST(f16-vsubc-minmax-test f16-vsubc-minmax-test)
2557
2558 ADD_EXECUTABLE(f16-vrsubc-minmax-test test/f16-vrsubc-minmax.cc)
2559 SET_TARGET_PROPERTIES(f16-vrsubc-minmax-test PROPERTIES
2560 CXX_STANDARD 11
2561 CXX_STANDARD_REQUIRED YES
2562 CXX_EXTENSIONS YES)
2563 TARGET_INCLUDE_DIRECTORIES(f16-vrsubc-minmax-test PRIVATE src test)
2564 TARGET_LINK_LIBRARIES(f16-vrsubc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2565 ADD_TEST(f16-vrsubc-minmax-test f16-vrsubc-minmax-test)
2566
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002567 ADD_EXECUTABLE(f32-vadd-minmax-test test/f32-vadd-minmax.cc)
2568 SET_TARGET_PROPERTIES(f32-vadd-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002569 CXX_STANDARD 11
2570 CXX_STANDARD_REQUIRED YES
2571 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002572 TARGET_INCLUDE_DIRECTORIES(f32-vadd-minmax-test PRIVATE src test)
2573 TARGET_LINK_LIBRARIES(f32-vadd-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2574 ADD_TEST(f32-vadd-minmax-test f32-vadd-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002575
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002576 ADD_EXECUTABLE(f32-vaddc-minmax-test test/f32-vaddc-minmax.cc)
2577 SET_TARGET_PROPERTIES(f32-vaddc-minmax-test PROPERTIES
Marat Dukhanc76065f2019-11-14 18:13:33 -08002578 CXX_STANDARD 11
2579 CXX_STANDARD_REQUIRED YES
2580 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002581 TARGET_INCLUDE_DIRECTORIES(f32-vaddc-minmax-test PRIVATE src test)
2582 TARGET_LINK_LIBRARIES(f32-vaddc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2583 ADD_TEST(f32-vaddc-minmax-test f32-vaddc-minmax-test)
Marat Dukhanc76065f2019-11-14 18:13:33 -08002584
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002585 ADD_EXECUTABLE(f32-vdiv-minmax-test test/f32-vdiv-minmax.cc)
2586 SET_TARGET_PROPERTIES(f32-vdiv-minmax-test PROPERTIES
Marat Dukhan77ca6302019-12-06 12:48:15 -08002587 CXX_STANDARD 11
2588 CXX_STANDARD_REQUIRED YES
2589 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002590 TARGET_INCLUDE_DIRECTORIES(f32-vdiv-minmax-test PRIVATE src test)
2591 TARGET_LINK_LIBRARIES(f32-vdiv-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2592 ADD_TEST(f32-vdiv-minmax-test f32-vdiv-minmax-test)
Marat Dukhan77ca6302019-12-06 12:48:15 -08002593
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002594 ADD_EXECUTABLE(f32-vdivc-minmax-test test/f32-vdivc-minmax.cc)
2595 SET_TARGET_PROPERTIES(f32-vdivc-minmax-test PROPERTIES
Marat Dukhan77ca6302019-12-06 12:48:15 -08002596 CXX_STANDARD 11
2597 CXX_STANDARD_REQUIRED YES
2598 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002599 TARGET_INCLUDE_DIRECTORIES(f32-vdivc-minmax-test PRIVATE src test)
2600 TARGET_LINK_LIBRARIES(f32-vdivc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2601 ADD_TEST(f32-vdivc-minmax-test f32-vdivc-minmax-test)
Marat Dukhan77ca6302019-12-06 12:48:15 -08002602
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002603 ADD_EXECUTABLE(f32-vrdivc-minmax-test test/f32-vrdivc-minmax.cc)
2604 SET_TARGET_PROPERTIES(f32-vrdivc-minmax-test PROPERTIES
Marat Dukhan77ca6302019-12-06 12:48:15 -08002605 CXX_STANDARD 11
2606 CXX_STANDARD_REQUIRED YES
2607 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002608 TARGET_INCLUDE_DIRECTORIES(f32-vrdivc-minmax-test PRIVATE src test)
2609 TARGET_LINK_LIBRARIES(f32-vrdivc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2610 ADD_TEST(f32-vrdivc-minmax-test f32-vrdivc-minmax-test)
Marat Dukhan77ca6302019-12-06 12:48:15 -08002611
Marat Dukhan403b7d42019-12-05 12:49:11 -08002612 ADD_EXECUTABLE(f32-vmax-test test/f32-vmax.cc)
2613 SET_TARGET_PROPERTIES(f32-vmax-test PROPERTIES
2614 CXX_STANDARD 11
2615 CXX_STANDARD_REQUIRED YES
2616 CXX_EXTENSIONS YES)
2617 TARGET_INCLUDE_DIRECTORIES(f32-vmax-test PRIVATE src test)
2618 TARGET_LINK_LIBRARIES(f32-vmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2619 ADD_TEST(f32-vmax-test f32-vmax-test)
2620
2621 ADD_EXECUTABLE(f32-vmaxc-test test/f32-vmaxc.cc)
2622 SET_TARGET_PROPERTIES(f32-vmaxc-test PROPERTIES
2623 CXX_STANDARD 11
2624 CXX_STANDARD_REQUIRED YES
2625 CXX_EXTENSIONS YES)
2626 TARGET_INCLUDE_DIRECTORIES(f32-vmaxc-test PRIVATE src test)
2627 TARGET_LINK_LIBRARIES(f32-vmaxc-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2628 ADD_TEST(f32-vmaxc-test f32-vmaxc-test)
2629
2630 ADD_EXECUTABLE(f32-vmin-test test/f32-vmin.cc)
2631 SET_TARGET_PROPERTIES(f32-vmin-test PROPERTIES
2632 CXX_STANDARD 11
2633 CXX_STANDARD_REQUIRED YES
2634 CXX_EXTENSIONS YES)
2635 TARGET_INCLUDE_DIRECTORIES(f32-vmin-test PRIVATE src test)
2636 TARGET_LINK_LIBRARIES(f32-vmin-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2637 ADD_TEST(f32-vmin-test f32-vmin-test)
2638
2639 ADD_EXECUTABLE(f32-vminc-test test/f32-vminc.cc)
2640 SET_TARGET_PROPERTIES(f32-vminc-test PROPERTIES
2641 CXX_STANDARD 11
2642 CXX_STANDARD_REQUIRED YES
2643 CXX_EXTENSIONS YES)
2644 TARGET_INCLUDE_DIRECTORIES(f32-vminc-test PRIVATE src test)
2645 TARGET_LINK_LIBRARIES(f32-vminc-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2646 ADD_TEST(f32-vminc-test f32-vminc-test)
2647
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002648 ADD_EXECUTABLE(f32-vmul-minmax-test test/f32-vmul-minmax.cc)
2649 SET_TARGET_PROPERTIES(f32-vmul-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002650 CXX_STANDARD 11
2651 CXX_STANDARD_REQUIRED YES
2652 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002653 TARGET_INCLUDE_DIRECTORIES(f32-vmul-minmax-test PRIVATE src test)
2654 TARGET_LINK_LIBRARIES(f32-vmul-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2655 ADD_TEST(f32-vmul-minmax-test f32-vmul-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002656
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002657 ADD_EXECUTABLE(f32-vmulc-minmax-test test/f32-vmulc-minmax.cc)
2658 SET_TARGET_PROPERTIES(f32-vmulc-minmax-test PROPERTIES
Marat Dukhanc76065f2019-11-14 18:13:33 -08002659 CXX_STANDARD 11
2660 CXX_STANDARD_REQUIRED YES
2661 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002662 TARGET_INCLUDE_DIRECTORIES(f32-vmulc-minmax-test PRIVATE src test)
2663 TARGET_LINK_LIBRARIES(f32-vmulc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2664 ADD_TEST(f32-vmulc-minmax-test f32-vmulc-minmax-test)
Marat Dukhanc76065f2019-11-14 18:13:33 -08002665
Marat Dukhanb9d07cf2020-04-11 20:25:31 -07002666 ADD_EXECUTABLE(f32-vmulcaddc-minmax-test test/f32-vmulcaddc-minmax.cc)
2667 SET_TARGET_PROPERTIES(f32-vmulcaddc-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002668 CXX_STANDARD 11
2669 CXX_STANDARD_REQUIRED YES
2670 CXX_EXTENSIONS YES)
Marat Dukhanb9d07cf2020-04-11 20:25:31 -07002671 TARGET_INCLUDE_DIRECTORIES(f32-vmulcaddc-minmax-test PRIVATE src test)
2672 TARGET_LINK_LIBRARIES(f32-vmulcaddc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2673 ADD_TEST(f32-vmulcaddc-minmax-test f32-vmulcaddc-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002674
Marat Dukhan97579532019-10-18 16:40:39 -07002675 ADD_EXECUTABLE(f32-vscaleexpminusmax-test test/f32-vscaleexpminusmax.cc)
2676 SET_TARGET_PROPERTIES(f32-vscaleexpminusmax-test PROPERTIES
2677 CXX_STANDARD 11
2678 CXX_STANDARD_REQUIRED YES
2679 CXX_EXTENSIONS YES)
2680 TARGET_INCLUDE_DIRECTORIES(f32-vscaleexpminusmax-test PRIVATE src test)
2681 TARGET_LINK_LIBRARIES(f32-vscaleexpminusmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2682 ADD_TEST(f32-vscaleexpminusmax-test f32-vscaleexpminusmax-test)
2683
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002684 ADD_EXECUTABLE(f32-vscaleextexp-test test/f32-vscaleextexp.cc)
Marat Dukhan9f240d12020-04-13 10:42:30 -07002685 SET_TARGET_PROPERTIES(f32-vscaleextexp-test PROPERTIES
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002686 CXX_STANDARD 11
2687 CXX_STANDARD_REQUIRED YES
2688 CXX_EXTENSIONS YES)
2689 TARGET_INCLUDE_DIRECTORIES(f32-vscaleextexp-test PRIVATE src test)
Marat Dukhana5977df2019-10-30 22:02:15 -07002690 TARGET_LINK_LIBRARIES(f32-vscaleextexp-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
Marat Dukhan6f8d4d32019-10-25 17:07:09 -07002691 ADD_TEST(f32-vscaleextexp-test f32-vscaleextexp-test)
2692
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002693 ADD_EXECUTABLE(f32-vsub-minmax-test test/f32-vsub-minmax.cc)
2694 SET_TARGET_PROPERTIES(f32-vsub-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002695 CXX_STANDARD 11
2696 CXX_STANDARD_REQUIRED YES
2697 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002698 TARGET_INCLUDE_DIRECTORIES(f32-vsub-minmax-test PRIVATE src test)
2699 TARGET_LINK_LIBRARIES(f32-vsub-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2700 ADD_TEST(f32-vsub-minmax-test f32-vsub-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002701
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002702 ADD_EXECUTABLE(f32-vsubc-minmax-test test/f32-vsubc-minmax.cc)
2703 SET_TARGET_PROPERTIES(f32-vsubc-minmax-test PROPERTIES
Marat Dukhanc76065f2019-11-14 18:13:33 -08002704 CXX_STANDARD 11
2705 CXX_STANDARD_REQUIRED YES
2706 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002707 TARGET_INCLUDE_DIRECTORIES(f32-vsubc-minmax-test PRIVATE src test)
2708 TARGET_LINK_LIBRARIES(f32-vsubc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2709 ADD_TEST(f32-vsubc-minmax-test f32-vsubc-minmax-test)
Marat Dukhanc76065f2019-11-14 18:13:33 -08002710
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002711 ADD_EXECUTABLE(f32-vrsubc-minmax-test test/f32-vrsubc-minmax.cc)
2712 SET_TARGET_PROPERTIES(f32-vrsubc-minmax-test PROPERTIES
Marat Dukhanc76065f2019-11-14 18:13:33 -08002713 CXX_STANDARD 11
2714 CXX_STANDARD_REQUIRED YES
2715 CXX_EXTENSIONS YES)
Marat Dukhan91cd2b72020-04-09 23:57:31 -07002716 TARGET_INCLUDE_DIRECTORIES(f32-vrsubc-minmax-test PRIVATE src test)
2717 TARGET_LINK_LIBRARIES(f32-vrsubc-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2718 ADD_TEST(f32-vrsubc-minmax-test f32-vrsubc-minmax-test)
Marat Dukhanc76065f2019-11-14 18:13:33 -08002719
Marat Dukhan99936602020-04-11 16:47:01 -07002720 ADD_EXECUTABLE(q8-avgpool-minmax-test test/q8-avgpool-minmax.cc)
2721 SET_TARGET_PROPERTIES(q8-avgpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002722 CXX_STANDARD 11
2723 CXX_STANDARD_REQUIRED YES
2724 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002725 TARGET_INCLUDE_DIRECTORIES(q8-avgpool-minmax-test PRIVATE src test)
2726 TARGET_LINK_LIBRARIES(q8-avgpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2727 ADD_TEST(q8-avgpool-minmax-test q8-avgpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002728
Marat Dukhande06f492020-04-09 00:19:31 -07002729 ADD_EXECUTABLE(q8-dwconv-minmax-test test/q8-dwconv-minmax.cc)
2730 SET_TARGET_PROPERTIES(q8-dwconv-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002731 CXX_STANDARD 11
2732 CXX_STANDARD_REQUIRED YES
2733 CXX_EXTENSIONS YES)
Marat Dukhande06f492020-04-09 00:19:31 -07002734 TARGET_INCLUDE_DIRECTORIES(q8-dwconv-minmax-test PRIVATE src test)
2735 TARGET_LINK_LIBRARIES(q8-dwconv-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2736 ADD_TEST(q8-dwconv-minmax-test q8-dwconv-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002737
Marat Dukhan99936602020-04-11 16:47:01 -07002738 ADD_EXECUTABLE(q8-gavgpool-minmax-test test/q8-gavgpool-minmax.cc)
2739 SET_TARGET_PROPERTIES(q8-gavgpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002740 CXX_STANDARD 11
2741 CXX_STANDARD_REQUIRED YES
2742 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002743 TARGET_INCLUDE_DIRECTORIES(q8-gavgpool-minmax-test PRIVATE src test)
2744 TARGET_LINK_LIBRARIES(q8-gavgpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2745 ADD_TEST(q8-gavgpool-test q8-gavgpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002746
Marat Dukhande06f492020-04-09 00:19:31 -07002747 ADD_EXECUTABLE(q8-gemm-minmax-test test/q8-gemm-minmax.cc)
2748 SET_TARGET_PROPERTIES(q8-gemm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002749 CXX_STANDARD 11
2750 CXX_STANDARD_REQUIRED YES
2751 CXX_EXTENSIONS YES)
Marat Dukhande06f492020-04-09 00:19:31 -07002752 TARGET_INCLUDE_DIRECTORIES(q8-gemm-minmax-test PRIVATE src test)
2753 TARGET_LINK_LIBRARIES(q8-gemm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2754 ADD_TEST(q8-gemm-minmax-test q8-gemm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002755
Marat Dukhande06f492020-04-09 00:19:31 -07002756 ADD_EXECUTABLE(q8-igemm-minmax-test test/q8-igemm-minmax.cc)
2757 SET_TARGET_PROPERTIES(q8-igemm-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002758 CXX_STANDARD 11
2759 CXX_STANDARD_REQUIRED YES
2760 CXX_EXTENSIONS YES)
Marat Dukhande06f492020-04-09 00:19:31 -07002761 TARGET_INCLUDE_DIRECTORIES(q8-igemm-minmax-test PRIVATE src test)
2762 TARGET_LINK_LIBRARIES(q8-igemm-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2763 ADD_TEST(q8-igemm-minmax-test q8-igemm-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002764
Marat Dukhan99936602020-04-11 16:47:01 -07002765 ADD_EXECUTABLE(q8-vadd-minmax-test test/q8-vadd-minmax.cc)
2766 SET_TARGET_PROPERTIES(q8-vadd-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002767 CXX_STANDARD 11
2768 CXX_STANDARD_REQUIRED YES
2769 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002770 TARGET_INCLUDE_DIRECTORIES(q8-vadd-minmax-test PRIVATE src test)
2771 TARGET_LINK_LIBRARIES(q8-vadd-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2772 ADD_TEST(q8-vadd-minmax-test q8-vadd-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002773
Marat Dukhan53873d02019-12-06 17:21:30 -08002774 ADD_EXECUTABLE(u8-clamp-test test/u8-clamp.cc)
2775 SET_TARGET_PROPERTIES(u8-clamp-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002776 CXX_STANDARD 11
2777 CXX_STANDARD_REQUIRED YES
2778 CXX_EXTENSIONS YES)
Marat Dukhan53873d02019-12-06 17:21:30 -08002779 TARGET_INCLUDE_DIRECTORIES(u8-clamp-test PRIVATE src test)
2780 TARGET_LINK_LIBRARIES(u8-clamp-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2781 ADD_TEST(u8-clamp-test u8-clamp-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002782
2783 ADD_EXECUTABLE(u8-lut32norm-test test/u8-lut32norm.cc)
2784 SET_TARGET_PROPERTIES(u8-lut32norm-test PROPERTIES
2785 CXX_STANDARD 11
2786 CXX_STANDARD_REQUIRED YES
2787 CXX_EXTENSIONS YES)
2788 TARGET_INCLUDE_DIRECTORIES(u8-lut32norm-test PRIVATE src test)
2789 TARGET_LINK_LIBRARIES(u8-lut32norm-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2790 ADD_TEST(u8-lut32norm-test u8-lut32norm-test)
2791
Marat Dukhan99936602020-04-11 16:47:01 -07002792 ADD_EXECUTABLE(u8-maxpool-minmax-test test/u8-maxpool-minmax.cc)
2793 SET_TARGET_PROPERTIES(u8-maxpool-minmax-test PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002794 CXX_STANDARD 11
2795 CXX_STANDARD_REQUIRED YES
2796 CXX_EXTENSIONS YES)
Marat Dukhan99936602020-04-11 16:47:01 -07002797 TARGET_INCLUDE_DIRECTORIES(u8-maxpool-minmax-test PRIVATE src test)
2798 TARGET_LINK_LIBRARIES(u8-maxpool-minmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2799 ADD_TEST(u8-maxpool-minmax-test u8-maxpool-minmax-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002800
2801 ADD_EXECUTABLE(u8-rmax-test test/u8-rmax.cc)
2802 SET_TARGET_PROPERTIES(u8-rmax-test PROPERTIES
2803 CXX_STANDARD 11
2804 CXX_STANDARD_REQUIRED YES
2805 CXX_EXTENSIONS YES)
2806 TARGET_INCLUDE_DIRECTORIES(u8-rmax-test PRIVATE src test)
2807 TARGET_LINK_LIBRARIES(u8-rmax-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2808 ADD_TEST(u8-rmax-test u8-rmax-test)
2809
2810 ADD_EXECUTABLE(x32-packx-test test/x32-packx.cc)
2811 SET_TARGET_PROPERTIES(x32-packx-test PROPERTIES
2812 CXX_STANDARD 11
2813 CXX_STANDARD_REQUIRED YES
2814 CXX_EXTENSIONS YES)
2815 TARGET_INCLUDE_DIRECTORIES(x32-packx-test PRIVATE src test)
2816 TARGET_LINK_LIBRARIES(x32-packx-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2817 ADD_TEST(x32-packx-test x32-packx-test)
2818
2819 ADD_EXECUTABLE(x32-pad-test test/x32-pad.cc)
2820 SET_TARGET_PROPERTIES(x32-pad-test PROPERTIES
2821 CXX_STANDARD 11
2822 CXX_STANDARD_REQUIRED YES
2823 CXX_EXTENSIONS YES)
2824 TARGET_INCLUDE_DIRECTORIES(x32-pad-test PRIVATE src test)
2825 TARGET_LINK_LIBRARIES(x32-pad-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2826 ADD_TEST(x32-pad-test x32-pad-test)
2827
2828 ADD_EXECUTABLE(x32-unpool-test test/x32-unpool.cc)
2829 SET_TARGET_PROPERTIES(x32-unpool-test PROPERTIES
2830 CXX_STANDARD 11
2831 CXX_STANDARD_REQUIRED YES
2832 CXX_EXTENSIONS YES)
2833 TARGET_INCLUDE_DIRECTORIES(x32-unpool-test PRIVATE src test)
2834 TARGET_LINK_LIBRARIES(x32-unpool-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2835 ADD_TEST(x32-unpool-test x32-unpool-test)
2836
2837 ADD_EXECUTABLE(x32-zip-test test/x32-zip.cc)
2838 SET_TARGET_PROPERTIES(x32-zip-test PROPERTIES
2839 CXX_STANDARD 11
2840 CXX_STANDARD_REQUIRED YES
2841 CXX_EXTENSIONS YES)
2842 TARGET_INCLUDE_DIRECTORIES(x32-zip-test PRIVATE src test)
2843 TARGET_LINK_LIBRARIES(x32-zip-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2844 ADD_TEST(x32-zip-test x32-zip-test)
2845
2846 ADD_EXECUTABLE(x8-lut-test test/x8-lut.cc)
2847 SET_TARGET_PROPERTIES(x8-lut-test PROPERTIES
2848 CXX_STANDARD 11
2849 CXX_STANDARD_REQUIRED YES
2850 CXX_EXTENSIONS YES)
2851 TARGET_INCLUDE_DIRECTORIES(x8-lut-test PRIVATE src test)
2852 TARGET_LINK_LIBRARIES(x8-lut-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2853 ADD_TEST(x8-lut-test x8-lut-test)
2854
2855 ADD_EXECUTABLE(x8-zip-test test/x8-zip.cc)
2856 SET_TARGET_PROPERTIES(x8-zip-test PROPERTIES
2857 CXX_STANDARD 11
2858 CXX_STANDARD_REQUIRED YES
2859 CXX_EXTENSIONS YES)
2860 TARGET_INCLUDE_DIRECTORIES(x8-zip-test PRIVATE src test)
2861 TARGET_LINK_LIBRARIES(x8-zip-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2862 ADD_TEST(x8-zip-test x8-zip-test)
Marat Dukhanfe7acb62020-03-09 19:30:05 -07002863
2864 ADD_EXECUTABLE(requantization-test test/requantization.cc)
2865 SET_TARGET_PROPERTIES(requantization-test PROPERTIES
2866 CXX_STANDARD 11
2867 CXX_STANDARD_REQUIRED YES
2868 CXX_EXTENSIONS YES)
2869 TARGET_INCLUDE_DIRECTORIES(requantization-test PRIVATE src test)
2870 TARGET_LINK_LIBRARIES(requantization-test PRIVATE XNNPACK cpuinfo fp16 gtest gtest_main)
2871 ADD_TEST(requantization-test requantization-test)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002872ENDIF()
2873
2874# ---[ XNNPACK microbenchmarks
2875IF(XNNPACK_BUILD_BENCHMARKS)
2876 # ---[ Build google benchmark
2877 IF(NOT TARGET benchmark)
2878 SET(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "")
2879 ADD_SUBDIRECTORY(
2880 "${GOOGLEBENCHMARK_SOURCE_DIR}"
2881 "${CONFU_DEPENDENCIES_BINARY_DIR}/googlebenchmark")
2882 ENDIF()
2883
2884 ADD_LIBRARY(bench-utils bench/utils.cc)
2885 SET_TARGET_PROPERTIES(bench-utils PROPERTIES
2886 CXX_STANDARD 11
2887 CXX_STANDARD_REQUIRED YES
2888 CXX_EXTENSIONS NO)
2889 TARGET_INCLUDE_DIRECTORIES(bench-utils PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
Marat Dukhanbad48fe2019-11-04 10:35:22 -08002890 TARGET_LINK_LIBRARIES(bench-utils PRIVATE benchmark cpuinfo)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002891
Marat Dukhancb10f262019-11-16 15:52:37 -08002892 # ---[ Build accuracy microbenchmarks
2893 ADD_EXECUTABLE(f32-exp-eval eval/f32-exp.cc)
2894 SET_TARGET_PROPERTIES(f32-exp-eval PROPERTIES
2895 CXX_STANDARD 11
2896 CXX_STANDARD_REQUIRED YES
2897 CXX_EXTENSIONS NO)
2898 TARGET_INCLUDE_DIRECTORIES(f32-exp-eval PRIVATE src)
2899 TARGET_LINK_LIBRARIES(f32-exp-eval PRIVATE XNNPACK benchmark fp16)
2900
2901 ADD_EXECUTABLE(f32-expminus-eval eval/f32-expminus.cc)
2902 SET_TARGET_PROPERTIES(f32-expminus-eval PROPERTIES
2903 CXX_STANDARD 11
2904 CXX_STANDARD_REQUIRED YES
2905 CXX_EXTENSIONS NO)
2906 TARGET_INCLUDE_DIRECTORIES(f32-expminus-eval PRIVATE src)
2907 TARGET_LINK_LIBRARIES(f32-expminus-eval PRIVATE XNNPACK benchmark fp16)
2908
2909 ADD_EXECUTABLE(f32-extexp-eval eval/f32-extexp.cc)
2910 SET_TARGET_PROPERTIES(f32-extexp-eval PROPERTIES
2911 CXX_STANDARD 11
2912 CXX_STANDARD_REQUIRED YES
2913 CXX_EXTENSIONS YES)
2914 TARGET_INCLUDE_DIRECTORIES(f32-extexp-eval PRIVATE src)
2915 TARGET_LINK_LIBRARIES(f32-extexp-eval PRIVATE XNNPACK benchmark fp16)
2916
Marat Dukhanf35d73b2020-05-11 19:15:04 -07002917 ADD_EXECUTABLE(f32-roundne-eval eval/f32-roundne.cc)
2918 SET_TARGET_PROPERTIES(f32-roundne-eval PROPERTIES
2919 CXX_STANDARD 11
2920 CXX_STANDARD_REQUIRED YES
2921 CXX_EXTENSIONS NO)
2922 TARGET_INCLUDE_DIRECTORIES(f32-roundne-eval PRIVATE src)
2923 TARGET_LINK_LIBRARIES(f32-roundne-eval PRIVATE XNNPACK fp16 gtest gtest_main)
2924
Marat Dukhanc9852ba2020-05-13 17:21:29 -07002925 ADD_EXECUTABLE(f32-roundd-eval eval/f32-roundd.cc)
2926 SET_TARGET_PROPERTIES(f32-roundd-eval PROPERTIES
2927 CXX_STANDARD 11
2928 CXX_STANDARD_REQUIRED YES
2929 CXX_EXTENSIONS NO)
2930 TARGET_INCLUDE_DIRECTORIES(f32-roundd-eval PRIVATE src)
2931 TARGET_LINK_LIBRARIES(f32-roundd-eval PRIVATE XNNPACK fp16 gtest gtest_main)
2932
2933 ADD_EXECUTABLE(f32-roundu-eval eval/f32-roundu.cc)
2934 SET_TARGET_PROPERTIES(f32-roundu-eval PROPERTIES
2935 CXX_STANDARD 11
2936 CXX_STANDARD_REQUIRED YES
2937 CXX_EXTENSIONS NO)
2938 TARGET_INCLUDE_DIRECTORIES(f32-roundu-eval PRIVATE src)
2939 TARGET_LINK_LIBRARIES(f32-roundu-eval PRIVATE XNNPACK fp16 gtest gtest_main)
2940
Marat Dukhan2dbb9442020-05-12 20:43:43 -07002941 ADD_EXECUTABLE(f32-roundz-eval eval/f32-roundz.cc)
2942 SET_TARGET_PROPERTIES(f32-roundz-eval PROPERTIES
2943 CXX_STANDARD 11
2944 CXX_STANDARD_REQUIRED YES
2945 CXX_EXTENSIONS NO)
2946 TARGET_INCLUDE_DIRECTORIES(f32-roundz-eval PRIVATE src)
2947 TARGET_LINK_LIBRARIES(f32-roundz-eval PRIVATE XNNPACK fp16 gtest gtest_main)
2948
Marat Dukhancb10f262019-11-16 15:52:37 -08002949 ADD_EXECUTABLE(f32-sigmoid-eval eval/f32-sigmoid.cc)
2950 SET_TARGET_PROPERTIES(f32-sigmoid-eval PROPERTIES
2951 CXX_STANDARD 11
2952 CXX_STANDARD_REQUIRED YES
2953 CXX_EXTENSIONS NO)
2954 TARGET_INCLUDE_DIRECTORIES(f32-sigmoid-eval PRIVATE src)
2955 TARGET_LINK_LIBRARIES(f32-sigmoid-eval PRIVATE XNNPACK benchmark fp16)
2956
Marat Dukhan5f18d262019-10-31 10:24:14 -07002957 # ---[ Build end-to-end microbenchmarks
Marat Dukhan17e16282019-12-10 12:09:35 -08002958 ADD_LIBRARY(bench-models STATIC
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002959 models/mobilenet-v1.cc
2960 models/mobilenet-v2.cc
2961 models/mobilenet-v3-large.cc
2962 models/mobilenet-v3-small.cc)
2963 SET_TARGET_PROPERTIES(bench-models PROPERTIES
2964 CXX_STANDARD 11
2965 CXX_STANDARD_REQUIRED YES
2966 CXX_EXTENSIONS YES)
2967 TARGET_INCLUDE_DIRECTORIES(bench-models PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
2968 TARGET_LINK_LIBRARIES(bench-models PRIVATE XNNPACK benchmark bench-utils)
2969
2970 ADD_EXECUTABLE(end2end-bench bench/end2end.cc)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002971 SET_TARGET_PROPERTIES(end2end-bench PROPERTIES
2972 CXX_STANDARD 11
2973 CXX_STANDARD_REQUIRED YES
2974 CXX_EXTENSIONS NO)
2975 TARGET_INCLUDE_DIRECTORIES(end2end-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002976 TARGET_LINK_LIBRARIES(end2end-bench PRIVATE XNNPACK benchmark bench-models bench-utils)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002977
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002978 ADD_EXECUTABLE(f32-dwconv-e2e-bench bench/f32-dwconv-e2e.cc)
Marat Dukhanef4416e2019-10-31 13:44:40 -07002979 SET_TARGET_PROPERTIES(f32-dwconv-e2e-bench PROPERTIES
2980 CXX_STANDARD 11
2981 CXX_STANDARD_REQUIRED YES
2982 CXX_EXTENSIONS NO)
Marat Dukhanc9d2f3f2019-10-31 14:02:07 -07002983 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-e2e-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" src)
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002984 TARGET_LINK_LIBRARIES(f32-dwconv-e2e-bench PRIVATE XNNPACK benchmark bench-models bench-utils)
Marat Dukhanef4416e2019-10-31 13:44:40 -07002985
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002986 ADD_EXECUTABLE(f32-gemm-e2e-bench bench/f32-gemm-e2e.cc)
Marat Dukhan0a5a53f2019-10-31 10:58:31 -07002987 SET_TARGET_PROPERTIES(f32-gemm-e2e-bench PROPERTIES
Marat Dukhan5f18d262019-10-31 10:24:14 -07002988 CXX_STANDARD 11
2989 CXX_STANDARD_REQUIRED YES
2990 CXX_EXTENSIONS NO)
Marat Dukhanc9d2f3f2019-10-31 14:02:07 -07002991 TARGET_INCLUDE_DIRECTORIES(f32-gemm-e2e-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" src)
Marat Dukhanc08cdf52019-12-09 09:17:51 -08002992 TARGET_LINK_LIBRARIES(f32-gemm-e2e-bench PRIVATE XNNPACK benchmark bench-models bench-utils)
Marat Dukhan5f18d262019-10-31 10:24:14 -07002993
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07002994 # ---[ Build operator-level microbenchmarks
2995 ADD_EXECUTABLE(add-bench bench/add.cc)
2996 SET_TARGET_PROPERTIES(add-bench PROPERTIES
2997 CXX_STANDARD 11
2998 CXX_STANDARD_REQUIRED YES
2999 CXX_EXTENSIONS NO)
3000 TARGET_INCLUDE_DIRECTORIES(add-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3001 TARGET_LINK_LIBRARIES(add-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3002
3003 ADD_EXECUTABLE(average-pooling-bench bench/average-pooling.cc)
3004 SET_TARGET_PROPERTIES(average-pooling-bench PROPERTIES
3005 CXX_STANDARD 11
3006 CXX_STANDARD_REQUIRED YES
3007 CXX_EXTENSIONS NO)
3008 TARGET_INCLUDE_DIRECTORIES(average-pooling-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3009 TARGET_LINK_LIBRARIES(average-pooling-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3010
3011 ADD_EXECUTABLE(channel-shuffle-bench bench/channel-shuffle.cc)
3012 SET_TARGET_PROPERTIES(channel-shuffle-bench PROPERTIES
3013 CXX_STANDARD 11
3014 CXX_STANDARD_REQUIRED YES
3015 CXX_EXTENSIONS NO)
3016 TARGET_INCLUDE_DIRECTORIES(channel-shuffle-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3017 TARGET_LINK_LIBRARIES(channel-shuffle-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3018
3019 ADD_EXECUTABLE(convolution-bench bench/convolution.cc)
3020 SET_TARGET_PROPERTIES(convolution-bench PROPERTIES
3021 CXX_STANDARD 11
3022 CXX_STANDARD_REQUIRED YES
3023 CXX_EXTENSIONS NO)
3024 TARGET_INCLUDE_DIRECTORIES(convolution-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3025 TARGET_LINK_LIBRARIES(convolution-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3026
3027 ADD_EXECUTABLE(deconvolution-bench bench/deconvolution.cc)
3028 SET_TARGET_PROPERTIES(deconvolution-bench PROPERTIES
3029 CXX_STANDARD 11
3030 CXX_STANDARD_REQUIRED YES
3031 CXX_EXTENSIONS NO)
3032 TARGET_INCLUDE_DIRECTORIES(deconvolution-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3033 TARGET_LINK_LIBRARIES(deconvolution-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3034
3035 ADD_EXECUTABLE(global-average-pooling-bench bench/global-average-pooling.cc)
3036 SET_TARGET_PROPERTIES(global-average-pooling-bench PROPERTIES
3037 CXX_STANDARD 11
3038 CXX_STANDARD_REQUIRED YES
3039 CXX_EXTENSIONS NO)
3040 TARGET_INCLUDE_DIRECTORIES(global-average-pooling-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3041 TARGET_LINK_LIBRARIES(global-average-pooling-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3042
3043 ADD_EXECUTABLE(max-pooling-bench bench/max-pooling.cc)
3044 SET_TARGET_PROPERTIES(max-pooling-bench PROPERTIES
3045 CXX_STANDARD 11
3046 CXX_STANDARD_REQUIRED YES
3047 CXX_EXTENSIONS NO)
3048 TARGET_INCLUDE_DIRECTORIES(max-pooling-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3049 TARGET_LINK_LIBRARIES(max-pooling-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3050
Marat Dukhan95b22432019-10-30 16:30:14 -07003051 ADD_EXECUTABLE(prelu-bench bench/prelu.cc)
3052 SET_TARGET_PROPERTIES(prelu-bench PROPERTIES
3053 CXX_STANDARD 11
3054 CXX_STANDARD_REQUIRED YES
3055 CXX_EXTENSIONS NO)
3056 TARGET_INCLUDE_DIRECTORIES(prelu-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3057 TARGET_LINK_LIBRARIES(prelu-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3058
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003059 ADD_EXECUTABLE(sigmoid-bench bench/sigmoid.cc)
3060 SET_TARGET_PROPERTIES(sigmoid-bench PROPERTIES
3061 CXX_STANDARD 11
3062 CXX_STANDARD_REQUIRED YES
3063 CXX_EXTENSIONS NO)
3064 TARGET_INCLUDE_DIRECTORIES(sigmoid-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3065 TARGET_LINK_LIBRARIES(sigmoid-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
3066
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003067 ADD_EXECUTABLE(softmax-bench bench/softmax.cc)
3068 SET_TARGET_PROPERTIES(softmax-bench PROPERTIES
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003069 CXX_STANDARD 11
3070 CXX_STANDARD_REQUIRED YES
3071 CXX_EXTENSIONS NO)
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003072 TARGET_INCLUDE_DIRECTORIES(softmax-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3073 TARGET_LINK_LIBRARIES(softmax-bench PRIVATE XNNPACK cpuinfo benchmark bench-utils)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003074
3075 # ---[ Build microkernel-level microbenchmarks
Frank Barchard40d20fe2020-05-05 00:37:45 -07003076 ADD_EXECUTABLE(f16-igemm-bench bench/f16-igemm.cc)
3077 SET_TARGET_PROPERTIES(f16-igemm-bench PROPERTIES
3078 CXX_STANDARD 11
3079 CXX_STANDARD_REQUIRED YES
3080 CXX_EXTENSIONS YES)
3081 TARGET_INCLUDE_DIRECTORIES(f16-igemm-bench PRIVATE src)
3082 TARGET_INCLUDE_DIRECTORIES(f16-igemm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3083 TARGET_LINK_LIBRARIES(f16-igemm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3084
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003085 ADD_EXECUTABLE(f16-gemm-bench bench/f16-gemm.cc)
3086 SET_TARGET_PROPERTIES(f16-gemm-bench PROPERTIES
3087 CXX_STANDARD 11
3088 CXX_STANDARD_REQUIRED YES
3089 CXX_EXTENSIONS YES)
3090 TARGET_INCLUDE_DIRECTORIES(f16-gemm-bench PRIVATE src)
3091 TARGET_INCLUDE_DIRECTORIES(f16-gemm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3092 TARGET_LINK_LIBRARIES(f16-gemm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3093
3094 ADD_EXECUTABLE(f32-conv-hwc-bench bench/f32-conv-hwc.cc)
3095 SET_TARGET_PROPERTIES(f32-conv-hwc-bench PROPERTIES
3096 CXX_STANDARD 11
3097 CXX_STANDARD_REQUIRED YES
3098 CXX_EXTENSIONS YES)
3099 TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc-bench PRIVATE src)
3100 TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3101 TARGET_LINK_LIBRARIES(f32-conv-hwc-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3102
3103 ADD_EXECUTABLE(f32-dwconv-spchw-bench bench/f32-dwconv-spchw.cc)
3104 SET_TARGET_PROPERTIES(f32-dwconv-spchw-bench PROPERTIES
3105 CXX_STANDARD 11
3106 CXX_STANDARD_REQUIRED YES
3107 CXX_EXTENSIONS YES)
3108 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-spchw-bench PRIVATE src)
3109 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-spchw-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3110 TARGET_LINK_LIBRARIES(f32-dwconv-spchw-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3111
3112 ADD_EXECUTABLE(f32-dwconv-bench bench/f32-dwconv.cc)
3113 SET_TARGET_PROPERTIES(f32-dwconv-bench PROPERTIES
3114 CXX_STANDARD 11
3115 CXX_STANDARD_REQUIRED YES
3116 CXX_EXTENSIONS YES)
3117 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-bench PRIVATE src)
3118 TARGET_INCLUDE_DIRECTORIES(f32-dwconv-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3119 TARGET_LINK_LIBRARIES(f32-dwconv-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3120
3121 ADD_EXECUTABLE(f32-gemm-bench bench/f32-gemm.cc)
3122 SET_TARGET_PROPERTIES(f32-gemm-bench PROPERTIES
3123 CXX_STANDARD 11
3124 CXX_STANDARD_REQUIRED YES
3125 CXX_EXTENSIONS YES)
3126 TARGET_INCLUDE_DIRECTORIES(f32-gemm-bench PRIVATE src)
3127 TARGET_INCLUDE_DIRECTORIES(f32-gemm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3128 TARGET_LINK_LIBRARIES(f32-gemm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3129
3130 ADD_EXECUTABLE(f32-igemm-bench bench/f32-igemm.cc)
3131 SET_TARGET_PROPERTIES(f32-igemm-bench PROPERTIES
3132 CXX_STANDARD 11
3133 CXX_STANDARD_REQUIRED YES
3134 CXX_EXTENSIONS YES)
3135 TARGET_INCLUDE_DIRECTORIES(f32-igemm-bench PRIVATE src)
3136 TARGET_INCLUDE_DIRECTORIES(f32-igemm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3137 TARGET_LINK_LIBRARIES(f32-igemm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3138
3139 ADD_EXECUTABLE(f32-im2col-gemm-bench bench/f32-im2col-gemm.cc src/im2col.c)
3140 SET_TARGET_PROPERTIES(f32-im2col-gemm-bench PROPERTIES
3141 C_STANDARD 99
3142 C_STANDARD_REQUIRED YES
3143 C_EXTENSIONS NO
3144 CXX_STANDARD 11
3145 CXX_STANDARD_REQUIRED YES
3146 CXX_EXTENSIONS YES)
3147 TARGET_INCLUDE_DIRECTORIES(f32-im2col-gemm-bench PRIVATE src)
3148 TARGET_INCLUDE_DIRECTORIES(f32-im2col-gemm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3149 TARGET_LINK_LIBRARIES(f32-im2col-gemm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3150
3151 ADD_EXECUTABLE(f32-rmax-bench bench/f32-rmax.cc)
3152 SET_TARGET_PROPERTIES(f32-rmax-bench PROPERTIES
3153 CXX_STANDARD 11
3154 CXX_STANDARD_REQUIRED YES
3155 CXX_EXTENSIONS YES)
3156 TARGET_INCLUDE_DIRECTORIES(f32-rmax-bench PRIVATE src)
3157 TARGET_INCLUDE_DIRECTORIES(f32-rmax-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3158 TARGET_LINK_LIBRARIES(f32-rmax-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3159
Marat Dukhan581c1ac2019-11-18 14:57:54 -08003160 ADD_EXECUTABLE(f32-sigmoid-bench bench/f32-sigmoid.cc)
3161 SET_TARGET_PROPERTIES(f32-sigmoid-bench PROPERTIES
3162 CXX_STANDARD 11
3163 CXX_STANDARD_REQUIRED YES
3164 CXX_EXTENSIONS YES)
3165 TARGET_INCLUDE_DIRECTORIES(f32-sigmoid-bench PRIVATE src)
3166 TARGET_INCLUDE_DIRECTORIES(f32-sigmoid-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3167 TARGET_LINK_LIBRARIES(f32-sigmoid-bench PRIVATE XNNPACK benchmark bench-utils)
3168
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003169 ADD_EXECUTABLE(f32-spmm-bench bench/f32-spmm.cc)
3170 SET_TARGET_PROPERTIES(f32-spmm-bench PROPERTIES
3171 CXX_STANDARD 11
3172 CXX_STANDARD_REQUIRED YES
3173 CXX_EXTENSIONS YES)
3174 TARGET_INCLUDE_DIRECTORIES(f32-spmm-bench PRIVATE src)
3175 TARGET_INCLUDE_DIRECTORIES(f32-spmm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3176 TARGET_LINK_LIBRARIES(f32-spmm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
3177
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003178 ADD_EXECUTABLE(f32-softmax-bench bench/f32-softmax.cc)
3179 SET_TARGET_PROPERTIES(f32-softmax-bench PROPERTIES
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003180 CXX_STANDARD 11
3181 CXX_STANDARD_REQUIRED YES
3182 CXX_EXTENSIONS YES)
Marat Dukhanfd8e6892020-01-27 15:25:25 -08003183 TARGET_INCLUDE_DIRECTORIES(f32-softmax-bench PRIVATE src)
3184 TARGET_INCLUDE_DIRECTORIES(f32-softmax-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3185 TARGET_LINK_LIBRARIES(f32-softmax-bench PRIVATE XNNPACK fp16 benchmark bench-utils)
Marat Dukhan4a4a7fa2019-10-21 13:46:14 -07003186
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003187 ADD_EXECUTABLE(q8-gemm-bench bench/q8-gemm.cc)
3188 SET_TARGET_PROPERTIES(q8-gemm-bench PROPERTIES
3189 CXX_STANDARD 11
3190 CXX_STANDARD_REQUIRED YES
3191 CXX_EXTENSIONS YES)
3192 TARGET_INCLUDE_DIRECTORIES(q8-gemm-bench PRIVATE src)
3193 TARGET_INCLUDE_DIRECTORIES(q8-gemm-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3194 TARGET_LINK_LIBRARIES(q8-gemm-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
Marat Dukhanfe7acb62020-03-09 19:30:05 -07003195
3196 ADD_EXECUTABLE(requantization-bench bench/requantization.cc)
3197 SET_TARGET_PROPERTIES(requantization-bench PROPERTIES
3198 CXX_STANDARD 11
3199 CXX_STANDARD_REQUIRED YES
3200 CXX_EXTENSIONS YES)
3201 TARGET_INCLUDE_DIRECTORIES(requantization-bench PRIVATE src)
3202 TARGET_INCLUDE_DIRECTORIES(requantization-bench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
3203 TARGET_LINK_LIBRARIES(requantization-bench PRIVATE XNNPACK cpuinfo fp16 benchmark bench-utils)
Marat Dukhan2dbdc2f2019-10-08 16:36:23 -07003204ENDIF()