GithubHelp home page GithubHelp logo

vector_mulv_addv testing broken about lib_dsp HOT 9 OPEN

xmos avatar xmos commented on September 18, 2024
vector_mulv_addv testing broken

from lib_dsp.

Comments (9)

henkmuller avatar henkmuller commented on September 18, 2024

I fixed it on my fork.

Two observations:

  1. The test cases don’t test for vectors longer than 5 elements; there is a lot of special code for vectors with length greater than 7
  2. The special code assumes that all arrays are 64 bit aligned; which they aren’t in the example program

I suggest we disable the special code for vectors longer than 7 elements.

from lib_dsp.

johned0 avatar johned0 commented on September 18, 2024

from lib_dsp.

johned0 avatar johned0 commented on September 18, 2024

BTW, I had a chat with Peter, on Monday.
I've offered to try to find some time to spend working on lib_dsp, to make sure all the examples and documentation etc are correct and all the pull requests merged etc.
Not sure when though, but hopefully soon.
J

from lib_dsp.

henkmuller avatar henkmuller commented on September 18, 2024

I appreciate that the special code speeds it up; but if there is no test case it is quite hard to see that it actually works. Re alignment: I hadn't appreciated that all global arrays are 64-bit aligned.

from lib_dsp.

johned0 avatar johned0 commented on September 18, 2024

Agreed, Henk, this is one of the areas that needs tidying up so test cases should cover longer arrays

from lib_dsp.

henkmuller avatar henkmuller commented on September 18, 2024

I renamed the issue to reflect that the code is probably ok, but it is the testing that needs fixing.

from lib_dsp.

johned0 avatar johned0 commented on September 18, 2024

indeed

from lib_dsp.

oscarbailey-xmos avatar oscarbailey-xmos commented on September 18, 2024

I've written some tests for the dsp_vector functions which seem to show that the muls_addv, muls_subv, mulv_addv, and mulv_subv do not give correct outputs for vector lengths > 7.

My Fork

from lib_dsp.

oscarbailey-xmos avatar oscarbailey-xmos commented on September 18, 2024

Related issue: #123

from lib_dsp.

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.