Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.
1 | aclError aclsysGetVersionStr(char *pkgName, char *versionStr) |
1 | version_str, ret = acl.get_version_str(pkgName) |
Parameter |
Description |
|---|---|
pkgName |
Str, software package name. The CANN package name must be the same as the directory name in ${INSTALL_DIR}/share/info. Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann. The driver package name is driver. The firmware package name is firmware. |
Return Value |
Description |
|---|---|
version_str |
Str, version number of the string type. |
ret |
Int. 0 on success; else, failure. For details, see aclError. |