Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
--build-type=Debug构建时,所有算子都会报错。
x86,2/9日toolkit包,最新代码
bash build.sh --pkg -j48 --soc=ascend310p --build-type=Debug构建
编译成功
INFO]excute file: /usr1/cann_eco_debug/ops/ops-nn/scripts/kernel/binary_script/build_binary_op_exe_task.sh [2026-02-09 01:52:06] [2026-02-09 01:52:04] [INFO]exe_task: begin to build kernel with cmd: asc_opc /usr1/cann_eco_debug/ops/ops-nn/build/tbe/dynamic/foreach_non_finite_check_and_unscale.py --main_func=foreach_non_finite_check_and_unscale --input_param=/usr1/cann_eco_debug/ops/ops-nn/build/tbe/config/ascend310p/foreach_non_finite_check_and_unscale/foreach_non_finite_check_and_unscale_binary_high_performance.json_1 --soc_version=Ascend310P3 --output=/usr1/cann_eco_debug/ops/ops-nn/build/binary/ascend310p/bin/ascend310p/foreach_non_finite_check_and_unscale/ --impl_mode=high_performance,optional --simplified_key_mode=0 --op_mode=dynamic --op_debug_config=debug. [2026-02-09 01:52:06] [2026-02-09 01:52:06] [ERROR]exe_task: build kernel FAILED, op name: foreach_non_finite_check_and_unscale_binary_high_performance.json_1. Run this command again for debug: [2026-02-09 01:52:06] [2026-02-09 01:52:06] [ERROR]asc_opc /usr1/cann_eco_debug/ops/ops-nn/build/tbe/dynamic/foreach_non_finite_check_and_unscale.py --main_func=foreach_non_finite_check_and_unscale --input_param=/usr1/cann_eco_debug/ops/ops-nn/build/tbe/config/ascend310p/foreach_non_finite_check_and_unscale/foreach_non_finite_check_and_unscale_binary_high_performance.json_1 --soc_version=Ascend310P3 --output=/usr1/cann_eco_debug/ops/ops-nn/build/binary/ascend310p/bin/ascend310p/foreach_non_finite_check_and_unscale/ --impl_mode=high_performance,optional --simplified_key_mode=0 --op_mode=dynamic --op_debug_config=debug [2026-02-09 01:52:06] [2026-02-09 01:52:06] [2026-02-09 01:52:04] Build started: asc_opc /usr1/cann_eco_debug/ops/ops-nn/build/tbe/dynamic/foreach_non_finite_check_and_unscale.py --main_func=foreach_non_finite_check_and_unscale --input_param=/usr1/cann_eco_debug/ops/ops-nn/build/tbe/config/ascend310p/foreach_non_finite_check_and_unscale/foreach_non_finite_check_and_unscale_binary_high_performance.json_1 --soc_version=Ascend310P3 --output=/usr1/cann_eco_debug/ops/ops-nn/build/binary/ascend310p/bin/ascend310p/foreach_non_finite_check_and_unscale/ --impl_mode=high_performance,optional --simplified_key_mode=0 --op_mode=dynamic --op_debug_config=debug [2026-02-09 01:52:06] [2026-02-09 01:52:06] Opc tool start working now, please wait for a moment.
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
--build-type=Debug构建时,所有算子都会报错。
Environment / 环境信息 (Mandatory / 必填)
x86,2/9日toolkit包,最新代码
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
bash build.sh --pkg -j48 --soc=ascend310p --build-type=Debug构建
Describe the expected behavior / 预期结果 (Mandatory / 必填)
编译成功
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
INFO]excute file: /usr1/cann_eco_debug/ops/ops-nn/scripts/kernel/binary_script/build_binary_op_exe_task.sh
[2026-02-09 01:52:06] [2026-02-09 01:52:04] [INFO]exe_task: begin to build kernel with cmd: asc_opc /usr1/cann_eco_debug/ops/ops-nn/build/tbe/dynamic/foreach_non_finite_check_and_unscale.py --main_func=foreach_non_finite_check_and_unscale --input_param=/usr1/cann_eco_debug/ops/ops-nn/build/tbe/config/ascend310p/foreach_non_finite_check_and_unscale/foreach_non_finite_check_and_unscale_binary_high_performance.json_1 --soc_version=Ascend310P3 --output=/usr1/cann_eco_debug/ops/ops-nn/build/binary/ascend310p/bin/ascend310p/foreach_non_finite_check_and_unscale/ --impl_mode=high_performance,optional --simplified_key_mode=0 --op_mode=dynamic --op_debug_config=debug.
[2026-02-09 01:52:06] [2026-02-09 01:52:06] [ERROR]exe_task: build kernel FAILED, op name: foreach_non_finite_check_and_unscale_binary_high_performance.json_1. Run this command again for debug:
[2026-02-09 01:52:06] [2026-02-09 01:52:06] [ERROR]asc_opc /usr1/cann_eco_debug/ops/ops-nn/build/tbe/dynamic/foreach_non_finite_check_and_unscale.py --main_func=foreach_non_finite_check_and_unscale --input_param=/usr1/cann_eco_debug/ops/ops-nn/build/tbe/config/ascend310p/foreach_non_finite_check_and_unscale/foreach_non_finite_check_and_unscale_binary_high_performance.json_1 --soc_version=Ascend310P3 --output=/usr1/cann_eco_debug/ops/ops-nn/build/binary/ascend310p/bin/ascend310p/foreach_non_finite_check_and_unscale/ --impl_mode=high_performance,optional --simplified_key_mode=0 --op_mode=dynamic --op_debug_config=debug
[2026-02-09 01:52:06] [2026-02-09 01:52:06] [2026-02-09 01:52:04] Build started: asc_opc /usr1/cann_eco_debug/ops/ops-nn/build/tbe/dynamic/foreach_non_finite_check_and_unscale.py --main_func=foreach_non_finite_check_and_unscale --input_param=/usr1/cann_eco_debug/ops/ops-nn/build/tbe/config/ascend310p/foreach_non_finite_check_and_unscale/foreach_non_finite_check_and_unscale_binary_high_performance.json_1 --soc_version=Ascend310P3 --output=/usr1/cann_eco_debug/ops/ops-nn/build/binary/ascend310p/bin/ascend310p/foreach_non_finite_check_and_unscale/ --impl_mode=high_performance,optional --simplified_key_mode=0 --op_mode=dynamic --op_debug_config=debug
[2026-02-09 01:52:06] [2026-02-09 01:52:06] Opc tool start working now, please wait for a moment.
Special notes for this issue/备注 (Optional / 选填)