6 #include <boost/test/unit_test.hpp> 13 using namespace armnn;
22 const char* eventName =
"EventName";
25 insts1.emplace_back(std::make_unique<WallClockTimer>());
26 Event testEvent(eventName,
32 BOOST_CHECK_EQUAL(testEvent.
GetName(),
"EventName");
38 std::this_thread::sleep_for(std::chrono::microseconds(10));
48 insts2.emplace_back(std::make_unique<WallClockTimer>());
49 Event testEvent2(eventName,
56 BOOST_CHECK_EQUAL(profileManager.
GetProfiler(), testEvent2.GetProfiler());
57 BOOST_CHECK(cpuAccBackendId == testEvent2.GetBackendId());
65 const char* eventName =
"GPUEvent";
68 insts1.emplace_back(std::make_unique<WallClockTimer>());
69 Event testEvent(eventName,
75 BOOST_CHECK_EQUAL(testEvent.
GetName(),
"GPUEvent");
81 std::this_thread::sleep_for(std::chrono::microseconds(10));
91 insts2.emplace_back(std::make_unique<WallClockTimer>());
92 Event testEvent2(eventName,
99 BOOST_CHECK_EQUAL(profileManager.
GetProfiler(), testEvent2.GetProfiler());
100 BOOST_CHECK(gpuAccBackendId == testEvent2.GetBackendId());
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
void Stop()
Stop the Event.
std::vector< InstrumentPtr > Instruments
const Event * GetParentEvent() const
void Start()
Start the Event.
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
GPU Execution: OpenCL: ArmCompute.
BOOST_AUTO_TEST_SUITE_END()
CPU Execution: NEON: ArmCompute.
const std::string & GetName() const
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
const std::vector< Measurement > GetMeasurements() const
static ProfilerManager & GetInstance()