| Files | Last commit | Last update |
|---|---|---|
修改文件头copyright和license Co-authored-by: Zql99<zhangqianlong8@huawei.com> # message auto-generated for no-merge-commit merge: !356 merge master into master 修改文件头copyright和license Created-by: Zql99 Commit-by: Zql99 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 对example目录和tests目录添加文件头copyright和license ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> NA ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> NA ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:添加文件头copyright和license See merge request: cann/asc-devkit!356 | 8 months ago | |
fix: disable aclgraph early-start under debug sync all Co-authored-by: yrz1027<yangruizhi5@huawei.com> # message auto-generated for no-merge-commit merge: !2666 merge fix/aclgraph-debug-sync-all-priority into master fix: disable aclgraph early-start under debug sync all Created-by: yrz1027 Commit-by: yrz1027 Merged-by: cann-robot Description: ## 描述 本次修复 aclgraph super kernel 子算子编译路径下 debug_sync_all 与 early_start 的优先级问题。 问题背景: - aclgraph 路径此前会把 debug_sync_all=1 归一化为 debug-sync-all 后当作不支持选项忽略。 - 当 early_start=1 同时开启时,子算子编译仍会注入 __ASCENDC_SUPERKERNEL_EARLY_START_V3 以及 __ASCENDC_ENABLE_SET_NEXT_TASK_START / __ASCENDC_ENABLE_WAIT_PRE_TASK_END。 - debug_sync_all 的调试同步语义优先级应高于 early-start,否则子算子内部同步特性仍被宏开启,容易引入额外同步依赖并导致卡死风险。 修改内容: - aclgraph option parser 增加 debug-sync-all 二值解析,确保 debug_sync_all=1 能进入 sp_options。 - aclgraph 子算子 early-start 编译宏注入处增加优先级判断:仅当 early-start=1 且 debug-sync-all!=1 时注入 V3 early-start 及 set/wait 宏。 - 同步修改 asc_op_compiler 与 adapter 两套镜像实现。 - 补充 parser 和 compile option UT,覆盖 debug_sync_all=1 压过 early_start=1 的场景。 ## 关联的Issue 无 ## 测试 - git diff --cached --check - git diff --check -- tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_option_parse.py tools/build/asc_op_compile_base/adapter/super_kernel_option_parse.py tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_sub_op_compile.py tools/build/asc_op_compile_base/adapter/super_kernel_sub_op_compile.py tests/python/asc_op_compiler/test_ascendc_compile_utility.py tests/python/adapter/test_ascendc_compile_utility.py tests/python/asc_op_compiler/test_ascendc_compile_base.py tests/python/adapter/test_ascendc_compile_base.py - python3 -m py_compile tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_option_parse.py tools/build/asc_op_compile_base/adapter/super_kernel_option_parse.py tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_sub_op_compile.py tools/build/asc_op_compile_base/adapter/super_kernel_sub_op_compile.py tests/python/asc_op_compiler/test_ascendc_compile_utility.py tests/python/adapter/test_ascendc_compile_utility.py tests/python/asc_op_compiler/test_ascendc_compile_base.py tests/python/adapter/test_ascendc_compile_base.py - python3 -m pytest --import-mode=importlib tests/python/asc_op_compiler/test_ascendc_compile_base.py tests/python/adapter/test_ascendc_compile_base.py tests/python/asc_op_compiler/test_ascendc_compile_utility.py tests/python/adapter/test_ascendc_compile_utility.py -k "gen_sub_super_kernel_early_start_compile_options or aclgraph_options_accept_dcci_underscore_keys":提权运行通过,结果 4 passed, 54 deselected, 164 warnings。 ## 文档更新 无 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!2666 | 5 months ago | |
fix: disable aclgraph early-start under debug sync all Co-authored-by: yrz1027<yangruizhi5@huawei.com> # message auto-generated for no-merge-commit merge: !2666 merge fix/aclgraph-debug-sync-all-priority into master fix: disable aclgraph early-start under debug sync all Created-by: yrz1027 Commit-by: yrz1027 Merged-by: cann-robot Description: ## 描述 本次修复 aclgraph super kernel 子算子编译路径下 debug_sync_all 与 early_start 的优先级问题。 问题背景: - aclgraph 路径此前会把 debug_sync_all=1 归一化为 debug-sync-all 后当作不支持选项忽略。 - 当 early_start=1 同时开启时,子算子编译仍会注入 __ASCENDC_SUPERKERNEL_EARLY_START_V3 以及 __ASCENDC_ENABLE_SET_NEXT_TASK_START / __ASCENDC_ENABLE_WAIT_PRE_TASK_END。 - debug_sync_all 的调试同步语义优先级应高于 early-start,否则子算子内部同步特性仍被宏开启,容易引入额外同步依赖并导致卡死风险。 修改内容: - aclgraph option parser 增加 debug-sync-all 二值解析,确保 debug_sync_all=1 能进入 sp_options。 - aclgraph 子算子 early-start 编译宏注入处增加优先级判断:仅当 early-start=1 且 debug-sync-all!=1 时注入 V3 early-start 及 set/wait 宏。 - 同步修改 asc_op_compiler 与 adapter 两套镜像实现。 - 补充 parser 和 compile option UT,覆盖 debug_sync_all=1 压过 early_start=1 的场景。 ## 关联的Issue 无 ## 测试 - git diff --cached --check - git diff --check -- tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_option_parse.py tools/build/asc_op_compile_base/adapter/super_kernel_option_parse.py tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_sub_op_compile.py tools/build/asc_op_compile_base/adapter/super_kernel_sub_op_compile.py tests/python/asc_op_compiler/test_ascendc_compile_utility.py tests/python/adapter/test_ascendc_compile_utility.py tests/python/asc_op_compiler/test_ascendc_compile_base.py tests/python/adapter/test_ascendc_compile_base.py - python3 -m py_compile tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_option_parse.py tools/build/asc_op_compile_base/adapter/super_kernel_option_parse.py tools/build/asc_op_compile_base/asc_op_compiler/super_kernel_sub_op_compile.py tools/build/asc_op_compile_base/adapter/super_kernel_sub_op_compile.py tests/python/asc_op_compiler/test_ascendc_compile_utility.py tests/python/adapter/test_ascendc_compile_utility.py tests/python/asc_op_compiler/test_ascendc_compile_base.py tests/python/adapter/test_ascendc_compile_base.py - python3 -m pytest --import-mode=importlib tests/python/asc_op_compiler/test_ascendc_compile_base.py tests/python/adapter/test_ascendc_compile_base.py tests/python/asc_op_compiler/test_ascendc_compile_utility.py tests/python/adapter/test_ascendc_compile_utility.py -k "gen_sub_super_kernel_early_start_compile_options or aclgraph_options_accept_dcci_underscore_keys":提权运行通过,结果 4 passed, 54 deselected, 164 warnings。 ## 文档更新 无 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!2666 | 5 months ago | |
AscendC Framework: Printf switch to FIFO Co-authored-by: liuliu876<liuxin429@huawei.com> # message auto-generated for no-merge-commit merge: !1634 merge switch2fifo_liantiao into master AscendC Framework: Printf switch to FIFO Created-by: liuliu876 Commit-by: liuliu876 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 1: device编译的时候使能 runtime printf能力 2: 增加 printf 的打印标识位 3: 去除原先识别printf、assert、dumpternsor等维测接口识别能力 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1634 | 6 months ago | |
将soc_version mc62cm12a短名改为mc62 Co-authored-by: qwerwjy<wangjunyi23@huawei.com> # message auto-generated for no-merge-commit merge: !2290 merge master into master 将soc_version mc62cm12a短名改为mc62 Created-by: qwerwjy Commit-by: qwerwjy Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 将soc_version mc62cm12a短名改为mc62,并新增长名 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联Issue [#775](https://gitcode.com/cann/asc-devkit/issues/775) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 二级冒烟 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!2290 | 5 months ago | |
tiling常量赋值 Co-authored-by: zhanglong99<zhanglong170@huawei.com> # message auto-generated for no-merge-commit merge: !239 merge master into master tiling常量赋值 Created-by: zhanglong99 Commit-by: zhanglong99 Merged-by: cann-robot Description: ## 描述 使能tiling结构体常量赋值新方式,使用convert_from_bytes接口替换reinterpret_cast ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!239 | 8 months ago | |
fix log adapter Co-authored-by: liuliu876<liuxin429@huawei.com> # message auto-generated for no-merge-commit merge: !386 merge fix_log_adapter into master fix log adapter Created-by: liuliu876 Commit-by: liuliu876 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> resolve incorrect escaping caused by characters such as % and \ in log messages. ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!386 | 8 months ago | |
test(template-tiling): add datatype parsing coverage Co-authored-by: yrz1027<yangruizhi5@huawei.com> # message auto-generated for no-merge-commit merge: !2378 merge ut-template-tiling-cases into master test(template-tiling): add datatype parsing coverage Created-by: yrz1027 Commit-by: yrz1027 Merged-by: cann-robot Description: ## 描述 新增 template tiling 的 DATATYPE 解析相关 UT,覆盖 asc_op_compiler 与 adapter 两个入口。 - 覆盖 safe_parse_value 的直接整数解析、表达式 eval 解析、C_DT_*、C_FORMAT_* 和非法值过滤路径。 - 覆盖 ASCENDC_TPL_DATATYPE_DECL/SEL 中复杂表达式解析,并校验 ASCENDC_TPL_INPUT/OUTPUT bias 规则映射到 op_info.inputs/outputs 的 dtype 选项。 - 覆盖 DATATYPE_SEL 选择未声明值、非法 C_DT_* 导致空 values 的错误路径。 ## 关联的Issue 无 ## 测试 - python3 -m py_compile tests/python/asc_op_compiler/test_template_tiling.py tests/python/adapter/test_template_tiling.py - cmake --build build --target asc_platform_test - python3 -m unittest tests/python/asc_op_compiler/test_template_tiling.py - python3 -m unittest tests.python.adapter.test_template_tiling.TestCompileOp.test_template_tiling_datatype tests.python.adapter.test_template_tiling.TestCompileOp.test_template_tiling_datatype_parse_values tests.python.adapter.test_template_tiling.TestCompileOp.test_template_tiling_datatype_invalid_select_value tests.python.adapter.test_template_tiling.TestCompileOp.test_template_tiling_datatype_invalid_parse_value ## 文档更新 无 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!2378 | 5 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 6 months ago | ||
| 5 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 5 months ago |