Define both C and C++ compilers in BGQ toolchains; use -O3
authorJeff Hammond <jeff.science@gmail.com>
Sun, 16 Jun 2013 19:59:47 +0000 (19:59 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 16 Jun 2013 22:07:25 +0000 (00:07 +0200)
commit6fd98a0179fe3328b6c0702d8bae4b4e05eca22d
treefaf0e2f92c90e17e6e321a7f468b63956c34116e
parent5f127a98b81d11cc512e9534b839d37e51303bfc
Define both C and C++ compilers in BGQ toolchains; use -O3

When using either the C or C++ toolchain, the complimentary compiler is
not properly identified, rather /usr/bin/g{cc,++} is, which may cause
configuration problems.  this patch fixes this issue.

ALCF strongly recommends the use of -O3 unless there is clear evidence
that higher optimization has a (positive) effect on the quality of the
code generation from XL.  we find that XL frequently generates no faster
and even slower code with -O4 and -O5 unless the code is specifically
designed to be optimized for BGQ.

Fixes #1283

Change-Id: If32a507c6394e23106555741bdefbc0d554c3765
cmake/Platform/BlueGeneQ-static-XL-C.cmake
cmake/Platform/BlueGeneQ-static-XL-CXX.cmake