Developer Reference for Intel® oneAPI Math Kernel Library for C
mkl_get_version
Returns the Intel® oneAPI Math Kernel Library (oneMKL) version.
Syntax
voidmkl_get_version ( MKLVersion*pVersion ) ;
Include Files
mkl.h
Output Parameters
Name |
Description |
|---|---|
pVersion |
Pointer to the MKLVersion structure. |
Description
The mkl_get_version function collects information about the active version of the Intel® oneMKL software and returns this information in a structure of type MKLVersion 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:
Name |
Description |
|---|---|
MajorVersion |
The Intel® oneMKL major version. |
MinorVersion |
0 for backward compatibility. |
UpdateVersion |
The Intel® oneMKL update version. |
PatchVersion |
The Intel® oneMKL patch version. |
ProductStatus |
The status of Intel® oneMKL. The value is usually “Product”. |
Build |
The build date. |
Platform |
The current architecture (“Intel(R) 64 architecture”). |
Processor |
The processor optimization. Normally it is targeted for the processor installed on your system and based on the detection of the Intel® 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 "mkl.h"
int main(void)
{
MKLVersion version;
mkl_get_version(&version);
printf("\n");
printf("Major version: %d\n",version.MajorVersion);
printf("Update version: %d\n",version.UpdateVersion);
printf("Patch version: %d\n",version.PatchVersion);
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");
return 0;
}