已关闭
[Bug-Report|缺陷反馈]: pypto codegen路径拼接缺陷,在 enable_pypto_kernel 中直接使用未处理的 ${ASCEND_COMPUTE_UNIT} 拼路径与 --soc导致ut构建失败 #4116
chenyifan创建于 8月4日关闭于 8月5日
8月4日 关联了pull request:fix: 修复 UT 构建下 pypto codegen 路径分号问题及 op_api UT 缺链
weihao18
8月4日 评论:
8月4日 评论:
/assign @mutex_lock


8月4日 将 mutex_lock 设为负责人
8月5日 关闭了 issue
8月5日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
pypto codegen路径拼接缺陷,在 enable_pypto_kernel 中直接使用未处理的 ${ASCEND_COMPUTE_UNIT} 拼路径与 --soc导致ut构建失败
Environment / 环境信息 (Mandatory / 必填)
cann 9.2.0
soc ascend910_93
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
bash build.sh -u --opapi --noexec --soc=ascend910_93
bash build.sh -u --ophost --noexec --soc=ascend910_93
bash build.sh -u --noexec --soc=ascend910_93
Describe the expected behavior / 预期结果 (Mandatory / 必填)
编译通过
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
[2026-08-04 11:07:27] -- === Debug: start ops.transformer._dense_lightning_indexer_softmax_lse.tests.CMakeLists.txt
[2026-08-04 11:07:27] -- === Debug: CURRENT_DIRS =CMakeLists.txt;ut
[2026-08-04 11:07:27] -- pypto codegen: dense_lightning_indexer_softmax_lse_v2 -> /home/developer/ops-transformer/build/binary/ascend910_93;/dense_lightning_indexer_softmax_lse_v2_pypto_gen
usage: pypto_codegen.py [-h] --py-file PY_FILE --out-dir OUT_DIR --op-file
OP_FILE --soc SOC
pypto_codegen.py: error: unrecognized arguments: /dense_lightning_indexer_softmax_lse_v2_pypto_gen
CMake Error at cmake/func.cmake:588 (message):
pypto codegen failed for dense_lightning_indexer_softmax_lse_v2 (exit 2)
Call Stack (most recent call first):
attention/dense_lightning_indexer_softmax_lse_v2/op_host/CMakeLists.txt:18 (enable_pypto_kernel)
Special notes for this issue/备注 (Optional / 选填)