Cray C/C++ predefined RELEASE_ macro returns wrong value
November 18, 2013 by Mike Stewart, NERSC USG. (0 Comments)
Status: Reported to Cray as bug 797442.
According to the Sept, 2013, version of the Cray C/C++ manual at docs.cray.com, Chapter 10, "Using Predefined Macros":
Defined as the major release level of the compiler.
_RELEASE returns the value 11 and not the major release number, currently 8.
Cray told us and we have verified that the _RELEASE_MAJOR macro will return the correct value for the major release level, but they have not formally documented this.
This has caused problems with cmake for some users.