13.07.2015 Views

Intel(R) Math Kernel Library for Linux* OS User's Guide

Intel(R) Math Kernel Library for Linux* OS User's Guide

Intel(R) Math Kernel Library for Linux* OS User's Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Intel</strong>® <strong>Math</strong> <strong>Kernel</strong> <strong>Library</strong> Structure 3Table 3-3<strong>Intel</strong>® MKL Layers (continued)LayerComputational LayerCompiler Support Run-timeLibraries (RTL)DescriptionHeart of <strong>Intel</strong> MKL. This layer has only one library <strong>for</strong> each combinationof architecture and supported <strong>OS</strong>. The Computational layeraccommodates multiple architectures through identification ofarchitecture features and chooses the appropriate binary code at runtime.<strong>Intel</strong> MKL provides compiler support RTLs only <strong>for</strong> <strong>Intel</strong> compilers:compatibility OpenMP* run-time library (libiomp) and legacyOpenMP* run-time library (libguide). To thread using third-partythreading compilers, use libraries in the Threading layer or anappropriate compatibility library (<strong>for</strong> more in<strong>for</strong>mation, see Linking withThreading Libraries).Sequential Mode of the <strong>Library</strong>You can use <strong>Intel</strong> MKL in a sequential (non-threaded) mode. In this mode, <strong>Intel</strong> MKL runsunthreaded code. However, it is thread-safe 1 , which means that you can use it in a parallelregion in your OpenMP* code. The sequential mode requires no compatibility OpenMP* orlegacy OpenMP* run-time library and does not respond to the environment variableOMP_NUM_THREADS or its <strong>Intel</strong> MKL equivalents.You should use the library in the sequential mode only if you have a particular reason notto use <strong>Intel</strong> MKL threading. The sequential mode may be helpful when using <strong>Intel</strong> MKL withprograms threaded with some non-<strong>Intel</strong> compilers or in other situations where you need anon-threaded version of the library (<strong>for</strong> instance, in some MPI cases). To set the sequentialmode, in the Threading layer, choose the *sequential.* library.Add the P<strong>OS</strong>IX threads library (pthread) to your link line <strong>for</strong> the sequential mode becausethe *sequential.* library depends on pthread.See also:Directory Structure in DetailUsing the <strong>Intel</strong>® MKL ParallelismAvoiding Conflicts in the Execution EnvironmentLinking Examples.1. Except the LAPACK deprecated routine ?lacon.3-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!