NERSCPowering Scientific Discovery Since 1974

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":

Macro

Description

_RELEASE

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.


Post your comment

You cannot post comments until you have logged in. Login Here.

Comments

No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments