Environment Setup

Set up the development environment by referring to CANN Software Installation Guide and ensure that the Ascend-CANN-Toolkit is installed.

  • The package provides the scope fusion pattern development APIs, which are defined in /ascend-toolkit/latest/compiler/include/register/scope/scope_fusion_pass_register.h in the Ascend-CANN-Toolkit installation directory.
  • The package provides the prototypes of fused operators. The operator prototype definition file is stored in /ascend-toolkit/latest/opp/built-in/op_proto/inc/ in the Ascend-CANN-Toolkit installation directory.
  • The scope fusion pattern plugin .so file generated after build is stored in /ascend-toolkit/latest/opp/built-in/framework/custom/ in the Ascend-CANN-Toolkit installation directory.