BuildRequires: cmake
BuildRequires: libarmcl-devel
BuildRequires: protobuf-devel
+BuildRequires: boost-devel
+BuildRequires:libcaffeonacl-devel
%description
Arm Neural Networks Library
cp %{SOURCE1001} .
%build
-#prepare stb
-mkdir -p %{buildroot}%{_includedir}
-cp -ar external/stb %{buildroot}%{_includedir}
#build ArmNN
cmake -DARMCOMPUTENEON=1 \
-DBUILD_CAFFE_PARSER=1 \
-DBUILD_TESTS=1 \
-DCAFFE_GENERATED_SOURCES=/usr/include \
- -DTHIRD_PARTY_INCLUDE_DIRS=%{buildroot}%{_includedir}/stb
make
%install
+
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_bindir}/armnn
mkdir -p %{buildroot}%{_includedir}/armnn
mkdir -p %{buildroot}%{_includedir}/armnnCaffeParser
mkdir -p %{buildroot}%{_includedir}/armnnTfParser
+#prepare stb
+mkdir -p %{buildroot}%{_includedir}
+cp -ar external/stb %{buildroot}%{_includedir}
+
install -m 0755 bin/*-Armnn %{buildroot}%{_bindir}/armnn/
install -m 0755 bin/ExecuteNetwork %{buildroot}%{_bindir}/armnn/
install -m 0755 bin/MultipleNetworksCifar10 %{buildroot}%{_bindir}/armnn/
install -m 0644 include/armnnCaffeParser/* %{buildroot}%{_includedir}/armnnCaffeParser/
install -m 0644 include/armnnTfParser/* %{buildroot}%{_includedir}/armnnTfParser/
-%clean
-echo "in clean"
-rm -rf $RPM_BUILD_ROOT
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
# UnitTests
include(CheckIncludeFiles)
-include_directories("${THIRD_PARTY_INCLUDE_DIRS}")
+include_directories(${CMAKE_SOURCE_DIR}/external/stb)
# Setup the inference test framework
set(inference_test_sources
#pragma GCC diagnostic ignored "-Wfloat-conversion"
#define STB_IMAGE_IMPLEMENTATION
-#include <stb/stb_image.h>
+#include "stb_image.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION
-#include <stb/stb_image_resize.h>
+#include "stb_image_resize.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
-#include <stb_image_write.h>
+#include "stb_image_write.h"
+
#pragma GCC diagnostic pop
namespace