KSVMLGetVersion
Obtain the SVML version information.
Interface Definition
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <stdio.h> #include "ksvml.h" int main() { KSVMLVersion svmlver; int status = KSVMLGetVersion(&svmlver); if (status == 0) { return 0; } printf("Product Name: %s\n", svmlver.productName); printf("Product Version: %s\n", svmlver.productVersion); printf("Component Name: %s\n", svmlver.componentName); printf("Component Version: %s\n", svmlver.componentVersion); printf("Component AbiVersion: %s\n", svmlver.componentAbiVersion); printf("Component AppendInfo: %s\n", svmlver.componentAppendInfo); printf("Software Name: %s\n", svmlver.softwareName); printf("Software Version: %s\n", svmlver.softwareVersion); return 0; } |
Output:
1 2 3 4 5 6 7 8 | Product Name: Kunpeng HPCKit Product Version: 24.0.RC1 Component Name: HPCKit-kml Component Version: 2.3.0 Component AbiVersion: 1 Component AppendInfo: gcc Software Name: hpckit-kml-svml Software Version: 2.3.0 |
The version number and compile time are subject to the running results in your environment. The preceding results are for reference only.
Parent topic: Function Syntax