- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Interesting... and with a preview version of 2024.1.0 I get
$ ifx -qopenmp prep.symbols.F90
$ a.out
20240100
0
202011
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OH! That description is not accurate! I filed a bug report DOC-12167.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page