- Infos im HLRS Wiki sind nicht rechtsverbindlich und ohne Gewähr -

GNU Compiler

From HLRS Platforms
Revision as of 10:27, 6 April 2016 by Hpcchris (talk | contribs) (→‎General info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The GNU Compiler Collection (usually shortened to GCC) is a compiler system produced by the GNU Project supporting various programming languages. GCC is a key component of the GNU toolchain. As well as being the official compiler of the GNU operating system, GCC has been adopted as the standard compiler by most other modern Unix-like computer operating systems, including GNU/Linux, the BSD family and Mac OS X.
Developer: GNU Project
Platforms: NEC Nehalem Cluster
Category: Compiler
License: GNU General Public License (version 3 or later)
Website: GCC homepage

General info

On most Systems the GNU compilers are available per default in form of the system compiler. To find out the default version execute

gcc --version

On most platforms you will find additional versions beside the one provided by the base system. You can switch to an additional version with the module command

module load compiler/gcc

Warning: Do not use the -march=native, -mcpu=native or -mtune=native options as the frontend nodes of hazelhen and laki are a different architecture than the compute nodes and you will lose performance!

Hazelhen special

To use the GNU compilers on the Cray XT5m you have to switch the environment

module load ProgEnv-gnu
Warning: Do not use the regular GNU compiler commands on the XT5m. Instead call the compilers via cc, CC and ftn after loading the environment.

See also

External links