diff options
Diffstat (limited to 'applications')
-rw-r--r-- | applications/baremetal/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/baremetal/main.cpp b/applications/baremetal/main.cpp index 0c89058..8b1bc2b 100644 --- a/applications/baremetal/main.cpp +++ b/applications/baremetal/main.cpp @@ -55,11 +55,15 @@ InferenceProcess::InferenceProcess inferenceProcess(TFLuTensorArena, TENSOR_AREN uint8_t outputData[sizeof(expectedOutputData)] __attribute__((aligned(16), section("output_data_sec"))); #ifdef ETHOSU +constexpr int32_t EventComponentNo = 0x00; namespace { std::vector<ethosu_pmu_event_type> pmuEventConfig{ETHOSU_PMU_CYCLE, ETHOSU_PMU_NPU_ACTIVE}; +std::vector<int32_t> eventRecMessageIds{EventID(EventLevelDetail, EventComponentNo, ETHOSU_PMU_CYCLE), + EventID(EventLevelDetail, EventComponentNo, ETHOSU_PMU_NPU_ACTIVE)}; + const uint32_t delayMs = SystemCoreClock / 60ul; struct ethosu_driver *ethosuDrv; -EthosUMonitor ethosuMonitor(0, EthosUMonitor::Backend::EVENT_RECORDER); +EthosUMonitor ethosuMonitor(eventRecMessageIds, EthosUMonitor::Backend::EVENT_RECORDER); } // namespace extern "C" { |