Installing the NPU Driver, Firmware, and CANN

Downloading Software Packages

Vision SDK requires the npu-driver package, npu-firmware package, and CANN package. For details, see Table 1.

Once you download software, you agree to the terms and conditions of Huawei Enterprise End User License Agreement (EULA).

Table 1 Software package list

Software

Package Name

How to Obtain

Ascend NPU driver

Ascend-hdk-{npu_type}-npu-driver_{version}_linux-{arch}.run

Click here. In the Select Resource area on the left, filter the required software packages, confirm the version information, and download the software packages.

Ascend NPU firmware

Ascend-hdk-{npu_type}-npu-firmware_{version}.run

CANN software package

Ascend-cann-toolkit_{version}_linux-{arch}.run

CANN operator package

Ascend-cann-{npu_type}-ops_{version}_linux-{arch}.run

  • {version} indicates the package version.
  • {arch} indicates the CPU architecture.
  • {npu_type} indicates the chip name.

Installing the NPU Driver, Firmware, and CANN

  1. Install the NPU driver and firmware by referring to "Installing the NPU Driver and Firmware" in CANN Software Installation Guide (Commercial Edition) or "Installing the NPU Driver and Firmware" in CANN Software Installation Guide (Community Edition).
  2. Install CANN by referring to "Installing CANN" in CANN Software Installation Guide (commercial edition) or "Installing CANN" in CANN Software Installation Guide (community edition).
    • The user for installing CANN and Vision SDK must be the same. A common user is recommended.
    • When installing CANN, install its dependencies to ensure that Vision SDK can be used properly.
    • The running of Vision SDK depends on the dynamic library file of CANN. Ensure that the files in the CANN installation path are valid and not tampered with.