Comments (6)
Hi @njsyw1997
So I guess your question is about running the CMSIS-NN unit tests. Please note you can note you can not use the Arm(R) Corstone(TM)-300 FVP for performance testing as explained here.
Yes the FVP emulates a[Arm(R) Cortex(R)-M55 system, but it is backwards
compatible. so we use it in the unit test to run code compiled for e.g. a Cortex-M7. So please use M55 instead of M85 (although it might still work), and from CMSIS-NN unit test perspective the same code will be run.
So why it does not work in your case is hard to say especially without any logs.
You can try to run this script which download every dependency from scratch and should work for out of the box. The CMSIS-NN unit tests use the FVP in the same way.
from cmsis-nn.
@mansnils I see. I just found the directory corstone-310 from the script. Link cmake to it and now the test works.
Since FVP cannot measure performance, is there any other way to measure performance such as cycles and memory footprint except the real hardware?
Thank you very much!
from cmsis-nn.
Cycles can be measured as examplified here or here. Just note that for CPU measurements (i.e. CMSIS-NN) to get valid measurements it has to be run on real HW.
I can also point you to this unit test script (not doing cycle measurements) that should be plug and play on STM32 Nucleo boards.
from cmsis-nn.
I just met some small bugs in FVP setup. I tried to use the code from /ethos-u-core-platform/targets/corstone-300 to establish the tests but the function printf
do not perform correctly. I made a minimal example in this github repo. Could you please have a look?
Thank you very much!
from cmsis-nn.
I am not sure what you are trying to fix. I can assure you printf works when running the unit test in its current setup. This raises however the question of having a CI script for running the unit tests.
from cmsis-nn.
I just copy the code directly from ethos-u-core-platform but it does not work. I am just wondering if I use FVP wrong. Since this is CMSIS-NN repo, it might not be a good place to discuss it here. I will close the issue.
Thanks for your patience!
from cmsis-nn.
Related Issues (20)
- IAR compiler issues HOT 1
- Is there a roadmap? HOT 3
- Does the MVEI version of CMSIS NN have implementations of q15 and q7? HOT 1
- Vector of variable length used in arm_convolve_1x1_s8_fast HOT 1
- Documentation warning HOT 1
- What does CMSIS exactly refer to? HOT 1
- Occur an ASM error when compiling arm_nn_mat_mul_core_4x_s8 HOT 11
- reserved identifier violation HOT 6
- Is there some easy to get started guide? HOT 1
- Include/Internal/arm_nn_compiler.h: undefined __ARM_FEATURE_MVE HOT 1
- missing arm_s8_to_s16_unordered_with_offset.c when I included the pack HOT 3
- Output diff for new lstm-operator
- Confusing doc on `arm_nn_requantize`
- MVE Conv 1 x N does not handle all configurations HOT 1
- Unit tests fails to build with -O0
- Possible undefined behavior for `arm_nn_requantize` when compiling with `CMSIS_NN_USE_SINGLE_ROUNDING` HOT 9
- Inconsistency of CMSIS-NN Quantization Method(Q-format) with ARM Documentation HOT 2
- Inconsistency of CMSIS-NN Quantization Method(Q-format) with ARM Documentation HOT 4
- No MVE support Conv2D int16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmsis-nn.