File Paths

During the installation of the CANN package, related configurations and log information are generated. Table 1 lists the paths for storing these files.

{arch} indicates the CPU architecture, and ${HOME} indicates the directory of the current user.

Table 1 File paths

Name

Path

Software package installation log path

If the installation path is specified, replace the following default installation path as required.

Take the Toolkit package as an example:

  • root user: /var/log/ascend_seclog/ascend_toolkit_install.log
  • Non-root user: ${HOME}/var/log/ascend_seclog/ascend_toolkit_install.log

If the size of the installation log file exceeds 50 MB, the file is automatically dumped to a backup file, for example, ascend_toolkit_install_bak.log, in the current path.

Path for recording information such as the software package version, CPU architecture, and installation path after the installation

If the installation path is specified, replace the following default installation path as required.

Take the Toolkit package (The structure of the NNRT directory is the same as that of the Toolkit directory)and NNAE as an example.

  • root user:

    Toolkit: /usr/local/Ascend/ascend-toolkit/latest/<arch>-linux/ascend_toolkit_install.info

    nnae: /usr/local/Ascend/nnae/latest/ascend_nnae_install.info

  • Non-root user:

    Toolkit: ${HOME}/Ascend/ascend-toolkit/latest/<arch>-linux/ascend_toolkit_install.info

    nnae: ${HOME}/Ascend/nnae/latest/ascend_nnae_install.info

Path for recording the installation paths of software packages

  • root user: /etc/Ascend/ascend_cann_install.info
  • Non-root user: ${HOME}/Ascend/ascend_cann_install.info

Path for recording installation parameters (such as --install-for-all and --whitelist) specified during software package installation

If the installation path is specified, replace the following default installation path as required.

Take the Toolkit package (The structure of the NNRT directory is the same as that of the Toolkit directory)and NNAE as an example.

  • root user:

    Toolkit: /usr/local/Ascend/ascend-toolkit/latest/<arch>-linux/install.conf

    nnae: /usr/local/Ascend/nnae/latest/install.conf

  • Non-root user:

    Toolkit: ${HOME}/Ascend/ascend-toolkit/latest/<arch>-linux/install.conf

    nnae: ${HOME}/Ascend/nnae/latest/install.conf

Default installation path of the custom operator package

If the installation path is specified, replace the following default installation path as required.

Take the Toolkit software package as an example (The structure of the NNAE directory is the same as that of the Toolkit directory):

  • root user: /usr/local/Ascend/ascend-toolkit/latest/opp/vendors. The permission on the directory is 755.
  • Non-root user: ${HOME}/Ascend/ascend-toolkit/latest/opp/vendors. The permission on the directory is 755 for non-root users who use --install for all for installation. The permission on the directory is 750 if the OPP is installed without --install for all.

If the custom operator package fails to be installed due to insufficient permission, modify the permission on the vendors directory through the installation user of the operator package. For details about the custom operator package, see CANN TBE&AI CPU Operator Development Guide.