已关闭
[Requirement|需求建议]: kernel编译配置项优化 #4857
XianyongWang创建于  22 天前关闭于  18 天前
XianyongWang
XianyongWang成员
22 天前 创建

Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.

Backgroud(背景信息)

当前的conv系列算子(conv2d_v2、conv3d_v2、quant_conv3d和extend_conv2d)的kernel编译配置分散在{ops}_simplified_key.ini、binary/config/all_ops_impl_mode.ini、binary/config/ascendc_config.json、binary/config/binary_auto_fuzz_json.ini配置文件中,配置与算子代码分离,应该整改到算子对应的op-kernel目录中

Origin(信息来源)

开发者

Benefit / Necessity (价值/作用)

减少配置耗时,优化kernel编译逻辑,提升后续算子开发的易用性,减少交付件和误解。

Design(设计方案)

在算子的kernel目录下,增加对应的makefile文件,利用add_kernel_sources函数,参考原本的四个配置文件设置编译参数,同时删除原配置文件/配置项,实现算子编译配置就近管理,符合ops-nn仓的统一规范:
1.SIMPLIFIED_KEY:对应文件op_host/config/ascendxxx/ {ops}_simplified_key.ini;
2.AUTO_SYNC/OPTION:对应文件ops-nn/scripts/kernel/binary_config/ascendc_config.json;
3.IMPL_MODE:对应文件scripts/binary_config/all_ops_impl_mode.ini。

likedislike
XianyongWangXianyongWang成员
22 天前 添加了label:requirement
XianyongWangXianyongWang成员
22 天前 关联了pull request:kernel编译配置项优化
yuning_chenyuning_chen成员
22 天前 将 XianyongWang 设为负责人
CANN-robotCANN-robot成员
18 天前 关闭了 issue
CANN-robotCANN-robot成员
18 天前 添加了label:resolved