build-run: Add Ethos NPU ID and MAC configuration option (#48)
* ml-eval-kit: Make ETHOSU_ARCH configurable in TensorFlow CMake This patch removes the hardcoded value of u55 in tesorflow.cmake. It now uses ETHOS_U_NPU_ID as input and convert it to the format needed by TensorFlow build. This also means the ETHOS_U_NPU_ID variable preserve workaround is no longer needed in SetupMlEmbeddedEvaluationKitLibraries.cmake as it is no longer overwritten in tensorflow.cmake. Signed-off-by:Gabor Abonyi <gabor.abonyi@arm.com> * ml-eval-kit: Move NPU config from app to bsp These settings are independent from the applications, to reduce duplication, configuration of NPU is moved to bsp layer. Added U65 option and checks for config validity. Signed-off-by:
Gabor Abonyi <gabor.abonyi@arm.com> * ml-eval-kit: Move activation_buf_dram to .bss.NoInit region This is needed to place activation_buf_dram in a no init region, so it does not require space in flash. Signed-off-by:
Gabor Abonyi <gabor.abonyi@arm.com> * build-run: Add support for Ethos NPU ID and MAC cycle configuration * Add option to the build/run scripts to select different Ethos NPU * Add option to the buld script to select number of Ethos NPU MAC unit per cycle Signed-off-by:
Gabor Abonyi <gabor.abonyi@arm.com> * build-run: Use a shell variable to gather CMake arguments This is so some CMake arguments can be excluded more easily depending on the build configuration. It will remove the need to set default values for CMake cache variables from the scripts as CMake cache variables already have default values. This change allows a standard overriding of CMake cache variable in CMake scripts without a check to see if the user input a value for the cache variable. Signed-off-by:
Gabor Abonyi <gabor.abonyi@arm.com> * build: Unify error report format in build.sh Signed-off-by:
Gabor Abonyi <gabor.abonyi@arm.com> --------- Signed-off-by:
Gabor Abonyi <gabor.abonyi@arm.com>
Loading
Please register or sign in to comment