Giter VIP home page Giter VIP logo

Comments (3)

tcal-x avatar tcal-x commented on May 16, 2024

I tried inserting printfs in the "cached loads" benchmark, after reducing BUF_SIZE to 2048 (edit: this is 8kB, since the buffer has BUF_SIZE int32 elements), and captured the following output before it hang: buf: 0x00dee0-0x00fedc acc: 0x00dedc Edit: these are locally allocated on the stack.

Using nm to look at symbol addresses in .data, the highest locations I could find were:

00003468 b rx_buf
000034e8 b tx_buf
00003568 B __malloc_current_mallinfo
00003590 B errno
00003598 B _ebss
00003598 B _end

So it looks like there's plenty of space...maybe it's not actually hanging, or my theory is wrong.

OH -- it didn't hang, it was just very slow --- 742 cycles per load when executing out of spiflash!

For this board, the VexRiscv build has NO Icache or Dcache, and the code is located in spiflash, not main_ram or sram.

from cfu-playground.

JosephBushagour avatar JosephBushagour commented on May 16, 2024

Good catch on the TFLM unit tests, I was confused because I thought I tested them before submitting the PR. It turns out the unit tests fail only when no models are included and only for the Icebreaker (at least on the PR branch). I'll need to look into why the unit tests are behaving that way, I'm currently not sure why they'd pass when a model is included and only fail for the icebreaker when one isn't.

As for the benchmarks, a buffer size of 128kB is a bit big for the Icebreaker, I agree we should think about including a configuration that decreases the size a bit.

from cfu-playground.

tcal-x avatar tcal-x commented on May 16, 2024

Fixed with #136.

from cfu-playground.

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.