ascendebug kernel --backend npu --repo-type customize --customize-path ${INSTALL_DIR}/opp/vendors/${vendor_name} --json-file ${op_config_json_file} --core-type ${core_type}
命令参数 |
参数含义 |
取值说明 |
---|---|---|
--backend |
Kernel调测类型。 |
NPU上板精度校验时填写npu。 |
--repo-type |
算子开发场景类型。 |
标准自定义场景固定配置为customize。 |
--customize-path |
自定义算子包的安装目录。 |
根据实际自定义算子的部署环境配置,例如${INSTALL_DIR}/opp/vendors/${vendor_name},其中${INSTALL_DIR}为CANN安装包路径,${vendor_name}为部署自定义算子包时设置的vendor名。 |
--json-file |
算子信息配置文件。 |
具体参见输入配置中的json配置文件。 |
--core-type |
算子类型。 |
根据实际情况填写,可选值为{AiCore, MixCore, CubeCore, VectorCore, MixVectorCore},MixVectorCore为预留参数,开发者无需关注。本场景以AddCustom算子为例,配置为VectorCore。 |