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.

#2597 (OpenMP) Invalid loop test expression



Hi,

I am getting the following error on 6678 DSP.

#2597 (OpenMP) Invalid loop test expression

My code for this is:

#pragma omp parallel for num_threads(CORES) private(jj) shared(init,grid_local) schedule(guided)
for (jj=0;jj<numb_lines*numb_col;jj++) {
init [jj*6] = grid_local[ii*numb_col*numb_lines*3+jj*3]; //disp
init [jj*6+1] = grid_local[ii*numb_col*numb_lines*3+jj*3+1]; //height
init [jj*6+2] = grid_local[ii*numb_col*numb_lines*3+jj*3+2]; //width
init [jj*6+3]=init[jj*6+1]*init[jj*6+2];
init [jj*6+4]=init[jj*6+1]*init[jj*6+1];
init [jj*6+5]=init[jj*6+2]*init[jj*6+2];
}

This is the only place in my code where #pragma fails, in other places it works perfectly fine.

Any help will be highly appreciated

Thanks