aclsysGetVersionStr
Applicability
Supported |
|
|---|---|
Atlas A3 Training Series Product |
√ |
Atlas A2 Training Series Product/Atlas 800I A2 Inference Product |
√ |
Atlas 200/500 A2 Inference Product |
√ |
Atlas Inference Series Product |
√ |
Atlas Training Series Product |
√ |
Description
Queries the version number based on a software package name. The version number is a character string. It is the same as the value of version in the version.info file in the package installation directory.
Prototype
aclError aclsysGetVersionStr(char *pkgName, char * versionStr)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
pkgName |
Input |
Software package name. The CANN package name must be the same as the directory name in ${INSTALL_DIR} /share/info. The driver package name is driver. The firmware package name is firmware. |
versionStr |
Output |
Version number. You are advised to declare a character array with the length of ACL_PKG_VERSION_MAX_SIZE to store the version number. For example, char versionStr[ACL_PKG_VERSION_MAX_SIZE] = {0}; The ACL_PKG_VERSION_MAX_SIZE macro is defined as follows: #define ACL_PKG_VERSION_MAX_SIZE 128 |
Returns
0 on success; else, failure. For details, see aclError.