Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

omp workshare vs omp do

Ralf
Beginner
355 Views
Hi there,
I'm just starting with OpenMP and have a question concerning array operations:
can the 'omp workshare' construct be used in ifort (12.0.4.196), how does it compare to do-loops? What is recommended?
Cheers
-Ralf
0 Kudos
2 Replies
Steven_L_Intel1
Employee
355 Views
I don't recommend that you use OMP WORKSHARE for this purpose, as the compiler currently treats it as SINGLE.
0 Kudos
TimP
Honored Contributor III
355 Views
workshare has been nominally implemented for some time in ifort. This doesn't mean it is the best way to accomplish all of the tasks for which it has been advocated. To give only one example, the auto-parallelization of MATMUL by automatic MKL substitution is more likely to prove effective than the workshare parallelization. This is far too wide a topic to generalize.
0 Kudos
Reply