aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Lamberti <derek.lamberti@arm.com>2020-08-25 13:05:59 +0100
committerDerek Lamberti <derek.lamberti@arm.com>2020-08-27 13:57:27 +0000
commiteac4adb5bf493ba7d1b00ef6ecd6b56a42ea3f3d (patch)
treec95267339cabe7ff2b95ef93b53bc27857cc0ab0 /src
parent43528ac476836b225b076fbced7a73a8c87e277c (diff)
downloadarmnn-eac4adb5bf493ba7d1b00ef6ecd6b56a42ea3f3d.tar.gz
Export Armnn cmake
Change-Id: I3c317e835aba5feafda240393ca26b6aebe8d655 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/armnnSerializer/CMakeLists.txt5
-rw-r--r--src/backends/reference/RefLayerSupport.cpp2
-rw-r--r--src/profiling/PeriodicCounterCapture.cpp2
-rw-r--r--src/profiling/backends/BackendProfiling.cpp2
4 files changed, 7 insertions, 4 deletions
diff --git a/src/armnnSerializer/CMakeLists.txt b/src/armnnSerializer/CMakeLists.txt
index ccc924e641..9c90af2e11 100755
--- a/src/armnnSerializer/CMakeLists.txt
+++ b/src/armnnSerializer/CMakeLists.txt
@@ -42,6 +42,9 @@ if(BUILD_ARMNN_SERIALIZER)
target_link_libraries(armnnSerializer armnn ${FLATBUFFERS_LIBRARY})
install(TARGETS armnnSerializer
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ EXPORT armnn-targets
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
set_target_properties(armnnSerializer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
endif()
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp
index f6c214e2c6..5e3c96d31d 100644
--- a/src/backends/reference/RefLayerSupport.cpp
+++ b/src/backends/reference/RefLayerSupport.cpp
@@ -1916,7 +1916,7 @@ bool RefLayerSupport::IsSplitterSupported(const TensorInfo& input,
supported &= CheckSupportRule(TypeAnyOf(input, supportedTypes), reasonIfUnsupported,
"Reference splitter: output type not supported");
- for (const TensorInfo output : outputs)
+ for (const TensorInfo& output : outputs)
{
supported &= CheckSupportRule(TypeAnyOf(input, supportedTypes), reasonIfUnsupported,
"Reference splitter: input type not supported");
diff --git a/src/profiling/PeriodicCounterCapture.cpp b/src/profiling/PeriodicCounterCapture.cpp
index 8ff5e7e049..d914e85cfb 100644
--- a/src/profiling/PeriodicCounterCapture.cpp
+++ b/src/profiling/PeriodicCounterCapture.cpp
@@ -59,7 +59,7 @@ void PeriodicCounterCapture::DispatchPeriodicCounterCapturePacket(
const armnn::BackendId& backendId, const std::vector<Timestamp>& timestampValues)
{
// Report counter values
- for (const auto timestampInfo : timestampValues)
+ for (const auto& timestampInfo : timestampValues)
{
std::vector<CounterValue> backendCounterValues = timestampInfo.counterValues;
for_each(backendCounterValues.begin(), backendCounterValues.end(), [&](CounterValue& backendCounterValue)
diff --git a/src/profiling/backends/BackendProfiling.cpp b/src/profiling/backends/BackendProfiling.cpp
index 4e6de93062..135174b478 100644
--- a/src/profiling/backends/BackendProfiling.cpp
+++ b/src/profiling/backends/BackendProfiling.cpp
@@ -32,7 +32,7 @@ IProfilingGuidGenerator& BackendProfiling::GetProfilingGuidGenerator()
void BackendProfiling::ReportCounters(const std::vector<Timestamp>& timestamps)
{
- for (const auto timestampInfo : timestamps)
+ for (const auto& timestampInfo : timestamps)
{
std::vector<CounterValue> backendCounterValues = timestampInfo.counterValues;
for_each(backendCounterValues.begin(), backendCounterValues.end(), [&](CounterValue& backendCounterValue)