Function: get_cann_version
Description
Queries the CANN software package version.
Prototype
- C Prototype
1aclError aclsysGetCANNVersion(aclCANNPackageName name, aclCANNPackageVersion *version)
- Python Function
1version, ret = acl.get_cann_version(name)
Parameters
Parameter |
Description |
|---|---|
name |
Int, software package to be queried. For details, see aclCANNPackageName. If the software package to be queried is not installed, an error is reported, and the error code is 100003. |
Return Value
Return Value |
Description |
|---|---|
version |
Dict, CANN software package version. For details, see aclCANNPackageVersion. |
ret |
Int. 0 on success; else, failure. For details, see aclError. |
Parent topic: Other APIs