Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
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
Principiante
535 Visualizações
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 Respostas
Steven_L_Intel1
Funcionário
535 Visualizações
I don't recommend that you use OMP WORKSHARE for this purpose, as the compiler currently treats it as SINGLE.
TimP
Colaborador honorário III
535 Visualizações
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.
Responder