Hello, we are using the imx8m plus to do ultrasound signal processing. At first we tried openCL, but results are too slow for our application so now we are trying it with neon. The problem is that the cross-compile gcc generated with yocto don't recognize -mfloat-abi neither -mfpu flags, and when we execute commands to detect neon on linux it doesn't show up (https://developer.arm.com/documentation/den0018/a/Compiling-NEON-Instructions/Detecting-presence-of-...).
I wrote some code using neon intrinsics and I can compile using the make file below, but I see in assembly code that it isn't using neon instructions like vadd, vmul etc.
What should I do to enable neon? Should I do something on yocto?
Makefile:
Hello,
You have to upgrade your gcc or toolchain, current yocto BSP has neon and fpu support on cortex A53, also make sure neon its enable in kernel configuration file.
Regards
Thanks for responding. We tried modifying our yocto configuration file, generated a new cross-compile toolchain and compiled a simple .c file using makefile. But as we understand it, we have not yet compiled vector instructions nor have we seen neon listed when using cat /proc/cpuinfo. Could you tell me what and how we should modify our files? I attached the files as .txt.