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.

Multicore programming using pragma

Other Parts Discussed in Thread: TMS320C6678

I am using a TI-Keystone 1  (TMS320C6678) target which has 8 cores. If I load my program into all cores, I can see the same code getting executed on each of them. But are there any #pragmas so that from the code a particular section can be executed only on specific cores

I meant something like

#ifdef CORE_0 

// Program

#endif

  • Hi Ginu,
    You can use DNUM to execute the particular section on specific cores. There are plenty of threads available in e2e forum about DNUM. You can also refer gel file for DNUM usage.

    If (DNUM == 0)
    {
    //core 0
    }

    Thank you.
  • Ginu,

    HI, thank for posting this topic. I am new to multicore programming and your description is how I thought things would work concerning running multiple cores. I recently spoke with a coworker that was using OpenMP for multicore programming. He mentioned that OpenMP made things much easier to set up and get things running. He described it as one core that controls which functions run on which core. He said that OpenMP manages the shared resources. Have you heard of OpenMP or have any comments on using it?

    Thanks, Joe