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.
Note
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
Obtain the driver package A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run by referring to Preparing for Upgrade.
Log in to the Atlas 800 (model: 9000) training server as the root user.
Upload A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run to any directory in the Linux OS, for example, /opt.
Go to the directory where A800-9000-npu-driver_x.x.x_euleros2.8-aarch64.run is stored.
cd /opt
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
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.
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!
Note
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.
Reboot the system.
reboot
Check the driver version.
In the installation directory, run the following command to check whether the driver version is correct:
cat version.info
Note
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.