#include <pthread.h>
I use this line code in Arm Development Studio built-in sve_array_subtract example and has build errors that "pthread.h" file not found. How to solve it, I wanna use both multi-thread and sve instrinsics in the project.
HiMy name is Stephen and I work at Arm.The "sve_array_subtract" example in Arm Development Studio is a bare-metal example that compiles with "Arm Compiler for Embedded 6", so is not designed to work with pthreads.To use pthreads with it, you would need to convert the example from bare-metal to a Linux Application, and change the compiler from Arm Compiler for Embedded 6 to GCC for Linux (e.g. aarch64-none-linux-gnu), which you can download from developer.arm.com/.../arm-gnu-toolchain-downloadsThe "threads_v8A" example in Arm Development Studio shows the use of pthreads in a gcc-built Linux Application, so you could use that as a starting point for your conversion.Hope this helpsStephen