Environment Setup

Environment Requirements

Before developing an operator, you need to install the driver, firmware, and CANN Toolkit. For details about the installation procedure, see CANN Software Installation Guide.

  • ${git_clone_path} is the installation path of the sample repository.
  • Check whether the host uses the --debug option to install the HDK driver package by referring to Step 1.
  • To enable msDebug, specify the --debug parameter when installing the driver. For details about how to install the driver, see Installing the NPU Driver and Firmware. You can run the following command to specify the --debug option:
    ./Ascend-hdk-<chip_type>-npu-driver_<version>_linux-<arch>.run --debug

Restrictions

  • Before using the tools, ensure that the least privilege principle is used. For example, the other user is not allowed to write data, which is often implemented by disabling 666 and 777.
  • You are not advised to configure or run custom scripts in directories of the other user to avoid privilege escalation.
  • When downloading the Ascend C code sample, run the following command to specify the branch version:
    git clone https://gitee.com/ascend/samples.git -b v0.2-8.0.0.beta1