ippsGetLibVersion

Returns information about the active version of Intel IPP signal processing software.

Syntax

const IppLibraryVersion* ippsGetLibVersion(void);

Description

The function ippsGetLibVersion is declared in the ipps.h file. This function returns a pointer to a static data structure IppLibraryVersion that contains information about the current version of the Intel IPP software for signal processing. There is no need for you to release memory referenced by the returned pointer, as it points to a static variable. The following fields of the IppLibraryVersion structure are available:

major - the major number of the current library version.

minor - the minor number of the current library version.

majorBuild - the number of builds of the major version.

build current build number.

Name the name of the current library version.

Version is the library version string.

BuildDate is the library version actual build date.

For example, if the library version is “7.0 build 205.86”, library name is “ippsv8_l.lib”, and build date is “Jul 20 2011”, then the fields in this structure are set as:

major = 7, minor = 0, Name = “ippsv8_l.lib”, Version = “7.0 build 205.68”, BuildDate = “Jul 20 11”

Example  shows how to use the function ippsGetLibVersion.

Using the Function ippsGetLibVersion

void libinfo(void) {
       const IppLibraryVersion*
lib = ippsGetLibVersion();
       printf(“%s %s %d.%d.%d.%d\n”,
lib->Name, lib->Version, 
           lib->major,
lib->minor, lib->majorBuild, lib->build); 
}
Output: 
    ippsv8_1.lib 7.0 build 205.68

Note iconNote

Each sub-library that is used in the signal processing domain has its own similar function to retrieve information about the active library version. These functions are: ippGetLibVersion, ippacGetLibVersion, ippchGetLibVersion, ippdcGetLibVersion, ippdiGetLibVersion, ippdgenGetLibVersion, ippscGetLibVersion, ippsrGetLibVersion, ippvmGetLibVersion. They are declared in the following header files: ippcore.h, ippac.h, ippch.h, ippdc.h, ippdi.h, ipps.h, ippsc.h, ippsr.h, ippvm.h, respectively, and have the same interface as the function ippsGetLibVersion.

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