2023-04-25 13:16:50 +02:00
|
|
|
config BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS
|
|
|
|
bool
|
|
|
|
default y if BR2_aarch64
|
|
|
|
default y if BR2_arm
|
|
|
|
default y if BR2_i386
|
|
|
|
default y if BR2_x86_64
|
|
|
|
depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS
|
|
|
|
|
2022-12-07 20:16:34 +01:00
|
|
|
config BR2_PACKAGE_XNNPACK
|
|
|
|
bool "xnnpack"
|
2023-04-25 13:16:50 +02:00
|
|
|
depends on BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS
|
|
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
|
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # cpuinfo
|
2022-12-07 20:16:34 +01:00
|
|
|
select BR2_PACKAGE_CPUINFO
|
|
|
|
select BR2_PACKAGE_FP16
|
2023-04-25 13:16:50 +02:00
|
|
|
select BR2_PACKAGE_FXDIV
|
|
|
|
select BR2_PACKAGE_PTHREADPOOL
|
2022-12-07 20:16:34 +01:00
|
|
|
help
|
2023-04-25 13:16:50 +02:00
|
|
|
XNNPACK is a highly optimized solution for neural network
|
|
|
|
inference on ARM, x86, WebAssembly, and RISC-V platforms.
|
2022-12-07 20:16:34 +01:00
|
|
|
|
|
|
|
https://github.com/google/XNNPACK
|
2023-04-25 13:16:50 +02:00
|
|
|
|
|
|
|
comment "xnnpack needs a toolchain w/ C++14, threads"
|
|
|
|
depends on !BR2_INSTALL_LIBSTDCPP || \
|
|
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_HAS_THREADS
|