The samples included with the Intel® compiler are designed to illustrate specific compiler optimizations, features, tools, and programming concepts.
Many of the samples are small source files intended to illustrate the associated concept in a general way. In addition to the build instructions included here, many of the samples contain the command line options and, where applicable, environment settings needed for compilation on the Linux*, Mac OS* X, and Windows*.
Sample Area |
Location |
Description and Build Instructions |
---|---|---|
Compiler Optimization |
<install-dir>/samples/optimize/ |
Illustrates how to use the automatic compiler options to quickly change the performance of an application. |
Profile-guided Optimization |
<install-dir>/samples/pgo_samples/ |
Illustrates profiling an application, using the code-coverage and test-prioritization tools, and generating PGO compiler reports. See PGO Sample. |
Interprocedural Optimization |
<install-dir>/samples/ipo_samples/ |
Illustrates using multi-file IPO compilation and generating IPO compiler reports. See IPO Samples. |
Vectorization |
<install-dir>/samples/vec_samples/ |
Illustrates loops that will and will not vectorize on specific architectures. These samples also illustrate using the vectorization reporting features. |
OpenMP* |
<install-dir>/samples/openmp_samples/
|
Illustrates using options that support OpenMP* and directives to create multi-threaded applications. See OpenMP* Sample. |
Cluster OpenMP* |
<install-dir>/samples/cluster/
|
Linux only. Demonstrates Cluster OpenMP* support. Can be used on systems based on IA-64 or Intel® 64 architectures. See the README.txt file included with the sample files. Refer to the Cluster OpenMP* User Manual for more information about the configuration files and setting up clusters. |