| apply ascend config json option for binary kernel.
Co-authored-by: liu-wei<lovline.liuwei@huawei.com>
# message auto-generated for no-merge-commit merge:
!251 merge master into master
apply ascend config json option for binary kernel.
Created-by: liu-wei
Commit-by: liu-wei
Merged-by: cann-robot
Description: ## 描述
增加算子在编译时,首先读取ascendc_config.json中的编译参数,将编译参数增加到编译态运行时进行算子编译。
## 关联的Issue
无关联issue。
## 测试
编译参数增加功能测试:
```
# 此处以950的个别算子举例,修改前compile_op后面的是空的{}。
build/binary/ascend910_95/src/upsample_bicubic2d_aa_apt.py
compile_op(src, origin_func_name, op_info, options, code_channel, '{"auto_sync": false, "compile_options": {"ascend910_95": ["-mllvm -cce-aicore-dcci-before-kernel-end=false"]}}')
build/binary/ascend910_95/src/grid_sample_apt.py
compile_op(src, origin_func_name, op_info, options, code_channel, '{"compile_options": {"ascend310p": ["-mllvm -cce-aicore-jump-expand=true"]}}')
build/binary/ascend910_95/src/resize_linear_apt.py
compile_op(src, origin_func_name, op_info, options, code_channel, '{"auto_sync": false}')
```
基础出包测试:
```
====================================
FINAL SUMMARY
====================================
kirinx90 : FAILED (no .o)
ascend910_95 : OK (126 .o)
ascend950 : OK (126 .o)
ascend910 : SKIPPED (.o)
ascend910b : OK (84 .o)
ascend910B : OK (84 .o)
ascend310b : OK (3 .o)
ascend310B : OK (3 .o)
ascend310p : OK (25 .o)
ascend310P : OK (25 .o)
ascend610lite : SKIPPED (.o)
ascend910_93 : OK (84 .o)
STATIC_BUILD : OK (cann-910b-ops-cv_9.0.0_linux-x86_64.run, cann-910b-ops-cv-static_9.0.0_linux-x86_64.tar.gz)
mc62cm12a : OK (cann-mc62cm12a-ops-cv_9.0.0_linux-x86_64.run)
```
安装卸载测试:
```
[OpsCv] [2026-01-27 09:54:10] [INFO]: Using requirements: when opp module install finished or before you run the opp module, execute the command [ export ASCEND_OPP_PATH=/xxx/work_code/ops/ops-cv/build_out/cann/opp ] to set the environment path.
[OpsCv] [2026-01-27 09:54:10] [INFO]: Opp package installed successfully! The new version takes effect immediately.
[OpsCv] [2026-01-27 09:54:46] [INFO]: Opp package uninstalled successfully! Uninstallation takes effect immediately.
[OpsCv] [2026-01-27 09:55:09] [INFO]: Delete the install info file (/xxx/work_code/ops/ops-cv/build_out/cann/share/info/ops_cv/ascend_install.info).
[OpsCv] [2026-01-27 09:55:09] [INFO]: Opp package uninstalled successfully! Uninstallation takes effect immediately.
[OpsCv] [2026-01-27 09:55:09] [INFO]: Remove precheck info.
```
## 文档更新
<!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。-->
## 类型标签
<!-- [x] 表示选中 -->
- [ ] Bug修复
- [x] 新特性
- [ ] 性能优化
- [ ] 文档更新
- [ ] 其他,请描述:
See merge request: cann/ops-cv!251 | 4 个月前 |