mkl_get_version

Returns information about the active library C version.

Syntax

void mkl_get_version( MKLVersion* pVersion );

Include Files

The C interface for this function is specified in the mkl_service.h include file.

Output Parameters

pVersion

Pointer to the MKLVersion structure.

Description

The mkl_get_version 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.

UpdateVersion

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.

Note iconNote

MKLGetVersion is an obsolete name for the mkl_get_version function that is referenced in the library for back compatibility purposes but is deprecated and subject to removal in subsequent releases.

Optimization Notice

Intel compilers, associated libraries and associated development tools may include or utilize options that optimize for instruction sets that are available in both Intel and non-Intel microprocessors (for example SIMD instruction sets), but do not optimize equally for non-Intel microprocessors. In addition, certain compiler options for Intel compilers, including some that are not specific to Intel micro-architecture, are reserved for Intel microprocessors. For a detailed description of Intel compiler options, including the instruction sets and specific microprocessors they implicate, please refer to the "Intel Compiler User and Reference Guides" under "Compiler Options." Many library routines that are part of Intel compiler products are more highly optimized for Intel microprocessors than for other microprocessors. While the compilers and libraries in Intel compiler products offer optimizations for both Intel and Intel-compatible microprocessors, depending on the options you select, your code and other factors, you likely will get extra performance on Intel microprocessors.

Intel compilers, associated libraries and associated development tools may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include Intel® Streaming SIMD Extensions 2 (Intel® SSE2), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), and Supplemental Streaming SIMD Extensions 3 (Intel SSSE3) instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors.

While Intel believes our compilers and libraries are excellent choices to assist in obtaining the best performance on Intel and non-Intel microprocessors, Intel recommends that you evaluate other compilers and libraries to determine which best meet your requirements. We hope to win your business by striving to offer the best performance of any compiler or library; please let us know if you find we do not.

Notice revision #20110307

mkl_get_version Usage

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

#include <stdio.h>
#include <stdlib.h>
#include "mkl_service.h"
 
int main(void)
  {
    MKLVersion Version;
 
    mkl_get_version(&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("Processor optimization:  %s\n",Version.Processor);
    printf("================================================================\n");
    printf("\n");
 
    return 0;
  }

Output:

Major Version

9

Minor Version

0

Update Version

0

Product status

Product

Build

061909.09

Processor optimization

Intel® Xeon® Processor with Intel® 64 architecture


Submit feedback on this help topic

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.