26.11.2012 Views

Compiler Usage Guidelines for 64-Bit Operating Systems on AMD64 ...

Compiler Usage Guidelines for 64-Bit Operating Systems on AMD64 ...

Compiler Usage Guidelines for 64-Bit Operating Systems on AMD64 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<str<strong>on</strong>g>Compiler</str<strong>on</strong>g> <str<strong>on</strong>g>Usage</str<strong>on</strong>g> <str<strong>on</strong>g>Guidelines</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> AMD<str<strong>on</strong>g>64</str<strong>on</strong>g> Plat<str<strong>on</strong>g>for</str<strong>on</strong>g>ms<br />

32035 Rev. 3.22 November 2007<br />

innovati<strong>on</strong>s are automatically incorporated into applicati<strong>on</strong>s through the use of ACML. The AMD<br />

Core Math Library (ACML) revisi<strong>on</strong> 4.0, built with PGI Editi<strong>on</strong> 7, includes BLAS, LAPACK, FFT<br />

and RNG routines that are optimized <str<strong>on</strong>g>for</str<strong>on</strong>g> AMD Athl<strong>on</strong> <str<strong>on</strong>g>64</str<strong>on</strong>g> and AMD Opter<strong>on</strong> processors. If the<br />

program uses these routines, using ACML in place of generic C/Fortran implementati<strong>on</strong> may greatly<br />

improve the per<str<strong>on</strong>g>for</str<strong>on</strong>g>mance. For additi<strong>on</strong>al details <strong>on</strong> how to install this library and use it, please refer to<br />

the ACML User Guide available at http://developer.amd.com/assets/acml_userguide.pdf.<br />

3.2 GCC <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (<str<strong>on</strong>g>64</str<strong>on</strong>g>-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) <str<strong>on</strong>g>for</str<strong>on</strong>g> Linux ®<br />

The <str<strong>on</strong>g>64</str<strong>on</strong>g>-bit GCC compilers can be installed and run <strong>on</strong> <str<strong>on</strong>g>64</str<strong>on</strong>g>-bit Linux ® , AMD Athl<strong>on</strong> <str<strong>on</strong>g>64</str<strong>on</strong>g>,<br />

AMD Opter<strong>on</strong> and AMD Family 10h processors. GCC compilers vary slightly, depending <strong>on</strong> the<br />

Linux distributi<strong>on</strong>. This secti<strong>on</strong> discusses the following GCC compilers.<br />

gcc 4.2.0 from Free Software Foundati<strong>on</strong> (FSF)<br />

gcc 4.2.0 from SuSE Linux Enterprise Server 10<br />

gcc 4.2.0 supplied with Red Hat Enterprise Linux 4<br />

3.2.1 Recommended <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> Versi<strong>on</strong>s<br />

The Linux distributi<strong>on</strong>s from SuSE and Red Hat include a default <str<strong>on</strong>g>64</str<strong>on</strong>g>-bit GCC compiler and opti<strong>on</strong>al<br />

GCC compilers. From a per<str<strong>on</strong>g>for</str<strong>on</strong>g>mance standpoint, the opti<strong>on</strong>al compilers are recommended. Table 2,<br />

below, shows the recommended (opti<strong>on</strong>al) compiler versi<strong>on</strong>s <str<strong>on</strong>g>for</str<strong>on</strong>g> the current SuSE and Red Hat<br />

distributi<strong>on</strong>s. These opti<strong>on</strong>al compilers are included <strong>on</strong> product CDs and DVDs.<br />

Table 2. GCC Versi<strong>on</strong>s Included with Linux ® Distributi<strong>on</strong>s<br />

Linux® Distributi<strong>on</strong><br />

Default GCC<br />

<str<strong>on</strong>g>Compiler</str<strong>on</strong>g><br />

Versi<strong>on</strong><br />

Recommended (Opti<strong>on</strong>al) <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> Versi<strong>on</strong><br />

Red Hat Enterprise Linux 4 4.1.0 gcc-ssa<br />

SuSE Linux Enterprise<br />

Server 10<br />

4.1.0 4.2.0<br />

Red Hat Enterprise Linux 4 3.4.1 No opti<strong>on</strong>al compiler available with the distributi<strong>on</strong>. The<br />

default compiler is the recommended compiler.<br />

SuSE Linux 10.1 4.1.0 4.2.0<br />

SuSE Linux Enterprise<br />

Server 10<br />

3.3.3 4.2.0<br />

Table 2, “GCC Versi<strong>on</strong>s Included with Linux ® Distributi<strong>on</strong>s,” identifies the recommended opti<strong>on</strong>al<br />

compilers by their package names. The Red Hat distributi<strong>on</strong> media include the Red Hat Package<br />

Managers. The gcc-ssa package is installed in /usr/bin by default, while gcc-33 is installed in<br />

/opt/gcc33/.<br />

22 Per<str<strong>on</strong>g>for</str<strong>on</strong>g>mance-Centric <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> Switches Chapter 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!