![]() |
|
#1
|
||||
|
||||
|
Intel, Parallelism and OpenMP
Hi,
I'm using OpenMP under the Intel compiler suite. Take a for() loop, like : for(i=0; i<k; i++) ... Intel docs makes the statement to NOT use the auto parallel pragmas if the value of 'k' is not fixed. Anybody know why?. If k varies each time the loop is encoutered, but remains constant during execution of the loop, why can't the loop be split into 4 threads, each handling approx k/4 iterations using : #pragma omp parallel sections and 4 of : #pragma omp section Is this a shortcoming of the pragmas or a fundamental point that I am missing? Git |
|
|