Overview
Overview
After analyzing an operator and defining the prototype, you can use MindStudio Ops Generator (msOpGen) to generate a custom operator project, compile the project, and deploy it. For details about the process, see Figure 1.
In TBE and AI CPU operator development scenarios, for details about how to use the msOpGen tool, see Creating an Operator Project Based on the msOpGen Tool and Compiling and Deploying Operators. The TBE/TIK operator development method is no longer used. Therefore, the TBE/TIK samples will be brought offline in the next MindStudio version.
It provides the following functions:
- Outputs operator projects based on the operator prototype definition.
- Outputs the operator simulation pipeline file based on the dump data file generated in the performance simulation environment.
Features
msOpGen supports the following features: operator project generation, operator implementation (on both host and kernel), operator project compilation and deployment, and operator simulation pipeline file parsing.
|
Function |
Link |
|---|---|
|
Operator project generation |
|
|
Operator implementation (on both host and kernel) |
|
|
Operator project compilation and deployment |
|
|
Operator simulation pipeline file parsing |
Commands
After an operator template is generated based on the input configuration parameters, you are advised to check the security of the operator project code before running the template.
msopgen gen -i {*.json} -f {framework type} -c {Compute Resource} -lan cpp -out {Output Path}
Supplementary Notes
For details about other parameters of the msOpGen tool, see Table 3.
|
Parameter |
Description |
Remarks |
|---|---|---|
|
compile |
Used when compiling a TBE&AI CPU operator project. |
For details, see Independent Building of Operator Deliverables. |
