Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

OpenMP declare reduction directive

Igor_Y_
Beginner
127 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
127 Views

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

                    --Lorri

Igor_Y_
Beginner
127 Views

I see. Thank you for reply.

Reply