Visible to Intel only — GUID: GUID-DE7A819A-446D-422E-90C5-BF8F3D5F691F
Visible to Intel only — GUID: GUID-DE7A819A-446D-422E-90C5-BF8F3D5F691F
mkl_get_version
Returnsthe Intel® oneAPI Math Kernel Library (oneMKL) version.
Syntax
void mkl_get_version( MKLVersion* pVersion );
Include Files
- mkl.h
Output Parameters
- pVersion
-
Pointer to the MKLVersion structure.
Description
The mkl_get_versionfunction collects information about the active C version of the Intel® oneAPI Math Kernel Library (oneMKL) software and returns this information in a structure ofMKLVersion type by the pVersion address. The MKLVersion structure type is defined in the mkl_types.h file. The following fields of the MKLVersion structure are available:
MajorVersion |
is the major number of the current library version. |
MinorVersion |
is the minor number of the current library version. |
UpdateVersion |
is the update number of the current library version. |
ProductStatus |
is the status of the current library version. Possible variants are "Beta" or "Product". |
Build |
is the string that contains the build date and the internal build number. |
Platform |
is the string that contains the current architecture. Possible variants are "IA-32 architecture" or "Intel(R) 64 architecture". |
Processor |
is the processor optimization. Normally it is targeted for the processor installed on your system and based on the detection of the Intel® oneAPI Math Kernel Library (oneMKL) library that is optimal for the installed processor. In the Conditional Numerical Reproducibility (CNR) mode, the processor optimization matches the selected CNR branch. |
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |
mkl_get_version Usage
----------------------------------------------------------------------------------------------
#include <stdio.h> #include <stdlib.h> #include "mkl.h" int main(void) { MKLVersion Version; mkl_get_version(&Version); printf("Major version: %d\n",Version.MajorVersion); printf("Minor version: %d\n",Version.MinorVersion); printf("Update version: %d\n",Version.UpdateVersion); printf("Product status: %s\n",Version.ProductStatus); printf("Build: %s\n",Version.Build); printf("Platform: %s\n",Version.Platform); printf("Processor optimization: %s\n",Version.Processor); printf("================================================================\n"); printf("\n"); return 0; }
Output:
- Major Version
-
11
- Minor Version
-
0
- Update Version
-
2
- Product status
-
Product
- Build
-
20121113
- Platform
-
Intel(R) 64 architecture
- Processor optimization
-
Intel(R) Core(TM) i7 Processor