Upgrading the Ascend 910 AI Processor Driver
Scenario
This section describes how to upgrade the driver of the Atlas 300T training card.
The .run upgrade package supports one-click upgrade. This section uses the A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run package of the Atlas 300T training card as an example. The specific operations are subject to the driver package of the host system.
Upgrading the driver does not change the user name and password of the system.
Impact on the System
During the driver upgrade of the Atlas 300T training card, the system needs to be reset, which will interrupt services. To reduce the impact on services, switch the services to other devices before the upgrade.
Procedure
- Obtain the driver package A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run. For details, see Preparations for Upgrade.
- Log in to the server where the Atlas 300T training card is located as user root.
- Upload A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run to any directory on the Linux OS, for example, /opt.
- Go to the directory where the A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run software package is stored, for example, /opt.
cd /opt
- Run the following command to change the permission on the A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run software package:
chmod u+x A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run
- Run the ./A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run --check command to check the consistency and integrity of the .run installation package.
- Upgrade the driver.
Run the ./A300t-9000-npu-driver_x.x.x_debian9.9-x86_64.run --upgrade command to perform one-click 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.
- For details about how to resolve problems that may occur during the driver upgrade, see FAQs.
- During the driver upgrade, the log information about the Ascend 910 driver is recorded in the /var/log/ascend_seclog/ascend_install.log file.
- Restart the system.
reboot
- Check the target version.
In the installation directory, run the following command to check whether the target version is correct:
cat version.info
The default installation path is /usr/local/Ascend/driver.
- If you cannot log in to the host OS after the upgrade, contact Huawei technical support.
- If the version after upgrade is not the target version, perform the upgrade again. If the upgrade still fails, record the fault information and operations you have performed, and contact Huawei technical support.