Visible to Intel only — GUID: GUID-634ADB43-4395-466F-B4A8-E6D7526E2B4C
Visible to Intel only — GUID: GUID-634ADB43-4395-466F-B4A8-E6D7526E2B4C
Building a Custom Dynamic-Link Library in the Visual Studio* Development System
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 share\mkl\tools\builder\MSVS_Projects subdirectory 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,VS2022. For each version of VS, a VS solution libintel64.sln is available to build a custom DLL for the Intel® 64 architecture.
The builder uses the following default settings for the custom DLL:
Interface: |
LP64 |
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 libintel64.sln solution.
The solution includes the following projects:
- i_malloc_dll
- vml_dll_core
- lp64_sequential
- lp64_parallel
[Optional] To change any of the default settings, select the lp64_sequential or lp64_parallel 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:
- Select Project>Properties>Configuration Properties>Linker>Input.
- Add <user_xerbla>.obj
[Optional] To turn off creation of the manifest:
- Select Project>Properties>Configuration Properties>Linker>Manifest File>Generate Manifest.
- Select: no.
[Optional] To change the list of functions to be included in the DLL:
- Select Source Files.
- Edit the examples.def file. Refer to Specifying Function Names for how to specify entry points.
To build the library, select Build>Build Solution.