Rate This Document
Findability
Accuracy
Completeness
Readability

How Do I Check Whether Intel MKL Is Used?

Before migrating Intel MKL to the KML, you need to check whether Intel MKL is used. This section provides three methods.

Intel MKL is an integrated math library, including function interfaces of math libraries such as VML, BLAS, SPBLAS, FFT (DFT) and LAPACK. Therefore, you need to identify the libraries that are being used during the migration. For example, if the interfaces of multiple different math libraries in the MKL are used, the KML header files of all used math libraries must be included during the migration. Because migration from x86 to ARM is involved, this document describes only how to migrate specific math libraries. For details about how to migrate other libraries, see Kunpeng Server Code Porting Reference.

  • Identify by header files.

    Check whether the header file in the source code contains mkl.h or other header files with the "mkl" prefix.

  • Identify by function names.
    1. Capture the PERF file to view the hot functions and search for the MKL interfaces.
    2. Search for the source code globally and locate the calling parts based on the MKL function names.
  • Identify by library files.
    1. Check whether the mkl folder exists in the system directory /opt/intel.
    2. View the code compilation file Makefile and check whether the link options include the MKL dynamic library (-lmkl_xxx).

      In actual scenarios, you can flexibly combine the preceding methods.