# MKLGetVersion

Returns information about the active library C version.

## Syntax

void MKLGetVersion( MKLVersion* pVersion );

## Output Parameters

pVersion

  Pointer to the MKLVersion structure.

## Description

The MKLGetVersion function collects information about the active C version of the Intel MKL software and returns this information in a structure of MKLVersion 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.

BuildNumber

  is the update number of the current library version.

ProductStatus

  is the status of the current library version. Possible variants could be "Beta", "Product".

Build

  is the string that contains the build date and the internal build number.

Processor

  is the processor optimization that is targeted for the specific processor. It is not the definition of the processor installed in the system, rather the MKL library detection that is optimal for the processor installed in the system.

## MKLGetVersion Usage

----------------------------------------------------------------------------------------------

#include <stdio.h>

#include <stdlib.h>

#include "mkl_blas.h"

#include "mkl_types.h"

int main(void)

{

MKLVersion Version;

MKLGetVersion(&Version);

printf("Major version: %d\n",Version.MajorVersion);

printf("Minor version: %d\n",Version.MinorVersion);

printf("Update number: %d\n",Version.BuildNumber);

printf("Product status: %s\n",Version.ProductStatus);

printf("Build: %s\n",Version.Build);

printf("Processor optimization: %s\n",Version.Processor);

printf("================================================================\n");

printf("\n");

return 0;

}

Output:

Major Version

  9

Minor Version

  0

Build number

  0

Product status

  Product

Build

  061909.09

Processor opimization

  Intel® Xeon® Processor with Intel® 64 architecture

Parent topic: Version Information Functions