diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/armnnSerializer/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 2 | ||||
-rw-r--r-- | src/profiling/PeriodicCounterCapture.cpp | 2 | ||||
-rw-r--r-- | src/profiling/backends/BackendProfiling.cpp | 2 |
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) |