Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

omp workshare vs omp do

Ralf
Beginner
529 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
529 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
529 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