aboutsummaryrefslogtreecommitdiff
path: root/applications/driver_unit_tests/irq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/driver_unit_tests/irq.cpp')
-rw-r--r--applications/driver_unit_tests/irq.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/applications/driver_unit_tests/irq.cpp b/applications/driver_unit_tests/irq.cpp
index e4b030a..fdd7121 100644
--- a/applications/driver_unit_tests/irq.cpp
+++ b/applications/driver_unit_tests/irq.cpp
@@ -30,7 +30,7 @@ using namespace EthosU::CommandStream;
/****************************************************************************
* Data
****************************************************************************/
-
+// clang-format off
__attribute__((section(".sram.data"), aligned(16))) char commandStream[] = {
DRIVER_ACTION_MAGIC()
DRIVER_ACTION_NOP()
@@ -38,22 +38,16 @@ __attribute__((section(".sram.data"), aligned(16))) char commandStream[] = {
DRIVER_ACTION_COMMAND_STREAM(1)
NPU_OP_STOP(0)
-};
+}; // clang-format on
/****************************************************************************
* Functions
****************************************************************************/
int main() {
- CommandStream cs(
- DataPointer(commandStream, sizeof(commandStream)),
- BasePointers(),
- PmuEvents({
- ETHOSU_PMU_CYCLE,
- ETHOSU_PMU_NPU_IDLE,
- ETHOSU_PMU_NPU_ACTIVE
- })
- );
+ CommandStream cs(DataPointer(commandStream, sizeof(commandStream)),
+ BasePointers(),
+ PmuEvents({ETHOSU_PMU_CYCLE, ETHOSU_PMU_NPU_IDLE, ETHOSU_PMU_NPU_ACTIVE}));
const size_t repeat = 1000;
@@ -61,7 +55,7 @@ int main() {
cs.getPmu().clear();
// Run inference
- int ret = cs.run(repeat);
+ int ret = cs.run(repeat);
uint64_t cycleCount = cs.getPmu().getCycleCount();
// Print PMU counters