Function: get_cann_version

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

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

√

Description

Queries the CANN software package version.

Prototype

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

Return Value

Description

version

Dict, CANN package version. For details, see aclCANNPackageVersion.

ret

Int. 0 on success; else, failure. For details, see aclError.