Intel® Math Kernel Library 2019 Developer Reference - Fortran

Using a Fortran Interface Module for Support Functions

To call a support function from your Fortran application, include one of the following statements in your code:

The USE statement references the mkl_service.mod interface module corresponding to your architecture and programming interface. The module provides an application programming interface to Intel MKL support entities, such as subroutines and constants. Because Fortran interface modules are compiler-dependent, Intel MKL offers the mkl_service.f90 source file for the module, as well as architecture-specific and interface-specific mkl_service modules precompiled with the Intel® Fortran or Intel® Visual Fortran compiler. These modules are available in the following subdirectories of the Intel MKL include directory:

Architecture, Interface

Subdirectory of the Intel MKL Installation Directory

IA-32

include\ia32

Intel® 64, LP64

include\intel64\lp64

Intel® 64, ILP64

include\intel64\ilp64

To ensure that your application searches the right module, specify the appropriate subdirectory during compilation as an additional directory for the include path (through the /I option on Windows* OS or the -I option on Linux* OS or macOS*).

If you are using a non-Intel Fortran compiler, you need to build the module yourself by compiling the mkl_service.f90 file, available in the Intel MKL include directory.

For more information on compiler-dependent functions and modules, refer to the Intel MKL Developer Guide.