How Do I Check the CANN Path in a ModelArts Notebook or on a Lite Server?
- Querying via environment variables Once CANN is installed, its environment variables are automatically configured. To find the installation location, check these variables. The primary one to look for is ASCEND_HOME_PATH. Open the terminal and run the following command:
echo $ASCEND_HOME_PATH
If the environment variable has been set, the CANN installation path is displayed.
Figure 1 Querying via environment variables
- Searching for files
If the environment variable is not set, you can run the find command to search for certain CANN files or directories in the system to determine the installation path. For example, search for the ascend-toolkit directory:
find / -name "ascend-toolkit" 2>/dev/null
This command searches for the ascend-toolkit directory from the root directory (/) and redirects error information to /dev/null to avoid unnecessary error information. The search may take some time, especially for large file systems.
Figure 2 Searching for files
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot