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.

Refer to this document to properly install and use the CANN software. It is advised not to install CANN on a shared disk and use it through mounting. This is because CANN relies on file locks provided by the file system, which may not be supported by certain shared storage systems, potentially leading to task invocation failures.

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.

The following uses the Toolkit software 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.

The following uses the Toolkit software package as an example:

  • root user:

    /usr/local/Ascend/cann/<arch>-linux/ascend_toolkit_install.info

  • Non-root user:

    ${HOME}/Ascend/cann/<arch>-linux/ascend_toolkit_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.

  • root user:

    Toolkit: /usr/local/Ascend/cann/<arch>-linux/install.conf

  • Non-root user:

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

Default installation path of the custom operator package

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

The following uses the Toolkit software package as an example:

  • root user: /usr/local/Ascend/cann/opp/vendors. The permission on the directory is 755.
  • Non-root users: ${HOME}/Ascend/cann/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 when 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.