Returnsthe Intel® oneAPI Math Kernel Library (oneMKL) version.
void mkl_get_version( MKLVersion* pVersion );
Pointer to the MKLVersion structure.
The mkl_get_version function collects information about the active version of the Intel® oneAPI Math Kernel Library (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:
MajorVersion |
is the Intel® oneMKL major version. |
MinorVersion |
is 0 for backward compatibility. |
UpdateVersion |
is the Intel® oneMKL update version. |
PatchVersion |
is the Intel® oneMKL patch version. |
ProductStatus |
is the status of Intel® oneMKL. The value is usually "Product". |
Build |
is the build date. |
Platform |
is the current architecture ("Intel® 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 |
----------------------------------------------------------------------------------------------
#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;
}