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

OpenMP reduction clause syntax in IVF 10.1?

j0e
New Contributor I
755 Views

Hi

In a fixed form fortran code, when i use the following OpenMP statement the IVF compiler 10.1 generates syntax errors:

!$omp parallel do reduction (+ : numf, iw_nfcon, iw_nfobj, iw_numt, rw_tsum)

...

!$omp end parellel do

I get: Error: Syntax error, found END-OF-STATEMENT when expecting one of: , )

However, if I don't seperate the variable list with commas, no compiler errors are produced. I don't know if it compiles correctly because I'm still coding.

Is this a bug, or am I just missing something, as the list is suposed to be separated by commas?

thanks,

-joe

0 Kudos
4 Replies
j0e
New Contributor I
755 Views

Ok, it appears if I remove the underbars, "_", from the variable names, compilation with a comma separated list works.

It appears that variables with "_" are not supported. Is that how it should be?

-joe

0 Kudos
TimP
Honored Contributor III
755 Views
Are you testing the quality of diagnostics for mis-spelled omp directives?
0 Kudos
Steven_L_Intel1
Employee
755 Views
My guess is that you are running past column 72 with the longer names.
0 Kudos
j0e
New Contributor I
755 Views

Thanks Steve! I so seldom use fixed form anymore that i forgot to see the obvious.

-joe

0 Kudos
Reply