ascendebug kernel --backend cpu --repo-type minimalist --json-file ${op_config_json_file} --core-type ${core_type} --block-num 4
命令参数 |
参数含义 |
取值说明 |
---|---|---|
--backend |
Kernel调测类型。 |
CPU孪生调试时填写cpu。 |
--repo-type |
算子开发工程场景类型。 |
核函数直调场景固定配置为minimalist。 |
--json-file |
算子信息配置文件。 |
具体参见输入配置中的json配置文件。 |
--core-type |
算子类型。 |
根据实际情况填写,可选值为{AiCore, MixCore, CubeCore, VectorCore, MixVectorCore},MixVectorCore为预留参数,开发者无需关注。本场景以AddCustom算子为例,配置为VectorCore。 |
--block-num |
设置运行Kernel时起的核数。 |
缺省为1。取值必须与代码逻辑匹配,否则会影响运行结果。 |