Performing a Driver and Firmware Compatibility Test

Function

The driver and firmware compatibility tool obtains the driver version of the current environment and firmware version of each Ascend AI Processor, and checks the compatibility diagnosis result between driver and firmware versions.

Restrictions

By default, only the root user can use this function.

Commands for Querying Test Parameters

You can run either of the following commands to list the parameters of the compatibility test command:

ascend-dmi --ci -h

ascend-dmi --ci --help

Table 1 describes the parameters.

Table 1 Parameters

Parameter

Description

Mandatory

[-ci,--ci, --cardinfo]

Checks the compatibility of driver and firmware versions.

Yes

[-fmt, --fmt, --format]

Specifies the output format. The value can be normal or json. If this parameter is not specified, the default value normal is used.

No

Example

Perform a driver and firmware version compatibility test.

ascend-dmi --ci

An inference server equipped with Ascend 310 AI Processors is used as an example. If the following information is returned, the tool is running properly.

Figure 1 Driver and firmware compatibility test example (inference server)

The parameters in the preceding figure are described as follows:

Table 2 Parameters

Parameter

Description

Driver version

Indicates the driver version.

Card_id

Indicates the Ascend AI Processor ID.

Firmware version

Indicates the firmware version.

Compatibility

Indicates the compatibility. OK, NO OK, and UNKNOW are returned. UNKNOW indicates that the compatibility is unknown.