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

OpenMP declare reduction directive

Igor_Y_
Beginner
567 Views

Hi everybody!

Does Intel Fortran Compiler support OpenMP declare reduction directive like C compilers?

For example:

  #pragma omp declare reduction(mymin : int : omp_out = omp_in < omp_out ? omp_in : omp_out)  

  #pragma omp parallel for reduction(mymin:result)
  for (i=0; i<N; i++) {
     result = data;
  }

if so, could you please write a short example or tell me why it does not supported like described in OpenMP specs?

Many thanks!

0 Kudos
2 Replies
Lorri_M_Intel
Employee
567 Views

Intel Fortran does not yet support the OpenMP "declare reduction" directive, although is being looked at for a future major release.

                    --Lorri

0 Kudos
Igor_Y_
Beginner
567 Views

I see. Thank you for reply.

0 Kudos
Reply