目录

Installing the 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 DDK. You do not need to pay attention to this.

    The default installation path of a custom operator package is ${DDK_INSTALL_PATH}/tools/platform.

  2. The directory structure after installation is as follows:

    platform // Platform plugin directory
    ├── kirin9020 // Kirin AI processor type
    │   ├── config
    │   │   └── npu_custom_opinfo.json // Operator information library
    │   ├── lib64
    │   │   └── libcustom_op.so // Binary file on the host
    │   ├── ops
    │   │   └── impl
    │   │       ├── custom // kernel deliverables
    │   │       │   ├── add_custom.cpp
    │   │       │   ├── add_custom.py
    │   │       │   └── op_proto.h
    │   │       └── impl
    │   └── simulator
    └── README.md