KSPBLASGetVersion
Obtain the SPBLAS version information.
int KSPBLASGetVersion(KSPBLASVersion *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 | #include <stdio.h> #include "kspblas.h" int main() { KSPBLASVersion* ver = (KSPBLASVersion*)malloc(sizeof(KSPBLASVersion)); int status = KSPBLASGetVersion(ver); printf("Product Name : %s\n", ver->productName); printf("Product Version : %s\n", ver->productVersion); printf("Component name : %s\n", ver->componentName); printf("Component Version : %s\n", ver->componentVersion); printf("Component AbiVersion : %s\n", ver->componentAbiVersion); printf("Component AppendInfo : %s\n", ver->componentAppendInfo); printf("Software Name : %s\n", ver->softwareName); printf("Software Version : %s\n", ver->softwareVersion); free(ver); return 0; } |
Output:
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-spblas Software Version : 2.3.0
The version number and compile time in the example above are for reference only.
Parent topic: Support Functions