Using Code Examples

The Intel MKL package includes code examples, located in the examples subdirectory of the installation directory. Use the examples to determine:

  • Whether Intel MKL is working on your system
  • How you should call the library
  • How to link the library

If an Intel MKL component that you selected during installation includes code examples, these examples are provided in a separate archive. Extract the examples from the archives before use.

For each component, the examples are grouped in subdirectories mainly by Intel MKL function domains and programming languages. For instance, the blas subdirectory (extracted from the examples_core archive) contains a makefile to build the BLAS examples and the vmlc subdirectory contains the makefile to build the C VML examples. You can find examples of Automatic Offload in the mic_ao subdirectory (extracted from the examples_mic archive) and examples of Compiler Assisted Offload in the mic_offload subdirectory. Source code for the examples is in the next-level sources subdirectory.

For more complete information about compiler optimizations, see our Optimization Notice.