blog http://www.nersc.gov/users/software/compilers/cray-compilers/cray-bug-reports/ Cray C/C++ predefined RELEASE_ macro returns wrong value http://www.nersc.gov/users/software/compilers/cray-compilers/cray-bug-reports/cray-c-c-predefined-release-macro-returns-wrong-value/ <p><strong>Status:  Reported to Cray as bug 797442.</strong></p> <p>According to the Sept, 2013, version of the Cray C/C++ manual at docs.cray.com, Chapter 10, "Using Predefined Macros":</p> <table border="1"><thead><tr><th align="left" valign="top"> <p>Macro</p> </th><th align="left" valign="top"> <p>Description</p> </th></tr></thead><tbody><tr><td align="left" valign="top">_RELEASE</td> <td align="left" valign="top"> <p>Defined as the major release level of the compiler.</p> </td> </tr></tbody></table><p> </p> <p>_RELEASE returns the value 11 and not the major release number, currently 8.</p> <p>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.</p> <p>This has caused problems with cmake for some users.</p> Mon, 18 Nov 2013 12:44:43 -0800 http://www.nersc.gov/users/software/compilers/cray-compilers/cray-bug-reports/cray-c-c-predefined-release-macro-returns-wrong-value/