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

Documentation error - value of _OPENMP

Mark_Lewy
Valued Contributor I
849 Views

In Predefined Preprocessor Symbols (intel.com) for _OPENMP "The default is 201811 when you specify option [q or Q]openmp.", but "The currently supported OpenMP API is 5.0 Version TR4, dated November 2016".

If you print _OPENMP the value is 201611, matching the latter statement.

 

program preprocessorsymbols
    implicit none

    print*, __INTEL_COMPILER
    print*, __INTEL_COMPILER_UPDATE
    print*, _OPENMP
end program preprocessorsymbols

 

On Linux with "ifx -fpp -qopenmp pre-processor-symbols.f90", the output is

20240002
2
201611

 

3 Replies
Barbara_P_Intel
Employee
818 Views

Interesting...  and with a preview version of 2024.1.0 I get

$ ifx -qopenmp prep.symbols.F90
$ a.out
    20240100
           0
      202011

 

0 Kudos
Barbara_P_Intel
Employee
789 Views

OH! That description is not accurate! I filed a bug report DOC-12167.

 

0 Kudos
Barbara_P_Intel
Employee
638 Views

This description in the Fortran Developer Guide and Reference is cleaned up with the 2024.1 release that was done last week. Check it out!



Reply