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

Incorrect function ranking? #33

Closed
ajraymond opened this issue Jul 22, 2015 · 1 comment
Closed

Incorrect function ranking? #33

ajraymond opened this issue Jul 22, 2015 · 1 comment

Comments

@ajraymond
Copy link

I am witnessing a strange behavior on my machine wrt arch ranking. I've narrowed it down to lib/volk_rank_archs.c:101.

The code does a popcnt on impl_deps, which contains 1 << various LV_{GENERIC,SSE4_1,AVX} constants, and picks the arch with the most 1s. However, since they are powers of two, they all get the same score.

Now, simply getting rid of popcnt solves the problem (as the best archs have a higher LV_ number), but I'm not sure that's the right thing to do

n-west added a commit to n-west/volk that referenced this issue Jul 24, 2015
@n-west
Copy link
Member

n-west commented Jul 24, 2015

You're correct about this behavior. However, it's only a problem when you don't have a volk_config (generated by volk_profile). I removed the popcnt and will push a fix with the upcoming release.

@n-west n-west closed this as completed Jul 30, 2015
jessica-iwamoto added a commit to jessica-iwamoto/volk that referenced this issue Jul 17, 2018
…-fma-trig-functions to next

* commit '6ec8fdb8194657d451c4bcc5f798e6ea56da51ad':
  bugfix: Put FMA intrinsics in separate protokernel for sin and cos functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants