Git Product home page Git Product logo

Comments (6)

mansnils avatar mansnils commented on May 29, 2024

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.

njsyw1997 avatar njsyw1997 commented on May 29, 2024

@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.

mansnils avatar mansnils commented on May 29, 2024

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.

njsyw1997 avatar njsyw1997 commented on May 29, 2024

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.

mansnils avatar mansnils commented on May 29, 2024

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.

njsyw1997 avatar njsyw1997 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.