package/fp16: new package

This package is required by tensorflow-lite.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
James Hilliard
2025-01-28 10:01:49 -07:00
committed by Julien Olivain
parent 6732f4df7c
commit f110a78825
5 changed files with 34 additions and 0 deletions

View File

@@ -3034,6 +3034,7 @@ F: package/ti-gfx/
N: Stefan Hager <stefan.hager@ginzinger.com>
F: package/cpuinfo/
F: package/fp16/
F: package/gemmlowp/
F: package/psimd/
F: package/pthreadpool/

View File

@@ -2187,6 +2187,7 @@ menu "Other"
source "package/flann/Config.in"
source "package/flatbuffers/Config.in"
source "package/flatcc/Config.in"
source "package/fp16/Config.in"
source "package/fxdiv/Config.in"
source "package/gconf/Config.in"
source "package/gdal/Config.in"

8
package/fp16/Config.in Normal file
View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_FP16
bool "fp16"
select BR2_PACKAGE_PSIMD
help
Header-only library for conversion to/from half-precision
floating point formats.
https://github.com/Maratyszcza/FP16

4
package/fp16/fp16.hash Normal file
View File

@@ -0,0 +1,4 @@
# Locally calculated
sha256 e7b509c76a2ea162ebdda77fb6b6f51f2f37dedee0866077d428e214516f0c2b fp16-98b0a46bce017382a6351a19577ec43a715b6835.tar.gz
# License files, locally calculated
sha256 17e4f539024be2749ee729d1e2f01d24cef12ece8c9bf18e91a4349be29c80bf LICENSE

20
package/fp16/fp16.mk Normal file
View File

@@ -0,0 +1,20 @@
################################################################################
#
# fp16
#
################################################################################
FP16_VERSION = 98b0a46bce017382a6351a19577ec43a715b6835
FP16_SITE = $(call github,Maratyszcza,FP16,$(FP16_VERSION))
FP16_LICENSE = MIT
FP16_LICENSE_FILES = LICENSE
FP16_INSTALL_STAGING = YES
# Only installs a header
FP16_INSTALL_TARGET = NO
FP16_DEPENDENCIES = psimd
FP16_CONF_OPTS = \
-DFP16_BUILD_TESTS=OFF \
-DFP16_BUILD_BENCHMARKS=OFF \
-DPSIMD_SOURCE_DIR="$(PSIMD_DIR)"
$(eval $(cmake-package))