I have the following code, which I believe should display a progress bar approximating the course of the whole process (since each parallel thread of the loop should progress at about the same speed)
#pragma omp parallel for for(long int x=0;x<elevations.size1();x++){
However, I get the following error:
warning: master region may not be closely nested inside of work-sharing or explicit task region [enabled by default]
Now, when I run the code, I get the desired result. But I don't like the warnings. Why does this give me a warning and is there a better way to do this?
Thanks!
source share