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 config BR2_PACKAGE_XNNPACK bool "xnnpack" 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 select BR2_PACKAGE_CPUINFO select BR2_PACKAGE_FP16 select BR2_PACKAGE_FXDIV select BR2_PACKAGE_PTHREADPOOL help XNNPACK is a highly optimized solution for neural network inference on ARM, x86, WebAssembly, and RISC-V platforms. https://github.com/google/XNNPACK 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