Function: get_version (Discarded)
Note: This API will be deprecated in future releases. Use acl.sys.get_version_str instead.
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Returns the version number. The pyacl version ID can be formatted as A.B.C, where A indicates incompatible changes, B indicates new APIs, and C indicates the patch version.
Prototype
-
C Prototype
aclError aclrtGetVersion(int32_t *majorVersion, int32_t *minorVersion, int32_t *patchVersion) -
Python Function
major_version, minor_version, patch_version, ret = acl.get_version()
Parameters
None
Return Values
| Return Value | Description |
|---|---|
| major_version | Int, major version. The value starts from 1 and is incremented by 1 with each incompatible API change. |
| minor_version | Int, minor version. The value starts from 0 and is incremented by 1 with each newly added API. |
| patch_version | Int, Patch version. The value starts from 0, indicating that this version has only fixed bugs. The value is incremented by 1 if the majorVersion and minorVersion remain unchanged. When the majorVersion and minorVersion increase, patchVersion remains at 0. |
| ret | Int, error code. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |