Updated on 2023-10-30 GMT+08:00

Upgrading the Ascend NPU Driver

Scenarios

You can upgrade the driver of Ascend NPUs for Atlas 800 (model 9000) training servers.

This section uses the A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run package as an example to describe how to upgrade the NPU driver.

  • Driver upgrade does not change the system username or password.

Impacts on the System

The system will be reset during the driver upgrade of Atlas 800 (model 9000) training servers. This will cause service interruptions. To reduce impacts on services, switch services to other nodes before the upgrade.

Procedure

  1. Obtain the driver package A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run by referring to Preparing for Upgrade.
  2. Log in to the Atlas 800 (model: 9000) training server as the root user.
  3. Upload A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run to any directory in the Linux OS, for example, /opt.
  4. Go to the directory where A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run is stored.

cd /opt

  1. Run the following command to change the permissions on A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run:

chmod u+x A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run

  1. Run the ./A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run --check command to check the consistency and integrity of the software package.
  2. Upgrade the driver.

You can run the ./A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run --upgrade command to perform the upgrade.

If information similar to the following is displayed, the upgrade is successful:

Driver package install success! Reboot needed for installation/upgrade to take effect!
  • During the driver upgrade, the dynamic library libdcmi.so and header file dcmi_interface_api.h are copied to the /usr/local/dcmi/ directory.
  • The logs generated during the upgrade are recorded in the /var/log/ascend_seclog/ascend_install.log file.
  1. Reboot the system.

reboot

  1. Check the driver version.

In the installation directory, run the following command to check whether the driver version is correct:

cat version.info

  • The default installation directory is /usr/local/Ascend/driver.
  • If you cannot log in to the OS after the upgrade, contact technical support.
  • If the upgrade failed or you have upgraded to an incorrect version, perform the upgrade again. If the issue persists, record the fault information and contact technical support.