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_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(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 "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; }