Add ML frameworks
cover Add ML frameworks
Hello all,
This series adds ACL, ArmNN, ONNX, and ONNX Runtime ML frameworks and tools. It is a replacement for a couple previous series for the same but now based on the latest scarthgap-wip.
Thanks,
Andrew
Andrew Davis (4):
meta-arago-extras: Add recipe for arm-compute-library
meta-arago-extras: Add recipe for Arm NN
meta-arago-extras: Add recipe for ONNX
meta-arago-extras: Add recipe for ONNX Runtime
...-indention-in-cmake-generator-script.patch | 130 ++++++++++++ ...ENABLE_NEON-in-code-for-checking-NEO.patch | 114 ++++++++++ ...ENABLE_SVE-in-code-for-checking-SVE-.patch | 197 ++++++++++++++++++ ...rce-files-at-library-definition-time.patch | 167 +++++++++++++++ ...ptions-for-SVE-SVE2-and-BF16-support.patch | 112 ++++++++++ ...SVE2-support-to-be-disabled-in-CMake.patch | 91 ++++++++ .../0007-Allow-ARMv7-builds-using-CMake.patch | 86 ++++++++ ...ymbol-error-when-building-TensorInfo.patch | 46 ++++ .../arm-compute-library_24.12.bb | 89 ++++++++ ...01-Fix-type-casting-for-32bit-builds.patch | 40 ++++ .../recipes-devtools/armnn/armnn_24.11.bb | 70 +++++++ ...age-Protobuf-before-checking-if-it-w.patch | 25 +++ ...-export-internal-targets-directories.patch | 28 +++ .../recipes-framework/onnx/onnx_1.16.1.bb | 107 ++++++++++ ...ble-permission-bit-from-source-files.patch | 72 +++++++ ...-in-option-text-s-buildings-bindings.patch | 25 +++ ...D_LIBRARY_PATH-to-search-path-when-n.patch | 32 +++ ...MAKE_CXX_FLAGS-in-build-information-.patch | 31 +++ ...ake-Print-out-result-of-find_package.patch | 37 ++++ .../onnxruntime/onnxruntime_1.20.1.bb | 155 ++++++++++++++ 20 files changed, 1654 insertions(+) create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0001-fix-Fix-indention-in-cmake-generator-script.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0004-Add-source-files-at-library-definition-time.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0007-Allow-ARMv7-builds-using-CMake.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0008-Fix-undefined-symbol-error-when-building-TensorInfo.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb create mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn/0001-Fix-type-casting-for-32bit-builds.patch create mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb create mode 100644 meta-arago-extras/recipes-framework/onnx/onnx/0001-Try-to-find-package-Protobuf-before-checking-if-it-w.patch create mode 100644 meta-arago-extras/recipes-framework/onnx/onnx/0002-Do-not-re-export-internal-targets-directories.patch create mode 100644 meta-arago-extras/recipes-framework/onnx/onnx_1.16.1.bb create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb
Signature · 1 line
2.39.2
PATCH 1/4 meta-arago-extras: Add recipe for arm-compute-library
The Compute Library is a collection of low-level machine learning functions optimized for Arm. This will be used for ARMNN and other machine learning applications and frameworks.
--- ...-indention-in-cmake-generator-script.patch | 130 ++++++++++++ ...ENABLE_NEON-in-code-for-checking-NEO.patch | 114 ++++++++++ ...ENABLE_SVE-in-code-for-checking-SVE-.patch | 197 ++++++++++++++++++ ...rce-files-at-library-definition-time.patch | 167 +++++++++++++++ ...ptions-for-SVE-SVE2-and-BF16-support.patch | 112 ++++++++++ ...SVE2-support-to-be-disabled-in-CMake.patch | 91 ++++++++ .../0007-Allow-ARMv7-builds-using-CMake.patch | 86 ++++++++ ...ymbol-error-when-building-TensorInfo.patch | 46 ++++ .../arm-compute-library_24.12.bb | 89 ++++++++ 9 files changed, 1032 insertions(+) create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0001-fix-Fix-indention-in-cmake-generator-script.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0004-Add-source-files-at-library-definition-time.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0007-Allow-ARMv7-builds-using-CMake.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0008-Fix-undefined-symbol-error-when-building-TensorInfo.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0001-fix-Fix-indention-in-cmake-generator-script.patch new file +130 -0
@@ -0,0 +1,130 @@ +From 1e4c3016547b5f75e515d4b9a7202733c47f5a18 Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Wed, 4 Dec 2024 14:46:17 -0600 +Subject: [PATCH] fix: Fix indention in cmake generator script + +All other items in these lists use tabs, the first couple +lines should match. Switch them to tabs then regenerate +the CMakeLists.txt file. + +While here fix the missing ending newline. + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +Change-Id: Icab852fc43ae08e7858857881c996d233c835289 +--- + scripts/generate_build_files.py | 27 ++++++++++++++------------- + src/CMakeLists.txt | 26 +++++++++++++------------- + 2 files changed, 27 insertions(+), 26 deletions(-) + +diff --git a/scripts/generate_build_files.py b/scripts/generate_build_files.py +index f88cf1af44..52a8cc14da 100644 +--- a/scripts/generate_build_files.py ++++ b/scripts/generate_build_files.py +@@ -168,28 +168,29 @@ def build_from_template_cmake(srcs_graph, srcs_sve, srcs_sve2, srcs_core): + template = f"""{get_template_header()} + + target_sources( +- arm_compute_graph +- PRIVATE +- {line_separator.join(srcs_graph)} ++ arm_compute_graph ++ PRIVATE ++ {line_separator.join(srcs_graph)} + ) + + target_sources( +- arm_compute_sve +- PRIVATE +- {line_separator.join(srcs_sve)} ++ arm_compute_sve ++ PRIVATE ++ {line_separator.join(srcs_sve)} + ) + + target_sources( +- arm_compute_sve2 +- PRIVATE +- {line_separator.join(srcs_sve2)} ++ arm_compute_sve2 ++ PRIVATE ++ {line_separator.join(srcs_sve2)} + ) + + target_sources( +- arm_compute +- PRIVATE +- {line_separator.join(srcs_core)} +-)""" ++ arm_compute ++ PRIVATE ++ {line_separator.join(srcs_core)} ++) ++""" + return template + + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index ff3bed96df..f1b275532a 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -21,9 +21,9 @@ + # SOFTWARE. + + target_sources( +- arm_compute_graph +- PRIVATE +- graph/DataLayerVisitor.cpp ++ arm_compute_graph ++ PRIVATE ++ graph/DataLayerVisitor.cpp + graph/Graph.cpp + graph/GraphBuilder.cpp + graph/GraphContext.cpp +@@ -101,9 +101,9 @@ target_sources( + ) + + target_sources( +- arm_compute_sve +- PRIVATE +- core/NEON/kernels/arm_conv/depthwise/interleaves/sve_s8q_3x3_dot.cpp ++ arm_compute_sve ++ PRIVATE ++ core/NEON/kernels/arm_conv/depthwise/interleaves/sve_s8q_3x3_dot.cpp + core/NEON/kernels/arm_conv/depthwise/interleaves/sve_u8q_3x3_dot.cpp + core/NEON/kernels/arm_conv/depthwise/kernels/sme2_fp16_nhwc_3x3_s1_output2x2_mla_depthfirst/generic_direct.cpp + core/NEON/kernels/arm_conv/depthwise/kernels/sme2_fp16_nhwc_3x3_s1_output2x2_mla_depthfirst/generic_indirect.cpp +@@ -332,9 +332,9 @@ target_sources( + ) + + target_sources( +- arm_compute_sve2 +- PRIVATE +- cpu/kernels/activation/generic/sve2/lut.cpp ++ arm_compute_sve2 ++ PRIVATE ++ cpu/kernels/activation/generic/sve2/lut.cpp + cpu/kernels/activation/generic/sve2/qasymm8.cpp + cpu/kernels/activation/generic/sve2/qasymm8_signed.cpp + cpu/kernels/activation/generic/sve2/qsymm16.cpp +@@ -357,9 +357,9 @@ target_sources( + ) + + target_sources( +- arm_compute +- PRIVATE +- c/AclContext.cpp ++ arm_compute ++ PRIVATE ++ c/AclContext.cpp + c/AclOperator.cpp + c/AclQueue.cpp + c/AclTensor.cpp +@@ -1049,4 +1049,4 @@ target_sources( + runtime/experimental/operators/CpuSub.cpp + runtime/experimental/operators/CpuTranspose.cpp + runtime/experimental/operators/CpuWinogradConv2d.cpp +-) +\ No newline at end of file ++)
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patch new file +114 -0
114 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patch new file +197 -0
197 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0004-Add-source-files-at-library-definition-time.patch new file +167 -0
167 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patch new file +112 -0
112 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patch new file +91 -0
91 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0007-Allow-ARMv7-builds-using-CMake.patch new file +86 -0
86 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0008-Fix-undefined-symbol-error-when-building-TensorInfo.patch new file +46 -0
46 lines not on this page · raw message
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +89 -0
89 lines not on this page · raw message
Signature · 1 line
2.39.2
Re: [meta-arago][scarthgap/master][PATCH 1/4] meta-arago-extras: Add recipe for arm-compute-library
Quoted 47 lines · Andrew Davis via lists.yoctoproject.org
The Compute Library is a collection of low-level machine learning functions optimized for Arm. This will be used for ARMNN and other machine learning applications and frameworks.
Signed-off-by Andrew Davis <[email protected]>--- ...-indention-in-cmake-generator-script.patch | 130 ++++++++++++ ...ENABLE_NEON-in-code-for-checking-NEO.patch | 114 ++++++++++ ...ENABLE_SVE-in-code-for-checking-SVE-.patch | 197 ++++++++++++++++++ ...rce-files-at-library-definition-time.patch | 167 +++++++++++++++ ...ptions-for-SVE-SVE2-and-BF16-support.patch | 112 ++++++++++ ...SVE2-support-to-be-disabled-in-CMake.patch | 91 ++++++++ .../0007-Allow-ARMv7-builds-using-CMake.patch | 86 ++++++++ ...ymbol-error-when-building-TensorInfo.patch | 46 ++++ .../arm-compute-library_24.12.bb | 89 ++++++++ 9 files changed, 1032 insertions(+) create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0001-fix-Fix-indention-in-cmake-generator-script.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0004-Add-source-files-at-library-definition-time.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0007-Allow-ARMv7-builds-using-CMake.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0008-Fix-undefined-symbol-error-when-building-TensorInfo.patch create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bbmeta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +15
-0@@ -0,0 +1,89 @@ +SUMMARY = "The ARM Computer Vision and Machine Learning library" +DESCRIPTION = "The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=35f8944fae972976691f3483b0ac9dba" + +SRC_URI = " \ + git://github.com/ARM-software/ComputeLibrary.git;branch=main;protocol=https \ + file://0001-fix-Fix-indention-in-cmake-generator-script.patch \ + file://0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patch \ + file://0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patch \ + file://0004-Add-source-files-at-library-definition-time.patch \ + file://0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patch \ + file://0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patch \ + file://0007-Allow-ARMv7-builds-using-CMake.patch \ + file://0008-Fix-undefined-symbol-error-when-building-TensorInfo.patch \
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb line 25
Quoted 10 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +10
-0+" +SRCREV = "32bcced2af7feea6969dd1d22e58d0718dc488e3" + +S = "${WORKDIR}/git" + +# Only compatible with armv7, armv7ve, and aarch64 +COMPATIBLE_MACHINE = "(^$)" +COMPATIBLE_MACHINE:aarch64 = "(.*)" +COMPATIBLE_MACHINE:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}" +COMPATIBLE_MACHINE:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}"
Seems excessive...
Will this work:
COMPATIBLE_MACHINE = "(armv7a|aarch64)"
If you do want to specifically check for "neon" being enabled, you can still skip armv7ve, as armv7a check will also apply to armv7ve...
Quoted 8 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +8
-0+ +inherit cmake + +PACKAGECONFIG ??= "examples tests cppthreads openmp" + +PACKAGECONFIG[Werror] = "-DARM_COMPUTE_WERROR=ON,-DARM_COMPUTE_WERROR=OFF" +PACKAGECONFIG[examples] = "-DARM_COMPUTE_BUILD_EXAMPLES=ON,-DARM_COMPUTE_BUILD_EXAMPLES=OFF" +PACKAGECONFIG[tests] = "-DARM_COMPUTE_BUILD_TESTING=ON,-DARM_COMPUTE_BUILD_TESTING=OFF"
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb line 43
Quoted 10 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +10
-0+PACKAGECONFIG[cppthreads] = "-DARM_COMPUTE_CPPTHREADS=ON,-DARM_COMPUTE_CPPTHREADS=OFF" +PACKAGECONFIG[openmp] = "-DARM_COMPUTE_OPENMP=ON,-DARM_COMPUTE_OPENMP=OFF" + +EXTRA_OECMAKE:append:aarch64 = " \ + -DARM_COMPUTE_ARCH=armv8-a \ + -DENABLE_NEON=ON \ + -DENABLE_SVE=OFF \ + -DENABLE_SVE2=OFF \ +" +EXTRA_OECMAKE:append:arm = " \
And here, the override should probably be armv7a, not arm? I know you set COMPATIBLE_MACHINE above to prevent armv4/v5/v6 from even coming here, but still...
Quoted 9 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +9
-0+ -DARM_COMPUTE_ARCH=armv7-a \ + -DENABLE_NEON=ON \ + -DENABLE_SVE=OFF \ + -DENABLE_SVE2=OFF \ + -DARM_COMPUTE_ENABLE_BF16=OFF \ + -DARM_COMPUTE_ENABLE_FIXED_FORMAT_KERNELS=OFF \ +" + +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Re: [meta-arago][scarthgap/master][PATCH 1/4] meta-arago-extras: Add recipe for arm-compute-library
Quoted 61 lines · Denys Dmytriyenko
Quoted 47 lines · Andrew Davis via lists.yoctoproject.org
The Compute Library is a collection of low-level machine learning functions optimized for Arm. This will be used for ARMNN and other machine learning applications and frameworks.
Signed-off-by Andrew Davis <[email protected]>--- ...-indention-in-cmake-generator-script.patch | 130 ++++++++++++ ...ENABLE_NEON-in-code-for-checking-NEO.patch | 114 ++++++++++ ...ENABLE_SVE-in-code-for-checking-SVE-.patch | 197 ++++++++++++++++++ ...rce-files-at-library-definition-time.patch | 167 +++++++++++++++ ...ptions-for-SVE-SVE2-and-BF16-support.patch | 112 ++++++++++ ...SVE2-support-to-be-disabled-in-CMake.patch | 91 ++++++++ .../0007-Allow-ARMv7-builds-using-CMake.patch | 86 ++++++++ ...ymbol-error-when-building-TensorInfo.patch | 46 ++++ .../arm-compute-library_24.12.bb | 89 ++++++++ 9 files changed, 1032 insertions(+)create mode 100644
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0001-fix-Fix-indention-in-cmake-generator-script.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0004-Add-source-files-at-library-definition-time.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0007-Allow-ARMv7-builds-using-CMake.patchcreate mode 100644meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0008-Fix-undefined-symbol-error-when-building-TensorInfo.patchcreate mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bbmeta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +15
-0@@ -0,0 +1,89 @@ +SUMMARY = "The ARM Computer Vision and Machine Learning library" +DESCRIPTION = "The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=35f8944fae972976691f3483b0ac9dba" + +SRC_URI = " \ + git://github.com/ARM-software/ComputeLibrary.git;branch=main;protocol=https \ + file://0001-fix-Fix-indention-in-cmake-generator-script.patch \ + file://0002-Use-ARM_COMPUTE_ENABLE_NEON-in-code-for-checking-NEO.patch \ + file://0003-Use-ARM_COMPUTE_ENABLE_SVE-in-code-for-checking-SVE-.patch \ + file://0004-Add-source-files-at-library-definition-time.patch \ + file://0005-Add-CMake-options-for-SVE-SVE2-and-BF16-support.patch \ + file://0006-Allow-SVE-and-SVE2-support-to-be-disabled-in-CMake.patch \ + file://0007-Allow-ARMv7-builds-using-CMake.patch \ + file://0008-Fix-undefined-symbol-error-when-building-TensorInfo.patch \meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb line 25
Quoted 10 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +10
-0+" +SRCREV = "32bcced2af7feea6969dd1d22e58d0718dc488e3" + +S = "${WORKDIR}/git" + +# Only compatible with armv7, armv7ve, and aarch64 +COMPATIBLE_MACHINE = "(^$)" +COMPATIBLE_MACHINE:aarch64 = "(.*)" +COMPATIBLE_MACHINE:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}" +COMPATIBLE_MACHINE:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}"Seems excessive...
Quoted 7 lines
Will this work:
COMPATIBLE_MACHINE= "(armv7a|aarch64)"If you do want to specifically check for "neon" being enabled, you can still skip armv7ve, as armv7a check will also apply to armv7ve...
I do need to check for NEON specifically like this as there are armv7a and armv7ve machines with it disabled, and this will not work for them.
As for skipping the check armv7ve it does seem like that would work, but I see them checked individually all over core layers for some reason, so wanted to follow that. For a random example:
Quoted 15 lines
Quoted 15 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +14
-0+ +inherit cmake + +PACKAGECONFIG ??= "examples tests cppthreads openmp" + +PACKAGECONFIG[Werror] = "-DARM_COMPUTE_WERROR=ON,-DARM_COMPUTE_WERROR=OFF" +PACKAGECONFIG[examples] = "-DARM_COMPUTE_BUILD_EXAMPLES=ON,-DARM_COMPUTE_BUILD_EXAMPLES=OFF" +PACKAGECONFIG[tests] = "-DARM_COMPUTE_BUILD_TESTING=ON,-DARM_COMPUTE_BUILD_TESTING=OFF" +PACKAGECONFIG[cppthreads] = "-DARM_COMPUTE_CPPTHREADS=ON,-DARM_COMPUTE_CPPTHREADS=OFF" +PACKAGECONFIG[openmp] = "-DARM_COMPUTE_OPENMP=ON,-DARM_COMPUTE_OPENMP=OFF" + +EXTRA_OECMAKE:append:aarch64 = " \ + -DARM_COMPUTE_ARCH=armv8-a \ + -DENABLE_NEON=ON \
Quoted 9 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb line 43
Quoted 4 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +4
-0+ -DENABLE_SVE=OFF \ + -DENABLE_SVE2=OFF \ +" +EXTRA_OECMAKE:append:arm = " \And here, the override should probably be armv7a, not arm? I know you set
COMPATIBLE_MACHINEabove to prevent armv4/v5/v6 from even coming here, but still...
Maybe, but that seems overly constraining then, for instance if this package gains support for additional ARM versions like armv6, then I would have to change this back to just arm, instead of just relaxing the COMPATIBLE_MACHINE lines above.
Andrew
Quoted 10 lines
Quoted 10 lines
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb new file +9
-0+ -DARM_COMPUTE_ARCH=armv7-a \ + -DENABLE_NEON=ON \ + -DENABLE_SVE=OFF \ + -DENABLE_SVE2=OFF \ + -DARM_COMPUTE_ENABLE_BF16=OFF \ + -DARM_COMPUTE_ENABLE_FIXED_FORMAT_KERNELS=OFF \ +" + +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
PATCH 2/4 meta-arago-extras: Add recipe for Arm NN
In reply to Andrew DavisArm NN is a performant machine learning inference engine for Linux, accelerating ML on Arm Cortex-A CPUs.
--- ...01-Fix-type-casting-for-32bit-builds.patch | 40 +++++++++++ .../recipes-devtools/armnn/armnn_24.11.bb | 70 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn/0001-Fix-type-casting-for-32bit-builds.patch create mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb
meta-arago-extras/recipes-devtools/armnn/armnn/0001-Fix-type-casting-for-32bit-builds.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 10953c25a77989709bcbd065489700314fe0c8c6 Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Thu, 16 Jan 2025 11:11:28 -0600 +Subject: [PATCH] Fix type casting for 32bit builds + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +Change-Id: Id68274e68e7832b827050a2e417053e88e7a6728 +--- + include/armnn/Numpy.hpp | 2 +- + tests/ExecuteNetwork/FileComparisonExecutor.cpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/armnn/Numpy.hpp b/include/armnn/Numpy.hpp +index a4154b434..f77b065ca 100644 +--- a/include/armnn/Numpy.hpp ++++ b/include/armnn/Numpy.hpp +@@ -209,7 +209,7 @@ namespace armnnNumpy + template<typename T> + inline void ReadData(std::ifstream& ifStream, T* tensor, const unsigned int& numElements) + { +- ifStream.read(reinterpret_cast<char *>(tensor), sizeof(T) * numElements); ++ ifStream.read(reinterpret_cast<char *>(tensor), static_cast<std::streamsize>(sizeof(T) * numElements)); + } + + +diff --git a/tests/ExecuteNetwork/FileComparisonExecutor.cpp b/tests/ExecuteNetwork/FileComparisonExecutor.cpp +index 903ed0362..4617ebe4a 100644 +--- a/tests/ExecuteNetwork/FileComparisonExecutor.cpp ++++ b/tests/ExecuteNetwork/FileComparisonExecutor.cpp +@@ -187,7 +187,7 @@ Tensor ReadTensorFromFile(const std::string fileName) + + // We'll read the entire file into one buffer. + std::ifstream file(fileName, std::ios::binary); +- std::vector<char> buffer(fileSize); ++ std::vector<char> buffer(static_cast<std::size_t>(fileSize)); + if (file.read(buffer.data(), static_cast<std::streamsize>(fileSize))) + { + std::string tensorName;
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +70 -0
70 lines not on this page · raw message
Signature · 1 line
2.39.2
Re: [meta-arago][scarthgap/master][PATCH 2/4] meta-arago-extras: Add recipe for Arm NN
Quoted 10 lines · Andrew Davis via lists.yoctoproject.org
Arm NN is a performant machine learning inference engine for Linux, accelerating ML on Arm Cortex-A CPUs.
Signed-off-by Andrew Davis <[email protected]>--- ...01-Fix-type-casting-for-32bit-builds.patch | 40 +++++++++++ .../recipes-devtools/armnn/armnn_24.11.bb | 70 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn/0001-Fix-type-casting-for-32bit-builds.patch create mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb
...
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb line 6
Quoted 12 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +6
-0@@ -0,0 +1,70 @@ +SUMMARY = "ARM Neural Network SDK" +DESCRIPTION = "Linux software and tools to enable machine learning workloads on power-efficient devices" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074" + +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
This is the default - why do you need to set it explicitly?
Quoted 13 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +13
-0+BRANCH = "branches/armnn_24_11" +SRC_URI = "git://github.com/ARM-software/armnn.git;branch=${BRANCH};protocol=https" +SRC_URI += "file://0001-Fix-type-casting-for-32bit-builds.patch" + +# v24.11 +SRCREV = "3ed70c005559d409feff2c578a1a39cf8fec8804" + +S = "${WORKDIR}/git" + +inherit cmake +inherit pkgconfig + +DEPENDS = " \
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb line 30
Quoted 10 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +10
-0+ boost \ + protobuf \ + xxd-native \ + arm-compute-library \ +" + +RDEPENDS:${PN} = " \ + arm-compute-library \ + protobuf \ + boost \
All these are listed in the DEPENDS and will be carried over to RDEPENDS automatically, no need to list them explicitly, unless shlib logic is completely screwed, in which case you better mention that in the commit log.
Quoted 42 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +40
-0+" + +PACKAGECONFIG += "unit-tests tests ref" +PACKAGECONFIG += "${@bb.utils.contains('TARGET_ARCH', 'aarch64', 'neon', '', d)}" +PACKAGECONFIG += "${@bb.utils.contains('TARGET_ARCH', 'arm', 'neon', '', d)}" + +PACKAGECONFIG[neon] = "-DARMCOMPUTENEON=1, -DARMCOMPUTENEON=0" +PACKAGECONFIG[unit-tests] = "-DBUILD_UNIT_TESTS=1, -DBUILD_UNIT_TESTS=0" +PACKAGECONFIG[tests] = "-DBUILD_TESTS=1, -DBUILD_TESTS=0" +PACKAGECONFIG[ref] = "-DARMNNREF=1, -DARMNNREF=0" + +EXTRA_OECMAKE += " \ + -DHALF_INCLUDE=${STAGING_DIR_TARGET} \ +" + +do_install:append() { + CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" + + if ${@bb.utils.contains('PACKAGECONFIG', 'tests', 'true', 'false', d)}; then + install -d ${D}${bindir}/${P} + find ${B}/tests -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir}/${P} \; + fi + + if ${@bb.utils.contains('PACKAGECONFIG', 'unit-tests', 'true', 'false', d)}; then + install -d ${D}${bindir}/${P} + cp $CP_ARGS ${B}/UnitTests ${D}${bindir}/${P} + fi + + if ${@bb.utils.contains('PACKAGECONFIG', 'tensorflow-lite', 'false', 'true', d)}; then + rm -rf ${D}${includedir}/armnnTfLiteParser + fi +} + +CXXFLAGS += "-Wno-error=array-bounds -Wno-error=deprecated-declarations -Wno-error=nonnull" + +FILES:${PN} += "${libdir}/*" +FILES:${PN}-dev += "${includedir}/* ${libdir}/cmake/armnn/* ${libdir}/pkgconfig/*.pc ${bindir}/*" + +INSANE_SKIP:${PN} = "dev-so" +INSANE_SKIP:${PN}-dev += "buildpaths"Signature · 1 line
2.39.2
Re: [meta-arago][scarthgap/master][PATCH 2/4] meta-arago-extras: Add recipe for Arm NN
Quoted 14 lines · Denys Dmytriyenko
Quoted 10 lines · Andrew Davis via lists.yoctoproject.org
Arm NN is a performant machine learning inference engine for Linux, accelerating ML on Arm Cortex-A CPUs.
Signed-off-by Andrew Davis <[email protected]>--- ...01-Fix-type-casting-for-32bit-builds.patch | 40 +++++++++++ .../recipes-devtools/armnn/armnn_24.11.bb | 70 +++++++++++++++++++ 2 files changed, 110 insertions(+)create mode 100644
meta-arago-extras/recipes-devtools/armnn/armnn/0001-Fix-type-casting-for-32bit-builds.patchcreate mode 100644 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb...
Quoted 15 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb line 6
Quoted 12 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +6
-0@@ -0,0 +1,70 @@ +SUMMARY = "ARM Neural Network SDK" +DESCRIPTION = "Linux software and tools to enable machine learning workloads on power-efficient devices" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074" + +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"This is the default - why do you need to set it explicitly?
Hmm, must have been a leftover from devtools or something, I can remove it.
Quoted 20 lines
Quoted 20 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +19
-0+BRANCH = "branches/armnn_24_11" +SRC_URI = "git://github.com/ARM-software/armnn.git;branch=${BRANCH};protocol=https" +SRC_URI += "file://0001-Fix-type-casting-for-32bit-builds.patch" + +# v24.11 +SRCREV = "3ed70c005559d409feff2c578a1a39cf8fec8804" + +S = "${WORKDIR}/git" + +inherit cmake +inherit pkgconfig + +DEPENDS = " \ + boost \ + protobuf \ + xxd-native \ + arm-compute-library \ +" +
Quoted 9 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb line 30
Quoted 4 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +4
-0+RDEPENDS:${PN} = " \ + arm-compute-library \ + protobuf \ + boost \All these are listed in the DEPENDS and will be carried over to RDEPENDS automatically, no need to list them explicitly, unless shlib logic is completely screwed, in which case you better mention that in the commit log.
For arm-compute-library the shlib logic was completely screwed but I think that got fixed for this version. Let me run some checks and I'll drop these if it all works.
Andrew
Quoted 43 lines
Quoted 43 lines
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb new file +40
-0+" + +PACKAGECONFIG += "unit-tests tests ref" +PACKAGECONFIG += "${@bb.utils.contains('TARGET_ARCH', 'aarch64', 'neon', '', d)}" +PACKAGECONFIG += "${@bb.utils.contains('TARGET_ARCH', 'arm', 'neon', '', d)}" + +PACKAGECONFIG[neon] = "-DARMCOMPUTENEON=1, -DARMCOMPUTENEON=0" +PACKAGECONFIG[unit-tests] = "-DBUILD_UNIT_TESTS=1, -DBUILD_UNIT_TESTS=0" +PACKAGECONFIG[tests] = "-DBUILD_TESTS=1, -DBUILD_TESTS=0" +PACKAGECONFIG[ref] = "-DARMNNREF=1, -DARMNNREF=0" + +EXTRA_OECMAKE += " \ + -DHALF_INCLUDE=${STAGING_DIR_TARGET} \ +" + +do_install:append() { + CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" + + if ${@bb.utils.contains('PACKAGECONFIG', 'tests', 'true', 'false', d)}; then + install -d ${D}${bindir}/${P} + find ${B}/tests -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir}/${P} \; + fi + + if ${@bb.utils.contains('PACKAGECONFIG', 'unit-tests', 'true', 'false', d)}; then + install -d ${D}${bindir}/${P} + cp $CP_ARGS ${B}/UnitTests ${D}${bindir}/${P} + fi + + if ${@bb.utils.contains('PACKAGECONFIG', 'tensorflow-lite', 'false', 'true', d)}; then + rm -rf ${D}${includedir}/armnnTfLiteParser + fi +} + +CXXFLAGS += "-Wno-error=array-bounds -Wno-error=deprecated-declarations -Wno-error=nonnull" + +FILES:${PN} += "${libdir}/*" +FILES:${PN}-dev += "${includedir}/* ${libdir}/cmake/armnn/* ${libdir}/pkgconfig/*.pc ${bindir}/*" + +INSANE_SKIP:${PN} = "dev-so" +INSANE_SKIP:${PN}-dev += "buildpaths"Signature · 1 line
2.39.2
PATCH 3/4 meta-arago-extras: Add recipe for ONNX
In reply to Andrew DavisONNX provides an open source format for AI models, both deep learning and traditional ML. It defines an extensible computation graph model, as well as definitions of built-in operators and standard data types.
--- ...age-Protobuf-before-checking-if-it-w.patch | 25 ++++ ...-export-internal-targets-directories.patch | 28 +++++ .../recipes-framework/onnx/onnx_1.16.1.bb | 107 ++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 meta-arago-extras/recipes-framework/onnx/onnx/0001-Try-to-find-package-Protobuf-before-checking-if-it-w.patch create mode 100644 meta-arago-extras/recipes-framework/onnx/onnx/0002-Do-not-re-export-internal-targets-directories.patch create mode 100644 meta-arago-extras/recipes-framework/onnx/onnx_1.16.1.bb
meta-arago-extras/recipes-framework/onnx/onnx/0001-Try-to-find-package-Protobuf-before-checking-if-it-w.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 7e118775c120ec802d13ac3e0125d726323aee87 Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Thu, 16 Jan 2025 11:44:56 -0600 +Subject: [PATCH] Try to find package Protobuf before checking if it was found + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + CMakeLists.txt | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b666eec4..f6fbf159 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -127,6 +127,8 @@ if(ONNX_BUILD_TESTS) + set(googletest_STATIC_LIBRARIES GTest::gtest) + endif() + ++find_package(Protobuf) ++ + if((ONNX_USE_LITE_PROTO AND TARGET protobuf::libprotobuf-lite) OR ((NOT ONNX_USE_LITE_PROTO) AND TARGET protobuf::libprotobuf)) + # Sometimes we need to use protoc compiled for host architecture while linking + # libprotobuf against target architecture. See https://github.com/caffe2/caffe
meta-arago-extras/recipes-framework/onnx/onnx/0002-Do-not-re-export-internal-targets-directories.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 0bdd879060cb5022b62d06bff0f21a21c3be18ca Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Mon, 3 Feb 2025 11:28:52 -0600 +Subject: [PATCH] Do not re-export internal targets directories + +These can be specific to a given project build and should not +be automatically inherited to dependent projects. + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + cmake/ONNXConfig.cmake.in | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/cmake/ONNXConfig.cmake.in b/cmake/ONNXConfig.cmake.in +index d588f8ae..a61af089 100644 +--- a/cmake/ONNXConfig.cmake.in ++++ b/cmake/ONNXConfig.cmake.in +@@ -6,8 +6,6 @@ + # library version information + set(ONNX_VERSION "@ONNX_VERSION@") + +-list(APPEND CMAKE_PREFIX_PATH "@PROTOBUF_DIR@") +-set(Protobuf_INCLUDE_DIR "@PROTOBUF_INCLUDE_DIR@") + find_package(Protobuf REQUIRED) + + # import targets
meta-arago-extras/recipes-framework/onnx/onnx_1.16.1.bb new file +107 -0
107 lines not on this page · raw message
Signature · 1 line
2.39.2
PATCH 4/4 meta-arago-extras: Add recipe for ONNX Runtime
In reply to Andrew DavisONNX Runtime is a cross-platform inference and training machine-learning accelerator. ONNX Runtime is compatible with different hardware, drivers, and operating systems, and provides optimal performance by leveraging hardware accelerators where applicable alongside graph optimizations and transforms.
--- ...ble-permission-bit-from-source-files.patch | 72 ++++++++ ...-in-option-text-s-buildings-bindings.patch | 25 +++ ...D_LIBRARY_PATH-to-search-path-when-n.patch | 32 ++++ ...MAKE_CXX_FLAGS-in-build-information-.patch | 31 ++++ ...ake-Print-out-result-of-find_package.patch | 37 +++++ .../onnxruntime/onnxruntime_1.20.1.bb | 155 ++++++++++++++++++ 6 files changed, 352 insertions(+) create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch create mode 100644 meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0001-Remove-executable-permission-bit-from-source-files.patch new file +72 -0
@@ -0,0 +1,72 @@ +From 626066499c34c524924302342fc071f32442caae Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Sun, 12 Jan 2025 12:48:49 -0600 +Subject: [PATCH] Remove executable permission bit from source files + +These are source files, not executables, do not set the executable +permission bit on these files. + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + onnxruntime/contrib_ops/cpu/utils/console_dumper.h | 1 + + onnxruntime/core/optimizer/bias_softmax_fusion.cc | 0 + onnxruntime/core/providers/acl/acl_execution_provider.h | 0 + onnxruntime/core/providers/acl/acl_fwd.h | 0 + onnxruntime/core/providers/acl/acl_provider_factory.cc | 0 + onnxruntime/core/providers/acl/math/gemm.cc | 0 + onnxruntime/core/providers/acl/nn/batch_norm.cc | 0 + onnxruntime/core/providers/acl/nn/batch_norm.h | 0 + onnxruntime/test/optimizer/graph_transform_test.cc | 0 + onnxruntime/test/optimizer/graph_transform_test_layernorm.cc | 0 + 10 files changed, 1 insertion(+) + mode change 100755 => 100644 onnxruntime/core/optimizer/bias_softmax_fusion.cc + mode change 100755 => 100644 onnxruntime/core/providers/acl/acl_execution_provider.h + mode change 100755 => 100644 onnxruntime/core/providers/acl/acl_fwd.h + mode change 100755 => 100644 onnxruntime/core/providers/acl/acl_provider_factory.cc + mode change 100755 => 100644 onnxruntime/core/providers/acl/math/gemm.cc + mode change 100755 => 100644 onnxruntime/core/providers/acl/nn/batch_norm.cc + mode change 100755 => 100644 onnxruntime/core/providers/acl/nn/batch_norm.h + mode change 100755 => 100644 onnxruntime/test/optimizer/graph_transform_test.cc + mode change 100755 => 100644 onnxruntime/test/optimizer/graph_transform_test_layernorm.cc + +diff --git a/onnxruntime/contrib_ops/cpu/utils/console_dumper.h b/onnxruntime/contrib_ops/cpu/utils/console_dumper.h +index 9ebc44f441..64bd2b7b18 100644 +--- a/onnxruntime/contrib_ops/cpu/utils/console_dumper.h ++++ b/onnxruntime/contrib_ops/cpu/utils/console_dumper.h +@@ -3,6 +3,7 @@ + + #pragma once + #include <string> ++#include <iostream> + #include "core/framework/ort_value.h" + #include "core/framework/float16.h" + #include "contrib_ops/cpu/utils/debug_macros.h" +diff --git a/onnxruntime/core/optimizer/bias_softmax_fusion.cc b/onnxruntime/core/optimizer/bias_softmax_fusion.cc +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/core/providers/acl/acl_execution_provider.h b/onnxruntime/core/providers/acl/acl_execution_provider.h +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/core/providers/acl/acl_fwd.h b/onnxruntime/core/providers/acl/acl_fwd.h +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/core/providers/acl/acl_provider_factory.cc b/onnxruntime/core/providers/acl/acl_provider_factory.cc +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/core/providers/acl/math/gemm.cc b/onnxruntime/core/providers/acl/math/gemm.cc +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/core/providers/acl/nn/batch_norm.cc b/onnxruntime/core/providers/acl/nn/batch_norm.cc +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/core/providers/acl/nn/batch_norm.h b/onnxruntime/core/providers/acl/nn/batch_norm.h +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/test/optimizer/graph_transform_test.cc b/onnxruntime/test/optimizer/graph_transform_test.cc +old mode 100755 +new mode 100644 +diff --git a/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc b/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc +old mode 100755 +new mode 100644
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0002-cmake-Fix-typo-in-option-text-s-buildings-bindings.patch new file +25 -0
@@ -0,0 +1,25 @@ +From be67663e9a44d146033aeb97804145a60b4032db Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Thu, 16 Jan 2025 12:35:03 -0600 +Subject: [PATCH] [cmake] Fix typo in option text s/buildings/bindings + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + cmake/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt +index d90a2a3550..e0cde678db 100644 +--- a/cmake/CMakeLists.txt ++++ b/cmake/CMakeLists.txt +@@ -77,7 +77,7 @@ option(onnxruntime_GENERATE_TEST_REPORTS "Enable test report generation" OFF) + option(onnxruntime_ENABLE_STATIC_ANALYSIS "Enable static analysis" OFF) + option(onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES "Use a custom SDL Rule. It is mainly for our CI build" OFF) + option(onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE "Use a custom SDL Rule. It is mainly for our CI build" OFF) +-option(onnxruntime_ENABLE_PYTHON "Enable python buildings" OFF) ++option(onnxruntime_ENABLE_PYTHON "Enable python bindings" OFF) + # Enable it may cause LNK1169 error + option(onnxruntime_ENABLE_MEMLEAK_CHECKER "Experimental: Enable memory leak checker in Windows debug build" OFF) + option(onnxruntime_USE_CUDA "Build with CUDA support" OFF)
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0003-ACL-Do-not-add-LD_LIBRARY_PATH-to-search-path-when-n.patch new file +32 -0
@@ -0,0 +1,32 @@ +From b1689f3f963f4c07d3329a838569ac4c2fa2bd5f Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Thu, 16 Jan 2025 12:38:13 -0600 +Subject: [PATCH] [ACL] Do not add LD_LIBRARY_PATH to search path when not + defined + +If LD_LIBRARY_PATH is not defined a blank "-L" is added to the +link command. This causes the next object to be linked to get +treated as if it was a search path and causes link failure. + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + cmake/onnxruntime_providers_acl.cmake | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/cmake/onnxruntime_providers_acl.cmake b/cmake/onnxruntime_providers_acl.cmake +index e23d289271..19d41dc73f 100644 +--- a/cmake/onnxruntime_providers_acl.cmake ++++ b/cmake/onnxruntime_providers_acl.cmake +@@ -13,7 +13,9 @@ + onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface + ) + +- target_link_libraries(onnxruntime_providers_acl -L$ENV{LD_LIBRARY_PATH}) ++ if (DEFINED ENV{LD_LIBRARY_PATH}) ++ target_link_libraries(onnxruntime_providers_acl -L$ENV{LD_LIBRARY_PATH}) ++ endif() + add_dependencies(onnxruntime_providers_acl ${onnxruntime_EXTERNAL_DEPENDENCIES}) + set_target_properties(onnxruntime_providers_acl PROPERTIES FOLDER "ONNXRuntime") + target_include_directories(onnxruntime_providers_acl
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0004-Do-not-include-CMAKE_CXX_FLAGS-in-build-information-.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 7ea6e35d3630f8c19080a0cb5a4a4c55c242a36b Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Thu, 16 Jan 2025 12:40:57 -0600 +Subject: [PATCH] Do not include CMAKE_CXX_FLAGS in build information string + +While this information can be useful, it often includes information +that may be specific to the build machine (like include paths with +usernames, e.g. -I /home/myname/externalproject/fakeroot/inlcude). + +This causes issues for reproducible builds (resulting binaries will +be different between different build machines). + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + cmake/CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt +index e0cde678db..e0d8fd0a17 100644 +--- a/cmake/CMakeLists.txt ++++ b/cmake/CMakeLists.txt +@@ -1439,7 +1439,6 @@ if (Git_FOUND) + string(APPEND ORT_BUILD_INFO "git-branch=${ORT_GIT_BRANCH}, git-commit-id=${ORT_GIT_COMMIT}, ") + endif() + string(APPEND ORT_BUILD_INFO "build type=${CMAKE_BUILD_TYPE}") +-string(APPEND ORT_BUILD_INFO ", cmake cxx flags: ${CMAKE_CXX_FLAGS}") + configure_file(onnxruntime_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/onnxruntime_config.h) + get_property(onnxruntime_GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime/0005-cmake-Print-out-result-of-find_package.patch new file +37 -0
@@ -0,0 +1,37 @@ +From a73d9b9f4dba6d164e128d6c768d1b0a04e969ab Mon Sep 17 00:00:00 2001 +From: Andrew Davis <[email protected]> +Date: Thu, 16 Jan 2025 12:47:27 -0600 +Subject: [PATCH] [cmake] Print out result of find_package + +A verbose only message is already printed that states the CMake will +attempt to find a package using find_package(): + +> Trying find_package(...) before FetchContent + +But it never prints if the package was found this way or not. +Add this result message. + +Upstream-Status: Pending + +Signed-off-by: Andrew Davis <[email protected]> +--- + cmake/external/helper_functions.cmake | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/cmake/external/helper_functions.cmake b/cmake/external/helper_functions.cmake +index e3f2211f96..9ca6a967da 100644 +--- a/cmake/external/helper_functions.cmake ++++ b/cmake/external/helper_functions.cmake +@@ -138,9 +138,12 @@ macro(onnxruntime_fetchcontent_makeavailable) + unset(__cmake_fpArgs) + + if(${__cmake_contentName}_FOUND) ++ message(VERBOSE "Found ${__cmake_contentName} with find_package()") + FetchContent_SetPopulated(${__cmake_contentName}) + FetchContent_GetProperties(${__cmake_contentName}) + continue() ++ else() ++ message(VERBOSE "Could not find ${__cmake_contentName} with find_package()") + endif() + endif() + else()
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb new file +155 -0
155 lines not on this page · raw message
Signature · 1 line
2.39.2