From 5aa9fd7ac6bf8dad576fa4a0a32aa3dae98d11ab Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Fri, 25 Feb 2022 15:33:28 +0000 Subject: IVGCVSW-6704 Change the namespace from armnn::profiling to arm::pipe * Updated ABI version to 29 due to being the first ABI break in 22.05 !android-nn-driver:7226 Signed-off-by: Cathal Corbett Change-Id: I9c50007dcd5b5e792757e7bd1213606df5ffec36 --- .../common/include/IProfilingGuidGenerator.hpp | 8 ++++---- profiling/common/include/LabelsAndEventClasses.hpp | 8 ++++---- profiling/common/include/ProfilingGuid.hpp | 22 ++++++++++------------ .../common/include/ProfilingGuidGenerator.hpp | 8 ++++---- profiling/common/include/TargetEndianess.hpp | 12 ++++++++++++ 5 files changed, 34 insertions(+), 24 deletions(-) create mode 100644 profiling/common/include/TargetEndianess.hpp (limited to 'profiling/common/include') diff --git a/profiling/common/include/IProfilingGuidGenerator.hpp b/profiling/common/include/IProfilingGuidGenerator.hpp index 34ee9673b5..2fdffc4499 100644 --- a/profiling/common/include/IProfilingGuidGenerator.hpp +++ b/profiling/common/include/IProfilingGuidGenerator.hpp @@ -9,10 +9,10 @@ #include -namespace armnn +namespace arm { -namespace profiling +namespace pipe { class IProfilingGuidGenerator @@ -27,6 +27,6 @@ public: virtual ~IProfilingGuidGenerator() {} }; -} // namespace profiling +} // namespace pipe -} // namespace armnn +} // namespace arm diff --git a/profiling/common/include/LabelsAndEventClasses.hpp b/profiling/common/include/LabelsAndEventClasses.hpp index 8e3e0b0c67..0c43524294 100644 --- a/profiling/common/include/LabelsAndEventClasses.hpp +++ b/profiling/common/include/LabelsAndEventClasses.hpp @@ -9,10 +9,10 @@ #include "DllExport.hpp" -namespace armnn +namespace arm { -namespace profiling +namespace pipe { class LabelsAndEventClasses @@ -64,6 +64,6 @@ private: static ProfilingGuidGenerator m_GuidGenerator; }; -} // namespace profiling +} // namespace pipe -} // namespace armnn +} // namespace arm diff --git a/profiling/common/include/ProfilingGuid.hpp b/profiling/common/include/ProfilingGuid.hpp index 4d0dd9b3c9..fef17988e4 100644 --- a/profiling/common/include/ProfilingGuid.hpp +++ b/profiling/common/include/ProfilingGuid.hpp @@ -8,10 +8,10 @@ #include #include -namespace armnn +namespace arm { -namespace profiling +namespace pipe { static constexpr uint64_t MIN_STATIC_GUID = 1llu << 63; @@ -70,11 +70,9 @@ struct ProfilingStaticGuid : public ProfilingGuid using ProfilingGuid::ProfilingGuid; }; -} // namespace profiling +} // namespace pipe - - -} // namespace armnn +} // namespace arm @@ -82,9 +80,9 @@ namespace std { /// make ProfilingGuid hashable template <> -struct hash +struct hash { - std::size_t operator()(armnn::profiling::ProfilingGuid const& guid) const noexcept + std::size_t operator()(arm::pipe::ProfilingGuid const& guid) const noexcept { return hash()(uint64_t(guid)); } @@ -92,9 +90,9 @@ struct hash /// make ProfilingDynamicGuid hashable template <> -struct hash +struct hash { - std::size_t operator()(armnn::profiling::ProfilingDynamicGuid const& guid) const noexcept + std::size_t operator()(arm::pipe::ProfilingDynamicGuid const& guid) const noexcept { return hash()(uint64_t(guid)); } @@ -102,9 +100,9 @@ struct hash /// make ProfilingStaticGuid hashable template <> -struct hash +struct hash { - std::size_t operator()(armnn::profiling::ProfilingStaticGuid const& guid) const noexcept + std::size_t operator()(arm::pipe::ProfilingStaticGuid const& guid) const noexcept { return hash()(uint64_t(guid)); } diff --git a/profiling/common/include/ProfilingGuidGenerator.hpp b/profiling/common/include/ProfilingGuidGenerator.hpp index 2b7302bd61..bfee7642e9 100644 --- a/profiling/common/include/ProfilingGuidGenerator.hpp +++ b/profiling/common/include/ProfilingGuidGenerator.hpp @@ -11,10 +11,10 @@ #include #include -namespace armnn +namespace arm { -namespace profiling +namespace pipe { class ProfilingGuidGenerator : public IProfilingGuidGenerator @@ -57,6 +57,6 @@ private: std::mutex m_SequenceMutex; }; -} // namespace profiling +} // namespace pipe -} // namespace armnn +} // namespace arm diff --git a/profiling/common/include/TargetEndianess.hpp b/profiling/common/include/TargetEndianess.hpp new file mode 100644 index 0000000000..8ee8db1d34 --- /dev/null +++ b/profiling/common/include/TargetEndianess.hpp @@ -0,0 +1,12 @@ +// +// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +enum class TargetEndianness +{ + BeWire, + LeWire +}; \ No newline at end of file -- cgit v1.2.1