[Solved] OPenMP: When can a Loop be parallelized
I will not do your HW, but I will give a hint. When playing around with OpenMp for loops, you should be alert about the scope of the variables. For example: #pragma omp parallel for for(int x=0; x < width; x++) { for(int y=0; y < height; y++) { finalImage[x][y] = RenderPixel(x,y, &sceneData); } } … Read more