Tool/software: TI-RTOS
Hello, experts,
I would like to ask some questions about openmp, I recently call OpenMP to do algorithm processing, encountered some problems. I designed a small test as follows, to see if it is successful to call openmp, and found that the execution time of the program without calling OpenMP is much less than that without calling openmp. According to reason, the time for calling OpenMP is less than that without calling. What's the reason? I don't know if my configuration is wrong. Please give me some advice, thank you.
this is my test
//#pragma omp parallel for shared(uart_i,uart_j) private(i)
for(i=0;i<1920000;i++)
{
for(uart_i=0;uart_i<1920000;uart_i++)
{
for(uart_j=0;uart_j<1920000;uart_j++);
}
if(i==1919999)
{
printf("will success\n");
}
}