Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

OpenMP declare reduction directive

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

I see. Thank you for reply.

Reply