Environment Requirements
- In an environment where the npu-driver, npu-firmware, and toolbox are installed but the NNRT or NNAE is not installed, the following functions in Using the Ascend-DMI Tool can be used properly: help and version information query, real-time device status query, software and hardware compatibility test, driver and firmware compatibility test, and device topology detection. However, bandwidth test, computing power test, power consumption test, and fault diagnosis functions are not available.
- The preset installation path of the Ascend-DMI tool is /home/data/Ascend-DMI. For details about how to upgrade this tool, see Upgrade Operations. For other hardware devices, the default installation path of the root user is /usr/local/Ascend. You can change the installation path based on the site requirements.
- The Atlas 500 AI edge station supports only the root user. It can work correctly only after environment variables are added. Run the following command as the root user:
export LD_LIBRARY_PATH=/home/data/Ascend-DMI/lib64:$LD_LIBRARY_PATH export PATH=/home/data/Ascend-DMI/bin:$PATH . /opt/ascend/nnrt/set_env.sh
- Add environment variables. Environment variables are not shared by different users and need to be added separately. The following describes how to add environment variables when the installation user of the CANN software is root.
- If a non-root user is used to run the Ascend-DMI tool, the user must be added to the running user group of the driver. You can run the following command to query the running user group:
source /etc/ascend_install.info; echo ${UserGroup}
- The CANN software provides a script for setting process-level environment variables. You can reference the script in processes to automatically configure environment variables. The environment variables automatically become invalid after the processes end. The default installation path of the root user is used as an example.
- Configure environment variables when installing the toolbox package.
. /usr/local/Ascend/toolbox/set_env.sh
- Configure environment variables when installing the nnrt package.
. /usr/local/Ascend/nnrt/set_env.sh
- Configure environment variables when installing the nnae package.
. /usr/local/Ascend/nnae/set_env.sh
You can also configure permanent environment variables by modifying the ~/.bashrc file. The procedure is as follows:
- Run the vi ~/.bashrc command in any directory as the running user to open the .bashrc file and append the preceding lines to the file.
- Run the :wq! command to save the file and exit.
- Run the source ~/.bashrc command for the modification to take effect immediately.
- Configure environment variables when installing the toolbox package.
- If a non-root user is used to run the Ascend-DMI tool, the user must be added to the running user group of the driver. You can run the following command to query the running user group: