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.

CCS/TMS320C6678: Warning and error omp parallel (TMS320C6678)

Part Number: TMS320C6678


Tool/software: Code Composer Studio

Hi guys.
I've made next program (my idea is blink two leds with different timing using core 0 and core 1.....I've got demo GPIO from Keystone and I'm trying to modify it).

omp_set_num_threads(2);    // set the number of threads as 2. These 2 threads are executed in parallel by 2 different cores

while(1)

{


/* start of parallel region */

#pragma omp parallel

{


#pragma omp sections


{
// section 1
#pragma omp section

{

gpGPIO_regs->BANK_REGISTERS[0].SET_DATA = 0x4000;
TSC_delay_us(1000000);
gpGPIO_regs->BANK_REGISTERS[0].CLR_DATA= 0x4000;
TSC_delay_us(1000000);
}

// section 2
#pragma omp section

{

gpGPIO_regs->BANK_REGISTERS[0].SET_DATA = 0x8000;
TSC_delay_us(500000);
gpGPIO_regs->BANK_REGISTERS[0].CLR_DATA= 0x8000;
TSC_delay_us(500000);
}
}


}

/* end of parallel region */


}

I've got warning in next sentences:

#pragma omp parallel

#pragma omp sections

#pragma omp section

CCS doesnt make me file. (sends me error by console)

I dont know why I've got that warning.
I've included all headers and packages like demos have it (I've watched headers and packages of "Hello world example" and "openMP matrix vector multiplication", I've got same headers and packages in me program).
Futhermore, demos runs me very good (I've dont have problems)

thanks for reply!