diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-12-20 16:09:15 +0000 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-12-21 11:51:37 +0000 |
commit | de54e1606b21d333e126525807414455d2ff1840 (patch) | |
tree | 902d468f60b098cd91b9590db155d8fb08c06353 /build_default.py | |
parent | 2ea46232a15aaf7600f1b92314612f4aa2fc6cd2 (diff) | |
download | ml-embedded-evaluation-kit-de54e1606b21d333e126525807414455d2ff1840.tar.gz |
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 <kshitij.sisodia@arm.com>
Diffstat (limited to 'build_default.py')
-rwxr-xr-x | build_default.py | 1 |
1 files changed, 1 insertions, 0 deletions
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") |