diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-10 22:57:47 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-12 12:43:35 +0000 |
commit | 6730fe9cbc195f054d697b25daba8516d70658e0 (patch) | |
tree | 712edb5d7dfbb1b1b2d91b70d4009c56164ef069 /src/profiling/test/ProfilingMocks.hpp | |
parent | 9265a88c0064dbcf5ad4694bbdcce1b335a394e6 (diff) | |
download | armnn-6730fe9cbc195f054d697b25daba8516d70658e0.tar.gz |
IVGCVSW-6842 Replace ARMNN_ASSERT with ARM_PIPE_ASSERT in profiling code
Change-Id: Ie982ae603b7fb2793baf921232d32ce43f46d444
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/test/ProfilingMocks.hpp')
-rw-r--r-- | src/profiling/test/ProfilingMocks.hpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/profiling/test/ProfilingMocks.hpp b/src/profiling/test/ProfilingMocks.hpp index 962912e995..4af2b6064e 100644 --- a/src/profiling/test/ProfilingMocks.hpp +++ b/src/profiling/test/ProfilingMocks.hpp @@ -15,8 +15,8 @@ #include <armnn/Optional.hpp> #include <armnn/Conversion.hpp> -#include <armnn/utility/Assert.hpp> +#include <common/include/Assert.hpp> #include <common/include/IgnoreUnused.hpp> #include <common/include/NumericCast.hpp> #include <common/include/ProfilingException.hpp> @@ -452,11 +452,11 @@ public: { // Create the category CategoryPtr category = std::make_unique<Category>(categoryName); - ARMNN_ASSERT(category); + ARM_PIPE_ASSERT(category); // Get the raw category pointer const Category* categoryPtr = category.get(); - ARMNN_ASSERT(categoryPtr); + ARM_PIPE_ASSERT(categoryPtr); // Register the category m_Categories.insert(std::move(category)); @@ -472,11 +472,11 @@ public: // Create the device DevicePtr device = std::make_unique<Device>(deviceUid, deviceName, cores); - ARMNN_ASSERT(device); + ARM_PIPE_ASSERT(device); // Get the raw device pointer const Device* devicePtr = device.get(); - ARMNN_ASSERT(devicePtr); + ARM_PIPE_ASSERT(devicePtr); // Register the device m_Devices.insert(std::make_pair(deviceUid, std::move(device))); @@ -493,11 +493,11 @@ public: // Create the counter set CounterSetPtr counterSet = std::make_unique<CounterSet>(counterSetUid, counterSetName, count); - ARMNN_ASSERT(counterSet); + ARM_PIPE_ASSERT(counterSet); // Get the raw counter set pointer const CounterSet* counterSetPtr = counterSet.get(); - ARMNN_ASSERT(counterSetPtr); + ARM_PIPE_ASSERT(counterSetPtr); // Register the counter set m_CounterSets.insert(std::make_pair(counterSetUid, std::move(counterSet))); @@ -531,7 +531,7 @@ public: // Get the counter UIDs and calculate the max counter UID std::vector<uint16_t> counterUids = GetNextCounterUids(uid, deviceCores); - ARMNN_ASSERT(!counterUids.empty()); + ARM_PIPE_ASSERT(!counterUids.empty()); uint16_t maxCounterUid = deviceCores <= 1 ? counterUids.front() : counterUids.back(); // Get the counter units @@ -549,18 +549,18 @@ public: unitsValue, deviceUidValue, counterSetUidValue); - ARMNN_ASSERT(counter); + ARM_PIPE_ASSERT(counter); // Get the raw counter pointer const Counter* counterPtr = counter.get(); - ARMNN_ASSERT(counterPtr); + ARM_PIPE_ASSERT(counterPtr); // Process multiple counters if necessary for (uint16_t counterUid : counterUids) { // Connect the counter to the parent category Category* parentCategory = const_cast<Category*>(GetCategory(parentCategoryName)); - ARMNN_ASSERT(parentCategory); + ARM_PIPE_ASSERT(parentCategory); parentCategory->m_Counters.push_back(counterUid); // Register the counter @@ -587,7 +587,7 @@ public: { auto it = std::find_if(m_Categories.begin(), m_Categories.end(), [&name](const CategoryPtr& category) { - ARMNN_ASSERT(category); + ARM_PIPE_ASSERT(category); return category->m_Name == name; }); |