Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
35 Views

OpenMP declare reduction directive

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
Highlighted
35 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
Highlighted
Beginner
35 Views

I see. Thank you for reply.

0 Kudos