Intel® Math Kernel Library 2019 Developer Guide

Configuring the Apple Xcode* Developer Software to Link with Intel® Math Kernel Library

This section provides information on configuring the Apple Xcode* developer software for linking with Intel MKL.

To configure your Xcode developer software to link with Intel MKL, you need to perform the steps explained below. The specific instructions for performing these steps depend on your version of the Xcode developer software. Please refer to the Xcode Help for more details.

To configure your Xcode developer software, do the following:

  1. Open your project that uses Intel MKL and select the target you are going to build.

  2. Add the Intel MKL include path, that is, <mkl directory>/include, to the header search paths.

  3. Add the Intel MKL library path for the target architecture to the library search paths. For example, for the Intel® 64 architecture, add <mkl directory>/lib/intel64.

  4. Specify the linker options for the Intel MKL and system libraries to link with your application. For example, you may need to specify: -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lm.

  5. (Optional, needed only for dynamic linking) For the active executable, add the environment variable DYLD_LIBRARY_PATH with the value of <mkl directory>/lib.

See Also