How to add pthread in examples of sve project?

 

#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.

Parents
  • Hi again

    I assume you are using Arm Compiler for Embedded 6, but you don't say which value is incorrect after the memcpy.

    I think the best way to investigate what is going wrong is for you to use the Arm DS Debugger.  Try single-stepping through the code, and check that the variables, structs and memory change as expected as code execution progresses by using the Variables, Registers and Memory views in the Debugger.

    In particular, take a close look at the addresses being passed into memcpy.  You can watch the execution of memcpy if you open two Memory views - one open on the source address and the other open at the destination address - and then single-step through it, instruction by instruction.

    Hope this helps

    Stephen

Reply
  • Hi again

    I assume you are using Arm Compiler for Embedded 6, but you don't say which value is incorrect after the memcpy.

    I think the best way to investigate what is going wrong is for you to use the Arm DS Debugger.  Try single-stepping through the code, and check that the variables, structs and memory change as expected as code execution progresses by using the Variables, Registers and Memory views in the Debugger.

    In particular, take a close look at the addresses being passed into memcpy.  You can watch the execution of memcpy if you open two Memory views - one open on the source address and the other open at the destination address - and then single-step through it, instruction by instruction.

    Hope this helps

    Stephen

Children
No data