SHA256
1
0
forked from pool/armnn

Accepting request 1199228 from science:machinelearning

OBS-URL: https://build.opensuse.org/request/show/1199228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/armnn?expand=0&rev=12
This commit is contained in:
Ana Guerrero 2024-09-06 15:19:06 +00:00 committed by Git OBS Bridge
commit 7b5926092b
3 changed files with 27 additions and 0 deletions

18
armnn-fix-armv7.patch Normal file
View File

@ -0,0 +1,18 @@
--- armnn-24.08/include/armnn/Numpy.hpp.orig 2024-09-06 11:05:16.800066800 +0200
+++ armnn-24.08/include/armnn/Numpy.hpp 2024-09-06 11:05:58.717592900 +0200
@@ -157,7 +157,7 @@ namespace armnnNumpy
inline void CreateHeader(std::ifstream& ifStream, HeaderInfo& headerInfo, Header& header)
{
char stringBuffer[headerInfo.m_HeaderLen];
- ifStream.read(stringBuffer, headerInfo.m_HeaderLen);
+ ifStream.read(stringBuffer, static_cast<std::streamsize>(headerInfo.m_HeaderLen));
header.m_HeaderString = std::string(stringBuffer, headerInfo.m_HeaderLen);
// Remove new line character at the end of the string
@@ -403,4 +403,4 @@ namespace armnnNumpy
}
}
-#endif // NUMPY_HPP
\ No newline at end of file
+#endif // NUMPY_HPP

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 6 13:29:47 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Add patch to fix build on armv7:
* armnn-fix-armv7.patch
-------------------------------------------------------------------
Tue Sep 3 09:59:35 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -79,6 +79,8 @@ Group: Development/Libraries/Other
URL: https://developer.arm.com/products/processors/machine-learning/arm-nn
Source0: https://github.com/ARM-software/armnn/archive/v%{version}.tar.gz#/armnn-%{version}.tar.gz
Source1: armnn-rpmlintrc
# PATCH-FIX-UPSTREAM - https://github.com/ARM-software/armnn/issues/786
Patch1: armnn-fix-armv7.patch
# PATCHES to add downstream ArmnnExamples binary - https://layers.openembedded.org/layerindex/recipe/87610/
Patch200: 0003-add-more-test-command-line-arguments.patch
Patch201: 0005-add-armnn-mobilenet-test-example.patch
@ -372,6 +374,7 @@ This package contains the libarmnnOnnxParser library from armnn.
%prep
%setup -q -n armnn-%{version}
%patch -P 1 -p1
%if %{with armnn_extra_tests}
%patch -P 200 -p1
%patch -P 201 -p1