From de54e1606b21d333e126525807414455d2ff1840 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Tue, 20 Dec 2022 16:09:15 +0000 Subject: MLECO-3659: Improvement for NPU PMU counters The NPU idle count could have been erraneously high as the counters were always running. This change utilises callback functions to start/stop the counters only when the inferences start/stop executing on the NPU. Changes have been made to cache maintenance functions called from within the NPU driver's pipeline to reduce the overhead caused by these. Change-Id: I69db0d3b3f3fe5b2847e15b5c3096cb1e0484176 Signed-off-by: Kshitij Sisodia --- build_default.py | 1 + 1 file changed, 1 insertion(+) (limited to 'build_default.py') diff --git a/build_default.py b/build_default.py index 387e9ba..e35aa1c 100755 --- a/build_default.py +++ b/build_default.py @@ -122,6 +122,7 @@ def run( + f" -DCMAKE_TOOLCHAIN_FILE={cmake_toolchain_file}" + f" -DETHOS_U_NPU_ID={ethos_u_cfg.ethos_u_npu_id}" + f" -DETHOS_U_NPU_CONFIG_ID={ethos_u_cfg.ethos_u_config_id}" + + f" -DTENSORFLOW_LITE_MICRO_CLEAN_DOWNLOADS=ON" ) logging.info(f"\n\n\n{cmake_command}\n\n\n") -- cgit v1.2.1