diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sci-ml/foxi | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sci-ml/foxi')
| -rw-r--r-- | sci-ml/foxi/Manifest | 1 | ||||
| -rw-r--r-- | sci-ml/foxi/files/foxi-2021.05.27-cmake.patch | 9 | ||||
| -rw-r--r-- | sci-ml/foxi/files/foxi-2021.05.27-gentoo.patch | 73 | ||||
| -rw-r--r-- | sci-ml/foxi/foxi-2021.05.27.ebuild | 35 | ||||
| -rw-r--r-- | sci-ml/foxi/metadata.xml | 9 |
5 files changed, 127 insertions, 0 deletions
diff --git a/sci-ml/foxi/Manifest b/sci-ml/foxi/Manifest new file mode 100644 index 000000000000..9186a3d04fb8 --- /dev/null +++ b/sci-ml/foxi/Manifest @@ -0,0 +1 @@ +DIST foxi-2021.05.27.tar.gz 28960 BLAKE2B 06c960f829b090eec4fe9e8c981e119578f358724e0b63991173bb7e318d23654261b901d1e15efeb6240bba75cc05fd45ab32fb30bbdf48369e139cf152f398 SHA512 ad42cfd70e40ba0f0a9187b34ae9e3bd361c8c0038669f4c1591c4f7421d12ad93f76f42b33c2575eea1a3ddb3ff781da2895cdc636df5b60422598f450203c7 diff --git a/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch b/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch new file mode 100644 index 000000000000..86a5aabddca4 --- /dev/null +++ b/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch @@ -0,0 +1,9 @@ +--- a/CMakeLists.txt 2025-06-16 22:04:30.852811014 +0200 ++++ b/CMakeLists.txt 2025-06-16 22:04:59.804503623 +0200 +@@ -1,5 +1,5 @@ + # Minimum CMake required +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.10) + # Set default build type + if(NOT CMAKE_BUILD_TYPE) + message(STATUS "Build type not set - defaulting to Release") diff --git a/sci-ml/foxi/files/foxi-2021.05.27-gentoo.patch b/sci-ml/foxi/files/foxi-2021.05.27-gentoo.patch new file mode 100644 index 000000000000..f252ae4fcdb2 --- /dev/null +++ b/sci-ml/foxi/files/foxi-2021.05.27-gentoo.patch @@ -0,0 +1,73 @@ +--- a/CMakeLists.txt 2022-06-13 21:42:28.197087591 +0200 ++++ b/CMakeLists.txt 2022-06-13 21:44:49.787170054 +0200 +@@ -77,6 +77,7 @@ + OUTPUT_NAME "foxi" + POSITION_INDEPENDENT_CODE YES) + target_link_libraries(foxi_wrapper PRIVATE foxi_loader foxi) ++ target_link_options(foxi_wrapper PUBLIC "-Wl,-soname=libfoxi.so") + if(DEFINED FOXI_SEARCH_DIR) + target_compile_definitions(foxi_wrapper PRIVATE "FOXI_SEARCH_DIR=\"${FOXI_SEARCH_DIR}\"") + endif() +@@ -115,11 +116,11 @@ + + install(TARGETS + foxi foxi_dummy foxi_loader +- EXPORT ONNXTargets DESTINATION lib) ++ EXPORT ONNXTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}) + + if(NOT ANDROID AND NOT IOS) + install(TARGETS foxi_wrapper +- EXPORT ONNXTargets DESTINATION lib) ++ EXPORT ONNXTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}) + endif() + + set(FOXI_INCLUDE_DIRS "${FOXI_ROOT}" "${CMAKE_CURRENT_BINARY_DIR}") +--- a/foxi/onnxifi_wrapper.c 2022-06-14 08:07:07.351585673 +0200 ++++ b/foxi/onnxifi_wrapper.c 2022-06-14 08:11:21.680855591 +0200 +@@ -761,7 +761,9 @@ + const void* onnxModel, + uint32_t weightsCount, + const onnxTensorDescriptorV1* weightDescriptors, +- onnxGraph* graph) ++ onnxGraph* graph, ++ uint32_t maxSeqLength, ++ void* deferredWeightReader) + { + if (graph == NULL) { + return ONNXIFI_STATUS_INVALID_POINTER; +@@ -797,7 +799,9 @@ + onnxModel, + weightsCount, + weightDescriptors, +- &graph_wrapper->graph); ++ &graph_wrapper->graph, ++ maxSeqLength, ++ deferredWeightReader); + switch (status) { + case ONNXIFI_STATUS_SUCCESS: + case ONNXIFI_STATUS_FALLBACK: +--- a/foxi/onnxifi_dummy.c 2022-06-14 08:14:02.484503254 +0200 ++++ b/foxi/onnxifi_dummy.c 2022-06-14 08:17:01.408891030 +0200 +@@ -103,7 +103,9 @@ + const void* onnxModel, + uint32_t weightCount, + const onnxTensorDescriptorV1* weightDescriptors, +- onnxGraph* graph) { ++ onnxGraph* graph, ++ uint32_t maxSeqLength, ++ void* deferredWeightReader) { + if (graph == NULL) { + return ONNXIFI_STATUS_INVALID_POINTER; + } +@@ -215,6 +217,8 @@ + onnxWaitEventFor(onnxEvent event, + uint32_t timeoutMs, + onnxEventState* eventState, +- onnxStatus* eventStatus) { ++ onnxStatus* eventStatus, ++ char* message, ++ size_t* messageLength) { + return ONNXIFI_STATUS_SUCCESS; +-} +\ No newline at end of file ++} diff --git a/sci-ml/foxi/foxi-2021.05.27.ebuild b/sci-ml/foxi/foxi-2021.05.27.ebuild new file mode 100644 index 000000000000..a80ac4d0b79c --- /dev/null +++ b/sci-ml/foxi/foxi-2021.05.27.ebuild @@ -0,0 +1,35 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake dot-a + +CommitId=c278588e34e535f0bb8f00df3880d26928038cad + +DESCRIPTION="ONNXIFI with Facebook Extension" +HOMEPAGE="https://github.com/houseroad/foxi/" +SRC_URI="https://github.com/houseroad/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${CommitId} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64" + +RESTRICT="test" # No test available + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-cmake.patch +) + +src_configure() { + lto-guarantee-fat + cmake_src_configure +} + +src_install() { + cmake_src_install + strip-lto-bytecode +} diff --git a/sci-ml/foxi/metadata.xml b/sci-ml/foxi/metadata.xml new file mode 100644 index 000000000000..31493193c995 --- /dev/null +++ b/sci-ml/foxi/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
