diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-16 00:27:43 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-16 14:42:34 +0000 |
commit | 9c85b41a9fcb3c64d7a686373e7dde75630ccd49 (patch) | |
tree | 49ec983ec1ba499d5a5a9240b69f8f4bb9ca2082 /src/backends/backendsCommon/test | |
parent | 06ccd713391cca68dc8ab53b84bf058723ae55ab (diff) | |
download | armnn-9c85b41a9fcb3c64d7a686373e7dde75630ccd49.tar.gz |
IVGCVSW-6852 Break the remaining dependencies on Arm NN in the profiling code
Change-Id: I18b8ca22896567904768170350ee5eb22edd4a22
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/backends/backendsCommon/test')
-rw-r--r-- | src/backends/backendsCommon/test/BackendProfilingTests.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/backends/backendsCommon/test/BackendProfilingTests.cpp b/src/backends/backendsCommon/test/BackendProfilingTests.cpp index 253ff4a8fc..164efb3b9d 100644 --- a/src/backends/backendsCommon/test/BackendProfilingTests.cpp +++ b/src/backends/backendsCommon/test/BackendProfilingTests.cpp @@ -15,6 +15,8 @@ #include "ProfilingUtils.hpp" #include "RequestCounterDirectoryCommandHandler.hpp" +#include <armnn/profiling/ArmNNProfiling.hpp> + #include <TestUtils.hpp> #include <armnn/utility/IgnoreUnused.hpp> @@ -199,7 +201,11 @@ TEST_CASE("TestBackendCounters") armnn::ArmNNProfilingServiceInitialiser initialiser; std::unique_ptr<IProfilingService> profilingService = arm::pipe::IProfilingService::CreateProfilingService( - arm::pipe::MAX_ARMNN_COUNTER, initialiser); + arm::pipe::MAX_ARMNN_COUNTER, + initialiser, + arm::pipe::ARMNN_SOFTWARE_INFO, + arm::pipe::ARMNN_SOFTWARE_VERSION, + arm::pipe::ARMNN_HARDWARE_VERSION); std::unique_ptr<IBackendProfiling> cpuBackendProfilingPtr = std::make_unique<BackendProfiling>(options, *profilingService.get(), cpuAccId); @@ -449,7 +455,11 @@ TEST_CASE("TestBackendCounterLogging") armnn::ArmNNProfilingServiceInitialiser initialiser; std::unique_ptr<IProfilingService> profilingService = arm::pipe::IProfilingService::CreateProfilingService( - arm::pipe::MAX_ARMNN_COUNTER, initialiser); + arm::pipe::MAX_ARMNN_COUNTER, + initialiser, + arm::pipe::ARMNN_SOFTWARE_INFO, + arm::pipe::ARMNN_SOFTWARE_VERSION, + arm::pipe::ARMNN_HARDWARE_VERSION); std::unique_ptr<IBackendProfiling> cpuBackendProfilingPtr = std::make_unique<BackendProfiling>(options, *profilingService.get(), cpuAccId); @@ -506,7 +516,11 @@ TEST_CASE("BackendProfilingContextGetSendTimelinePacket") armnn::ArmNNProfilingServiceInitialiser psInitialiser; std::unique_ptr<IProfilingService> profilingService = arm::pipe::IProfilingService::CreateProfilingService( - arm::pipe::MAX_ARMNN_COUNTER, psInitialiser); + arm::pipe::MAX_ARMNN_COUNTER, + psInitialiser, + arm::pipe::ARMNN_SOFTWARE_INFO, + arm::pipe::ARMNN_SOFTWARE_VERSION, + arm::pipe::ARMNN_HARDWARE_VERSION); profilingService->ConfigureProfilingService( ConvertExternalProfilingOptions(options.m_ProfilingOptions), true); |