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 | ||
| compilation:intel-cluster-studio [2016/12/13 09:50] – [Examples :] admin | compilation:intel-cluster-studio [2017/05/05 10:43] (Version actuelle) – [Compilers Options] admin | ||
|---|---|---|---|
| Ligne 48: | Ligne 48: | ||
| |-fast|Shorthand. '' | |-fast|Shorthand. '' | ||
| |**-O3**|-O2 optimizations plus more aggressive optimizations such as prefetching, | |**-O3**|-O2 optimizations plus more aggressive optimizations such as prefetching, | ||
| - | |**-axCORE-AVX**|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.| | + | |**-axCORE-AVX2**|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.| | |-p |Compiles and links for function profiling with gprof.| | ||
| |-g| Produces a symbol tables, i.e. line numbers for profiling are available.| | |-g| Produces a symbol tables, i.e. line numbers for profiling are available.| | ||
| Ligne 65: | Ligne 65: | ||
| - | <color blue> | + | <color blue> |
| </ | </ | ||
| Ligne 82: | Ligne 82: | ||
| <code bash> | <code bash> | ||
| - | $ icc -axCORE-AVX -O3 -fp-model precise -pc 64 pgm.c -o pgm | + | $ icc -axCORE-AVX2 -O3 -fp-model precise -pc 64 pgm.c -o pgm |
| </ | </ | ||
| Ligne 88: | Ligne 88: | ||
| <code bash> | <code bash> | ||
| - | $ ifort -axCORE-AVX -O3 -fp-model precise -pc 64 pgm.f -o pgm | + | $ ifort -axCORE-AVX2 -O3 -fp-model precise -pc 64 pgm.f -o pgm |
| </ | </ | ||
| Ligne 94: | Ligne 94: | ||
| <code bash> | <code bash> | ||
| - | $ icpc -axCORE-AVX -O3 -fp-model precise -pc 64 pgm.cpp -o pgm | + | $ icpc -axCORE-AVX2 -O3 -fp-model precise -pc 64 pgm.cpp -o pgm |
| </ | </ | ||
| Ligne 101: | Ligne 101: | ||
| <code bash> | <code bash> | ||
| - | $ icpc -openmp -axCORE-AVX -O3 -fp-model precise -pc 64 pgm.cpp -o pgm | + | $ icpc -openmp -axCORE-AVX2 -O3 -fp-model precise -pc 64 pgm.cpp -o pgm |
| </ | </ | ||
| Ligne 107: | Ligne 107: | ||
| <code bash> | <code bash> | ||
| - | $ ifort -openmp -axCORE-AVX -O3 -fp-model precise -pc 64 pgm.f -o pgm | + | $ ifort -openmp -axCORE-AVX2 -O3 -fp-model precise -pc 64 pgm.f -o pgm |
| </ | </ | ||
| ====== Compiler Auto Vectorization ====== | ====== Compiler Auto Vectorization ====== | ||
| Ligne 114: | Ligne 114: | ||
| Using the '' | Using the '' | ||
| - | The Intel compiler can generate a single executable with multiple levels of vectorization with the '' | + | The Intel compiler can generate a single executable with multiple levels of vectorization with the '' |
| Another useful option for the Intel compiler is the '' | Another useful option for the Intel compiler is the '' | ||
| ===== Example ===== | ===== Example ===== | ||
| - | Comparing a program, Matrix Multiply (sequential version), compiled with with options: '' | + | Comparing a program, Matrix Multiply (sequential version), compiled with with options: '' |
| ^Option^Time (s) ^ MFlops ^ | ^Option^Time (s) ^ MFlops ^ | ||
| | '' | | '' | ||
| - | |'' | + | |'' |
| ====== Links ====== | ====== Links ====== | ||
| *https:// | *https:// | ||
| * http:// | * http:// | ||