SCAKSOLVERGetVersion
获得求解器产品版本信息。
接口定义
C Interface:
int KSCASOLVERGetVersion(KSCASOLVERVersion *ver);
参数
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
ver |
KSCASOLVERVersion结构体指针。 |
存储版本信息,非空。 |
输入/输出 |
依赖
#include "kml_scasolver.h"
#include "kml_service.h"
示例
C Interface:
int main() { KSCASOLVERVersion *ver = (KSCASOLVERVersion*)malloc(sizeof(KSCASOLVERVersion)); int res = KSCASOLVERGetVersion(ver); if (res != 0) { printf("Get version error.\n"); return 0; } printf("Product Name: %s\nProduct Version: %s\nComponent Name: %s\nComponent Version: %s\nComponent AppendInfo: %s\nSoftware Name: %s\nSoftware Version: %s\n", ver->productName, ver->productVersion, ver->componentName, ver->componentVersion, ver->componentAppendInfo, ver->softwareName, ver->softwareVersion); return 0; }
运行结果:
Product Name: Kunpeng HPCKit Product Version: 24.0.RC1 Component Name: HPCKit-kml Component Version: 2.3.0 Component AppendInfo: gcc Software Name: hpckit-kml-scasolver Software Version: 2.3.0
版本号以实际运行结果为准,上述结果仅供参考。
父主题: 函数定义(集群版)