-
Notifications
You must be signed in to change notification settings - Fork 203
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
volk_cpu.tmpl.c on non-X86 cpus #571
Comments
Lines 101 to 108 in af69c60
I had a closer look at your second comment. I assume you refer to the Line 48 in af69c60
It is related to this field: volk/tmpl/volk_machines.tmpl.h Line 34 in af69c60
Currently, numbers up to |
Since we use |
Looking at the code, it treats anything starting with "neon" as an ARM feature, and everything else as x86.
I haven't tried running it yet, but I think this will break when run on any architecture that isn't ARM or X86.
(I am going to upstream some MIPS fixes to cpu_features, and I have several different MIPS workstations to test on. If I have time and I'm feeling brave enough, I might try writing a RISC-V port of CPU features.)
I think we may need a more general mechanism to say which features are part of which architecture.
=======
there's another problem with the code in this file. It assumes that the total number of cpu features, across all architectures, is less than or equal to the number of bits in an int. This is so it can set a bit in an int for each feature. This is not going to scale when volk is ported to more architectures. A bit for each feature of the architecture it's been compiled for would fit. A bit for every feature of every architecture volk has been ported to will eventually not fit.
The text was updated successfully, but these errors were encountered: