Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| intel-cluster-studio [2014/04/25 09:10] – [Compilers Options] admin | intel-cluster-studio [2015/02/27 13:18] (Version actuelle) – supprimée admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Intel Cluster Studio XE 2013 ====== | ||
| - | Intel Cluster Studio XE 2013 meets the challenges facing HPC developers by providing, for the first time, a comprehensive suite of tools that enables developers to boost HPC application performance and reliability. It combines Intel’s proven cluster tools with Intel’s advanced threading/ | ||
| - | |||
| - | |||
| - | * Intel® C++ Compiler XE 14.0.2 | ||
| - | * Intel® Fortran Compiler XE 14.0.2 | ||
| - | * Intel® Debugger 13.0 Update 1 (for Linux* OS only) | ||
| - | * GNU* Project Debugger (GDB*) 7.5 | ||
| - | * Intel® Integrated Performance Primitives 8.0 Update 1 | ||
| - | * Intel® Threading Building Blocks (TBB) 4.2 | ||
| - | * Intel® Math Kernel Library (MKL) 11.1 | ||
| - | * Intel® MPI Library 4.1 Update 1 | ||
| - | * Intel® Trace Analyzer and Collector 8.1 Update 3 | ||
| - | | ||
| - | ====== Compiling Applications ====== | ||
| - | |||
| - | < | ||
| - | |||
| - | Before you start compiling your application, | ||
| - | |||
| - | < | ||
| - | |||
| - | module load intel/ | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | **Sequential programs** : '' | ||
| - | |||
| - | |||
| - | < | ||
| - | |||
| - | Compiler command line: | ||
| - | |||
| - | <code bash> | ||
| - | $ icc [options] myprogram.c -o myprogram | ||
| - | </ | ||
| - | |||
| - | ===== Compilers Options ===== | ||
| - | |||
| - | Selected Intel compiler options: | ||
| - | |||
| - | ^Option^Description^ | ||
| - | |-O0|Disables all optimizations. Recommended for program development and debugging| | ||
| - | |-O1|Enables optimization for speed, while being aware of code size (e.g no loop unrolling)| | ||
| - | |-O2|Default optimization. Optimizations for speed, including global code scheduling, software pipelining, predication, | ||
| - | |**-O3**|-O2 optimizations plus more aggressive optimizations such as prefetching, | ||
| - | |**-axAVX**|This option tells the compiler to generate multiple, processor-specific auto-dispatch code paths for Intel processors if there is a performance benefit. It also generates a baseline code path which can run on non-AVX processors. The Intel processor-specific auto-dispatch path is usually more optimized than the baseline path.| | ||
| - | |-p |Compiles and links for function profiling with gprof.| | ||
| - | |-g| Produces a symbol tables, i.e. line numbers for profiling are available.| | ||
| - | |-openmp|Enables the parallelizer to generate multithreaded code based on OpenMP directives.| | ||
| - | |-parallel|Tells the auto-parallelizer to generate multithreaded code for loops that can be safely executed in parallel. To use this option, you must also specify -O2 or -O3.| | ||
| - | |-opt_report|generate an optimization report to stderr.| | ||
| - | |** -fp-model precise**| Allow users to trade off floating point optimizations for accuracy and consistency. Intel recommends specifying '' | ||
| - | |**-pc 64**|Force the compiler to use floating double precision (53-bit mantissa) to ensure the portability of results.| | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | Because processors of cluster Lumière are '' | ||
| - | |||
| - | <WRAP center round box 20%> | ||
| - | |||
| - | |||
| - | <color blue> | ||
| - | </ | ||
| - | |||
| - | <note important> | ||
| - | |||
| - | if your application is sensitive to the precision, you should add: **-fp-model precise -pc 64**. This option may degrade performances.</ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ==== Examples : ==== | ||
| - | |||
| - | |||
| - | |||
| - | Compile a C program | ||
| - | |||
| - | <code bash> | ||
| - | $ icc -axAVX | ||
| - | </ | ||
| - | |||
| - | Compile a Fortran program | ||
| - | |||
| - | <code bash> | ||
| - | $ ifort -axAVX | ||
| - | </ | ||
| - | |||
| - | Compiler a C++ program | ||
| - | |||
| - | <code bash> | ||
| - | $ icpc -axAVX | ||
| - | </ | ||
| - | |||
| - | |||
| - | Compile an OpenMP program written inc C | ||
| - | |||
| - | <code bash> | ||
| - | $ icpc -openmp -axAVX -O3 -fp-model precise -pc 64 pgm.cpp -o pgm | ||
| - | </ | ||
| - | |||
| - | Compiler an OpenMP program written in Fortran | ||
| - | |||
| - | <code bash> | ||
| - | $ ifort -openmp -axAVX | ||
| - | </ | ||
| - | ====== Links ====== | ||
| - | |||
| - | * http:// | ||