Hi,
Wrt the openmp constructs parallel and work-share, how the following constructs work:
1) #pragma omp for
2) #pragma omp parallel for
Are these both statements have same effect? or different?
For example:
If this loop is executed under the construct (1), it will divide the loop iterations to chunks but will not execute in parallel.Code:for ( i=1; i<=20; i++) { lines of code here; }
But with construct (2), the loop iterations are divided as well as executed in parallel & simultaneously.
Is this my understanding correct?
Thanks



LinkBack URL
About LinkBacks


