|
# Copyright (c) Facebook, Inc. and its affiliates. |
|
# All rights reserved. |
|
# |
|
# Copyright 2019 Google LLC |
|
# |
|
# This source code is licensed under the BSD-style license found in the |
|
# LICENSE file in the root directory of this source tree. |
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.15 FATAL_ERROR) |
|
|
|
# MSVC runtime library flags are selected by an abstraction. |
|
CMAKE_POLICY(SET CMP0091 NEW) |
|
|
|
# ---[ Project and semantic versioning. |
|
PROJECT(XNNPACK C CXX ASM) |
|
|
|
SET(CMAKE_C_STANDARD 99) |
|
SET(CMAKE_C_EXTENSIONS NO) |
|
SET(CMAKE_CXX_STANDARD 14) |
|
SET(CMAKE_CXX_STANDARD_REQUIRED YES) |
|
SET(CMAKE_CXX_EXTENSIONS NO) |
|
|
|
# ---[ Options. |
|
SET(XNNPACK_LIBRARY_TYPE "default" CACHE STRING "Type of library (shared, static, or default) to build") |
|
SET_PROPERTY(CACHE XNNPACK_LIBRARY_TYPE PROPERTY STRINGS default static shared) |
|
OPTION(XNNPACK_ENABLE_ASSEMBLY "Build XNNPACK with assembly micro-kernels" ON) |
|
OPTION(XNNPACK_ENABLE_JIT "Build XNNPACK with JIT micro-kernels" OFF) |
|
OPTION(XNNPACK_ENABLE_MEMOPT "Build XNNPACK with optimized memory allocation scheme" ON) |
|
OPTION(XNNPACK_ENABLE_SPARSE "Build XNNPACK with graph rewriting for sparse inference" ON) |
|
OPTION(XNNPACK_ENABLE_GEMM_M_SPECIALIZATION "Build XNNPACK with support for selecting microkernel with different MR" ON) |
|
OPTION(XNNPACK_ENABLE_DWCONV_MULTIPASS "Build XNNPACK with DWCONV multipass microkernels enabled" OFF) |
|
SET(XNNPACK_PLATFORM_JIT "DEFAULT" CACHE STRING "Determine if XNN_PLATFORM_JIT detection should be overwritten") |
|
SET_PROPERTY(CACHE XNNPACK_PLATFORM_JIT PROPERTY STRINGS DEFAULT ON OFF) |
|
OPTION(XNNPACK_BUILD_LIBRARY "Build XNNPACK library" ON) |
|
OPTION(XNNPACK_BUILD_TESTS "Build XNNPACK unit tests" ON) |
|
OPTION(XNNPACK_BUILD_BENCHMARKS "Build XNNPACK benchmarks" ON) |
|
OPTION(XNNPACK_USE_SYSTEM_LIBS "Use system-provided dependency libraries" OFF) |
|
|
|
# --- [ Determine target processor |
|
IF(CMAKE_OSX_ARCHITECTURES) |
|
LIST(LENGTH CMAKE_OSX_ARCHITECTURES CMAKE_OSX_ARCHITECTURES_COUNT) |
|
IF(CMAKE_OSX_ARCHITECTURES_COUNT GREATER 1) |
|
MESSAGE(FATAL_ERROR "Unsupported XNNPACK build with multiple OSX architectures (${CMAKE_OSX_ARCHITECTURES}). " |
|
"Specify a single architecture in CMAKE_OSX_ARCHITECTURES and re-configure. ") |
|
ENDIF() |
|
IF(NOT CMAKE_OSX_ARCHITECTURES MATCHES "^(x86_64|arm64|arm64e|arm64_32)$") |
|
MESSAGE(FATAL_ERROR "Unrecognized CMAKE_OSX_ARCHITECTURES value \"${CMAKE_OSX_ARCHITECTURES}\"") |
|
ENDIF() |
|
SET(XNNPACK_TARGET_PROCESSOR "${CMAKE_OSX_ARCHITECTURES}") |
|
ADD_COMPILE_OPTIONS("-Wno-shorten-64-to-32") |
|
ELSEIF(CMAKE_GENERATOR MATCHES "^Visual Studio " AND CMAKE_GENERATOR_PLATFORM) |
|
IF(CMAKE_GENERATOR_PLATFORM STREQUAL "Win32") |
|
SET(XNNPACK_TARGET_PROCESSOR "x86") |
|
ELSEIF(CMAKE_GENERATOR_PLATFORM STREQUAL "x64") |
|
SET(XNNPACK_TARGET_PROCESSOR "x86_64") |
|
ELSEIF(CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64") |
|
SET(XNNPACK_TARGET_PROCESSOR "arm64") |
|
ELSEIF(CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64EC") |
|
SET(XNNPACK_TARGET_PROCESSOR "arm64ec") |
|
ELSE() |
|
MESSAGE(FATAL_ERROR "Unsupported Visual Studio architecture \"${CMAKE_GENERATOR_PLATFORM}\"") |
|
ENDIF() |
|
ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^i[3-7]86$") |
|
SET(XNNPACK_TARGET_PROCESSOR "x86") |
|
ELSEIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64") |
|
SET(XNNPACK_TARGET_PROCESSOR "x86_64") |
|
ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^armv[5-8]") |
|
SET(XNNPACK_TARGET_PROCESSOR "arm") |
|
ELSEIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") |
|
SET(XNNPACK_TARGET_PROCESSOR "arm64") |
|
ELSEIF(NOT XNNPACK_TARGET_PROCESSOR MATCHES "^(x86(_64)?|arm64|riscv(32|64|128)|Hexagon)$") |
|
SET(XNNPACK_TARGET_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}") |
|
ELSE() |
|
MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_PROCESSOR value \"${CMAKE_SYSTEM_PROCESSOR}\"") |
|
ENDIF() |
|
|
|
# --- [ Processor-specific options |
|
OPTION(XNNPACK_ENABLE_ARM_FP16_SCALAR "Build XNNPACK with ARM FP16 (FP16 data processing) scalar micro-kernels" ON) |
|
OPTION(XNNPACK_ENABLE_ARM_FP16_VECTOR "Build XNNPACK with ARM FP16 (FP16 data processing) vector micro-kernels" ON) |
|
OPTION(XNNPACK_ENABLE_ARM_BF16 "Build XNNPACK with ARM BF16 (BFLOAT16) micro-kernels" ON) |
|
OPTION(XNNPACK_ENABLE_ARM_DOTPROD "Build XNNPACK with ARM DotProd (integer dot product) micro-kernels" ON) |
|
OPTION(XNNPACK_ENABLE_RISCV_VECTOR "Build XNNPACK with RISC-V Vector micro-kernels" ON) |
|
|
|
# ---[ CMake options |
|
INCLUDE(GNUInstallDirs) |
|
|
|
IF(XNNPACK_BUILD_TESTS) |
|
ENABLE_TESTING() |
|
ENDIF() |
|
|
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_ARM_FP16_VECTOR=$<BOOL:${XNNPACK_ENABLE_ARM_FP16_VECTOR}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_ARM_FP16_SCALAR=$<BOOL:${XNNPACK_ENABLE_ARM_FP16_SCALAR}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_ARM_BF16=$<BOOL:${XNNPACK_ENABLE_ARM_BF16}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_ARM_DOTPROD=$<BOOL:${XNNPACK_ENABLE_ARM_DOTPROD}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_RISCV_VECTOR=$<BOOL:${XNNPACK_ENABLE_RISCV_VECTOR}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_ASSEMBLY=$<BOOL:${XNNPACK_ENABLE_ASSEMBLY}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_JIT=$<BOOL:${XNNPACK_ENABLE_JIT}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_MEMOPT=$<BOOL:${XNNPACK_ENABLE_MEMOPT}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_SPARSE=$<BOOL:${XNNPACK_ENABLE_SPARSE}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_GEMM_M_SPECIALIZATION=$<BOOL:${XNNPACK_ENABLE_GEMM_M_SPECIALIZATION}>") |
|
ADD_COMPILE_DEFINITIONS("XNN_ENABLE_DWCONV_MULTIPASS=$<BOOL:${XNNPACK_ENABLE_DWCONV_MULTIPASS}>") |
|
IF(XNNPACK_PLATFORM_JIT STREQUAL "ON" OR XNNPACK_PLATFORM_JIT STREQUAL "OFF") |
|
ADD_COMPILE_DEFINITIONS("XNN_PLATFORM_JIT=$<BOOL:${XNNPACK_PLATFORM_JIT}>") |
|
ENDIF() |
|
|
|
IF(CMAKE_C_COMPILER_ID STREQUAL "MSVC") |
|
# Disable "unary minus operator applied to unsigned type, result still unsigned" warning |
|
ADD_COMPILE_OPTIONS("/wd4146") |
|
# Test files have many sections, increase the limit. See |
|
# https://learn.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file. |
|
ADD_COMPILE_OPTIONS("/bigobj") |
|
ENDIF() |
|
|
|
IF(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") |
|
# Disable "note: parameter passing for argument of type ... changed/will change in ..." |
|
ADD_COMPILE_OPTIONS("-Wno-psabi") |
|
ENDIF() |
|
|
|
# ---[ Build flags |
|
IF(NOT CMAKE_SYSTEM_NAME) |
|
MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_NAME not defined") |
|
ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Android|Darwin|iOS|Linux|Windows|CYGWIN|MSYS|QURT)$") |
|
MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_NAME value \"${CMAKE_SYSTEM_NAME}\"") |
|
ENDIF() |
|
IF(CMAKE_SYSTEM_NAME MATCHES "Windows") |
|
# Disable min/max macros as they break std::min/max and std::numeric_limits<T>min/max. |
|
ADD_COMPILE_DEFINITIONS("NOMINMAX") |
|
ENDIF() |
|
|
|
# ---[ Download deps |
|
IF(NOT XNNPACK_USE_SYSTEM_LIBS) |
|
IF(NOT DEFINED CPUINFO_SOURCE_DIR) |
|
MESSAGE(STATUS "Downloading cpuinfo to ${CMAKE_BINARY_DIR}/cpuinfo-source (define CPUINFO_SOURCE_DIR to avoid it)") |
|
CONFIGURE_FILE(cmake/DownloadCpuinfo.cmake "${CMAKE_BINARY_DIR}/cpuinfo-download/CMakeLists.txt") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/cpuinfo-download") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/cpuinfo-download") |
|
SET(CPUINFO_SOURCE_DIR "${CMAKE_BINARY_DIR}/cpuinfo-source" CACHE STRING "cpuinfo source directory") |
|
ENDIF() |
|
|
|
IF(NOT DEFINED FP16_SOURCE_DIR) |
|
MESSAGE(STATUS "Downloading FP16 to ${CMAKE_BINARY_DIR}/FP16-source (define FP16_SOURCE_DIR to avoid it)") |
|
CONFIGURE_FILE(cmake/DownloadFP16.cmake "${CMAKE_BINARY_DIR}/FP16-download/CMakeLists.txt") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FP16-download") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FP16-download") |
|
SET(FP16_SOURCE_DIR "${CMAKE_BINARY_DIR}/FP16-source" CACHE STRING "FP16 source directory") |
|
ENDIF() |
|
|
|
IF(NOT DEFINED FXDIV_SOURCE_DIR) |
|
MESSAGE(STATUS "Downloading FXdiv to ${CMAKE_BINARY_DIR}/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)") |
|
CONFIGURE_FILE(cmake/DownloadFXdiv.cmake "${CMAKE_BINARY_DIR}/FXdiv-download/CMakeLists.txt") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download") |
|
SET(FXDIV_SOURCE_DIR "${CMAKE_BINARY_DIR}/FXdiv-source" CACHE STRING "FXdiv source directory") |
|
ENDIF() |
|
|
|
IF(NOT DEFINED PTHREADPOOL_SOURCE_DIR) |
|
MESSAGE(STATUS "Downloading pthreadpool to ${CMAKE_BINARY_DIR}/pthreadpool-source (define PTHREADPOOL_SOURCE_DIR to avoid it)") |
|
CONFIGURE_FILE(cmake/DownloadPThreadPool.cmake "${CMAKE_BINARY_DIR}/pthreadpool-download/CMakeLists.txt") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/pthreadpool-download") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/pthreadpool-download") |
|
SET(PTHREADPOOL_SOURCE_DIR "${CMAKE_BINARY_DIR}/pthreadpool-source" CACHE STRING "pthreadpool source directory") |
|
ENDIF() |
|
|
|
IF(XNNPACK_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR) |
|
MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)") |
|
CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") |
|
SET(GOOGLETEST_SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" CACHE STRING "Google Test source directory") |
|
ENDIF() |
|
|
|
IF(XNNPACK_BUILD_BENCHMARKS AND NOT DEFINED GOOGLEBENCHMARK_SOURCE_DIR) |
|
MESSAGE(STATUS "Downloading Google Benchmark to ${CMAKE_BINARY_DIR}/googlebenchmark-source (define GOOGLEBENCHMARK_SOURCE_DIR to avoid it)") |
|
CONFIGURE_FILE(cmake/DownloadGoogleBenchmark.cmake "${CMAKE_BINARY_DIR}/googlebenchmark-download/CMakeLists.txt") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googlebenchmark-download") |
|
EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googlebenchmark-download") |
|
SET(GOOGLEBENCHMARK_SOURCE_DIR "${CMAKE_BINARY_DIR}/googlebenchmark-source" CACHE STRING "Google Benchmark source directory") |
|
ENDIF() |
|
ENDIF() |
|
|
|
# ---[ XNNPACK library |
|
INCLUDE(cmake/microkernels.cmake) |
|
|
|
SET(OPERATOR_SRCS |
|
src/operator-delete.c |
|
src/operators/argmax-pooling-nhwc.c |
|
src/operators/average-pooling-nhwc.c |
|
src/operators/batch-matrix-multiply-nc.c |
|
src/operators/binary-elementwise-nd.c |
|
src/operators/channel-shuffle-nc.c |
|
src/operators/constant-pad-nd.c |
|
src/operators/convolution-nchw.c |
|
src/operators/convolution-nhwc.c |
|
src/operators/deconvolution-nhwc.c |
|
src/operators/dynamic-fully-connected-nc.c |
|
src/operators/fully-connected-nc.c |
|
src/operators/global-average-pooling-ncw.c |
|
src/operators/global-average-pooling-nwc.c |
|
src/operators/lut-elementwise-nc.c |
|
src/operators/max-pooling-nhwc.c |
|
src/operators/prelu-nc.c |
|
src/operators/reduce-nd.c |
|
src/operators/resize-bilinear-nchw.c |
|
src/operators/resize-bilinear-nhwc.c |
|
src/operators/rope-nthc.c |
|
src/operators/slice-nd.c |
|
src/operators/softmax-nc.c |
|
src/operators/transpose-nd.c |
|
src/operators/unary-elementwise-nc.c |
|
src/operators/unpooling-nhwc.c) |
|
|
|
SET(SUBGRAPH_SRCS |
|
src/memory-planner.c |
|
src/runtime.c |
|
src/subgraph.c |
|
src/subgraph/abs.c |
|
src/subgraph/add2.c |
|
src/subgraph/argmax-pooling-2d.c |
|
src/subgraph/average-pooling-2d.c |
|
src/subgraph/bankers-rounding.c |
|
src/subgraph/batch-matrix-multiply.c |
|
src/subgraph/ceiling.c |
|
src/subgraph/clamp.c |
|
src/subgraph/concatenate.c |
|
src/subgraph/convert.c |
|
src/subgraph/convolution-2d.c |
|
src/subgraph/copy.c |
|
src/subgraph/deconvolution-2d.c |
|
src/subgraph/depth-to-space.c |
|
src/subgraph/depthwise-convolution-2d.c |
|
src/subgraph/divide.c |
|
src/subgraph/elu.c |
|
src/subgraph/even-split.c |
|
src/subgraph/floor.c |
|
src/subgraph/fully-connected-sparse.c |
|
src/subgraph/fully-connected.c |
|
src/subgraph/global-average-pooling.c |
|
src/subgraph/global-sum-pooling.c |
|
src/subgraph/hardswish.c |
|
src/subgraph/leaky-relu.c |
|
src/subgraph/max-pooling-2d.c |
|
src/subgraph/maximum2.c |
|
src/subgraph/minimum2.c |
|
src/subgraph/multiply2.c |
|
src/subgraph/negate.c |
|
src/subgraph/prelu.c |
|
src/subgraph/sigmoid.c |
|
src/subgraph/softmax.c |
|
src/subgraph/space-to-depth-2d.c |
|
src/subgraph/square-root.c |
|
src/subgraph/square.c |
|
src/subgraph/squared-difference.c |
|
src/subgraph/static-constant-pad.c |
|
src/subgraph/static-mean.c |
|
src/subgraph/static-reshape.c |
|
src/subgraph/static-resize-bilinear-2d.c |
|
src/subgraph/static-slice.c |
|
src/subgraph/static-transpose.c |
|
src/subgraph/subtract.c |
|
src/subgraph/tanh.c |
|
src/subgraph/unpooling-2d.c |
|
src/subgraph/validation.c |
|
src/tensor.c) |
|
|
|
SET(LOGGING_SRCS |
|
src/enums/datatype-strings.c |
|
src/enums/microkernel-type.c |
|
src/enums/node-type.c |
|
src/enums/operator-type.c |
|
src/log.c) |
|
|
|
SET(XNNPACK_SRCS |
|
src/configs/argmaxpool-config.c |
|
src/configs/avgpool-config.c |
|
src/configs/binary-elementwise-config.c |
|
src/configs/cmul-config.c |
|
src/configs/conv-hwc2chw-config.c |
|
src/configs/dwconv-config.c |
|
src/configs/dwconv2d-chw-config.c |
|
src/configs/gavgpool-config.c |
|
src/configs/gavgpool-cw-config.c |
|
src/configs/gemm-config.c |
|
src/configs/ibilinear-chw-config.c |
|
src/configs/ibilinear-config.c |
|
src/configs/lut32norm-config.c |
|
src/configs/maxpool-config.c |
|
src/configs/pavgpool-config.c |
|
src/configs/prelu-config.c |
|
src/configs/raddstoreexpminusmax-config.c |
|
src/configs/reduce-config.c |
|
src/configs/rmax-config.c |
|
src/configs/spmm-config.c |
|
src/configs/transpose-config.c |
|
src/configs/unary-elementwise-config.c |
|
src/configs/unpool-config.c |
|
src/configs/vmulcaddc-config.c |
|
src/configs/xx-fill-config.c |
|
src/configs/xx-pad-config.c |
|
src/configs/x8-lut-config.c |
|
src/configs/zip-config.c |
|
src/init.c |
|
src/params.c) |
|
|
|
SET(TABLE_SRCS |
|
src/tables/exp2-k-over-64.c |
|
src/tables/exp2-k-over-2048.c |
|
src/tables/exp2minus-k-over-4.c |
|
src/tables/exp2minus-k-over-8.c |
|
src/tables/exp2minus-k-over-16.c |
|
src/tables/exp2minus-k-over-32.c |
|
src/tables/exp2minus-k-over-64.c |
|
src/tables/exp2minus-k-over-2048.c |
|
src/tables/vlog.c) |
|
|
|
SET(JIT_SRCS |
|
src/jit/aarch32-assembler.cc |
|
src/jit/aarch64-assembler.cc |
|
src/jit/assembler.cc) |
|
|
|
SET(PROD_SCALAR_MICROKERNEL_SRCS src/amalgam/gen/scalar.c) |
|
SET(PROD_ARMSIMD32_MICROKERNEL_SRCS src/amalgam/gen/armsimd32.c) |
|
SET(PROD_FP16ARITH_MICROKERNEL_SRCS src/amalgam/gen/fp16arith.c) |
|
SET(PROD_NEON_MICROKERNEL_SRCS src/amalgam/gen/neon.c) |
|
SET(PROD_NEONFP16_MICROKERNEL_SRCS src/amalgam/gen/neonfp16.c) |
|
SET(PROD_NEONFMA_MICROKERNEL_SRCS src/amalgam/gen/neonfma.c) |
|
SET(PROD_NEON_AARCH64_MICROKERNEL_SRCS src/amalgam/gen/neon-aarch64.c) |
|
SET(PROD_NEONV8_MICROKERNEL_SRCS src/amalgam/gen/neonv8.c) |
|
SET(PROD_NEONFP16ARITH_MICROKERNEL_SRCS src/amalgam/gen/neonfp16arith.c) |
|
SET(PROD_NEONFP16ARITH_AARCH64_MICROKERNEL_SRCS src/amalgam/gen/neonfp16arith-aarch64.c) |
|
SET(PROD_NEONDOT_MICROKERNEL_SRCS src/amalgam/gen/neondot.c) |
|
SET(PROD_SSE_MICROKERNEL_SRCS src/amalgam/gen/sse.c) |
|
SET(PROD_SSE2_MICROKERNEL_SRCS src/amalgam/gen/sse2.c) |
|
SET(PROD_SSSE3_MICROKERNEL_SRCS src/amalgam/gen/ssse3.c) |
|
SET(PROD_SSE41_MICROKERNEL_SRCS src/amalgam/gen/sse41.c) |
|
SET(PROD_AVX_MICROKERNEL_SRCS src/amalgam/gen/avx.c) |
|
SET(PROD_F16C_MICROKERNEL_SRCS src/amalgam/gen/f16c.c) |
|
SET(PROD_XOP_MICROKERNEL_SRCS src/amalgam/gen/xop.c) |
|
SET(PROD_FMA3_MICROKERNEL_SRCS src/amalgam/gen/fma3.c) |
|
SET(PROD_AVX2_MICROKERNEL_SRCS src/amalgam/gen/avx2.c) |
|
SET(PROD_AVX512F_MICROKERNEL_SRCS src/amalgam/gen/avx512f.c) |
|
SET(PROD_AVX512SKX_MICROKERNEL_SRCS src/amalgam/gen/avx512skx.c) |
|
SET(PROD_AVX512VBMI_MICROKERNEL_SRCS src/amalgam/gen/avx512vbmi.c) |
|
|
|
SET(PROD_MICROKERNEL_SRCS ${PROD_SCALAR_MICROKERNEL_SRCS}) |
|
SET(ALL_MICROKERNEL_SRCS ${ALL_SCALAR_MICROKERNEL_SRCS} ${ALL_FMA_MICROKERNEL_SRCS}) |
|
IF(XNNPACK_TARGET_PROCESSOR STREQUAL "arm") |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_ARMSIMD32_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEON_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFP16_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFMA_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONV8_MICROKERNEL_SRCS}) |
|
IF(XNNPACK_ENABLE_ARM_FP16_SCALAR) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_FP16ARITH_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_FP16_VECTOR) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFP16ARITH_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_DOTPROD) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONDOT_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_ARMSIMD32_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEON_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFP16_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFMA_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONV8_MICROKERNEL_SRCS}) |
|
IF(XNNPACK_ENABLE_ARM_FP16_SCALAR) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_FP16ARITH_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_FP16_VECTOR) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFP16ARITH_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_BF16) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONBF16_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_DOTPROD) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONDOT_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ASSEMBLY) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${AARCH32_ASM_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${AARCH32_ASM_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
LIST(APPEND JIT_SRCS ${AARCH32_JIT_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "^arm64") |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEON_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFP16_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFMA_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONV8_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEON_AARCH64_MICROKERNEL_SRCS}) |
|
IF(XNNPACK_ENABLE_ARM_FP16_VECTOR) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFP16ARITH_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONFP16ARITH_AARCH64_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_DOTPROD) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_NEONDOT_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEON_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFP16_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFMA_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONV8_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEON_AARCH64_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFMA_AARCH64_MICROKERNEL_SRCS}) |
|
IF(XNNPACK_ENABLE_ARM_FP16_SCALAR) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_FP16ARITH_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_FP16_VECTOR) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFP16ARITH_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONFP16ARITH_AARCH64_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_BF16) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONBF16_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ARM_DOTPROD) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_NEONDOT_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_ENABLE_ASSEMBLY) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${AARCH64_ASM_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${AARCH64_ASM_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
LIST(APPEND JIT_SRCS ${AARCH64_JIT_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "^x86(_64)?$") |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_SSE_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_SSE2_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_SSSE3_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_SSE41_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_AVX_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_F16C_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_XOP_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_FMA3_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_AVX2_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_AVX512F_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_AVX512SKX_MICROKERNEL_SRCS}) |
|
LIST(APPEND PROD_MICROKERNEL_SRCS ${PROD_AVX512VBMI_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_SSE_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_SSE2_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_SSSE3_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_SSE41_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_AVX_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_F16C_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_XOP_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_FMA3_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_AVX2_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_AVX512F_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_AVX512SKX_MICROKERNEL_SRCS}) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_AVX512VBMI_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "Hexagon") |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_HEXAGON_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "^riscv") |
|
IF(XNNPACK_ENABLE_RISCV_VECTOR) |
|
LIST(APPEND ALL_MICROKERNEL_SRCS ${ALL_RVV_MICROKERNEL_SRCS}) |
|
ENDIF() |
|
ENDIF() |
|
ADD_LIBRARY(microkernels-all OBJECT ${ALL_MICROKERNEL_SRCS} ${TABLE_SRCS}) |
|
ADD_LIBRARY(microkernels-prod OBJECT ${PROD_MICROKERNEL_SRCS} ${TABLE_SRCS}) |
|
ADD_LIBRARY(hardware-config OBJECT src/configs/hardware-config.c) |
|
ADD_LIBRARY(indirection OBJECT src/indirection.c) |
|
ADD_LIBRARY(jit OBJECT ${JIT_SRCS}) |
|
ADD_LIBRARY(logging OBJECT ${LOGGING_SRCS}) |
|
ADD_LIBRARY(microparams-init OBJECT src/microparams-init.c) |
|
ADD_LIBRARY(normalization OBJECT src/normalization.c) |
|
ADD_LIBRARY(packing OBJECT src/packing.c) |
|
TARGET_LINK_LIBRARIES(hardware-config PRIVATE logging) |
|
TARGET_LINK_LIBRARIES(jit PRIVATE logging) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
ADD_LIBRARY(allocator OBJECT src/allocator.c) |
|
ADD_LIBRARY(cache OBJECT src/cache.c) |
|
ADD_LIBRARY(memory OBJECT src/memory.c) |
|
ADD_LIBRARY(microkernel-utils OBJECT src/microkernel-utils.c) |
|
ADD_LIBRARY(mutex OBJECT src/mutex.c) |
|
ADD_LIBRARY(operators OBJECT ${OPERATOR_SRCS}) |
|
ADD_LIBRARY(operator-run OBJECT src/operator-run.c) |
|
ADD_LIBRARY(operator-utils OBJECT src/operator-utils.c) |
|
ADD_LIBRARY(subgraph OBJECT ${SUBGRAPH_SRCS}) |
|
# Need C_EXTENSIONS to get constants for mmap (MAP_ANONYMOUS). |
|
SET_TARGET_PROPERTIES(memory PROPERTIES C_EXTENSIONS YES) |
|
ADD_LIBRARY(convolution-test-helpers OBJECT test/convolution-test-helpers.cc) |
|
ADD_LIBRARY(post-operation OBJECT src/operators/post-operation.c) |
|
IF(XNNPACK_LIBRARY_TYPE STREQUAL "default") |
|
ADD_LIBRARY(XNNPACK ${XNNPACK_SRCS}) |
|
ELSEIF(XNNPACK_LIBRARY_TYPE STREQUAL "shared") |
|
ADD_LIBRARY(XNNPACK SHARED ${XNNPACK_SRCS}) |
|
ELSEIF(XNNPACK_LIBRARY_TYPE STREQUAL "static") |
|
ADD_LIBRARY(XNNPACK STATIC ${XNNPACK_SRCS}) |
|
ELSE() |
|
MESSAGE(FATAL_ERROR "Unsupported XNNPACK library type \"${XNNPACK_LIBRARY_TYPE}\". Must be \"static\", \"shared\", or \"default\"") |
|
ENDIF() |
|
|
|
TARGET_LINK_LIBRARIES(memory PRIVATE logging) |
|
TARGET_LINK_LIBRARIES(mutex PRIVATE logging) |
|
TARGET_LINK_LIBRARIES(operators PRIVATE allocator indirection logging microkernel-utils normalization operator-utils packing post-operation) |
|
TARGET_LINK_LIBRARIES(operator-run PRIVATE logging) |
|
TARGET_LINK_LIBRARIES(operator-utils PRIVATE logging) |
|
TARGET_LINK_LIBRARIES(post-operation PRIVATE logging) |
|
TARGET_LINK_LIBRARIES(subgraph PRIVATE allocator logging memory mutex operators operator-run) |
|
TARGET_LINK_LIBRARIES(XNNPACK PRIVATE allocator cache hardware-config indirection jit logging memory microkernel-utils microparams-init mutex normalization operators operator-run operator-utils packing post-operation microkernels-prod subgraph) |
|
SET_TARGET_PROPERTIES(XNNPACK PROPERTIES C_EXTENSIONS YES) |
|
ENDIF() |
|
IF(NOT MSVC) |
|
SET_PROPERTY(SOURCE ${ALL_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-math-errno ") |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR STREQUAL "arm") |
|
SET_PROPERTY(SOURCE ${ALL_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -marm ") |
|
SET_PROPERTY(SOURCE ${PROD_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -marm ") |
|
SET_PROPERTY(SOURCE ${ALL_ARMSIMD32_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv6 -mfpu=vfp -munaligned-access ") |
|
SET_PROPERTY(SOURCE ${PROD_ARMSIMD32_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv6 -mfpu=vfp -munaligned-access ") |
|
SET_PROPERTY(SOURCE ${ALL_NEON_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon ") |
|
SET_PROPERTY(SOURCE ${PROD_NEON_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon-fp16 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon-fp16 ") |
|
# GCC requires -mfp16-format=ieee to define __fp16 type, but Clang doesn't support this option at all. |
|
IF(CMAKE_C_COMPILER_ID STREQUAL "GNU") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfp16-format=ieee ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfp16-format=ieee ") |
|
SET_PROPERTY(SOURCE ${ALL_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfp16-format=ieee ") |
|
SET_PROPERTY(SOURCE ${PROD_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfp16-format=ieee ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfp16-format=ieee ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfp16-format=ieee ") |
|
ENDIF() |
|
SET_PROPERTY(SOURCE ${ALL_NEONFMA_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon-vfpv4 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFMA_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv7-a -mfpu=neon-vfpv4 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONV8_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8-a -mfpu=neon-fp-armv8 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONV8_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8-a -mfpu=neon-fp-armv8 ") |
|
# -mfpu=fp-armv8 should suffice for FP16ARITH microkernels, if not for GCC emitting wrong directives for assembler |
|
# -fno-math-errno for the vsqrth_f16 polyfill using sqrtf |
|
# -ffinite-math-only for the vminnmh_f16/vmaxnmh_f16 polyfills using compare + select |
|
SET_PROPERTY(SOURCE ${ALL_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 -mfpu=neon-fp-armv8 -fno-math-errno -ffinite-math-only ") |
|
SET_PROPERTY(SOURCE ${PROD_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 -mfpu=neon-fp-armv8 -fno-math-errno -ffinite-math-only ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 -mfpu=neon-fp-armv8 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 -mfpu=neon-fp-armv8 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONBF16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+bf16 -mfpu=neon-fp-armv8 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONDOT_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+dotprod -mfpu=neon-fp-armv8 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONDOT_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+dotprod -mfpu=neon-fp-armv8 ") |
|
SET_PROPERTY(SOURCE ${AARCH32_ASM_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+dotprod -mfpu=neon-fp-armv8 ") |
|
# Workground the neon detection bug in ARM v8 |
|
# Related links: |
|
# https://github.com/android/ndk/issues/910 |
|
# https://reviews.llvm.org/D58477 |
|
IF(ANDROID_NDK_MAJOR AND ANDROID_NDK_MAJOR LESS 21) |
|
SET_PROPERTY(SOURCE ${ALL_NEONV8_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONV8_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${ALL_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${PROD_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONBF16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONDOT_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONDOT_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
SET_PROPERTY(SOURCE ${AARCH32_ASM_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mfloat-abi=softfp ") |
|
ENDIF() |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "^arm64" AND NOT MSVC) |
|
SET_PROPERTY(SOURCE ${ALL_FP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16ARITH_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONFP16ARITH_AARCH64_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONFP16ARITH_AARCH64_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONBF16_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+bf16 ") |
|
SET_PROPERTY(SOURCE ${ALL_NEONDOT_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+dotprod ") |
|
SET_PROPERTY(SOURCE ${PROD_NEONDOT_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+dotprod ") |
|
SET_PROPERTY(SOURCE ${AARCH64_ASM_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=armv8.2-a+fp16+dotprod ") |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "^riscv") |
|
IF(XNNPACK_ENABLE_RISCV_VECTOR) |
|
SET_PROPERTY(SOURCE ${ALL_RVV_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -march=rv64gcv ") |
|
ENDIF() |
|
ENDIF() |
|
IF(XNNPACK_TARGET_PROCESSOR MATCHES "^x86(_64)?$") |
|
IF(MSVC) |
|
IF(XNNPACK_TARGET_PROCESSOR STREQUAL "x86" OR CMAKE_SIZEOF_VOID_P EQUAL 4) |
|
SET_PROPERTY(SOURCE ${ALL_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE ") |
|
SET_PROPERTY(SOURCE ${ALL_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ") |
|
SET_PROPERTY(SOURCE ${ALL_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ") |
|
SET_PROPERTY(SOURCE ${ALL_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:SSE2 ") |
|
ENDIF() |
|
SET_PROPERTY(SOURCE ${ALL_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${ALL_F16C_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${PROD_F16C_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${ALL_XOP_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${PROD_XOP_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${ALL_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${PROD_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX2 ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX2 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " /arch:AVX512 ") |
|
IF(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") |
|
SET_PROPERTY(SOURCE ${ALL_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-msse ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-msse ") |
|
SET_PROPERTY(SOURCE ${ALL_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-msse2 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-msse2 ") |
|
SET_PROPERTY(SOURCE ${ALL_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mssse3 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mssse3 ") |
|
SET_PROPERTY(SOURCE ${ALL_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-msse4.1 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-msse4.1 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mavx ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mavx ") |
|
SET_PROPERTY(SOURCE ${ALL_F16C_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mf16c ") |
|
SET_PROPERTY(SOURCE ${PROD_F16C_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mf16c ") |
|
SET_PROPERTY(SOURCE ${ALL_XOP_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mxop ") |
|
SET_PROPERTY(SOURCE ${PROD_XOP_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mxop ") |
|
SET_PROPERTY(SOURCE ${ALL_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mf16c -clang:-mfma ") |
|
SET_PROPERTY(SOURCE ${PROD_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mf16c -clang:-mfma ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mf16c -clang:-mfma -clang:-mavx2 ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mf16c -clang:-mfma -clang:-mavx2 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mavx512f ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -clang:-mavx512f ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -clang:-mavx512f -clang:-mavx512cd -clang:-mavx512bw -clang:-mavx512dq -clang:-mavx512vl ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -clang:-mavx512f -clang:-mavx512cd -clang:-mavx512bw -clang:-mavx512dq -clang:-mavx512vl ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -clang:-mavx512f -clang:-mavx512cd -clang:-mavx512bw -clang:-mavx512dq -clang:-mavx512vl -clang:-mavx512vbmi ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -clang:-mavx512f -clang:-mavx512cd -clang:-mavx512bw -clang:-mavx512dq -clang:-mavx512vl -clang:-mavx512vbmi ") |
|
ENDIF() |
|
ELSE() |
|
SET_PROPERTY(SOURCE ${ALL_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse ") |
|
SET_PROPERTY(SOURCE ${ALL_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse2 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse2 ") |
|
SET_PROPERTY(SOURCE ${ALL_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mssse3 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSSE3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mssse3 ") |
|
SET_PROPERTY(SOURCE ${ALL_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse4.1 ") |
|
SET_PROPERTY(SOURCE ${PROD_SSE41_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -msse4.1 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mavx ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mavx ") |
|
SET_PROPERTY(SOURCE ${ALL_F16C_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mf16c ") |
|
SET_PROPERTY(SOURCE ${PROD_F16C_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mf16c ") |
|
SET_PROPERTY(SOURCE ${ALL_XOP_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mxop ") |
|
SET_PROPERTY(SOURCE ${PROD_XOP_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mxop ") |
|
SET_PROPERTY(SOURCE ${ALL_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mf16c -mfma ") |
|
SET_PROPERTY(SOURCE ${PROD_FMA3_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mf16c -mfma ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mf16c -mfma -mavx2 ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX2_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mf16c -mfma -mavx2 ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mavx512f ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -mavx512f ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl -mavx512vbmi ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRIDE PROPERTY COMPILE_FLAGS " -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl -mavx512vbmi ") |
|
IF(MINGW OR CMAKE_SYSTEM_NAME MATCHES "^(CYGWIN|MSYS)$") |
|
# Work-around for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782 |
|
SET_PROPERTY(SOURCE ${ALL_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512F_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512SKX_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ") |
|
SET_PROPERTY(SOURCE ${ALL_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ") |
|
SET_PROPERTY(SOURCE ${PROD_AVX512VBMI_MICROKERNEL_SRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-asynchronous-unwind-tables ") |
|
ENDIF() |
|
ENDIF() |
|
ENDIF() |
|
TARGET_COMPILE_DEFINITIONS(hardware-config PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(jit PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(logging PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_COMPILE_DEFINITIONS(XNNPACK PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(allocator PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(cache PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(microkernel-utils PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(subgraph PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(operators PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(operator-run PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(operator-utils PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(packing PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(mutex PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(memory PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
TARGET_COMPILE_DEFINITIONS(post-operation PRIVATE "XNN_LOG_LEVEL=$<$<CONFIG:Debug>:4>$<$<NOT:$<CONFIG:Debug>>:0>") |
|
ENDIF() |
|
IF(MSVC) |
|
# Even though MSVC has __restrict, it can't be used in all the same contexts as the C99 restrict keyword |
|
TARGET_COMPILE_DEFINITIONS(microkernels-all PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(microkernels-prod PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(hardware-config PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(indirection PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(jit PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(microparams-init PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(normalization PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(packing PRIVATE "restrict=") |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_COMPILE_DEFINITIONS(cache PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(mutex PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(microkernel-utils PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(subgraph PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(operators PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(operator-run PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(operator-utils PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(post-operation PRIVATE "restrict=") |
|
TARGET_COMPILE_DEFINITIONS(XNNPACK PRIVATE "restrict=") |
|
ENDIF() |
|
|
|
TARGET_COMPILE_OPTIONS(microkernels-all PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(microkernels-prod PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(hardware-config PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(indirection PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(jit PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(microparams-init PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(normalization PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(packing PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_COMPILE_OPTIONS(microkernel-utils PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(operator-run PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(operator-utils PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O2>") |
|
TARGET_COMPILE_OPTIONS(cache PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(mutex PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(subgraph PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(operators PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(post-operation PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
TARGET_COMPILE_OPTIONS(XNNPACK PRIVATE "$<$<NOT:$<CONFIG:Debug>>:/O1>") |
|
ENDIF() |
|
ELSE() |
|
TARGET_COMPILE_OPTIONS(microkernels-all PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(microkernels-prod PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(hardware-config PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(indirection PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(jit PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(microparams-init PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(normalization PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(packing PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_COMPILE_OPTIONS(microkernel-utils PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(operator-run PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(operator-utils PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O2>") |
|
TARGET_COMPILE_OPTIONS(cache PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(mutex PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(subgraph PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(operators PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(post-operation PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
TARGET_COMPILE_OPTIONS(XNNPACK PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-Os>") |
|
ENDIF() |
|
ENDIF() |
|
|
|
TARGET_INCLUDE_DIRECTORIES(microkernels-all PRIVATE src) |
|
TARGET_INCLUDE_DIRECTORIES(microkernels-prod PRIVATE src) |
|
TARGET_INCLUDE_DIRECTORIES(hardware-config PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(indirection PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(jit PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(microparams-init PRIVATE src) |
|
TARGET_INCLUDE_DIRECTORIES(normalization PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(packing PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(logging PRIVATE include src) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_INCLUDE_DIRECTORIES(XNNPACK PUBLIC include) |
|
TARGET_INCLUDE_DIRECTORIES(XNNPACK PRIVATE src) |
|
TARGET_INCLUDE_DIRECTORIES(allocator PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(cache PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(microkernel-utils PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(subgraph PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(operators PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(operator-run PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(operator-utils PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(memory PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(mutex PRIVATE include src) |
|
TARGET_INCLUDE_DIRECTORIES(post-operation PUBLIC include src) |
|
IF(WIN32) |
|
# Target Windows 7+ API |
|
TARGET_COMPILE_DEFINITIONS(XNNPACK PRIVATE _WIN32_WINNT=0x0601) |
|
TARGET_COMPILE_DEFINITIONS(mutex PRIVATE _WIN32_WINNT=0x0601) |
|
ENDIF() |
|
SET_TARGET_PROPERTIES(XNNPACK PROPERTIES PUBLIC_HEADER include/xnnpack.h) |
|
ENDIF() |
|
|
|
# ---[ Find libm |
|
FIND_LIBRARY(LIBM m) |
|
IF(LIBM) |
|
TARGET_LINK_LIBRARIES(microkernels-all PRIVATE ${LIBM}) |
|
TARGET_LINK_LIBRARIES(microkernels-prod PRIVATE ${LIBM}) |
|
TARGET_LINK_LIBRARIES(hardware-config PRIVATE ${LIBM}) |
|
TARGET_LINK_LIBRARIES(indirection PRIVATE ${LIBM}) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(XNNPACK PRIVATE ${LIBM}) |
|
ENDIF() |
|
ENDIF() |
|
|
|
# ---[ Configure cpuinfo |
|
IF(NOT TARGET cpuinfo) |
|
IF(NOT XNNPACK_USE_SYSTEM_LIBS) |
|
SET(CPUINFO_BUILD_TOOLS OFF CACHE BOOL "") |
|
SET(CPUINFO_BUILD_UNIT_TESTS OFF CACHE BOOL "") |
|
SET(CPUINFO_BUILD_MOCK_TESTS OFF CACHE BOOL "") |
|
SET(CPUINFO_BUILD_BENCHMARKS OFF CACHE BOOL "") |
|
ADD_SUBDIRECTORY( |
|
"${CPUINFO_SOURCE_DIR}" |
|
"${CMAKE_BINARY_DIR}/cpuinfo") |
|
ELSE() |
|
ADD_LIBRARY(cpuinfo SHARED IMPORTED) |
|
FIND_LIBRARY(CPUINFO_LIBRARY cpuinfo) |
|
IF(NOT CPUINFO_LIBRARY) |
|
MESSAGE(FATAL_ERROR "Cannot find cpuinfo") |
|
ENDIF() |
|
SET_PROPERTY(TARGET cpuinfo PROPERTY IMPORTED_LOCATION "${CPUINFO_LIBRARY}") |
|
SET_PROPERTY(TARGET cpuinfo PROPERTY IMPORTED_IMPLIB "${CPUINFO_LIBRARY}") |
|
ENDIF() |
|
ENDIF() |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(hardware-config PRIVATE cpuinfo) |
|
TARGET_LINK_LIBRARIES(XNNPACK PRIVATE cpuinfo) |
|
ENDIF() |
|
|
|
# ---[ Configure pthreadpool |
|
IF(NOT TARGET pthreadpool) |
|
IF(NOT XNNPACK_USE_SYSTEM_LIBS) |
|
SET(PTHREADPOOL_BUILD_TESTS OFF CACHE BOOL "") |
|
SET(PTHREADPOOL_BUILD_BENCHMARKS OFF CACHE BOOL "") |
|
SET(PTHREADPOOL_ALLOW_DEPRECATED_API OFF CACHE BOOL "") |
|
ADD_SUBDIRECTORY( |
|
"${PTHREADPOOL_SOURCE_DIR}" |
|
"${CMAKE_BINARY_DIR}/pthreadpool") |
|
ELSE() |
|
ADD_LIBRARY(pthreadpool SHARED IMPORTED) |
|
FIND_LIBRARY(PTHREADPOOL_LIBRARY pthreadpool) |
|
IF(NOT PTHREADPOOL_LIBRARY) |
|
MESSAGE(FATAL_ERROR "Cannot find pthreadpool") |
|
ENDIF() |
|
SET_PROPERTY(TARGET pthreadpool PROPERTY IMPORTED_LOCATION "${PTHREADPOOL_LIBRARY}") |
|
SET_PROPERTY(TARGET pthreadpool PROPERTY IMPORTED_IMPLIB "${PTHREADPOOL_LIBRARY}") |
|
ENDIF() |
|
ENDIF() |
|
TARGET_LINK_LIBRARIES(microkernels-all PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(microkernels-prod PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(hardware-config PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(indirection PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(jit PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(logging PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(microparams-init PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(normalization PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(packing PRIVATE pthreadpool) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(XNNPACK PUBLIC pthreadpool) |
|
TARGET_LINK_LIBRARIES(allocator PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(cache PRIVATE memory pthreadpool) |
|
TARGET_LINK_LIBRARIES(subgraph PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(operators PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(operator-run PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(operator-utils PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(mutex PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(memory PRIVATE pthreadpool) |
|
TARGET_LINK_LIBRARIES(post-operation PUBLIC pthreadpool allocator) |
|
ENDIF() |
|
|
|
# ---[ Configure FXdiv |
|
IF(NOT TARGET fxdiv) |
|
IF(NOT XNNPACK_USE_SYSTEM_LIBS) |
|
SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "") |
|
SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "") |
|
ADD_SUBDIRECTORY( |
|
"${FXDIV_SOURCE_DIR}" |
|
"${CMAKE_BINARY_DIR}/FXdiv") |
|
ELSE() |
|
FIND_FILE(FXDIV_HDR fxdiv.h PATH_SUFFIXES include) |
|
IF(NOT FXDIV_HDR) |
|
MESSAGE(FATAL_ERROR "Cannot find fxdiv") |
|
ENDIF() |
|
ADD_LIBRARY(fxdiv STATIC "${FXDIV_HDR}") |
|
SET_PROPERTY(TARGET fxdiv PROPERTY LINKER_LANGUAGE C) |
|
ENDIF() |
|
ENDIF() |
|
TARGET_LINK_LIBRARIES(microkernels-all PRIVATE fxdiv) |
|
TARGET_LINK_LIBRARIES(microkernels-prod PRIVATE fxdiv) |
|
TARGET_LINK_LIBRARIES(indirection PRIVATE fxdiv) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(XNNPACK PRIVATE fxdiv) |
|
ENDIF() |
|
|
|
# ---[ Configure FP16 |
|
IF(NOT TARGET fp16) |
|
IF(NOT XNNPACK_USE_SYSTEM_LIBS) |
|
SET(FP16_BUILD_TESTS OFF CACHE BOOL "") |
|
SET(FP16_BUILD_BENCHMARKS OFF CACHE BOOL "") |
|
ADD_SUBDIRECTORY( |
|
"${FP16_SOURCE_DIR}" |
|
"${CMAKE_BINARY_DIR}/FP16") |
|
ELSE() |
|
FIND_FILE(FP16_HDR fp16.h PATH_SUFFIXES include) |
|
IF(NOT FP16_HDR) |
|
MESSAGE(FATAL_ERROR "Cannot find fp16") |
|
ENDIF() |
|
ADD_LIBRARY(fp16 STATIC "${FP16_HDR}") |
|
SET_PROPERTY(TARGET fp16 PROPERTY LINKER_LANGUAGE C) |
|
ENDIF() |
|
ENDIF() |
|
TARGET_LINK_LIBRARIES(microkernels-all PRIVATE fp16) |
|
TARGET_LINK_LIBRARIES(microkernels-prod PRIVATE fp16) |
|
TARGET_LINK_LIBRARIES(microparams-init PRIVATE fp16) |
|
TARGET_LINK_LIBRARIES(packing PRIVATE fp16) |
|
TARGET_LINK_LIBRARIES(indirection PRIVATE fp16) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(subgraph PRIVATE fp16) |
|
TARGET_LINK_LIBRARIES(operators PRIVATE fp16) |
|
TARGET_LINK_LIBRARIES(operator-run PRIVATE fp16) |
|
|
|
TARGET_LINK_LIBRARIES(XNNPACK PRIVATE fp16) |
|
INSTALL(TARGETS XNNPACK |
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
|
ENDIF() |
|
|
|
# ---[ XNNPACK unit tests |
|
IF(XNNPACK_BUILD_TESTS) |
|
# ---[ Build google test |
|
IF(NOT TARGET gtest) |
|
SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE) |
|
ADD_SUBDIRECTORY( |
|
"${GOOGLETEST_SOURCE_DIR}" |
|
"${CMAKE_BINARY_DIR}/googletest") |
|
ENDIF() |
|
|
|
# Helper libraries |
|
ADD_LIBRARY(gemm-microkernel-tester STATIC test/gemm-microkernel-tester.cc) |
|
TARGET_INCLUDE_DIRECTORIES(gemm-microkernel-tester PRIVATE . include src test) |
|
TARGET_LINK_LIBRARIES(gemm-microkernel-tester PRIVATE fp16 pthreadpool gtest) |
|
TARGET_LINK_LIBRARIES(gemm-microkernel-tester PRIVATE jit packing) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(gemm-microkernel-tester PRIVATE XNNPACK post-operation) |
|
ENDIF() |
|
|
|
IF(XNNPACK_BUILD_LIBRARY) |
|
# ---[ Build size tests |
|
ADD_EXECUTABLE(operator-size-test test/operator-size.c) |
|
TARGET_LINK_LIBRARIES(operator-size-test PRIVATE XNNPACK) |
|
|
|
ADD_EXECUTABLE(subgraph-size-test test/subgraph-size.c) |
|
TARGET_LINK_LIBRARIES(subgraph-size-test PRIVATE XNNPACK) |
|
|
|
# ---[ Build operator-level unit tests |
|
ADD_EXECUTABLE(abs-nc-test test/abs-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(abs-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(abs-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME abs-nc-test COMMAND abs-nc-test) |
|
|
|
ADD_EXECUTABLE(abs-nc-eager-test test/abs-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(abs-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(abs-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME abs-nc-eager-test COMMAND abs-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(add-nd-test test/add-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(add-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(add-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME add-nd-test COMMAND add-nd-test) |
|
|
|
ADD_EXECUTABLE(add-nd-eager-test test/add-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(add-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(add-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME add-nd-eager-test COMMAND add-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(argmax-pooling-nhwc-test test/argmax-pooling-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(argmax-pooling-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(argmax-pooling-nhwc-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME argmax-pooling-nhwc-test COMMAND argmax-pooling-nhwc-test) |
|
|
|
ADD_EXECUTABLE(average-pooling-nhwc-test test/average-pooling-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(average-pooling-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(average-pooling-nhwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME average-pooling-nhwc-test COMMAND average-pooling-nhwc-test) |
|
|
|
ADD_EXECUTABLE(bankers-rounding-nc-test test/bankers-rounding-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bankers-rounding-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(bankers-rounding-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME bankers-rounding-nc-test COMMAND bankers-rounding-nc-test) |
|
|
|
ADD_EXECUTABLE(bankers-rounding-nc-eager-test test/bankers-rounding-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bankers-rounding-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(bankers-rounding-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME bankers-rounding-nc-eager-test COMMAND bankers-rounding-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(batch-matrix-multiply-nc-test test/batch-matrix-multiply-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(batch-matrix-multiply-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(batch-matrix-multiply-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME batch-matrix-multiply-nc-test COMMAND batch-matrix-multiply-nc-test) |
|
|
|
ADD_EXECUTABLE(ceiling-nc-test test/ceiling-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(ceiling-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(ceiling-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME ceiling-nc-test COMMAND ceiling-nc-test) |
|
|
|
ADD_EXECUTABLE(ceiling-nc-eager-test test/ceiling-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(ceiling-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(ceiling-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME ceiling-nc-eager-test COMMAND ceiling-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(channel-shuffle-nc-test test/channel-shuffle-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(channel-shuffle-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(channel-shuffle-nc-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME channel-shuffle-nc-test COMMAND channel-shuffle-nc-test) |
|
|
|
ADD_EXECUTABLE(clamp-nc-test test/clamp-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(clamp-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(clamp-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME clamp-nc-test COMMAND clamp-nc-test) |
|
|
|
ADD_EXECUTABLE(clamp-nc-eager-test test/clamp-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(clamp-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(clamp-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME clamp-nc-eager-test COMMAND clamp-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(constant-pad-nd-test test/constant-pad-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(constant-pad-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(constant-pad-nd-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME constant-pad-nd-test COMMAND constant-pad-nd-test) |
|
|
|
ADD_EXECUTABLE(constant-pad-nd-eager-test test/constant-pad-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(constant-pad-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(constant-pad-nd-eager-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME constant-pad-nd-eager-test COMMAND constant-pad-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(convert-nc-test test/convert-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(convert-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(convert-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME convert-nc-test COMMAND convert-nc-test) |
|
|
|
ADD_EXECUTABLE(convert-nc-eager-test test/convert-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(convert-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(convert-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME convert-nc-eager-test COMMAND convert-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(convolution-nhwc-test test/convolution-nhwc.cc) |
|
SET_TARGET_PROPERTIES(convolution-nhwc-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(convolution-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(convolution-nhwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(convolution-nhwc-test PRIVATE convolution-test-helpers) |
|
ADD_TEST(NAME convolution-nhwc-test COMMAND convolution-nhwc-test) |
|
|
|
ADD_EXECUTABLE(convolution-nchw-test test/convolution-nchw.cc) |
|
SET_TARGET_PROPERTIES(convolution-nchw-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(convolution-nchw-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(convolution-nchw-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME convolution-nchw-test COMMAND convolution-nchw-test) |
|
|
|
ADD_EXECUTABLE(copy-nc-test test/copy-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(copy-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(copy-nc-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME copy-nc-test COMMAND copy-nc-test) |
|
|
|
ADD_EXECUTABLE(copy-nc-eager-test test/copy-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(copy-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(copy-nc-eager-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME copy-nc-eager-test COMMAND copy-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(deconvolution-nhwc-test test/deconvolution-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(deconvolution-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(deconvolution-nhwc-test PRIVATE XNNPACK fp16 gmock gtest gtest_main) |
|
ADD_TEST(NAME deconvolution-nhwc-test COMMAND deconvolution-nhwc-test) |
|
|
|
ADD_EXECUTABLE(depth-to-space-nchw2nhwc-test test/depth-to-space-nchw2nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(depth-to-space-nchw2nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(depth-to-space-nchw2nhwc-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME depth-to-space-nchw2nhwc-test COMMAND depth-to-space-nchw2nhwc-test) |
|
|
|
ADD_EXECUTABLE(depth-to-space-nhwc-test test/depth-to-space-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(depth-to-space-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(depth-to-space-nhwc-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME depth-to-space-nhwc-test COMMAND depth-to-space-nhwc-test) |
|
|
|
ADD_EXECUTABLE(divide-nd-test test/divide-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(divide-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(divide-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME divide-nd-test COMMAND divide-nd-test) |
|
|
|
ADD_EXECUTABLE(divide-nd-eager-test test/divide-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(divide-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(divide-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME divide-nd-eager-test COMMAND divide-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(dynamic-fully-connected-nc-test test/dynamic-fully-connected-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(dynamic-fully-connected-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(dynamic-fully-connected-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME dynamic-fully-connected-nc-test COMMAND dynamic-fully-connected-nc-test) |
|
|
|
ADD_EXECUTABLE(elu-nc-test test/elu-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(elu-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(elu-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME elu-nc-test COMMAND elu-nc-test) |
|
|
|
ADD_EXECUTABLE(elu-nc-eager-test test/elu-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(elu-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(elu-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME elu-nc-eager-test COMMAND elu-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(fully-connected-nc-test test/fully-connected-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(fully-connected-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(fully-connected-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME fully-connected-nc-test COMMAND fully-connected-nc-test) |
|
|
|
ADD_EXECUTABLE(floor-nc-test test/floor-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(floor-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(floor-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME floor-nc-test COMMAND floor-nc-test) |
|
|
|
ADD_EXECUTABLE(floor-nc-eager-test test/floor-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(floor-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(floor-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME floor-nc-eager-test COMMAND floor-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(global-average-pooling-nwc-test test/global-average-pooling-nwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-average-pooling-nwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-average-pooling-nwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME global-average-pooling-nwc-test COMMAND global-average-pooling-nwc-test) |
|
|
|
ADD_EXECUTABLE(global-average-pooling-ncw-test test/global-average-pooling-ncw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-average-pooling-ncw-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-average-pooling-ncw-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME global-average-pooling-ncw-test COMMAND global-average-pooling-ncw-test) |
|
|
|
ADD_EXECUTABLE(global-sum-pooling-nwc-test test/global-sum-pooling-nwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-sum-pooling-nwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-sum-pooling-nwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME global-sum-pooling-nwc-test COMMAND global-sum-pooling-nwc-test) |
|
|
|
ADD_EXECUTABLE(hardswish-nc-test test/hardswish-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(hardswish-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(hardswish-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME hardswish-nc-test COMMAND hardswish-nc-test) |
|
|
|
ADD_EXECUTABLE(hardswish-nc-eager-test test/hardswish-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(hardswish-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(hardswish-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME hardswish-nc-eager-test COMMAND hardswish-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(leaky-relu-nc-test test/leaky-relu-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(leaky-relu-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(leaky-relu-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME leaky-relu-nc-test COMMAND leaky-relu-nc-test) |
|
|
|
ADD_EXECUTABLE(leaky-relu-nc-eager-test test/leaky-relu-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(leaky-relu-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(leaky-relu-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME leaky-relu-nc-eager-test COMMAND leaky-relu-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(max-pooling-nhwc-test test/max-pooling-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(max-pooling-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(max-pooling-nhwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME max-pooling-nhwc-test COMMAND max-pooling-nhwc-test) |
|
|
|
ADD_EXECUTABLE(maximum-nd-test test/maximum-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(maximum-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(maximum-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME maximum-nd-test COMMAND maximum-nd-test) |
|
|
|
ADD_EXECUTABLE(maximum-nd-eager-test test/maximum-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(maximum-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(maximum-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME maximum-nd-eager-test COMMAND maximum-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(mean-nd-test test/mean-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(mean-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(mean-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME mean-nd-test COMMAND mean-nd-test) |
|
|
|
ADD_EXECUTABLE(minimum-nd-test test/minimum-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(minimum-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(minimum-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME minimum-nd-test COMMAND minimum-nd-test) |
|
|
|
ADD_EXECUTABLE(minimum-nd-eager-test test/minimum-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(minimum-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(minimum-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME minimum-nd-eager-test COMMAND minimum-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(multiply-nd-test test/multiply-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(multiply-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(multiply-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME multiply-nd-test COMMAND multiply-nd-test) |
|
|
|
ADD_EXECUTABLE(multiply-nd-eager-test test/multiply-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(multiply-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(multiply-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME multiply-nd-eager-test COMMAND multiply-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(negate-nc-test test/negate-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(negate-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(negate-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME negate-nc-test COMMAND negate-nc-test) |
|
|
|
ADD_EXECUTABLE(negate-nc-eager-test test/negate-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(negate-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(negate-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME negate-nc-eager-test COMMAND negate-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(prelu-nc-test test/prelu-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(prelu-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(prelu-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME prelu-nc-test COMMAND prelu-nc-test) |
|
|
|
ADD_EXECUTABLE(resize-bilinear-nhwc-test test/resize-bilinear-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(resize-bilinear-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(resize-bilinear-nhwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME resize-bilinear-nhwc-test COMMAND resize-bilinear-nhwc-test) |
|
|
|
ADD_EXECUTABLE(resize-bilinear-nchw-test test/resize-bilinear-nchw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(resize-bilinear-nchw-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(resize-bilinear-nchw-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME resize-bilinear-nchw-test COMMAND resize-bilinear-nchw-test) |
|
|
|
ADD_EXECUTABLE(rope-nthc-test test/rope-nthc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(rope-nthc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(rope-nthc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME rope-nthc-test COMMAND rope-nthc-test) |
|
|
|
ADD_EXECUTABLE(sigmoid-nc-test test/sigmoid-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(sigmoid-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(sigmoid-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME sigmoid-nc-test COMMAND sigmoid-nc-test) |
|
|
|
ADD_EXECUTABLE(sigmoid-nc-eager-test test/sigmoid-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(sigmoid-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(sigmoid-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME sigmoid-nc-eager-test COMMAND sigmoid-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(slice-nd-test test/slice-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(slice-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(slice-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME slice-nd-test COMMAND slice-nd-test) |
|
|
|
ADD_EXECUTABLE(slice-nd-eager-test test/slice-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(slice-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(slice-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME slice-nd-eager-test COMMAND slice-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(softmax-nc-test test/softmax-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(softmax-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(softmax-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME softmax-nc-test COMMAND softmax-nc-test) |
|
|
|
ADD_EXECUTABLE(space-to-depth-nhwc-test test/space-to-depth-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(space-to-depth-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(space-to-depth-nhwc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME space-to-depth-nhwc-test COMMAND space-to-depth-nhwc-test) |
|
|
|
ADD_EXECUTABLE(square-nc-test test/square-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(square-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME square-nc-test COMMAND square-nc-test) |
|
|
|
ADD_EXECUTABLE(square-nc-eager-test test/square-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(square-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME square-nc-eager-test COMMAND square-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(square-root-nc-test test/square-root-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-root-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(square-root-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME square-root-nc-test COMMAND square-root-nc-test) |
|
|
|
ADD_EXECUTABLE(square-root-nc-eager-test test/square-root-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-root-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(square-root-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME square-root-nc-eager-test COMMAND square-root-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(squared-difference-nd-test test/squared-difference-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(squared-difference-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(squared-difference-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME squared-difference-nd-test COMMAND squared-difference-nd-test) |
|
|
|
ADD_EXECUTABLE(squared-difference-nd-eager-test test/squared-difference-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(squared-difference-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(squared-difference-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME squared-difference-nd-eager-test COMMAND squared-difference-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(subtract-nd-test test/subtract-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(subtract-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(subtract-nd-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME subtract-nd-test COMMAND subtract-nd-test) |
|
|
|
ADD_EXECUTABLE(subtract-nd-eager-test test/subtract-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(subtract-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(subtract-nd-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME subtract-nd-eager-test COMMAND subtract-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(tanh-nc-test test/tanh-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(tanh-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(tanh-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME tanh-nc-test COMMAND tanh-nc-test) |
|
|
|
ADD_EXECUTABLE(tanh-nc-eager-test test/tanh-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(tanh-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(tanh-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME tanh-nc-eager-test COMMAND tanh-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(transpose-nd-test test/transpose-nd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(transpose-nd-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(transpose-nd-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME transpose-nd-test COMMAND transpose-nd-test) |
|
|
|
ADD_EXECUTABLE(transpose-nd-eager-test test/transpose-nd-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(transpose-nd-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(transpose-nd-eager-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME transpose-nd-eager-test COMMAND transpose-nd-eager-test) |
|
|
|
ADD_EXECUTABLE(truncation-nc-test test/truncation-nc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(truncation-nc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(truncation-nc-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME truncation-nc-test COMMAND truncation-nc-test) |
|
|
|
ADD_EXECUTABLE(truncation-nc-eager-test test/truncation-nc-eager.cc) |
|
TARGET_INCLUDE_DIRECTORIES(truncation-nc-eager-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(truncation-nc-eager-test PRIVATE XNNPACK fp16 gtest gtest_main) |
|
ADD_TEST(NAME truncation-nc-eager-test COMMAND truncation-nc-eager-test) |
|
|
|
ADD_EXECUTABLE(unpooling-nhwc-test test/unpooling-nhwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(unpooling-nhwc-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(unpooling-nhwc-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME unpooling-nhwc-test COMMAND unpooling-nhwc-test) |
|
|
|
# ---[ Build subgraph optimizations unit tests |
|
ADD_EXECUTABLE(fusion-test test/fusion.cc) |
|
TARGET_INCLUDE_DIRECTORIES(fusion-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(fusion-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME fusion-test COMMAND fusion-test) |
|
|
|
ADD_EXECUTABLE(memory-planner-test test/memory-planner-test.cc) |
|
TARGET_INCLUDE_DIRECTORIES(memory-planner-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(memory-planner-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME memory-planner-test COMMAND memory-planner-test) |
|
|
|
ADD_EXECUTABLE(subgraph-fp16-test test/subgraph-fp16.cc) |
|
TARGET_INCLUDE_DIRECTORIES(subgraph-fp16-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(subgraph-fp16-test PRIVATE XNNPACK fp16 gmock gtest gtest_main) |
|
ADD_TEST(NAME subgraph-fp16-test COMMAND subgraph-fp16-test) |
|
|
|
ADD_EXECUTABLE(subgraph-test test/subgraph.cc) |
|
TARGET_INCLUDE_DIRECTORIES(subgraph-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(subgraph-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME subgraph-test COMMAND subgraph-test) |
|
|
|
ADD_EXECUTABLE(subgraph-nchw-test test/subgraph-nchw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(subgraph-nchw-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(subgraph-nchw-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME subgraph-nchw-test COMMAND subgraph-nchw-test) |
|
|
|
ADD_EXECUTABLE(workspace-test test/workspace.cc) |
|
TARGET_INCLUDE_DIRECTORIES(workspace-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(workspace-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME workspace-test COMMAND workspace-test) |
|
|
|
# ---[ Build subgraph-level unit tests |
|
ADD_EXECUTABLE(abs-test test/abs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(abs-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(abs-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME abs-test COMMAND abs-test) |
|
|
|
ADD_EXECUTABLE(add2-test test/add2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(add2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(add2-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME add2-test COMMAND add2-test) |
|
|
|
ADD_EXECUTABLE(argmax-pooling-2d-test test/argmax-pooling-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(argmax-pooling-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(argmax-pooling-2d-test PRIVATE XNNPACK gtest gtest_main) |
|
ADD_TEST(NAME argmax-pooling-2d-test COMMAND argmax-pooling-2d-test) |
|
|
|
ADD_EXECUTABLE(average-pooling-2d-test test/average-pooling-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(average-pooling-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(average-pooling-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME average-pooling-2d-test COMMAND average-pooling-2d-test) |
|
|
|
ADD_EXECUTABLE(bankers-rounding-test test/bankers-rounding.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bankers-rounding-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(bankers-rounding-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME bankers-rounding-test COMMAND bankers-rounding-test) |
|
|
|
ADD_EXECUTABLE(batch-matrix-multiply-test test/batch-matrix-multiply.cc) |
|
TARGET_INCLUDE_DIRECTORIES(batch-matrix-multiply-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(batch-matrix-multiply-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME batch-matrix-multiply-test COMMAND batch-matrix-multiply-test) |
|
|
|
ADD_EXECUTABLE(ceiling-test test/ceiling.cc) |
|
TARGET_INCLUDE_DIRECTORIES(ceiling-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(ceiling-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME ceiling-test COMMAND ceiling-test) |
|
|
|
ADD_EXECUTABLE(clamp-test test/clamp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(clamp-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(clamp-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME clamp-test COMMAND clamp-test) |
|
|
|
ADD_EXECUTABLE(concatenate2-test test/concatenate2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(concatenate2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(concatenate2-test PRIVATE XNNPACK gtest gtest_main subgraph) |
|
ADD_TEST(NAME concatenate2-test COMMAND concatenate2-test) |
|
|
|
ADD_EXECUTABLE(concatenate3-test test/concatenate3.cc) |
|
TARGET_INCLUDE_DIRECTORIES(concatenate3-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(concatenate3-test PRIVATE XNNPACK gtest gtest_main subgraph) |
|
ADD_TEST(NAME concatenate3-test COMMAND concatenate3-test) |
|
|
|
ADD_EXECUTABLE(concatenate4-test test/concatenate4.cc) |
|
TARGET_INCLUDE_DIRECTORIES(concatenate4-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(concatenate4-test PRIVATE XNNPACK gtest gtest_main subgraph) |
|
ADD_TEST(NAME concatenate4-test COMMAND concatenate4-test) |
|
|
|
ADD_EXECUTABLE(convert-test test/convert.cc) |
|
TARGET_INCLUDE_DIRECTORIES(convert-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(convert-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME convert-test COMMAND convert-test) |
|
|
|
ADD_EXECUTABLE(convolution-2d-test test/convolution-2d.cc) |
|
SET_TARGET_PROPERTIES(convolution-2d-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(convolution-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(convolution-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph convolution-test-helpers) |
|
ADD_TEST(NAME convolution-2d-test COMMAND convolution-2d-test) |
|
|
|
ADD_EXECUTABLE(copy-test test/copy.cc) |
|
TARGET_INCLUDE_DIRECTORIES(copy-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(copy-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME copy-test COMMAND copy-test) |
|
|
|
ADD_EXECUTABLE(deconvolution-2d-test test/deconvolution-2d.cc) |
|
SET_TARGET_PROPERTIES(deconvolution-2d-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(deconvolution-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(deconvolution-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph convolution-test-helpers) |
|
ADD_TEST(NAME deconvolution-2d-test COMMAND deconvolution-2d-test) |
|
|
|
ADD_EXECUTABLE(depth-to-space-test test/depth-to-space.cc) |
|
TARGET_INCLUDE_DIRECTORIES(depth-to-space-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(depth-to-space-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME depth-to-space-test COMMAND depth-to-space-test) |
|
|
|
ADD_EXECUTABLE(depthwise-convolution-2d-test test/depthwise-convolution-2d.cc) |
|
SET_TARGET_PROPERTIES(depthwise-convolution-2d-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(depthwise-convolution-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(depthwise-convolution-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph convolution-test-helpers) |
|
ADD_TEST(NAME depthwise-convolution-2d-test COMMAND depthwise-convolution-2d-test) |
|
|
|
ADD_EXECUTABLE(divide2-test test/divide2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(divide2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(divide2-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME divide2-test COMMAND divide2-test) |
|
|
|
ADD_EXECUTABLE(elu-test test/elu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(elu-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(elu-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME elu-test COMMAND elu-test) |
|
|
|
ADD_EXECUTABLE(even-split2-test test/even-split2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(even-split2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(even-split2-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME even-split2-test COMMAND even-split2-test) |
|
|
|
ADD_EXECUTABLE(even-split3-test test/even-split3.cc) |
|
TARGET_INCLUDE_DIRECTORIES(even-split3-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(even-split3-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME even-split3-test COMMAND even-split3-test) |
|
|
|
ADD_EXECUTABLE(even-split4-test test/even-split4.cc) |
|
TARGET_INCLUDE_DIRECTORIES(even-split4-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(even-split4-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME even-split4-test COMMAND even-split4-test) |
|
|
|
ADD_EXECUTABLE(floor-test test/floor.cc) |
|
TARGET_INCLUDE_DIRECTORIES(floor-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(floor-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME floor-test COMMAND floor-test) |
|
|
|
ADD_EXECUTABLE(fully-connected-test test/fully-connected.cc) |
|
TARGET_INCLUDE_DIRECTORIES(fully-connected-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(fully-connected-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME fully-connected-test COMMAND fully-connected-test) |
|
|
|
ADD_EXECUTABLE(global-average-pooling-1d-test test/global-average-pooling-1d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-average-pooling-1d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-average-pooling-1d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME global-average-pooling-1d-test COMMAND global-average-pooling-1d-test) |
|
|
|
ADD_EXECUTABLE(global-average-pooling-2d-test test/global-average-pooling-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-average-pooling-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-average-pooling-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME global-average-pooling-2d-test COMMAND global-average-pooling-2d-test) |
|
|
|
ADD_EXECUTABLE(global-sum-pooling-1d-test test/global-sum-pooling-1d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-sum-pooling-1d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-sum-pooling-1d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME global-sum-pooling-1d-test COMMAND global-sum-pooling-1d-test) |
|
|
|
ADD_EXECUTABLE(global-sum-pooling-2d-test test/global-sum-pooling-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-sum-pooling-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(global-sum-pooling-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME global-sum-pooling-2d-test COMMAND global-sum-pooling-2d-test) |
|
|
|
ADD_EXECUTABLE(hardswish-test test/hardswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(hardswish-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(hardswish-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME hardswish-test COMMAND hardswish-test) |
|
|
|
ADD_EXECUTABLE(leaky-relu-test test/leaky-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(leaky-relu-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(leaky-relu-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME leaky-relu-test COMMAND leaky-relu-test) |
|
|
|
ADD_EXECUTABLE(max-pooling-2d-test test/max-pooling-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(max-pooling-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(max-pooling-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME max-pooling-2d-test COMMAND max-pooling-2d-test) |
|
|
|
ADD_EXECUTABLE(maximum2-test test/maximum2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(maximum2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(maximum2-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME maximum2-test COMMAND maximum2-test) |
|
|
|
ADD_EXECUTABLE(minimum2-test test/minimum2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(minimum2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(minimum2-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME minimum2-test COMMAND minimum2-test) |
|
|
|
ADD_EXECUTABLE(multiply2-test test/multiply2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(multiply2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(multiply2-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME multiply2-test COMMAND multiply2-test) |
|
|
|
ADD_EXECUTABLE(negate-test test/negate.cc) |
|
TARGET_INCLUDE_DIRECTORIES(negate-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(negate-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME negate-test COMMAND negate-test) |
|
|
|
ADD_EXECUTABLE(prelu-test test/prelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(prelu-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(prelu-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME prelu-test COMMAND prelu-test) |
|
|
|
ADD_EXECUTABLE(sigmoid-test test/sigmoid.cc) |
|
SET_TARGET_PROPERTIES(sigmoid-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(sigmoid-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(sigmoid-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME sigmoid-test COMMAND sigmoid-test) |
|
|
|
ADD_EXECUTABLE(static-slice-test test/static-slice.cc) |
|
SET_TARGET_PROPERTIES(static-slice-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(static-slice-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(static-slice-test PRIVATE XNNPACK fp16 gmock gtest gtest_main subgraph) |
|
ADD_TEST(NAME static-slice-test COMMAND static-slice-test) |
|
|
|
ADD_EXECUTABLE(softmax-test test/softmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(softmax-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(softmax-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME softmax-test COMMAND softmax-test) |
|
|
|
ADD_EXECUTABLE(space-to-depth-2d-test test/space-to-depth-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(space-to-depth-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(space-to-depth-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME space-to-depth-2d-test COMMAND space-to-depth-2d-test) |
|
|
|
ADD_EXECUTABLE(square-test test/square.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(square-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME square-test COMMAND square-test) |
|
|
|
ADD_EXECUTABLE(square-root-test test/square.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-root-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(square-root-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME square-root-test COMMAND square-root-test) |
|
|
|
ADD_EXECUTABLE(squared-difference-test test/squared-difference.cc) |
|
TARGET_INCLUDE_DIRECTORIES(squared-difference-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(squared-difference-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME squared-difference-test COMMAND squared-difference-test) |
|
|
|
ADD_EXECUTABLE(static-constant-pad-test test/static-constant-pad.cc) |
|
TARGET_INCLUDE_DIRECTORIES(static-constant-pad-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(static-constant-pad-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME static-constant-pad-test COMMAND static-constant-pad-test) |
|
|
|
ADD_EXECUTABLE(static-mean-test test/static-mean.cc) |
|
TARGET_INCLUDE_DIRECTORIES(static-mean-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(static-mean-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME static-mean-test COMMAND static-mean-test) |
|
|
|
ADD_EXECUTABLE(static-reshape-test test/static-reshape.cc) |
|
TARGET_INCLUDE_DIRECTORIES(static-reshape-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(static-reshape-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME static-reshape-test COMMAND static-reshape-test) |
|
|
|
ADD_EXECUTABLE(static-resize-bilinear-2d-test test/static-resize-bilinear-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(static-resize-bilinear-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(static-resize-bilinear-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME static-resize-bilinear-2d-test COMMAND static-resize-bilinear-2d-test) |
|
|
|
ADD_EXECUTABLE(static-transpose-test test/static-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(static-transpose-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(static-transpose-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME static-transpose-test COMMAND static-transpose-test) |
|
|
|
ADD_EXECUTABLE(subtract2-test test/subtract2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(subtract2-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(subtract2-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME subtract2-test COMMAND subtract2-test) |
|
|
|
ADD_EXECUTABLE(tanh-test test/sigmoid.cc) |
|
SET_TARGET_PROPERTIES(tanh-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(tanh-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(tanh-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME tanh-test COMMAND tanh-test) |
|
|
|
ADD_EXECUTABLE(unpooling-2d-test test/unpooling-2d.cc) |
|
TARGET_INCLUDE_DIRECTORIES(unpooling-2d-test PRIVATE src test) |
|
TARGET_LINK_LIBRARIES(unpooling-2d-test PRIVATE XNNPACK fp16 gtest gtest_main subgraph) |
|
ADD_TEST(NAME unpooling-2d-test COMMAND unpooling-2d-test) |
|
ENDIF() |
|
|
|
# ---[ Normalization unit tests |
|
ADD_EXECUTABLE(slice-normalization-test test/slice-normalization.cc) |
|
TARGET_INCLUDE_DIRECTORIES(slice-normalization-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(slice-normalization-test PRIVATE gtest gtest_main pthreadpool) |
|
TARGET_LINK_LIBRARIES(slice-normalization-test PRIVATE normalization) |
|
ADD_TEST(NAME slice-normalization-test COMMAND slice-normalization-test) |
|
|
|
ADD_EXECUTABLE(reduce-normalization-test test/reduce-normalization.cc) |
|
TARGET_INCLUDE_DIRECTORIES(reduce-normalization-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(reduce-normalization-test PRIVATE gtest gtest_main pthreadpool) |
|
TARGET_LINK_LIBRARIES(reduce-normalization-test PRIVATE normalization) |
|
ADD_TEST(NAME reduce-normalization-test COMMAND reduce-normalization-test) |
|
|
|
ADD_EXECUTABLE(transpose-normalization-test test/transpose-normalization.cc) |
|
TARGET_INCLUDE_DIRECTORIES(transpose-normalization-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(transpose-normalization-test PRIVATE gtest gtest_main pthreadpool) |
|
TARGET_LINK_LIBRARIES(transpose-normalization-test PRIVATE normalization) |
|
ADD_TEST(NAME transpose-normalization-test COMMAND transpose-normalization-test) |
|
|
|
# ---[ Build microkernel-level unit tests |
|
ADD_EXECUTABLE(bf16-gemm-minmax-test test/bf16-gemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bf16-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(bf16-gemm-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(bf16-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME bf16-gemm-minmax-test COMMAND bf16-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-f32-vcvt-test test/f16-f32-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-f32-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-f32-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-f32-vcvt-test COMMAND f16-f32-vcvt-test) |
|
|
|
ADD_EXECUTABLE(f16-gavgpool-cw-test test/f16-gavgpool-cw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gavgpool-cw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-gavgpool-cw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-gavgpool-cw-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-gavgpool-cw-test COMMAND f16-gavgpool-cw-test) |
|
|
|
ADD_EXECUTABLE(f16-avgpool-minmax-test test/f16-avgpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-avgpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-avgpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-avgpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-avgpool-minmax-test COMMAND f16-avgpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-conv-hwc2chw-test test/f16-conv-hwc2chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-conv-hwc2chw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-conv-hwc2chw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-conv-hwc2chw-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f16-conv-hwc2chw-test COMMAND f16-conv-hwc2chw-test) |
|
|
|
ADD_EXECUTABLE(f16-dwconv-minmax-multipass-test test/f16-dwconv-minmax-multipass.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-dwconv-minmax-multipass-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-minmax-multipass-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-minmax-multipass-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f16-dwconv-minmax-multipass-test COMMAND f16-dwconv-minmax-multipass-test) |
|
|
|
ADD_EXECUTABLE(f16-dwconv-minmax-unipass-test test/f16-dwconv-minmax-unipass.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-dwconv-minmax-unipass-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-minmax-unipass-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-minmax-unipass-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f16-dwconv-minmax-unipass-test COMMAND f16-dwconv-minmax-unipass-test) |
|
|
|
ADD_EXECUTABLE(f16-dwconv2d-chw-test test/f16-dwconv2d-chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-dwconv2d-chw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-dwconv2d-chw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-dwconv2d-chw-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f16-dwconv2d-chw-test COMMAND f16-dwconv2d-chw-test) |
|
|
|
ADD_EXECUTABLE(f16-gavgpool-minmax-test test/f16-gavgpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gavgpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-gavgpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-gavgpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-gavgpool-minmax-test COMMAND f16-gavgpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-f32acc-gemm-minmax-test test/f16-f32acc-gemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32acc-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-gemm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-f32acc-gemm-minmax-test COMMAND f16-f32acc-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-gemm-jit-test test/f16-gemm-jit.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gemm-jit-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-gemm-jit-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-gemm-jit-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-gemm-jit-test COMMAND f16-gemm-jit-test) |
|
|
|
ADD_EXECUTABLE(f16-gemm-minmax-test test/f16-gemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-gemm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-gemm-minmax-test COMMAND f16-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-ibilinear-chw-test test/f16-ibilinear-chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-ibilinear-chw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-ibilinear-chw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-ibilinear-chw-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-ibilinear-chw-test COMMAND f16-ibilinear-chw-test) |
|
|
|
ADD_EXECUTABLE(f16-ibilinear-test test/f16-ibilinear.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-ibilinear-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-ibilinear-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-ibilinear-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-ibilinear-test COMMAND f16-ibilinear-test) |
|
|
|
ADD_EXECUTABLE(f16-igemm-jit-test test/f16-igemm-jit.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-igemm-jit-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-igemm-jit-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-igemm-jit-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-igemm-jit-test COMMAND f16-igemm-jit-test) |
|
|
|
ADD_EXECUTABLE(f16-f32acc-igemm-minmax-test test/f16-f32acc-igemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32acc-igemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-igemm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-igemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-f32acc-igemm-minmax-test COMMAND f16-f32acc-igemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-igemm-minmax-test test/f16-igemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-igemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-igemm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-igemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-igemm-minmax-test COMMAND f16-igemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-maxpool-minmax-test test/f16-maxpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-maxpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-maxpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-maxpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-maxpool-minmax-test COMMAND f16-maxpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-spmm-minmax-test test/f16-spmm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-spmm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-spmm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-spmm-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-spmm-minmax-test COMMAND f16-spmm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-rmax-test test/f16-rmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-rmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-rmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-rmax-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-rmax-test COMMAND f16-rmax-test) |
|
|
|
ADD_EXECUTABLE(f32-rminmax-test test/f16-rmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rminmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-rminmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-rminmax-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-rminmax-test COMMAND f32-rminmax-test) |
|
|
|
ADD_EXECUTABLE(f16-rsum-test test/f16-rsum.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-rsum-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-rsum-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-rsum-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-rsum-test COMMAND f16-rsum-test) |
|
|
|
ADD_EXECUTABLE(f16-f32acc-rsum-test test/f16-f32acc-rsum.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32acc-rsum-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-rsum-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-rsum-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-f32acc-rsum-test COMMAND f16-f32acc-rsum-test) |
|
|
|
ADD_EXECUTABLE(f16-vabs-test test/f16-vabs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vabs-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vabs-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vabs-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vabs-test COMMAND f16-vabs-test) |
|
|
|
ADD_EXECUTABLE(f16-vadd-minmax-test test/f16-vadd-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vadd-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vadd-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vadd-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vadd-minmax-test COMMAND f16-vadd-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vaddc-minmax-test test/f16-vaddc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vaddc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vaddc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vaddc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vaddc-minmax-test COMMAND f16-vaddc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vclamp-test test/f16-vclamp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vclamp-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vclamp-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vclamp-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vclamp-test COMMAND f16-vclamp-test) |
|
|
|
ADD_EXECUTABLE(f16-vdiv-minmax-test test/f16-vdiv-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vdiv-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vdiv-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vdiv-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vdiv-minmax-test COMMAND f16-vdiv-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vdivc-minmax-test test/f16-vdivc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vdivc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vdivc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vdivc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vdivc-minmax-test COMMAND f16-vdivc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vrdivc-minmax-test test/f16-vrdivc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vrdivc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vrdivc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vrdivc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vrdivc-minmax-test COMMAND f16-vrdivc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-velu-test test/f16-velu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-velu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-velu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-velu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-velu-test COMMAND f16-velu-test) |
|
|
|
ADD_EXECUTABLE(f16-vhswish-test test/f16-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vhswish-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vhswish-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vhswish-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vhswish-test COMMAND f16-vhswish-test) |
|
|
|
ADD_EXECUTABLE(f16-vlrelu-test test/f16-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vlrelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vlrelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vlrelu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vlrelu-test COMMAND f16-vlrelu-test) |
|
|
|
ADD_EXECUTABLE(f16-vmax-test test/f16-vmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vmax-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vmax-test COMMAND f16-vmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vmaxc-test test/f16-vmaxc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vmaxc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vmaxc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vmaxc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vmaxc-test COMMAND f16-vmaxc-test) |
|
|
|
ADD_EXECUTABLE(f16-vmin-test test/f16-vmin.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vmin-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vmin-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vmin-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vmin-test COMMAND f16-vmin-test) |
|
|
|
ADD_EXECUTABLE(f16-vminc-test test/f16-vminc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vminc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vminc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vminc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vminc-test COMMAND f16-vminc-test) |
|
|
|
ADD_EXECUTABLE(f16-vmul-minmax-test test/f16-vmul-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vmul-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vmul-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vmul-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vmul-minmax-test COMMAND f16-vmul-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vmulc-minmax-test test/f16-vmulc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vmulc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vmulc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vmulc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vmulc-minmax-test COMMAND f16-vmulc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vmulcaddc-minmax-test test/f16-vmulcaddc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vmulcaddc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vmulcaddc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vmulcaddc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f16-vmulcaddc-minmax-test COMMAND f16-vmulcaddc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vneg-test test/f16-vneg.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vneg-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vneg-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f16-vneg-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vneg-test COMMAND f16-vneg-test) |
|
|
|
ADD_EXECUTABLE(f16-pavgpool-minmax-test test/f16-pavgpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-pavgpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-pavgpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-pavgpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-pavgpool-minmax-test COMMAND f16-pavgpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-prelu-test test/f16-prelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-prelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-prelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-prelu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-prelu-test COMMAND f16-prelu-test) |
|
|
|
ADD_EXECUTABLE(f16-raddstoreexpminusmax-test test/f16-raddstoreexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-raddstoreexpminusmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-raddstoreexpminusmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-raddstoreexpminusmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-raddstoreexpminusmax-test COMMAND f16-raddstoreexpminusmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vrndne-test test/f16-vrndne.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vrndne-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vrndne-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vrndne-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vrndne-test COMMAND f16-vrndne-test) |
|
|
|
ADD_EXECUTABLE(f16-vrndz-test test/f16-vrndz.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vrndz-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vrndz-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vrndz-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vrndz-test COMMAND f16-vrndz-test) |
|
|
|
ADD_EXECUTABLE(f16-vrndu-test test/f16-vrndu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vrndu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vrndu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vrndu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vrndu-test COMMAND f16-vrndu-test) |
|
|
|
ADD_EXECUTABLE(f16-vrndd-test test/f16-vrndd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vrndd-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vrndd-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vrndd-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vrndd-test COMMAND f16-vrndd-test) |
|
|
|
ADD_EXECUTABLE(f16-vsigmoid-test test/f16-vsigmoid.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsigmoid-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vsigmoid-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vsigmoid-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vsigmoid-test COMMAND f16-vsigmoid-test) |
|
|
|
ADD_EXECUTABLE(f16-vsqr-test test/f16-vsqr.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsqr-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vsqr-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vsqr-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vsqr-test COMMAND f16-vsqr-test) |
|
|
|
ADD_EXECUTABLE(f16-vsqrt-test test/f16-vsqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsqrt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vsqrt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vsqrt-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f16-vsqrt-test COMMAND f16-vsqrt-test) |
|
|
|
ADD_EXECUTABLE(f16-vsub-minmax-test test/f16-vsub-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsub-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vsub-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vsub-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vsub-minmax-test COMMAND f16-vsub-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vsubc-minmax-test test/f16-vsubc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsubc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vsubc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vsubc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vsubc-minmax-test COMMAND f16-vsubc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vrsubc-minmax-test test/f16-vrsubc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vrsubc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vrsubc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vrsubc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vrsubc-minmax-test COMMAND f16-vrsubc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f16-vtanh-test test/f16-vtanh.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vtanh-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f16-vtanh-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-vtanh-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f16-vtanh-test COMMAND f16-vtanh-test) |
|
|
|
ADD_EXECUTABLE(f32-argmaxpool-test test/f32-argmaxpool.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-argmaxpool-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-argmaxpool-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-argmaxpool-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-argmaxpool-test COMMAND f32-argmaxpool-test) |
|
|
|
ADD_EXECUTABLE(f32-avgpool-minmax-test test/f32-avgpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-avgpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-avgpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-avgpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-avgpool-minmax-test COMMAND f32-avgpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-conv-hwc-test test/f32-conv-hwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-conv-hwc-test COMMAND f32-conv-hwc-test) |
|
|
|
ADD_EXECUTABLE(f32-conv-hwc2chw-test test/f32-conv-hwc2chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc2chw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc2chw-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc2chw-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-conv-hwc2chw-test COMMAND f32-conv-hwc2chw-test) |
|
|
|
ADD_EXECUTABLE(f32-dwconv2d-chw-test test/f32-dwconv2d-chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv2d-chw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-dwconv2d-chw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-dwconv2d-chw-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-dwconv2d-chw-test COMMAND f32-dwconv2d-chw-test) |
|
|
|
ADD_EXECUTABLE(f32-dwconv-multipass-test test/f32-dwconv-multipass.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv-multipass-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-multipass-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-multipass-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-dwconv-multipass-test COMMAND f32-dwconv-multipass-test) |
|
|
|
ADD_EXECUTABLE(f32-dwconv-minmax-multipass-test test/f32-dwconv-minmax-multipass.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv-minmax-multipass-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-minmax-multipass-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-minmax-multipass-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-dwconv-minmax-multipass-test COMMAND f32-dwconv-minmax-multipass-test) |
|
|
|
ADD_EXECUTABLE(f32-dwconv-unipass-test test/f32-dwconv-unipass.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv-unipass-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-unipass-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-unipass-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-dwconv-unipass-test COMMAND f32-dwconv-unipass-test) |
|
|
|
ADD_EXECUTABLE(f32-dwconv-minmax-unipass-test test/f32-dwconv-minmax-unipass.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv-minmax-unipass-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-minmax-unipass-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-minmax-unipass-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-dwconv-minmax-unipass-test COMMAND f32-dwconv-minmax-unipass-test) |
|
|
|
ADD_EXECUTABLE(f32-f16-vcvt-test test/f32-f16-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-f16-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-f16-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-f16-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-f16-vcvt-test COMMAND f32-f16-vcvt-test) |
|
|
|
ADD_EXECUTABLE(f32-qs8-vcvt-test test/f32-qs8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qs8-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-qs8-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qs8-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-qs8-vcvt-test COMMAND f32-qs8-vcvt-test) |
|
|
|
ADD_EXECUTABLE(f32-qu8-vcvt-test test/f32-qu8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qu8-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-qu8-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qu8-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-qu8-vcvt-test COMMAND f32-qu8-vcvt-test) |
|
|
|
ADD_EXECUTABLE(f32-gavgpool-cw-test test/f32-gavgpool-cw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gavgpool-cw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gavgpool-cw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gavgpool-cw-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gavgpool-cw-test COMMAND f32-gavgpool-cw-test) |
|
|
|
ADD_EXECUTABLE(f32-gavgpool-minmax-test test/f32-gavgpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gavgpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gavgpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gavgpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gavgpool-minmax-test COMMAND f32-gavgpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-gemm-test test/f32-gemm.cc test/f32-gemm-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gemm-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gemm-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gemm-test COMMAND f32-gemm-test) |
|
|
|
ADD_EXECUTABLE(f32-gemm-relu-test test/f32-gemm-relu.cc test/f32-gemm-relu-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gemm-relu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gemm-relu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gemm-relu-test COMMAND f32-gemm-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-gemm-minmax-test test/f32-gemm-minmax.cc test/f32-gemm-minmax-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gemm-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gemm-minmax-test COMMAND f32-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-gemm-goi-minmax-test test/f32-gemm-goi-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-goi-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gemm-goi-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gemm-goi-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gemm-goi-minmax-test COMMAND f32-gemm-goi-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-qc8w-gemm-test test/f32-qc8w-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qc8w-gemm-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-qc8w-gemm-test COMMAND f32-qc8w-gemm-test) |
|
|
|
ADD_EXECUTABLE(f32-qc8w-gemm-relu-test test/f32-qc8w-gemm-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qc8w-gemm-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-relu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-relu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-qc8w-gemm-relu-test COMMAND f32-qc8w-gemm-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-qc8w-gemm-minmax-test test/f32-qc8w-gemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qc8w-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-qc8w-gemm-minmax-test COMMAND f32-qc8w-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-qc4w-gemm-minmax-test test/f32-qc4w-gemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qc4w-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-qc4w-gemm-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qc4w-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-qc4w-gemm-minmax-test COMMAND f32-qc4w-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-gemm-jit-test test/f32-gemm-jit.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-jit-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gemm-jit-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gemm-jit-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gemm-jit-test COMMAND f32-gemm-jit-test) |
|
|
|
ADD_EXECUTABLE(f32-gemminc-minmax-test test/f32-gemminc-minmax.cc test/f32-gemminc-minmax-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemminc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-gemminc-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-gemminc-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-gemminc-minmax-test COMMAND f32-gemminc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-ibilinear-test test/f32-ibilinear.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-ibilinear-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-ibilinear-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-ibilinear-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-ibilinear-test COMMAND f32-ibilinear-test) |
|
|
|
ADD_EXECUTABLE(f32-ibilinear-chw-test test/f32-ibilinear-chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-ibilinear-chw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-ibilinear-chw-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-ibilinear-chw-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-ibilinear-chw-test COMMAND f32-ibilinear-chw-test) |
|
|
|
ADD_EXECUTABLE(f32-igemm-test test/f32-igemm.cc test/f32-igemm-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-igemm-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-igemm-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-igemm-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-igemm-test COMMAND f32-igemm-test) |
|
|
|
ADD_EXECUTABLE(f32-igemm-relu-test test/f32-igemm-relu.cc test/f32-igemm-relu-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-igemm-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-igemm-relu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-igemm-relu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-igemm-relu-test COMMAND f32-igemm-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-igemm-minmax-test test/f32-igemm-minmax.cc test/f32-igemm-minmax-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-igemm-minmax-test PRIVATE include src test) |
|
IF(MINGW) |
|
# Work-around for "too many sections" error |
|
TARGET_COMPILE_OPTIONS(f32-igemm-minmax-test PRIVATE "$<$<NOT:$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>>:-Wa,-mbig-obj>") |
|
ENDIF() |
|
TARGET_LINK_LIBRARIES(f32-igemm-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-igemm-minmax-test PRIVATE jit gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-igemm-minmax-test COMMAND f32-igemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-igemm-jit-test test/f32-igemm-jit.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-igemm-jit-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-igemm-jit-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-igemm-jit-test PRIVATE jit gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-igemm-jit-test COMMAND f32-igemm-jit-test) |
|
|
|
|
|
ADD_EXECUTABLE(f32-maxpool-minmax-test test/f32-maxpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-maxpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-maxpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-maxpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-maxpool-minmax-test COMMAND f32-maxpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-pavgpool-minmax-test test/f32-pavgpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-pavgpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-pavgpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-pavgpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-pavgpool-minmax-test COMMAND f32-pavgpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-ppmm-minmax-test test/f32-ppmm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-ppmm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-ppmm-minmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-ppmm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-ppmm-minmax-test COMMAND f32-ppmm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-prelu-test test/f32-prelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-prelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-prelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-prelu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-prelu-test COMMAND f32-prelu-test) |
|
|
|
ADD_EXECUTABLE(f32-raddexpminusmax-test test/f32-raddexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-raddexpminusmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-raddexpminusmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-raddexpminusmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-raddexpminusmax-test COMMAND f32-raddexpminusmax-test) |
|
|
|
ADD_EXECUTABLE(f32-raddextexp-test test/f32-raddextexp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-raddextexp-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-raddextexp-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-raddextexp-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-raddextexp-test COMMAND f32-raddextexp-test) |
|
|
|
ADD_EXECUTABLE(f32-raddstoreexpminusmax-test test/f32-raddstoreexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-raddstoreexpminusmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-raddstoreexpminusmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-raddstoreexpminusmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-raddstoreexpminusmax-test COMMAND f32-raddstoreexpminusmax-test) |
|
|
|
ADD_EXECUTABLE(f32-rmax-test test/f32-rmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-rmax-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f32-rmax-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-rmax-test COMMAND f32-rmax-test) |
|
|
|
ADD_EXECUTABLE(f32-rmin-test test/f32-rmin.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rmin-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-rmin-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f32-rmin-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-rmin-test COMMAND f32-rmin-test) |
|
|
|
ADD_EXECUTABLE(f32-rsum-test test/f32-rsum.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rsum-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-rsum-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f32-rsum-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-rsum-test COMMAND f32-rsum-test) |
|
|
|
ADD_EXECUTABLE(f32-spmm-minmax-test test/f32-spmm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-spmm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-spmm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-spmm-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-spmm-minmax-test COMMAND f32-spmm-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vabs-test test/f32-vabs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vabs-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vabs-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vabs-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vabs-test COMMAND f32-vabs-test) |
|
|
|
ADD_EXECUTABLE(f32-vadd-test test/f32-vadd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vadd-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vadd-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vadd-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vadd-test COMMAND f32-vadd-test) |
|
|
|
ADD_EXECUTABLE(f32-vadd-minmax-test test/f32-vadd-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vadd-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vadd-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vadd-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vadd-minmax-test COMMAND f32-vadd-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vadd-relu-test test/f32-vadd-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vadd-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vadd-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vadd-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vadd-relu-test COMMAND f32-vadd-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vaddc-test test/f32-vaddc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vaddc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vaddc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vaddc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vaddc-test COMMAND f32-vaddc-test) |
|
|
|
ADD_EXECUTABLE(f32-vaddc-minmax-test test/f32-vaddc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vaddc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vaddc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vaddc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vaddc-minmax-test COMMAND f32-vaddc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vaddc-relu-test test/f32-vaddc-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vaddc-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vaddc-relu-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f32-vaddc-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vaddc-relu-test COMMAND f32-vaddc-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vclamp-test test/f32-vclamp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vclamp-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vclamp-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vclamp-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vclamp-test COMMAND f32-vclamp-test) |
|
|
|
ADD_EXECUTABLE(f32-vcmul-test test/f32-vcmul.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vcmul-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vcmul-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vcmul-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vcmul-test COMMAND f32-vcmul-test) |
|
|
|
ADD_EXECUTABLE(f32-vhswish-test test/f32-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vhswish-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vhswish-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vhswish-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vhswish-test COMMAND f32-vhswish-test) |
|
|
|
ADD_EXECUTABLE(f32-vdiv-test test/f32-vdiv.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vdiv-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vdiv-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vdiv-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vdiv-test COMMAND f32-vdiv-test) |
|
|
|
ADD_EXECUTABLE(f32-vdiv-minmax-test test/f32-vdiv-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vdiv-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vdiv-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vdiv-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vdiv-minmax-test COMMAND f32-vdiv-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vdiv-relu-test test/f32-vdiv-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vdiv-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vdiv-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vdiv-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vdiv-relu-test COMMAND f32-vdiv-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vdivc-test test/f32-vdivc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vdivc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vdivc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vdivc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vdivc-test COMMAND f32-vdivc-test) |
|
|
|
ADD_EXECUTABLE(f32-vdivc-minmax-test test/f32-vdivc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vdivc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vdivc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vdivc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vdivc-minmax-test COMMAND f32-vdivc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vdivc-relu-test test/f32-vdivc-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vdivc-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vdivc-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vdivc-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vdivc-relu-test COMMAND f32-vdivc-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vrdivc-test test/f32-vrdivc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrdivc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrdivc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrdivc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vrdivc-test COMMAND f32-vrdivc-test) |
|
|
|
ADD_EXECUTABLE(f32-vrdivc-minmax-test test/f32-vrdivc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrdivc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrdivc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrdivc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vrdivc-minmax-test COMMAND f32-vrdivc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vrdivc-relu-test test/f32-vrdivc-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrdivc-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrdivc-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrdivc-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vrdivc-relu-test COMMAND f32-vrdivc-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-velu-test test/f32-velu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-velu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-velu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-velu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-velu-test COMMAND f32-velu-test) |
|
|
|
ADD_EXECUTABLE(f32-vlrelu-test test/f32-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vlrelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vlrelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vlrelu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vlrelu-test COMMAND f32-vlrelu-test) |
|
|
|
ADD_EXECUTABLE(f32-vmax-test test/f32-vmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmax-test COMMAND f32-vmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vmaxc-test test/f32-vmaxc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmaxc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmaxc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmaxc-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmaxc-test COMMAND f32-vmaxc-test) |
|
|
|
ADD_EXECUTABLE(f32-vmin-test test/f32-vmin.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmin-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmin-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmin-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmin-test COMMAND f32-vmin-test) |
|
|
|
ADD_EXECUTABLE(f32-vminc-test test/f32-vminc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vminc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vminc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vminc-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vminc-test COMMAND f32-vminc-test) |
|
|
|
ADD_EXECUTABLE(f32-vmul-test test/f32-vmul.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmul-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmul-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmul-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmul-test COMMAND f32-vmul-test) |
|
|
|
ADD_EXECUTABLE(f32-vmul-minmax-test test/f32-vmul-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmul-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmul-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmul-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmul-minmax-test COMMAND f32-vmul-minmax-test microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vmul-relu-test test/f32-vmul-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmul-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmul-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmul-relu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmul-relu-test COMMAND f32-vmul-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vmulc-test test/f32-vmulc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmulc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmulc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmulc-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmulc-test COMMAND f32-vmulc-test) |
|
|
|
ADD_EXECUTABLE(f32-vmulc-minmax-test test/f32-vmulc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmulc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmulc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmulc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmulc-minmax-test COMMAND f32-vmulc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vmulc-relu-test test/f32-vmulc-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmulc-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmulc-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmulc-relu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vmulc-relu-test COMMAND f32-vmulc-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vmulcaddc-minmax-test test/f32-vmulcaddc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vmulcaddc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vmulcaddc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vmulcaddc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME f32-vmulcaddc-minmax-test COMMAND f32-vmulcaddc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vneg-test test/f32-vneg.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vneg-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vneg-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vneg-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vneg-test COMMAND f32-vneg-test) |
|
|
|
ADD_EXECUTABLE(f32-vrelu-test test/f32-vrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrelu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vrelu-test COMMAND f32-vrelu-test) |
|
|
|
ADD_EXECUTABLE(f32-vrndne-test test/f32-vrndne.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrndne-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrndne-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrndne-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vrndne-test COMMAND f32-vrndne-test) |
|
|
|
ADD_EXECUTABLE(f32-vrndz-test test/f32-vrndz.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrndz-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrndz-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrndz-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vrndz-test COMMAND f32-vrndz-test) |
|
|
|
ADD_EXECUTABLE(f32-vrndu-test test/f32-vrndu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrndu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrndu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrndu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vrndu-test COMMAND f32-vrndu-test) |
|
|
|
ADD_EXECUTABLE(f32-vrndd-test test/f32-vrndd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrndd-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrndd-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrndd-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vrndd-test COMMAND f32-vrndd-test) |
|
|
|
ADD_EXECUTABLE(f32-vscaleexpminusmax-test test/f32-vscaleexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vscaleexpminusmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vscaleexpminusmax-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vscaleexpminusmax-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vscaleexpminusmax-test COMMAND f32-vscaleexpminusmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vscaleextexp-test test/f32-vscaleextexp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vscaleextexp-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vscaleextexp-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vscaleextexp-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vscaleextexp-test COMMAND f32-vscaleextexp-test) |
|
|
|
ADD_EXECUTABLE(f32-vsigmoid-test test/f32-vsigmoid.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsigmoid-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsigmoid-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsigmoid-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsigmoid-test COMMAND f32-vsigmoid-test) |
|
|
|
ADD_EXECUTABLE(f32-vsqr-test test/f32-vsqr.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsqr-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsqr-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsqr-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsqr-test COMMAND f32-vsqr-test) |
|
|
|
ADD_EXECUTABLE(f32-vsqrdiff-test test/f32-vsqrdiff.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsqrdiff-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsqrdiff-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsqrdiff-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsqrdiff-test COMMAND f32-vsqrdiff-test) |
|
|
|
ADD_EXECUTABLE(f32-vsqrdiffc-test test/f32-vsqrdiffc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsqrdiffc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsqrdiffc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsqrdiffc-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsqrdiffc-test COMMAND f32-vsqrdiffc-test) |
|
|
|
ADD_EXECUTABLE(f32-vsqrt-test test/f32-vsqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsqrt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsqrt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsqrt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsqrt-test COMMAND f32-vsqrt-test) |
|
|
|
ADD_EXECUTABLE(f32-vsub-test test/f32-vsub.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsub-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsub-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsub-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vsub-test COMMAND f32-vsub-test) |
|
|
|
ADD_EXECUTABLE(f32-vsub-minmax-test test/f32-vsub-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsub-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsub-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsub-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsub-minmax-test COMMAND f32-vsub-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vsub-relu-test test/f32-vsub-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsub-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsub-relu-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(f32-vsub-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vsub-relu-test COMMAND f32-vsub-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vsubc-test test/f32-vsubc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsubc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsubc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsubc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vsubc-test COMMAND f32-vsubc-test) |
|
|
|
ADD_EXECUTABLE(f32-vsubc-minmax-test test/f32-vsubc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsubc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsubc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsubc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vsubc-minmax-test COMMAND f32-vsubc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vsubc-relu-test test/f32-vsubc-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsubc-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vsubc-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vsubc-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vsubc-relu-test COMMAND f32-vsubc-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vrsubc-test test/f32-vrsubc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrsubc-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrsubc-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrsubc-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vrsubc-test COMMAND f32-vrsubc-test) |
|
|
|
ADD_EXECUTABLE(f32-vrsubc-minmax-test test/f32-vrsubc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrsubc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrsubc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrsubc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vrsubc-minmax-test COMMAND f32-vrsubc-minmax-test) |
|
|
|
ADD_EXECUTABLE(f32-vrsubc-relu-test test/f32-vrsubc-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrsubc-relu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vrsubc-relu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vrsubc-relu-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME f32-vrsubc-relu-test COMMAND f32-vrsubc-relu-test) |
|
|
|
ADD_EXECUTABLE(f32-vtanh-test test/f32-vtanh.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vtanh-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(f32-vtanh-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-vtanh-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME f32-vtanh-test COMMAND f32-vtanh-test) |
|
|
|
ADD_EXECUTABLE(qd8-f32-qc8w-gemm-minmax-test test/qd8-f32-qc8w-gemm-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qd8-f32-qc8w-gemm-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qd8-f32-qc8w-gemm-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qd8-f32-qc8w-gemm-minmax-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qd8-f32-qc8w-gemm-minmax-test COMMAND qd8-f32-qc8w-gemm-minmax-test) |
|
|
|
ADD_EXECUTABLE(qs8-qc8w-dwconv-minmax-multipass-fp32-test test/qs8-qc8w-dwconv-minmax-multipass-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-qc8w-dwconv-minmax-multipass-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-dwconv-minmax-multipass-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-dwconv-minmax-multipass-fp32-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qs8-qc8w-dwconv-minmax-multipass-fp32-test COMMAND qs8-qc8w-dwconv-minmax-multipass-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-qc8w-dwconv-minmax-unipass-fp32-test test/qs8-qc8w-dwconv-minmax-unipass-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-qc8w-dwconv-minmax-unipass-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-dwconv-minmax-unipass-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-dwconv-minmax-unipass-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qs8-qc8w-dwconv-minmax-unipass-fp32-test COMMAND qs8-qc8w-dwconv-minmax-unipass-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-qc8w-gemm-jit-fp32-test test/qs8-qc8w-gemm-jit-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-qc8w-gemm-jit-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-gemm-jit-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-gemm-jit-fp32-test PRIVATE jit gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-qc8w-gemm-jit-fp32-test COMMAND qs8-qc8w-gemm-jit-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-qc8w-gemm-minmax-fp32-test test/qs8-qc8w-gemm-minmax-fp32.cc test/qs8-qc8w-gemm-minmax-fp32-2.cc test/qs8-qc8w-gemm-minmax-fp32-3.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-qc8w-gemm-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-gemm-minmax-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-gemm-minmax-fp32-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-qc8w-gemm-minmax-fp32-test COMMAND qs8-qc8w-gemm-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-qc8w-igemm-jit-fp32-test test/qs8-qc8w-igemm-jit-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-qc8w-igemm-jit-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-igemm-jit-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-igemm-jit-fp32-test PRIVATE jit gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-qc8w-igemm-jit-fp32-test COMMAND qs8-qc8w-igemm-jit-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-qc8w-igemm-minmax-fp32-test test/qs8-qc8w-igemm-minmax-fp32.cc test/qs8-qc8w-igemm-minmax-fp32-2.cc test/qs8-qc8w-igemm-minmax-fp32-3.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-qc8w-igemm-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-igemm-minmax-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-qc8w-igemm-minmax-fp32-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-qc8w-igemm-minmax-fp32-test COMMAND qs8-qc8w-igemm-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-dwconv-minmax-multipass-fp32-test test/qs8-dwconv-minmax-multipass-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-dwconv-minmax-multipass-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-multipass-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-multipass-fp32-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qs8-dwconv-minmax-multipass-fp32-test COMMAND qs8-dwconv-minmax-multipass-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-dwconv-minmax-multipass-rndnu-test test/qs8-dwconv-minmax-multipass-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-dwconv-minmax-multipass-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-multipass-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-multipass-rndnu-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qs8-dwconv-minmax-multipass-rndnu-test COMMAND qs8-dwconv-minmax-multipass-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-dwconv-minmax-unipass-fp32-test test/qs8-dwconv-minmax-unipass-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-dwconv-minmax-unipass-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-unipass-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-unipass-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qs8-dwconv-minmax-unipass-fp32-test COMMAND qs8-dwconv-minmax-unipass-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-dwconv-minmax-unipass-rndnu-test test/qs8-dwconv-minmax-unipass-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-dwconv-minmax-unipass-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-unipass-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-minmax-unipass-rndnu-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qs8-dwconv-minmax-unipass-rndnu-test COMMAND qs8-dwconv-minmax-unipass-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-f32-vcvt-test test/f32-f16-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-f32-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-f32-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-f32-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-f32-vcvt-test COMMAND qs8-f32-vcvt-test) |
|
|
|
ADD_EXECUTABLE(qs8-gavgpool-minmax-fp32-test test/qs8-gavgpool-minmax-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gavgpool-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-gavgpool-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-gavgpool-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-gavgpool-minmax-fp32-test COMMAND qs8-gavgpool-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-gavgpool-minmax-rndnu-test test/qs8-gavgpool-minmax-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gavgpool-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-gavgpool-minmax-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(qs8-gavgpool-minmax-rndnu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-gavgpool-minmax-rndnu-test COMMAND qs8-gavgpool-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-gemm-minmax-fp32-test test/qs8-gemm-minmax-fp32.cc test/qs8-gemm-minmax-fp32-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gemm-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-minmax-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-minmax-fp32-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-gemm-minmax-fp32-test COMMAND qs8-gemm-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-gemm-jit-rndnu-test test/qs8-gemm-jit-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gemm-jit-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-jit-rndnu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-jit-rndnu-test PRIVATE jit gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-gemm-jit-rndnu-test COMMAND qs8-gemm-jit-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-gemm-minmax-rndnu-test test/qs8-gemm-minmax-rndnu.cc test/qs8-gemm-minmax-rndnu-2.cc test/qs8-gemm-minmax-rndnu-3.cc test/qs8-gemm-minmax-rndnu-4.cc test/qs8-gemm-minmax-rndnu-5.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gemm-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-minmax-rndnu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-minmax-rndnu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-gemm-minmax-rndnu-test COMMAND qs8-gemm-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-igemm-minmax-fp32-test test/qs8-igemm-minmax-fp32.cc test/qs8-igemm-minmax-fp32-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-igemm-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-igemm-minmax-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-igemm-minmax-fp32-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-igemm-minmax-fp32-test COMMAND qs8-igemm-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-igemm-jit-rndnu-test test/qs8-igemm-jit-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-igemm-jit-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-igemm-jit-rndnu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-igemm-jit-rndnu-test PRIVATE jit gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-igemm-jit-rndnu-test COMMAND qs8-igemm-jit-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-igemm-minmax-rndnu-test test/qs8-igemm-minmax-rndnu.cc test/qs8-igemm-minmax-rndnu-2.cc test/qs8-igemm-minmax-rndnu-3.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-igemm-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-igemm-minmax-rndnu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-igemm-minmax-rndnu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-igemm-minmax-rndnu-test COMMAND qs8-igemm-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qs8-requantization-test test/qs8-requantization.cc) |
|
SET_TARGET_PROPERTIES(qs8-requantization-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-requantization-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-requantization-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-requantization-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME qs8-requantization-test COMMAND qs8-requantization-test) |
|
|
|
ADD_EXECUTABLE(qs8-vadd-minmax-test test/qs8-vadd-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vadd-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vadd-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vadd-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vadd-minmax-test COMMAND qs8-vadd-minmax-test) |
|
|
|
ADD_EXECUTABLE(qs8-vaddc-minmax-test test/qs8-vaddc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vaddc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vaddc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vaddc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vaddc-minmax-test COMMAND qs8-vaddc-minmax-test) |
|
|
|
ADD_EXECUTABLE(qs8-vcvt-test test/qs8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vcvt-test COMMAND qs8-vcvt-test) |
|
|
|
ADD_EXECUTABLE(qs16-qs8-vcvt-test test/qs16-qs8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs16-qs8-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs16-qs8-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs16-qs8-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs16-qs8-vcvt-test COMMAND qs16-qs8-vcvt-test) |
|
|
|
ADD_EXECUTABLE(qs8-vhswish-test test/qs8-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vhswish-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vhswish-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vhswish-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vhswish-test COMMAND qs8-vhswish-test) |
|
|
|
ADD_EXECUTABLE(qs8-vlrelu-test test/qs8-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vlrelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vlrelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vlrelu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vlrelu-test COMMAND qs8-vlrelu-test) |
|
|
|
ADD_EXECUTABLE(qs8-vmul-minmax-fp32-test test/qs8-vmul-minmax-fp32.cc) |
|
SET_TARGET_PROPERTIES(qs8-vmul-minmax-fp32-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vmul-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vmul-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vmul-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vmul-minmax-fp32-test COMMAND qs8-vmul-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qs8-vmulc-minmax-fp32-test test/qs8-vmulc-minmax-fp32.cc) |
|
SET_TARGET_PROPERTIES(qs8-vmulc-minmax-fp32-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vmulc-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qs8-vmulc-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qs8-vmulc-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qs8-vmulc-minmax-fp32-test COMMAND qs8-vmulc-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-avgpool-minmax-fp32-test test/qu8-avgpool-minmax-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-avgpool-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-avgpool-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-avgpool-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-avgpool-minmax-fp32-test COMMAND qu8-avgpool-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-dwconv-minmax-multipass-fp32-test test/qu8-dwconv-minmax-multipass-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-dwconv-minmax-multipass-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-multipass-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-multipass-fp32-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qu8-dwconv-minmax-multipass-fp32-test COMMAND qu8-dwconv-minmax-multipass-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-dwconv-minmax-multipass-rndnu-test test/qu8-dwconv-minmax-multipass-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-dwconv-minmax-multipass-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-multipass-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-multipass-rndnu-test PRIVATE hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qu8-dwconv-minmax-multipass-rndnu-test COMMAND qu8-dwconv-minmax-multipass-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qu8-dwconv-minmax-unipass-fp32-test test/qu8-dwconv-minmax-unipass-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-dwconv-minmax-unipass-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-unipass-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-unipass-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qu8-dwconv-minmax-unipass-fp32-test COMMAND qu8-dwconv-minmax-unipass-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-dwconv-minmax-unipass-rndnu-test test/qu8-dwconv-minmax-unipass-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-dwconv-minmax-unipass-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-unipass-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-minmax-unipass-rndnu-test PRIVATE hardware-config logging microkernels-all microparams-init packing) |
|
ADD_TEST(NAME qu8-dwconv-minmax-unipass-rndnu-test COMMAND qu8-dwconv-minmax-unipass-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qu8-f32-vcvt-test test/f32-f16-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-f32-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-f32-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-f32-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-f32-vcvt-test COMMAND qu8-f32-vcvt-test) |
|
|
|
ADD_EXECUTABLE(qu8-gavgpool-minmax-fp32-test test/qu8-gavgpool-minmax-fp32.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-gavgpool-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-gavgpool-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-gavgpool-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-gavgpool-minmax-fp32-test COMMAND qu8-gavgpool-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-gavgpool-minmax-rndnu-test test/qu8-gavgpool-minmax-rndnu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-gavgpool-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-gavgpool-minmax-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-gavgpool-minmax-rndnu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-gavgpool-minmax-rndnu-test COMMAND qu8-gavgpool-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qu8-gemm-minmax-fp32-test test/qu8-gemm-minmax-fp32.cc test/qu8-gemm-minmax-fp32-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-gemm-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-minmax-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-minmax-fp32-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-gemm-minmax-fp32-test COMMAND qu8-gemm-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-gemm-minmax-rndnu-test test/qu8-gemm-minmax-rndnu.cc test/qu8-gemm-minmax-rndnu-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-gemm-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-minmax-rndnu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-minmax-rndnu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-gemm-minmax-rndnu-test COMMAND qu8-gemm-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qu8-igemm-minmax-fp32-test test/qu8-igemm-minmax-fp32.cc test/qu8-igemm-minmax-fp32-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-igemm-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-igemm-minmax-fp32-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-igemm-minmax-fp32-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-igemm-minmax-fp32-test COMMAND qu8-igemm-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-igemm-minmax-rndnu-test test/qu8-igemm-minmax-rndnu.cc test/qu8-igemm-minmax-rndnu-2.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-igemm-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-igemm-minmax-rndnu-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-igemm-minmax-rndnu-test PRIVATE gemm-microkernel-tester hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-igemm-minmax-rndnu-test COMMAND qu8-igemm-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qu8-requantization-test test/qu8-requantization.cc) |
|
SET_TARGET_PROPERTIES(qu8-requantization-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-requantization-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-requantization-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-requantization-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME qu8-requantization-test COMMAND qu8-requantization-test) |
|
|
|
ADD_EXECUTABLE(qu8-vadd-minmax-test test/qu8-vadd-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vadd-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vadd-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(qu8-vadd-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vadd-minmax-test COMMAND qu8-vadd-minmax-test) |
|
|
|
ADD_EXECUTABLE(qu8-vaddc-minmax-test test/qu8-vaddc-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vaddc-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vaddc-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vaddc-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vaddc-minmax-test COMMAND qu8-vaddc-minmax-test) |
|
|
|
ADD_EXECUTABLE(qu8-vcvt-test test/qu8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vcvt-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vcvt-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vcvt-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vcvt-test COMMAND qu8-vcvt-test) |
|
|
|
ADD_EXECUTABLE(qu8-vhswish-test test/qu8-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vhswish-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vhswish-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vhswish-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vhswish-test COMMAND qu8-vhswish-test) |
|
|
|
ADD_EXECUTABLE(qu8-vlrelu-test test/qu8-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vlrelu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vlrelu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vlrelu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vlrelu-test COMMAND qu8-vlrelu-test) |
|
|
|
ADD_EXECUTABLE(qu8-vmul-minmax-fp32-test test/qu8-vmul-minmax-fp32.cc) |
|
SET_TARGET_PROPERTIES(qu8-vmul-minmax-fp32-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vmul-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vmul-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vmul-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vmul-minmax-fp32-test COMMAND qu8-vmul-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-vmul-minmax-rndnu-test test/qu8-vmul-minmax-rndnu.cc) |
|
SET_TARGET_PROPERTIES(qu8-vmul-minmax-rndnu-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vmul-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vmul-minmax-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vmul-minmax-rndnu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vmul-minmax-rndnu-test COMMAND qu8-vmul-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(qu8-vmulc-minmax-fp32-test test/qu8-vmulc-minmax-fp32.cc) |
|
SET_TARGET_PROPERTIES(qu8-vmulc-minmax-fp32-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vmulc-minmax-fp32-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vmulc-minmax-fp32-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vmulc-minmax-fp32-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vmulc-minmax-fp32-test COMMAND qu8-vmulc-minmax-fp32-test) |
|
|
|
ADD_EXECUTABLE(qu8-vmulc-minmax-rndnu-test test/qu8-vmulc-minmax-rndnu.cc) |
|
SET_TARGET_PROPERTIES(qu8-vmulc-minmax-rndnu-test PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vmulc-minmax-rndnu-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(qu8-vmulc-minmax-rndnu-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(qu8-vmulc-minmax-rndnu-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME qu8-vmulc-minmax-rndnu-test COMMAND qu8-vmulc-minmax-rndnu-test) |
|
|
|
ADD_EXECUTABLE(s16-rmaxabs-test test/s16-rmaxabs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s16-rmaxabs-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(s16-rmaxabs-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(s16-rmaxabs-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME s16-rmaxabs-test COMMAND s16-rmaxabs-test) |
|
|
|
ADD_EXECUTABLE(s16-window-test test/s16-window.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s16-window-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(s16-window-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(s16-window-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME s16-window-test COMMAND s16-window-test) |
|
|
|
ADD_EXECUTABLE(u32-filterbank-accumulate-test test/u32-filterbank-accumulate.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-filterbank-accumulate-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-accumulate-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-accumulate-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME u32-filterbank-accumulate-test COMMAND u32-filterbank-accumulate-test) |
|
|
|
ADD_EXECUTABLE(u32-filterbank-subtract-test test/u32-filterbank-subtract.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-filterbank-subtract-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-subtract-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-subtract-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME u32-filterbank-subtract-test COMMAND u32-filterbank-subtract-test) |
|
|
|
ADD_EXECUTABLE(u32-vlog-test test/u32-vlog.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-vlog-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u32-vlog-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u32-vlog-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME u32-vlog-test COMMAND u32-vlog-test) |
|
|
|
ADD_EXECUTABLE(i16-vlshift-test test/i16-vlshift.cc) |
|
TARGET_INCLUDE_DIRECTORIES(i16-vlshift-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(i16-vlshift-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(i16-vlshift-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME i16-vlshift-test COMMAND i16-vlshift-test) |
|
|
|
ADD_EXECUTABLE(cs16-vsquareabs-test test/cs16-vsquareabs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(cs16-vsquareabs-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(cs16-vsquareabs-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(cs16-vsquareabs-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME cs16-vsquareabs-test COMMAND cs16-vsquareabs-test) |
|
|
|
ADD_EXECUTABLE(cs16-bfly4-test test/cs16-bfly4.cc) |
|
TARGET_INCLUDE_DIRECTORIES(cs16-bfly4-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(cs16-bfly4-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(cs16-bfly4-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME cs16-bfly4-test COMMAND cs16-bfly4-test) |
|
|
|
ADD_EXECUTABLE(cs16-fftr-test test/cs16-fftr.cc) |
|
TARGET_INCLUDE_DIRECTORIES(cs16-fftr-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(cs16-fftr-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(cs16-fftr-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME cs16-fftr-test COMMAND cs16-fftr-test) |
|
|
|
ADD_EXECUTABLE(s8-ibilinear-test test/s8-ibilinear.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s8-ibilinear-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(s8-ibilinear-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(s8-ibilinear-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME s8-ibilinear-test COMMAND s8-ibilinear-test) |
|
|
|
ADD_EXECUTABLE(s8-maxpool-minmax-test test/s8-maxpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s8-maxpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(s8-maxpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(s8-maxpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME s8-maxpool-minmax-test COMMAND s8-maxpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(s8-vclamp-test test/s8-vclamp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s8-vclamp-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(s8-vclamp-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(s8-vclamp-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME s8-vclamp-test COMMAND s8-vclamp-test) |
|
|
|
ADD_EXECUTABLE(u8-lut32norm-test test/u8-lut32norm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u8-lut32norm-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u8-lut32norm-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u8-lut32norm-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME u8-lut32norm-test COMMAND u8-lut32norm-test) |
|
|
|
ADD_EXECUTABLE(u8-ibilinear-test test/u8-ibilinear.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u8-ibilinear-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u8-ibilinear-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u8-ibilinear-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME u8-ibilinear-test COMMAND u8-ibilinear-test) |
|
|
|
ADD_EXECUTABLE(u8-maxpool-minmax-test test/u8-maxpool-minmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u8-maxpool-minmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u8-maxpool-minmax-test PRIVATE fp16 pthreadpool gtest gtest_main microparams-init) |
|
TARGET_LINK_LIBRARIES(u8-maxpool-minmax-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME u8-maxpool-minmax-test COMMAND u8-maxpool-minmax-test) |
|
|
|
ADD_EXECUTABLE(u8-rmax-test test/u8-rmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u8-rmax-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u8-rmax-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u8-rmax-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME u8-rmax-test COMMAND u8-rmax-test) |
|
|
|
ADD_EXECUTABLE(u8-vclamp-test test/u8-vclamp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u8-vclamp-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(u8-vclamp-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u8-vclamp-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME u8-vclamp-test COMMAND u8-vclamp-test) |
|
|
|
ADD_EXECUTABLE(x8-transpose-test test/x8-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-transpose-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x8-transpose-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x8-transpose-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME x8-transpose-test COMMAND x8-transpose-test) |
|
|
|
ADD_EXECUTABLE(x16-transpose-test test/x16-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x16-transpose-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x16-transpose-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x16-transpose-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME x16-transpose-test COMMAND x16-transpose-test) |
|
|
|
ADD_EXECUTABLE(x24-transpose-test test/x24-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x24-transpose-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x24-transpose-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x24-transpose-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME x24-transpose-test COMMAND x24-transpose-test) |
|
|
|
ADD_EXECUTABLE(x32-packb-test test/x32-packb.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-packb-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-packb-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-packb-test PRIVATE hardware-config logging microkernels-all packing) |
|
ADD_TEST(NAME x32-packb-test COMMAND x32-packb-test) |
|
|
|
ADD_EXECUTABLE(x8-packw-test test/x8-packw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-packw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x8-packw-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x8-packw-test PRIVATE hardware-config logging microkernels-all packing) |
|
ADD_TEST(NAME x8-packw-test COMMAND x8-packw-test) |
|
|
|
ADD_EXECUTABLE(x16-packw-test test/x16-packw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x16-packw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x16-packw-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x16-packw-test PRIVATE hardware-config logging microkernels-all packing) |
|
ADD_TEST(NAME x16-packw-test COMMAND x16-packw-test) |
|
|
|
ADD_EXECUTABLE(x32-packw-test test/x32-packw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-packw-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-packw-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-packw-test PRIVATE hardware-config logging microkernels-all packing) |
|
ADD_TEST(NAME x32-packw-test COMMAND x32-packw-test) |
|
|
|
ADD_EXECUTABLE(x32-packx-test test/x32-packx.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-packx-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-packx-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-packx-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME x32-packx-test COMMAND x32-packx-test) |
|
|
|
ADD_EXECUTABLE(x32-unpool-test test/x32-unpool.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-unpool-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-unpool-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-unpool-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME x32-unpool-test COMMAND x32-unpool-test) |
|
|
|
ADD_EXECUTABLE(x32-transpose-test test/x32-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-transpose-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-transpose-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-transpose-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME x32-transpose-test COMMAND x32-transpose-test) |
|
|
|
ADD_EXECUTABLE(x32-zerob-test test/x32-zerob.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-zerob-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-zerob-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-zerob-test PRIVATE hardware-config logging microkernels-all packing) |
|
ADD_TEST(NAME x32-zerob-test COMMAND x32-zerob-test) |
|
|
|
ADD_EXECUTABLE(x32-zip-test test/x32-zip.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-zip-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x32-zip-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x32-zip-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME x32-zip-test COMMAND x32-zip-test) |
|
|
|
ADD_EXECUTABLE(x64-transpose-test test/x64-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x64-transpose-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x64-transpose-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x64-transpose-test PRIVATE hardware-config logging microkernels-all microparams-init) |
|
ADD_TEST(NAME x64-transpose-test COMMAND x64-transpose-test) |
|
|
|
ADD_EXECUTABLE(x8-lut-test test/x8-lut.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-lut-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x8-lut-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x8-lut-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME x8-lut-test COMMAND x8-lut-test) |
|
|
|
ADD_EXECUTABLE(x8-zip-test test/x8-zip.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-zip-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(x8-zip-test PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(x8-zip-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME x8-zip-test COMMAND x8-zip-test) |
|
|
|
ADD_EXECUTABLE(xx-fill-test test/xx-fill.cc) |
|
TARGET_INCLUDE_DIRECTORIES(xx-fill-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(xx-fill-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(xx-fill-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME xx-fill-test COMMAND xx-fill-test) |
|
|
|
ADD_EXECUTABLE(xx-pad-test test/xx-pad.cc) |
|
TARGET_INCLUDE_DIRECTORIES(xx-pad-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(xx-pad-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(xx-pad-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME xx-pad-test COMMAND xx-pad-test) |
|
|
|
ADD_EXECUTABLE(xx-transposev-test test/xx-transposev.cc) |
|
TARGET_INCLUDE_DIRECTORIES(xx-transposev-test PRIVATE include src test) |
|
TARGET_LINK_LIBRARIES(xx-transposev-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(xx-transposev-test PRIVATE hardware-config logging microkernels-all) |
|
ADD_TEST(NAME xx-transposev-test COMMAND xx-transposev-test) |
|
|
|
IF(XNNPACK_BUILD_LIBRARY) |
|
ADD_EXECUTABLE(jit-test test/jit.cc) |
|
TARGET_INCLUDE_DIRECTORIES(jit-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(jit-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(jit-test PRIVATE jit logging memory) |
|
|
|
ADD_EXECUTABLE(aarch32-assembler-test test/aarch32-assembler.cc) |
|
TARGET_INCLUDE_DIRECTORIES(aarch32-assembler-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(aarch32-assembler-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(aarch32-assembler-test PRIVATE jit logging memory microparams-init) |
|
|
|
ADD_EXECUTABLE(aarch64-assembler-test test/aarch64-assembler.cc) |
|
TARGET_INCLUDE_DIRECTORIES(aarch64-assembler-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(aarch64-assembler-test PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(aarch64-assembler-test PRIVATE jit logging memory microparams-init) |
|
|
|
ADD_EXECUTABLE(code-cache-test test/code-cache.cc) |
|
TARGET_INCLUDE_DIRECTORIES(code-cache-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(code-cache-test PRIVATE XNNPACK pthreadpool gtest gtest_main) |
|
|
|
ADD_EXECUTABLE(weights-cache-test test/weights-cache.cc) |
|
TARGET_INCLUDE_DIRECTORIES(weights-cache-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(weights-cache-test PRIVATE XNNPACK pthreadpool gtest gtest_main) |
|
|
|
ADD_EXECUTABLE(mutex-test test/mutex.cc) |
|
TARGET_INCLUDE_DIRECTORIES(mutex-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(mutex-test PRIVATE gtest gtest_main pthreadpool) |
|
TARGET_LINK_LIBRARIES(mutex-test PRIVATE logging mutex) |
|
|
|
ADD_EXECUTABLE(microkernel-utils-test test/microkernel-utils.cc) |
|
TARGET_INCLUDE_DIRECTORIES(microkernel-utils-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(microkernel-utils-test PRIVATE microkernel-utils gtest gtest_main pthreadpool) |
|
|
|
ADD_EXECUTABLE(operator-utils-test test/operator-utils.cc) |
|
TARGET_INCLUDE_DIRECTORIES(operator-utils-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(operator-utils-test PRIVATE XNNPACK gtest gtest_main pthreadpool) |
|
ENDIF() |
|
|
|
ADD_EXECUTABLE(packing-test test/packing.cc) |
|
TARGET_INCLUDE_DIRECTORIES(packing-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(packing-test PRIVATE fp16 gmock gtest gtest_main pthreadpool) |
|
TARGET_LINK_LIBRARIES(packing-test PRIVATE XNNPACK microkernel-utils operator-utils packing) |
|
|
|
ADD_EXECUTABLE(indirection-test test/indirection.cc) |
|
TARGET_INCLUDE_DIRECTORIES(indirection-test PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(indirection-test PRIVATE gtest gtest_main pthreadpool) |
|
TARGET_LINK_LIBRARIES(indirection-test PRIVATE XNNPACK indirection) |
|
ENDIF() |
|
|
|
# ---[ XNNPACK microbenchmarks |
|
IF(XNNPACK_BUILD_BENCHMARKS) |
|
# ---[ Build google benchmark |
|
IF(NOT TARGET benchmark) |
|
SET(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "") |
|
ADD_SUBDIRECTORY( |
|
"${GOOGLEBENCHMARK_SOURCE_DIR}" |
|
"${CONFU_DEPENDENCIES_BINARY_DIR}/googlebenchmark") |
|
ENDIF() |
|
|
|
ADD_LIBRARY(bench-utils STATIC bench/utils.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bench-utils PRIVATE .) |
|
TARGET_INCLUDE_DIRECTORIES(bench-utils PUBLIC include src) |
|
TARGET_LINK_LIBRARIES(bench-utils PRIVATE benchmark cpuinfo pthreadpool) |
|
TARGET_LINK_LIBRARIES(bench-utils PRIVATE hardware-config) |
|
IF(XNNPACK_BUILD_LIBRARY) |
|
TARGET_LINK_LIBRARIES(bench-utils PRIVATE logging memory) |
|
ENDIF() |
|
|
|
# ---[ Build accuracy microbenchmarks |
|
ADD_EXECUTABLE(f16-exp-ulp-eval eval/f16-exp-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-exp-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-exp-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-exp-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-expminus-ulp-eval eval/f16-expminus-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-expminus-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-expminus-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-expminus-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-expm1minus-ulp-eval eval/f16-expm1minus-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-expm1minus-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-expm1minus-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-expm1minus-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-sigmoid-ulp-eval eval/f16-sigmoid-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-sigmoid-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-sigmoid-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-sigmoid-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-sqrt-ulp-eval eval/f16-sqrt-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-sqrt-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-sqrt-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-sqrt-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-tanh-ulp-eval eval/f16-tanh-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-tanh-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-tanh-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-tanh-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-exp-ulp-eval eval/f32-exp-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-exp-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-exp-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-exp-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-expminus-ulp-eval eval/f32-expminus-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-expminus-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-expminus-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-expminus-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-expm1minus-ulp-eval eval/f32-expm1minus-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-expm1minus-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-expm1minus-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-expm1minus-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-extexp-ulp-eval eval/f32-extexp-ulp.cc) |
|
SET_TARGET_PROPERTIES(f32-extexp-ulp-eval PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(f32-extexp-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-extexp-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-extexp-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-sigmoid-ulp-eval eval/f32-sigmoid-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-sigmoid-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-sigmoid-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-sigmoid-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-sqrt-ulp-eval eval/f32-sqrt-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-sqrt-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-sqrt-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-sqrt-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-tanh-ulp-eval eval/f32-tanh-ulp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-tanh-ulp-eval PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-tanh-ulp-eval PRIVATE benchmark cpuinfo fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-tanh-ulp-eval PRIVATE bench-utils microkernels-all) |
|
|
|
# ---[ Build accuracy tests |
|
ADD_LIBRARY(math-evaluation-tester STATIC eval/math-evaluation-tester.cc) |
|
TARGET_INCLUDE_DIRECTORIES(math-evaluation-tester PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(math-evaluation-tester PRIVATE fp16 pthreadpool gtest) |
|
|
|
ADD_EXECUTABLE(f16-sqrt-eval eval/f16-sqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-sqrt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f16-sqrt-eval PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-sqrt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-tanh-eval eval/f16-tanh.cc) |
|
SET_TARGET_PROPERTIES(f16-tanh-eval PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(f16-tanh-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f16-tanh-eval PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-tanh-eval PRIVATE hardware-config logging math-evaluation-tester microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-f32-cvt-eval eval/f16-f32-cvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32-cvt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f16-f32-cvt-eval PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f16-f32-cvt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-f16-cvt-eval eval/f32-f16-cvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-f16-cvt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-f16-cvt-eval PRIVATE fp16 pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-f16-cvt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-qs8-cvt-eval eval/f32-qs8-cvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qs8-cvt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-qs8-cvt-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qs8-cvt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-qu8-cvt-eval eval/f32-qu8-cvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qu8-cvt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-qu8-cvt-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-qu8-cvt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-exp-eval eval/f32-exp.cc) |
|
SET_TARGET_PROPERTIES(f32-exp-eval PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(f32-exp-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-exp-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-exp-eval PRIVATE hardware-config logging math-evaluation-tester microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-expm1minus-eval eval/f32-expm1minus.cc) |
|
SET_TARGET_PROPERTIES(f32-expm1minus-eval PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(f32-expm1minus-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-expm1minus-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-expm1minus-eval PRIVATE hardware-config logging math-evaluation-tester microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-expminus-eval eval/f32-expminus.cc) |
|
SET_TARGET_PROPERTIES(f32-expminus-eval PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(f32-expminus-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-expminus-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-expminus-eval PRIVATE hardware-config logging math-evaluation-tester microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-roundne-eval eval/f32-roundne.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-roundne-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-roundne-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-roundne-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-roundd-eval eval/f32-roundd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-roundd-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-roundd-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-roundd-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-roundu-eval eval/f32-roundu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-roundu-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-roundu-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-roundu-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-roundz-eval eval/f32-roundz.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-roundz-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-roundz-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-roundz-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(f32-tanh-eval eval/f32-tanh.cc) |
|
SET_TARGET_PROPERTIES(f32-tanh-eval PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(f32-tanh-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(f32-tanh-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(f32-tanh-eval PRIVATE hardware-config logging math-evaluation-tester microkernels-all) |
|
|
|
ADD_EXECUTABLE(u32-sqrt-eval eval/u32-sqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-sqrt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(u32-sqrt-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u32-sqrt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
ADD_EXECUTABLE(u64-sqrt-eval eval/u64-sqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u64-sqrt-eval PRIVATE include src) |
|
TARGET_LINK_LIBRARIES(u64-sqrt-eval PRIVATE pthreadpool gtest gtest_main) |
|
TARGET_LINK_LIBRARIES(u64-sqrt-eval PRIVATE hardware-config logging microkernels-all) |
|
|
|
IF(XNNPACK_BUILD_LIBRARY) |
|
# ---[ Build end-to-end microbenchmarks |
|
ADD_LIBRARY(bench-models STATIC |
|
models/fp16-mobilenet-v1.cc |
|
models/fp16-mobilenet-v2.cc |
|
models/fp16-mobilenet-v3-large.cc |
|
models/fp16-mobilenet-v3-small.cc |
|
models/fp16-sparse-mobilenet-v1.cc |
|
models/fp16-sparse-mobilenet-v2.cc |
|
models/fp16-sparse-mobilenet-v3-large.cc |
|
models/fp16-sparse-mobilenet-v3-small.cc |
|
models/fp32-mobilenet-v1.cc |
|
models/fp32-mobilenet-v2.cc |
|
models/fp32-mobilenet-v3-large.cc |
|
models/fp32-mobilenet-v3-small.cc |
|
models/fp32-mobilenet-v3-small-fused.cc |
|
models/fp32-sparse-mobilenet-v1.cc |
|
models/fp32-sparse-mobilenet-v2.cc |
|
models/fp32-sparse-mobilenet-v3-large.cc |
|
models/fp32-sparse-mobilenet-v3-small.cc |
|
models/qs8-qc8w-mobilenet-v1.cc |
|
models/qs8-qc8w-mobilenet-v2.cc |
|
models/qs8-mobilenet-v1.cc |
|
models/qs8-mobilenet-v2.cc |
|
models/qu8-mobilenet-v1.cc |
|
models/qu8-mobilenet-v2.cc) |
|
SET_TARGET_PROPERTIES(bench-models PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(bench-models PRIVATE .) |
|
TARGET_LINK_LIBRARIES(bench-models PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(bench-models PRIVATE XNNPACK bench-utils) |
|
|
|
ADD_EXECUTABLE(end2end-bench bench/end2end.cc) |
|
TARGET_INCLUDE_DIRECTORIES(end2end-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(end2end-bench PRIVATE XNNPACK benchmark bench-models bench-utils) |
|
|
|
ADD_EXECUTABLE(f16-gemm-e2e-bench bench/f16-gemm-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gemm-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-gemm-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(f16-gemm-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-dwconv-e2e-bench bench/f16-dwconv-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-dwconv-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-dwconv-e2e-bench bench/f32-dwconv-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-e2e-bench PRIVATE benchmark) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-gemm-e2e-bench bench/f32-gemm-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(f32-gemm-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(f32-gemm-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-dwconv-e2e-bench bench/qs8-dwconv-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-dwconv-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-gemm-e2e-bench bench/qs8-gemm-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gemm-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-gemm-e2e-bench bench/qu8-gemm-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-gemm-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-dwconv-e2e-bench bench/qu8-dwconv-e2e.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-dwconv-e2e-bench PRIVATE . src) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-e2e-bench PRIVATE fp16 benchmark) |
|
TARGET_LINK_LIBRARIES(qu8-dwconv-e2e-bench PRIVATE XNNPACK bench-models bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
# ---[ Build operator-level microbenchmarks |
|
ADD_EXECUTABLE(abs-bench bench/abs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(abs-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(abs-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(average-pooling-bench bench/average-pooling.cc) |
|
TARGET_INCLUDE_DIRECTORIES(average-pooling-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(average-pooling-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(bankers-rounding-bench bench/bankers-rounding.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bankers-rounding-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(bankers-rounding-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(ceiling-bench bench/ceiling.cc) |
|
TARGET_INCLUDE_DIRECTORIES(ceiling-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(ceiling-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(channel-shuffle-bench bench/channel-shuffle.cc) |
|
TARGET_INCLUDE_DIRECTORIES(channel-shuffle-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(channel-shuffle-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(convert-bench bench/convert.cc) |
|
TARGET_INCLUDE_DIRECTORIES(convert-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(convert-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(convolution-bench bench/convolution.cc) |
|
TARGET_INCLUDE_DIRECTORIES(convolution-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(convolution-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(deconvolution-bench bench/deconvolution.cc) |
|
TARGET_INCLUDE_DIRECTORIES(deconvolution-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(deconvolution-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(elu-bench bench/elu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(elu-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(elu-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(floor-bench bench/floor.cc) |
|
TARGET_INCLUDE_DIRECTORIES(floor-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(floor-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(global-average-pooling-bench bench/global-average-pooling.cc) |
|
TARGET_INCLUDE_DIRECTORIES(global-average-pooling-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(global-average-pooling-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(hardswish-bench bench/hardswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(hardswish-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(hardswish-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(leaky-relu-bench bench/leaky-relu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(leaky-relu-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(leaky-relu-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(max-pooling-bench bench/max-pooling.cc) |
|
TARGET_INCLUDE_DIRECTORIES(max-pooling-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(max-pooling-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(negate-bench bench/negate.cc) |
|
TARGET_INCLUDE_DIRECTORIES(negate-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(negate-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(prelu-bench bench/prelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(prelu-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(prelu-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(sigmoid-bench bench/sigmoid.cc) |
|
TARGET_INCLUDE_DIRECTORIES(sigmoid-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(sigmoid-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(softmax-bench bench/softmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(softmax-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(softmax-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(square-bench bench/square.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(square-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(square-root-bench bench/square-root.cc) |
|
TARGET_INCLUDE_DIRECTORIES(square-root-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(square-root-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(truncation-bench bench/truncation.cc) |
|
TARGET_INCLUDE_DIRECTORIES(truncation-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(truncation-bench PRIVATE XNNPACK benchmark bench-utils) |
|
|
|
ADD_EXECUTABLE(tanh-bench bench/tanh.cc) |
|
TARGET_INCLUDE_DIRECTORIES(tanh-bench PRIVATE .) |
|
TARGET_LINK_LIBRARIES(tanh-bench PRIVATE XNNPACK fp16 benchmark bench-utils) |
|
ENDIF() |
|
|
|
# ---[ Build microkernel-level microbenchmarks |
|
ADD_EXECUTABLE(bf16-gemm-bench bench/bf16-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(bf16-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(bf16-gemm-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(bf16-gemm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-conv-hwc2chw-bench bench/f16-conv-hwc2chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-conv-hwc2chw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-conv-hwc2chw-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-conv-hwc2chw-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-dwconv-bench bench/f16-dwconv.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-dwconv-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-dwconv-bench PRIVATE bench-utils indirection hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-dwconv2d-chw-bench bench/f16-dwconv2d-chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-dwconv2d-chw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-dwconv2d-chw-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-dwconv2d-chw-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-gavgpool-cw-bench bench/f16-gavgpool-cw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gavgpool-cw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-gavgpool-cw-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-gavgpool-cw-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-f32acc-gemm-bench bench/f16-f32acc-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32acc-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-gemm-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-gemm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-gemm-bench bench/f16-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-gemm-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-gemm-bench PRIVATE bench-utils hardware-config jit logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-f32acc-igemm-bench bench/f16-f32acc-igemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32acc-igemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-igemm-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-igemm-bench PRIVATE bench-utils indirection hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-igemm-bench bench/f16-igemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-igemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-igemm-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-igemm-bench PRIVATE bench-utils hardware-config indirection jit logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f16-raddstoreexpminusmax-bench bench/f16-raddstoreexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-raddstoreexpminusmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-raddstoreexpminusmax-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-raddstoreexpminusmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-rsum-bench bench/f16-rsum.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-rsum-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-rsum-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-rsum-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-f32acc-rsum-bench bench/f16-f32acc-rsum.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32acc-rsum-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-rsum-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-f32acc-rsum-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-spmm-bench bench/f16-spmm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-spmm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-spmm-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-spmm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-velu-bench bench/f16-velu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-velu-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-velu-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-velu-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-vsigmoid-bench bench/f16-vsigmoid.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsigmoid-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-vsigmoid-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-vsigmoid-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-vsqrt-bench bench/f16-vsqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vsqrt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-vsqrt-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-vsqrt-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(f16-vtanh-bench bench/f16-vtanh.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-vtanh-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-vtanh-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-vtanh-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f16-f32-vcvt-bench bench/f16-f32-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f16-f32-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f16-f32-vcvt-bench PRIVATE benchmark fp16 pthreadpool) |
|
TARGET_LINK_LIBRARIES(f16-f32-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-bgemm-bench bench/f32-bgemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-bgemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-bgemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-bgemm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-conv-hwc-bench bench/f32-conv-hwc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-conv-hwc2chw-bench bench/f32-conv-hwc2chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-conv-hwc2chw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc2chw-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-conv-hwc2chw-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-dwconv-bench bench/f32-dwconv.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-dwconv-bench PRIVATE bench-utils indirection hardware-config logging microkernel-utils microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-dwconv2d-chw-bench bench/f32-dwconv2d-chw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-dwconv2d-chw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-dwconv2d-chw-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-dwconv2d-chw-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-f16-vcvt-bench bench/f32-f16-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-f16-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-f16-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-f16-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-gavgpool-cw-bench bench/f32-gavgpool-cw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gavgpool-cw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-gavgpool-cw-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-gavgpool-cw-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-gemm-bench bench/f32-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-gemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-gemm-bench PRIVATE jit bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-qc4w-gemm-bench bench/f32-qc4w-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qc4w-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-qc4w-gemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-qc4w-gemm-bench PRIVATE jit bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-qc8w-gemm-bench bench/f32-qc8w-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qc8w-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-qc8w-gemm-bench PRIVATE jit bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-igemm-bench bench/f32-igemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-igemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-igemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-igemm-bench PRIVATE jit bench-utils indirection hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-im2col-gemm-bench bench/f32-im2col-gemm.cc src/im2col.c) |
|
TARGET_INCLUDE_DIRECTORIES(f32-im2col-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-im2col-gemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-im2col-gemm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(f32-qs8-vcvt-bench bench/f32-qs8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qs8-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-qs8-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-qs8-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-qu8-vcvt-bench bench/f32-qu8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-qu8-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-qu8-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-qu8-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-raddstoreexpminusmax-bench bench/f32-raddstoreexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-raddstoreexpminusmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-raddstoreexpminusmax-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-raddstoreexpminusmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-raddexpminusmax-bench bench/f32-raddexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-raddexpminusmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-raddexpminusmax-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-raddexpminusmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-raddextexp-bench bench/f32-raddextexp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-raddextexp-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-raddextexp-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-raddextexp-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vscaleexpminusmax-bench bench/f32-vscaleexpminusmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vscaleexpminusmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vscaleexpminusmax-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vscaleexpminusmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vscaleextexp-bench bench/f32-vscaleextexp.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vscaleextexp-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vscaleextexp-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vscaleextexp-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-rmax-bench bench/f32-rmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-rmax-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-rmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-rminmax-bench bench/f32-rmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rminmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-rminmax-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-rminmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-rmin-bench bench/f32-rmin.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rmin-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-rmin-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-rmin-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-rsum-bench bench/f32-rsum.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-rsum-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-rsum-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-rsum-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-spmm-bench bench/f32-spmm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-spmm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-spmm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-spmm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-softmax-bench bench/f32-softmax.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-softmax-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-softmax-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-softmax-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vcmul-bench bench/f32-vcmul.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vcmul-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vcmul-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vcmul-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-velu-bench bench/f32-velu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-velu-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-velu-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-velu-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vhswish-bench bench/f32-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vhswish-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vhswish-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vhswish-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vlrelu-bench bench/f32-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vlrelu-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vlrelu-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vlrelu-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vrelu-bench bench/f32-vrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vrelu-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vrelu-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vrelu-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vsigmoid-bench bench/f32-vsigmoid.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsigmoid-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vsigmoid-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vsigmoid-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vsqrt-bench bench/f32-vsqrt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vsqrt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vsqrt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vsqrt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(f32-vtanh-bench bench/f32-vtanh.cc) |
|
TARGET_INCLUDE_DIRECTORIES(f32-vtanh-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(f32-vtanh-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(f32-vtanh-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-dwconv-bench bench/qs8-dwconv.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-dwconv-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-dwconv-bench PRIVATE bench-utils indirection hardware-config logging microkernels-all microkernel-utils microparams-init packing) |
|
|
|
ADD_EXECUTABLE(qs8-f32-vcvt-bench bench/qs8-f32-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-f32-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-f32-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-f32-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-gemm-bench bench/qs8-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-bench PRIVATE benchmark pthreadpool jit microparams-init) |
|
TARGET_LINK_LIBRARIES(qs8-gemm-bench PRIVATE bench-utils jit hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(qs8-requantization-bench bench/qs8-requantization.cc) |
|
SET_TARGET_PROPERTIES(qs8-requantization-bench PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-requantization-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-requantization-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-requantization-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(qs8-vadd-bench bench/qs8-vadd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vadd-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vadd-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vadd-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-vaddc-bench bench/qs8-vaddc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vaddc-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vaddc-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vaddc-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-vcvt-bench bench/qs8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs16-qs8-vcvt-bench bench/qs16-qs8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs16-qs8-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs16-qs8-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs16-qs8-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-vhswish-bench bench/qs8-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vhswish-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vhswish-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vhswish-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-vlrelu-bench bench/qs8-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vlrelu-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vlrelu-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vlrelu-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-vmul-bench bench/qs8-vmul.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vmul-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vmul-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vmul-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qs8-vmulc-bench bench/qs8-vmulc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qs8-vmulc-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qs8-vmulc-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qs8-vmulc-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-f32-vcvt-bench bench/qu8-f32-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-f32-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-f32-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-f32-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-gemm-bench bench/qu8-gemm.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-gemm-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-gemm-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init packing) |
|
|
|
ADD_EXECUTABLE(qu8-requantization-bench bench/qu8-requantization.cc) |
|
SET_TARGET_PROPERTIES(qu8-requantization-bench PROPERTIES CXX_EXTENSIONS YES) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-requantization-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-requantization-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-requantization-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(qu8-vadd-bench bench/qu8-vadd.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vadd-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vadd-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vadd-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-vaddc-bench bench/qu8-vaddc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vaddc-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vaddc-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vaddc-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-vcvt-bench bench/qu8-vcvt.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vcvt-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vcvt-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vcvt-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-vhswish-bench bench/qu8-vhswish.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vhswish-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vhswish-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vhswish-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-vlrelu-bench bench/qu8-vlrelu.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vlrelu-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vlrelu-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vlrelu-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-vmul-bench bench/qu8-vmul.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vmul-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vmul-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vmul-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(qu8-vmulc-bench bench/qu8-vmulc.cc) |
|
TARGET_INCLUDE_DIRECTORIES(qu8-vmulc-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(qu8-vmulc-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(qu8-vmulc-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(rounding-bench bench/rounding.cc) |
|
TARGET_INCLUDE_DIRECTORIES(rounding-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(rounding-bench PRIVATE benchmark cpuinfo pthreadpool) |
|
TARGET_LINK_LIBRARIES(rounding-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(s16-rmaxabs-bench bench/s16-rmaxabs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s16-rmaxabs-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(s16-rmaxabs-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(s16-rmaxabs-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(s16-window-bench bench/s16-window.cc) |
|
TARGET_INCLUDE_DIRECTORIES(s16-window-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(s16-window-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(s16-window-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(u32-filterbank-accumulate-bench bench/u32-filterbank-accumulate.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-filterbank-accumulate-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-accumulate-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-accumulate-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(u32-filterbank-subtract-bench bench/u32-filterbank-subtract.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-filterbank-subtract-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-subtract-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(u32-filterbank-subtract-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(u32-vlog-bench bench/u32-vlog.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u32-vlog-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(u32-vlog-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(u32-vlog-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(u64-u32-vsqrtshift-bench bench/u64-u32-vsqrtshift.cc) |
|
TARGET_INCLUDE_DIRECTORIES(u64-u32-vsqrtshift-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(u64-u32-vsqrtshift-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(u64-u32-vsqrtshift-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(i16-vlshift-bench bench/i16-vlshift.cc) |
|
TARGET_INCLUDE_DIRECTORIES(i16-vlshift-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(i16-vlshift-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(i16-vlshift-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(cs16-vsquareabs-bench bench/cs16-vsquareabs.cc) |
|
TARGET_INCLUDE_DIRECTORIES(cs16-vsquareabs-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(cs16-vsquareabs-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(cs16-vsquareabs-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(cs16-bfly4-bench bench/cs16-bfly4.cc) |
|
TARGET_INCLUDE_DIRECTORIES(cs16-bfly4-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(cs16-bfly4-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(cs16-bfly4-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(cs16-fftr-bench bench/cs16-fftr.cc) |
|
TARGET_INCLUDE_DIRECTORIES(cs16-fftr-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(cs16-fftr-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(cs16-fftr-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(xx-transposev-bench bench/xx-transposev.cc) |
|
TARGET_INCLUDE_DIRECTORIES(xx-transposev-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(xx-transposev-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(xx-transposev-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(x8-lut-bench bench/x8-lut.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-lut-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x8-lut-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x8-lut-bench PRIVATE bench-utils microkernels-all) |
|
|
|
ADD_EXECUTABLE(x8-transpose-bench bench/x32-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-transpose-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x8-transpose-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x8-transpose-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(x16-transpose-bench bench/x16-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x16-transpose-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x16-transpose-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x16-transpose-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(x24-transpose-bench bench/x16-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x24-transpose-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x24-transpose-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x24-transpose-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(x8-packw-bench bench/x8-packw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x8-packw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x8-packw-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x8-packw-bench PRIVATE bench-utils hardware-config logging microkernels-all packing) |
|
|
|
ADD_EXECUTABLE(x16-packw-bench bench/x16-packw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x16-packw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x16-packw-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x16-packw-bench PRIVATE bench-utils hardware-config logging microkernels-all packing) |
|
|
|
ADD_EXECUTABLE(x32-packw-bench bench/x32-packw.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-packw-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x32-packw-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x32-packw-bench PRIVATE bench-utils hardware-config logging microkernels-all packing) |
|
|
|
ADD_EXECUTABLE(x32-transpose-bench bench/x32-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x32-transpose-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x32-transpose-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x32-transpose-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
ADD_EXECUTABLE(x64-transpose-bench bench/x64-transpose.cc) |
|
TARGET_INCLUDE_DIRECTORIES(x64-transpose-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(x64-transpose-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(x64-transpose-bench PRIVATE bench-utils hardware-config logging microkernels-all microparams-init) |
|
|
|
# ---[ Other microbenchmarks |
|
ADD_EXECUTABLE(jit-bench bench/jit.cc) |
|
TARGET_INCLUDE_DIRECTORIES(jit-bench PRIVATE . include src) |
|
TARGET_LINK_LIBRARIES(jit-bench PRIVATE benchmark pthreadpool) |
|
TARGET_LINK_LIBRARIES(jit-bench PRIVATE jit logging memory microkernels-all) |
|
ENDIF() |
|
|