MindCluster ToolBox Is Successfully Installed But Ascend DMI Fails to Be Used

Symptom

After MindCluster ToolBox is installed, the error message "Failed to initialize the device." is displayed when Ascend DMI is used to test the bandwidth. Check the environment configuration dependency.

Possible Causes

The NPU has been virtualized. Ascend DMI does not support the performance test of the vNPU.

Solution

  1. Run the following command to query the NPU virtualization information:
    npu-smi info -t info-vnpu -i id -c chip_id 
    Command output:
    +-------------------------------------------------------------------------------+
    | NPU resource static info as follow:                                           |
    | Format:Free/Total                   NA: Currently, query is not supported.    |
    | AICORE    Memory    AICPU    VPC    VENC    VDEC    JPEGD    JPEGE    PNGD    |
    |            GB                                                                 |
    |===============================================================================|
    | 10/20     30/64     4/7      5/9    0/0     1/2     12/24    2/4      NA/NA   |
    +-------------------------------------------------------------------------------+
    | Total number of vnpu: 1                                                       |
    +-------------------------------------------------------------------------------+
    |  Vnpu ID  |  Vgroup ID     |  Container ID  |  Status  |  Template Name       |
    +-------------------------------------------------------------------------------+
    |  100      |  0             |  000000000000  |  0       |  vir10_3c_32g        |
    +-------------------------------------------------------------------------------+
  2. Destroy the vNPU based on the queried vNPU information.
    npu-smi set -t destroy-vnpu -i id -c chip_id -v vnpu_id
The parameters are described as follows:
  • id: device ID. The NPU ID obtained by running the npu-smi info -l command is the device ID.
  • chip_id: processor ID. The value obtained by running the npu-smi info -m command is the processor ID.
  • vnpu_id: vNPU ID. The value is the vNPU ID queried in Step 1.