| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
refactor: simplify CMake configuration Co-authored-by: zhangzijie<zhangzijie11@hisilicon.com> # message auto-generated for no-merge-commit merge: !205 merge refactor/cmake-simplify into master refactor: simplify CMake configuration Created-by: zhangzijie Commit-by: zhangzijie Merged-by: cann-robot Description: ## 描述 简化样例工程的 CMake 配置,减少重复的 Ascend 基础库链接和冗余配置。 主要改动: - 将多个样例中重复的 Ascend 基础库链接逻辑内联到各自 CMake 配置中。 - 清理不再需要的 cmake/ascend.cmake 和 cmake/ascend_base.cmake。 - 精简部分 matmul、memory optimization、instruction optimization 和 performance 样例的 CMake 设置。 - 调整 cmake/shmem.cmake 中共享内存相关链接配置。 ## 关联的Issue https://gitcode.com/cann/cann-samples/issues/132 ## 测试 未运行自动化测试;本次改动集中在 CMake 配置清理。 ## 文档更新 无需更新文档。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:CMake 配置重构 See merge request: cann/cann-samples!205 | 4 个月前 | |
refactor: simplify CMake configuration Co-authored-by: zhangzijie<zhangzijie11@hisilicon.com> # message auto-generated for no-merge-commit merge: !205 merge refactor/cmake-simplify into master refactor: simplify CMake configuration Created-by: zhangzijie Commit-by: zhangzijie Merged-by: cann-robot Description: ## 描述 简化样例工程的 CMake 配置,减少重复的 Ascend 基础库链接和冗余配置。 主要改动: - 将多个样例中重复的 Ascend 基础库链接逻辑内联到各自 CMake 配置中。 - 清理不再需要的 cmake/ascend.cmake 和 cmake/ascend_base.cmake。 - 精简部分 matmul、memory optimization、instruction optimization 和 performance 样例的 CMake 设置。 - 调整 cmake/shmem.cmake 中共享内存相关链接配置。 ## 关联的Issue https://gitcode.com/cann/cann-samples/issues/132 ## 测试 未运行自动化测试;本次改动集中在 CMake 配置清理。 ## 文档更新 无需更新文档。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:CMake 配置重构 See merge request: cann/cann-samples!205 | 4 个月前 | |
Add MXFP8FP4 weight quant matmul sample Co-authored-by: xubinglin<xubinglin@huawei.com> # message auto-generated for no-merge-commit merge: !276 merge mm_mxfp8fp4_swat_version into master Add MXFP8FP4 weight quant matmul sample Created-by: xubinglin Commit-by: xubinglin Merged-by: cann-robot Description: ## 描述 本 PR 新增 matmul_recipes 下的 MXFP8FP4 权重量化矩阵乘样例,支持 MXFP8 输入、packed MXFP4 NZ 权重、E8M0 scale、BF16 输出。 主要改动包括: - 新增两个 target,通过 target 固定 2-buffer / 4-buffer 配置: - weight_quant_matmul_mxfp8fp4 - weight_quant_matmul_mxfp8fp4_swat_4_buffer - 新增 MXFP8FP4 对应的 host tiling、kernel universal 特化、block scheduler、block MMAD、weight prologue 和 weight copy helper。 - 使用 compact tail split 调度有效 tile,避免 scheduler 产生 zero block shape。 - 简化 tiling data,使用 tileShapeKL1 / tileShapeScaleKL1 表达 L1 K 与 scale K extent,buffer 数由 target/dispatch policy 固定。 - 新增 gen_data.py 与 verify_result.py,支持样例数据生成和 NPU 输出校验。 - 更新 CMake 安装逻辑和 README,接入 matmul recipe 样例目录。 ## 关联的Issue [#190](https://gitcode.com/cann/cann-samples/issues/190) ## 测试 - 格式化:对.h / .asc 文件执行仓库 clang-format 规则。 - 编译验证: - cmake --build build --target weight_quant_matmul_mxfp8fp4 weight_quant_matmul_mxfp8fp4_swat_4_buffer --parallel - Host tiling 泛化: - 2buf/4buf 合计 2,000,000 条合法 shape,全部 PASS。 - NPU 精度泛化: - 合计执行 5,000 条 resource-gated shape,全部 PASS。 - weight_quant_matmul_mxfp8fp4: 2,500 PASS - weight_quant_matmul_mxfp8fp4_swat_4_buffer: 2,500 PASS - msprof 性能扫点: - shape:k=4096,n=8192,m=1,2,4,8,16,32,64,128,256,384,512,768,1024 - warmup 1 次,repeat 3 次。 - 两个 target 均为 39/39 PASS。 ## 文档更新 - 更新 Samples/2_Performance/matmul_story/README.md - 更新 Samples/2_Performance/matmul_story/matmul_recipes/README.md - 新增 Samples/2_Performance/matmul_story/matmul_recipes/examples/weight_quant_matmul_mxfp8fp4/README.md ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/cann-samples!276 | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 个月前 | ||
| 4 个月前 | ||
| 3 个月前 |