已关闭
[Bug-Report|缺陷反馈]: 通过 build.sh 命令编译和执行 ophost 单侧时报 add_library cannot create ALIAS target "tikicpulib::bs9sx2aa" 错误 #4487
Hirozy创建于 8月21日关闭于 8月25日
8月21日 将 weihao18 设为负责人
Hirozy
8月24日 评论:
8月24日 评论:
确认 master 分支已解决该问题,多谢!
[2026-08-24 02:27:51] [ OK ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/dtype_invalid_mx_wscale (0 ms)
[2026-08-24 02:27:51] [ RUN ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/mxA8W4_multi_weight
[2026-08-24 02:27:51] [ OK ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/mxA8W4_multi_weight (0 ms)
[2026-08-24 02:27:51] [ RUN ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/mxA8W4_multi_weight_n_neq_k
[2026-08-24 02:27:51] [ OK ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/mxA8W4_multi_weight_n_neq_k (0 ms)
[2026-08-24 02:27:51] [ RUN ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/mxA8W4_multi_weight_n_neq_k_no_transpose
[2026-08-24 02:27:51] [ OK ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/mxA8W4_multi_weight_n_neq_k_no_transpose (0 ms)
[2026-08-24 02:27:51] [ RUN ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/w8a8_normal_1
[2026-08-24 02:27:51] [ OK ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/w8a8_normal_1 (0 ms)
[2026-08-24 02:27:51] [ RUN ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/a8w4_weightnz_pergroup
[2026-08-24 02:27:51] [ OK ] GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape.csvDrivenCase/a8w4_weightnz_pergroup (0 ms)
[2026-08-24 02:27:51] [----------] 23 tests from GMMSQ_V2_INFERSHAPE_CSV/TestGroupedMatmulSwigluQuantV2Infershape (2 ms total)
[2026-08-24 02:27:51]
[2026-08-24 02:27:51] [----------] Global test environment tear-down
[2026-08-24 02:27:51] Global Environment TearDown
[2026-08-24 02:27:51] [==========] 203 tests from 5 test suites ran. (165 ms total)
[2026-08-24 02:27:51] [ PASSED ] 203 tests.
[2026-08-24 02:27:51] [100%] Built target transformer_op_host_ut


8月25日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
编译
grouped_matmul_swiglu_quant_v2算子的 ophost 单侧测试用例时失败,CMake 提示add_library cannot create ALIAS target "tikicpulib::bs9sx2aa" because another target with the same name already exists.Environment / 环境信息 (Mandatory / 必填)
CANN 环境容器:
swr.cn-south-1.myhuaweicloud.com/ascendhub/cann:8.5.2-910b-ubuntu22.04-py3.11CANN版本:8.5.2
NPU 驱动:25.5.0
NPU 硬件:910B3
cmake: 3.22.1
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
复现步骤:
git clone https://gitcode.com/cann/ops-transformer.git cd ops-transformer git checkout f764787ebf92ff3aa9b2656f486e7eac70cfae80 # 20260821 clone master 分支最新 commit bash build.sh --soc=ascend910b --ops=grouped_matmul_swiglu_quant_v2 --pkg # 出现报错的命令 bash build.sh --soc=ascend910b --ops=grouped_matmul_swiglu_quant_v2 --ophost_testDescribe the expected behavior / 预期结果 (Mandatory / 必填)
bash build.sh --soc=ascend910b --ops=grouped_matmul_swiglu_quant_v2 --ophost_test命令可以成功编译 UT 脚本并执行 UT 测试Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
Special notes for this issue/备注 (Optional / 选填)