Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vector_mulv_addv testing broken #86

Open
henkmuller opened this issue Jun 28, 2017 · 9 comments
Open

vector_mulv_addv testing broken #86

henkmuller opened this issue Jun 28, 2017 · 9 comments
Labels
type:testing Issue with test

Comments

@henkmuller
Copy link
Collaborator

henkmuller commented Jun 28, 2017

Reported on xcore.com

@henkmuller
Copy link
Collaborator Author

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.

@johned0
Copy link
Contributor

johned0 commented Jun 28, 2017 via email

@johned0
Copy link
Contributor

johned0 commented Jun 28, 2017

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

@henkmuller
Copy link
Collaborator Author

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.

@johned0
Copy link
Contributor

johned0 commented Jun 28, 2017

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

@henkmuller henkmuller changed the title vector_mulv_addv broken vector_mulv_addv testing broken Jun 28, 2017
@henkmuller
Copy link
Collaborator Author

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

@johned0
Copy link
Contributor

johned0 commented Jun 28, 2017

indeed

@oscarbailey-xmos
Copy link
Contributor

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

@oscarbailey-xmos
Copy link
Contributor

Related issue: #123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:testing Issue with test
Projects
None yet
Development

No branches or pull requests

4 participants