Function: get_cann_version

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Queries the CANN package version.

Prototype

  • C Prototype
    1
    aclError aclsysGetCANNVersion(aclCANNPackageName name, aclCANNPackageVersion *version)
    
  • Python Function
    1
    version, 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.