Compiler-level optimization

From HP-SEE Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with " == Using GNU compilers == == Using IBM XL compilers == '' Section contributed by IICT-BAS '' The configure script or whatever build system is used, must be instructed to us...")
(Using IBM XL compilers)
Line 6: Line 6:
'' Section contributed by IICT-BAS ''
'' Section contributed by IICT-BAS ''
-
The configure script or whatever build system is used, must be instructed to use the cross-compiler instead of the standard gcc or other, to perform compilation. Usually, it can be done by setting the environment. IBM XL compilers can produce code, specifically optimized for the PPC 450 double-hummer processor of the computing nodes. Only with IBM XL compiler it is possible to use full advantages of BlueGene/P, because it allows the execution of two times more instructions per unit time.
+
The IBM XL suite of compilers is deployed at the Blue Gene/P. The most important advantage of these compilers with
 +
respect to the GNU compiler collection is that they support  the special features of the processors of Blue Gene/P that allow
 +
to double the floating point performance in double precision. Thus one should always try to compile with these compilers first.
 +
One should also remember that the compilation is in effect a cross-compilation, since it is done on the front-end node, which has
 +
slightly different architecture.
 +
The configure script or whatever build system is used, must be instructed to use the cross-compiler instead of the standard gcc or other, to perform compilation. Usually, it can be done by setting the environment variable like
 +
CC, F90, CXX, MPICC, MPIF90, MPICXX to point to the respective IBM XL compilers.
 +
The usual flags to achieve optimal result on the Blue Gene/P in Sofia are:
 +
 
 +
-O2 -qarch=450d -qtune=450
 +
which specify the CPU architecture.
== Intel® Parallel Studio XE development suite ==
== Intel® Parallel Studio XE development suite ==

Revision as of 09:48, 15 April 2012

Contents

Using GNU compilers

Using IBM XL compilers

Section contributed by IICT-BAS

The IBM XL suite of compilers is deployed at the Blue Gene/P. The most important advantage of these compilers with respect to the GNU compiler collection is that they support the special features of the processors of Blue Gene/P that allow to double the floating point performance in double precision. Thus one should always try to compile with these compilers first. One should also remember that the compilation is in effect a cross-compilation, since it is done on the front-end node, which has slightly different architecture. The configure script or whatever build system is used, must be instructed to use the cross-compiler instead of the standard gcc or other, to perform compilation. Usually, it can be done by setting the environment variable like CC, F90, CXX, MPICC, MPIF90, MPICXX to point to the respective IBM XL compilers. The usual flags to achieve optimal result on the Blue Gene/P in Sofia are:

-O2 -qarch=450d -qtune=450 which specify the CPU architecture.

Intel® Parallel Studio XE development suite

Sun Studio

PGI

javac

Personal tools