1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

Extend the whole TensorFlow-Lite runtime infrastructure

- TFlite-runtime GPU delegate support
- TFlite-runtime external delegate support
- ARM Compute Library and ARMnn Delegate
- Whisper-TFlite updates.
This commit is contained in:
j1nx
2023-01-25 14:22:22 +01:00
parent 5e277d5e24
commit 876ee82daa
16 changed files with 226 additions and 53 deletions

View File

@ -0,0 +1,9 @@
config BR2_PACKAGE_COMPUTE_LIBRARY
bool "compute-library"
help
The Compute Library is a set of computer vision and
machine learning functions optimised for both Arm CPUs
and GPUs using SIMD technologies.
https://github.com/ARM-software/ComputeLibrary

View File

@ -0,0 +1,65 @@
################################################################################
#
# compute-library
#
################################################################################
COMPUTE_LIBRARY_VERSION = v22.11
COMPUTE_LIBRARY_SITE = $(call github,ARM-software,ComputeLibrary,$(COMPUTE_LIBRARY_VERSION))
COMPUTE_LIBRARY_LICENSE = MIT
COMPUTE_LIBRARY_LICENSE_FILES = LICENSE
COMPUTE_LIBRARY_INSTALL_STAGING = YES
COMPUTE_LIBRARY_DEPENDENCIES = \
host-scons \
host-pkgconf
COMPUTE_LIBRARY_LDFLAGS = "$(TARGET_LDFLAGS)"
COMPUTE_LIBRARY_CFLAGS = " $(TARGET_CFLAGS)"
COMPUTE_LIBRARY_CXXFLAGS = "$(TARGET_CXXFLAGS)"
COMPUTE_LIBRARY_SCONS_ENV = $(TARGET_CONFIGURE_OPTS)
COMPUTE_LIBRARY_SCONS_OPTS = \
arch=arm64-v8a \
Werror=0 \
debug=0 \
asserts=0 \
neon=1 \
os=linux \
examples=0 \
build=cross_compile \
toolchain_prefix="" \
embed_kernels=1 \
extra_cxx_flags="-fPIC"
COMPUTE_LIBRARY_SCONS_ENV += \
LDFLAGS=$(COMPUTE_LIBRARY_LDFLAGS) \
CFLAGS=$(COMPUTE_LIBRARY_CFLAGS) \
CCFLAGS=$(COMPUTE_LIBRARY_CFLAGS) \
CXXFLAGS=$(COMPUTE_LIBRARY_CXXFLAGS)
define COMPUTE_LIBRARY_BUILD_CMDS
(cd $(@D); \
$(COMPUTE_LIBRARY_SCONS_ENV) \
$(SCONS) \
$(COMPUTE_LIBRARY_SCONS_OPTS))
endef
define COMPUTE_LIBRARY_INSTALL_STAGING_CMDS
(cd $(@D); \
$(COMPUTE_LIBRARY_SCONS_ENV) \
$(SCONS) \
$(COMPUTE_LIBRARY_SCONS_OPTS) \
install_dir="$(STAGING_DIR)/usr")
endef
define COMPUTE_LIBRARY_INSTALL_TARGET_CMDS
(cd $(@D); \
$(COMPUTE_LIBRARY_SCONS_ENV) \
$(SCONS) \
$(COMPUTE_LIBRARY_SCONS_OPTS) \
install_dir="$(TARGET_DIR)/usr")
endef
$(eval $(generic-package))