Function: get_cann_version
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Queries the CANN package version.
Prototype
- C Prototype
1aclError aclsysGetCANNVersion(aclCANNPackageName name, aclCANNPackageVersion *version)
- Python Function
1version, ret = acl.get_cann_version(name)
Parameter Description
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 Description
Return Value |
Description |
|---|---|
version |
Dict, CANN package version. For details, see aclCANNPackageVersion. |
ret |
Int. 0 on success; else, failure. For details, see aclError. |
Parent topic: System Configuration