CANN and Driver Compatibility Diagnosis

Function

Diagnose the compatibility between the CANN and the driver and output the diagnosis result.

Table 1 Diagnostic items

Item

Time Required

Whether NPU Training or Inference Is Affected

Application Scenario

Compatibility between the CANN and driver

2–7 seconds

No

Training or inference service rollout

Parameters

Table 2 lists only a test-specific parameter. For details about other common parameters, see Common Parameters.

Table 2 Parameter description

Parameter

Description

Mandatory

[-i, --items]

Specifies the diagnosis check item.

  • cann indicates the compatibility diagnosis between the CANN and driver.

Yes

Example

ascend-dmi -dg -i cann -p /usr/local/Ascend

[***@***]# ascend-dmi -dg -i cann -p /usr/local/Ascend
Summary:
    Arch: aarch64
    Mode: ******
    Time: 20250529-19:17:40
 
Software:
    cann:
        PASS

Fault Check Items

Table 3 Fault check items

Command Output

Description

PASS

The test on CANN is normal.

FAIL

  • The CANN package fails to be installed.
  • The driver installation is abnormal. (The compatibility between CANN and the driver does not meet the requirements.)