Rate This Document
Findability
Accuracy
Completeness
Readability

KSVMLGetVersion

Obtain the SVML version information.

int KSVMLGetVersion(KSVMLVersion *ver)

Parameters

Parameter

Description

Value Range

Input/Output

ver

Product information structure

The value cannot be NULL.

Output

Return Value

  • Success: The value 1 is returned.
  • Failure: The value 0 is returned.

Examples

#include <stdio.h>
#include "ksvml.h"

int main()
{
        KSVMLVersion* ver = (KSVMLVersion*)malloc(sizeof(KSVMLVersion));
        int status = KSVMLGetVersion(ver);
        printf("Component name          : %s\n", ver->componentName);
        printf("Component Version       : %s\n", ver->componentVersion);
        printf("Software Name           : %s\n", ver->softwareName);
        printf("Software Version        : %s\n", ver->softwareVersion);

        return 0;
}

Output:

Component name          : BoostKit-kml
Component Version       : 1.6.0
Software Name           : boostkit-kml-svml
Software Version        : 1.6.0

The version number and compile time in the example above are for reference only.