目录

Installing the AscendC Operator Package

When you compile an operator project, the result is automatically deployed to the installation directory of the operator package.

  1. Installs a custom operator package.

    After an operator is compiled, the operator deliverables are automatically installed to the specified directory of the CANN. You do not need to pay attention to this.

    The default installation path of the custom operator package is ${install_path}/cann-${cann_version}/opp/vendors/.

  2. The directory structure after installation is as follows:

    ├── opp    // Operator library directory
    │   ├── vendors    // Directory of custom operators
    │       ├── config.ini
    │       ├── vendor_name1   // Custom operator deployed by the storage vendor. The vendor_name is configured during the build of the custom operator installation package. If vendor_name is not configured, the default value customize is used.
    │           ├── framework     // Custom operator plugin library
    │           ├── op_api
    │           │   ├── include
    │           │   │  └── aclnn_xx.h      // Declaration file of the operator API call
    │           │   └── lib
    │           │       └── libcust_opapi.so
    │           ├── op_impl
    │           │   └── ai_core
    │           │       └── tbe
    │           │           ├── config
    │           │           ├── vendor_name1_impl    // Code file for implementing the custom operator
    │           │           │   └── dynamic
    │           │           │       ├── xx.cpp
    │           │           │       └── xx.py
    │           │           ├── kernel     // Custom operator binary file
    │           │           │   └── ${soc_version}     //Ascend AI processor type
    │           │           │   └── config
    │           │           └── op_tiling
    │           │               ├── lib
    │           │               └── liboptiling.so
    │           └── op_proto     // Directory of custom operator prototype library
    │                ├── inc
    │                │   └── op_proto.h
    │                └── lib
    │       ├── vendor_name2   // Custom operator deployed by storage vendor vendor_name2