This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

using openmp in task function

Hi

My base project is " C:\ti\mcsdk_2_01_02_05\demos\image_processing\openmp\evmc6678l " and I created dynamic tasks in it. when I used OpenMP in a task function it doesn't work and system crush but OpenMP worked in main or in function that called in main.

Question 1:

How can I use OpenMP in a task function?

Question 2:

Is there any reference that describe using OpenMP in task functions?

Best Regards

  • Dear Dariush,
    Can you please create a task for printing some hello world text on that task and try ?
  • Dear Titusrathinaraj

    According to "  " thread openmp doesn't work in a task function.

    Now I'm searching for an alternative plan.

    Question 1:

    Is it possible to receive and put data in in DDR3 by EDMA3, real time and permanently ?

    If the answer is yes, after that I call my functions in the main() at infinite loop and use OpenMP in the functions.

    Question 2:

    Am I thinking right?

    Question 3:

    Can you suggest a plan to me?

    Best Regards 

  • Hi dariush,


    You probably meant the same application you described here:

    You previous experiment seem already confirmed that you are able to get the data flow work, i.e. processing data in DDR3 within OpenMP parallel region, and the only exception you observed was that when you put the OpenMP #pragma in a SYS/BIOS task which is not unexpected. In terms of data receiving via EDMA, you can refer to the example code in EDMA3 LLD examples\edma3_driver\src.

    Regards, Garrett

  • Dear Garret

    Now I'm studying EDMA3 user guide but I want to know the program architecture because I don't want to go to the wrong way again. 

    In my previous version when I would like to make a TCP connection(DSP work as client) I created a task and use socket programming.

    Question 1:

    what should I do for TCP client connection In new version? 

    Question 2:

    The architecture in my mind is as below, am I thinking right?

    I am some confused, guide me .please.

    Regards