You can build a custom dynamic-link library (DLL) in the Microsoft Visual Studio* Development System (VS*). To do this, use projects available in the tools\builder\MSVS_Projectssubdirectory of the Intel® oneAPI Math Kernel Library (oneMKL) directory. The directory contains subdirectories with projects for the respective versions of the Visual Studio Development System, for example,VS2012. For each version of VS two solutions are available:
The builder uses the following default settings for the custom DLL:
Interface: |
cdecl for the IA-32 architecture and LP64 for the Intel 64 architecture |
Error handler: |
Native Intel® oneAPI Math Kernel Library (oneMKL)xerbla |
Create Microsoft manifest: |
yes |
List of functions: |
in the project's source file examples.def |
To build a custom DLL:
Set the MKLROOTenvironment variable with the installation directory of the Intel® oneAPI Math Kernel Library (oneMKL) version you are going to use.
Open the libia32.sln or libintel64.sln solution depending on the architecture of your system.
The solution includes the following projects:
[Optional] To change any of the default settings, select the project depending on whether the DLL will use Intel® oneAPI Math Kernel Library (oneMKL) functions in the sequential or multi-threaded mode:
[Optional] To include your own error handler in the DLL:
[Optional] To turn off creation of the manifest:
[Optional] To change the list of functions to be included in the DLL:
To build the library, select Build>Build Solution.