Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
当前的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目录中
开发者
减少配置耗时,优化kernel编译逻辑,提升后续算子开发的易用性,减少交付件和误解。
在算子的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。
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。