| Added the UT case of op_host for QLI/QSFA, repairing LI/SFA UT
Co-authored-by: j60100428<jingsong5@h-partners.com>
# message auto-generated for no-merge-commit merge:
!4212 merge master into master
Added the UT case of op_host for QLI/QSFA, repairing LI/SFA UT
Created-by: SH_jingsong
Commit-by: j60100428
Merged-by: cann-robot
Description: ## 描述
Added the UT case of op_host for QLI/QSFA, repairing LI/SFA UT
目标:
提升attention/quant_lightning_indexer、attention/kv_quant_sparse_flash_attention算子tiling、infershape覆盖率
结果:
QSFA/QLI 的tiling、infershape行覆盖率均提升至80%以上
修复:
修复int64_t actual_seq_qlist[] = {};的零长数组初始化问题·,保证不同编译器编译正常
重启expectTilingData校验,填充预期的 tilingdata 数据进行端到端验证。
添加返回GRAPH_FAILED的失败场景注释
## 关联的Issue
https://gitcode.com/cann/ops-transformer/issues/1885
## 测试
bash build.sh -u --ophost --ops=lightning_indexer --soc="ascend910b" --cov 2>&1 | tee ./log/li_ophost_ut.log
bash build.sh -u --ophost --ops=sparse_flash_attention --soc="ascend910b" --cov 2>&1 | tee ./log/sfa_ophost_ut.log
bash build.sh -u --ophost --ops=quant_lightning_indexer --soc="ascend910b,ascend950" --cov 2>&1 | tee ./log/qli_ophost_ut.log
bash build.sh -u --ophost --ops=kv_quant_sparse_flash_attention --soc="ascend910b,ascend950" --cov 2>&1 | tee ./log/qsfa_ophost_ut.log
## 文档更新
<!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。-->
## 类型标签
<!-- [x] 表示选中 -->
- [ ] 🐛 Bug 修复
- [ ] ✨ 新特性
- [ ] ⚡ 性能优化
- [ ] ♻️ 重构
- [ ] 🧪 测试
- [ ] 📦 构建/CI
- [ ] 🔧 配置变更
- [ ] 📝 文档更新
- [ ] ⬆️ 依赖升级
- [ ] 🔒 安全修复
- [ ] 🧹 代码清理
- [ ] ❓ 其他,请描述:
See merge request: cann/ops-transformer!4212 | 1 个月前 |