异常类型: RuntimeError
---- 关键信息 ----
同步超时错误码 : 507015
挂死内核名 : PyPTO_bug5_tail_two_steps_pto_0_mix_aic
设备错误(errorStr) : The address for the VEC instruction to read/write UB is out of bounds
硬件错误码(errcode) : 0x4000000000000000
vec error info : 0x9700000075
mte error info : 0x203000077
ifu error info : 0xaca0e7160680
出错核(core id) : 34
---- 异常完整消息(逐行) ----
| npuSynchronizeDevice:../torch_npu/csrc/core/npu/NPUStream.cpp:576 NPU function error: AclrtSynchronizeDeviceWithTimeout, error code is 507015
| [ERROR] 2026-10-12-16:12:28 (PID:3532497, Device:12, RankID:-1) ERR00100 PTA call acl api failed
| [Error]: The aicore execution is abnormal.
| Rectify the fault based on the error information in the ascend log.
| [PID: 3532497] 2026-10-12-16:12:27.402.564 Invalid_Argument(EE1011): Kernel function query failed. Value PyPTO_bug5_tail_two_steps_pto_0_mix_aic for parameter kernelName is invalid. Reason: The kernel function with this kernelName does not exist.
| Solution: 1. Check the input parameter range of the function. 2. Check the function invocation relationship.
| TraceBack (most recent call last):
| An error occurs on the device(chipId:6, dieId:0), the serial number is 3, the error is fftsplus aivector error, core id is 34, error code = 0x4000000000000000, dump info: pc start: 0x1258001eab24, current: 0x1258001e5ef0, vec error info: 0x9700000075, mte error info: 0x203000077, ifu error info: 0xaca0e7160680, ccu error info: 0x99b9807a01000077, cube error info: 0, biu error info: 0, aic error mask: 0x6500020bd00028c, para base: 0x12c100004080, aic cond: 0.
| The extend info: errcode:(0x4000000000000000, 0, 0) errorStr: The address for the VEC instruction to read/write UB is out of bounds. fixp_error0 info: 0x3000077, fixp_error1 info: 0x2, fsmId:0, tslot:0, thread:0, ctxid:0, blk:13, sublk:1, subErrType:4.
| For details, see the troubleshooting document on the Ascend official website. Search for the keyword "AI Core Error".[FUNC:PrintCoreInfo][FILE:device_error_core_proc.cc][LINE:1227]
| An error occurred in the kernel task, retCode=0x26, [aicore exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1030]
| Kernel function query failed. Value PyPTO_bug5_tail_two_steps_pto_0_mix_aic for parameter kernelName is invalid. Reason: The kernel function with this kernelName does not exist.
| The argument is invalid. Reason: rtBinaryGetFunctionByName execution failed.
| rtDeviceSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
---- Python 调用栈(仅帧, 异常消息见上) ----
| Traceback (most recent call last):
| File "/home/l00567146/PyPTO_Test/.opencode/skills/pypto-pass-whitebox-analysis/issues/test_pad_local_buffer_issue_2.py", line 195, in main
| torch_npu.npu.synchronize()
| File "/root/miniconda3/envs/py310_ly/lib/python3.10/site-packages/torch_npu/npu/utils.py", line 72, in synchronize
| return torch_npu._C._npu_synchronize()
Describe the current behavior / 问题描述 (Mandatory / 必填)
在910B3上的PyPTO_Test跑
// ...
hi = pypto.gt(a_t, b_t)
lo = pypto.lt(a_t, b_t)
p = pypto.where(hi, a_t, b_t)
q = pypto.where(lo, b_t, a_t)
r = pypto.maximum(p, q)
p2 = pypto.pow(pypto.abs(pypto.neg(r)), 2)
rc = pypto.reciprocal(p2)
发现加入最后的reciprocal就会报aicore error
Environment / 环境信息 (Mandatory / 必填)
A2 A3
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
在 PyPTO_Test 框架下
cd PyPTO_Test/ops/
git clone https://gitcode.com/cann/pypto-gym.git
将脚本放在ops/pass_case目录下,然后直接执行python3 ops/pass_case/test_pad_local_buffer_issue_2.py
Describe the expected behavior / 预期结果 (Mandatory / 必填)
预期
python3 ops/pass_case/test_pad_local_buffer_issue_2.py 3
PadLocalBuffer issue reproducer 2/2 (BUG-5) - Device 3
BUG-5: fp16 3D chain tail (1-step vs 2-step)
[W1013 16:28:06.570812900 NPUCachingAllocator.cpp:203] Warning: The current CANN and Soc versions require processing for 32 padding size, with memory allocation. (function operator())
[BUG-5 尾两步 pow->rec->exp2] running (expected: device hang, wait for npuSynchronizeDevice timeout 507015)...
[BUG-5 尾两步 pow->rec->exp2] OK (not reproduced)
======================================================================
Reproducer 2/2 finished.
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
异常类型: RuntimeError
---- 关键信息 ----
同步超时错误码 : 507015
挂死内核名 : PyPTO_bug5_tail_two_steps_pto_0_mix_aic
设备错误(errorStr) : The address for the VEC instruction to read/write UB is out of bounds
硬件错误码(errcode) : 0x4000000000000000
vec error info : 0x9700000075
mte error info : 0x203000077
ifu error info : 0xaca0e7160680
出错核(core id) : 34
---- 异常完整消息(逐行) ----
| npuSynchronizeDevice:../torch_npu/csrc/core/npu/NPUStream.cpp:576 NPU function error: AclrtSynchronizeDeviceWithTimeout, error code is 507015
| [ERROR] 2026-10-12-16:12:28 (PID:3532497, Device:12, RankID:-1) ERR00100 PTA call acl api failed
| [Error]: The aicore execution is abnormal.
| Rectify the fault based on the error information in the ascend log.
| [PID: 3532497] 2026-10-12-16:12:27.402.564 Invalid_Argument(EE1011): Kernel function query failed. Value PyPTO_bug5_tail_two_steps_pto_0_mix_aic for parameter kernelName is invalid. Reason: The kernel function with this kernelName does not exist.
| Solution: 1. Check the input parameter range of the function. 2. Check the function invocation relationship.
| TraceBack (most recent call last):
| An error occurs on the device(chipId:6, dieId:0), the serial number is 3, the error is fftsplus aivector error, core id is 34, error code = 0x4000000000000000, dump info: pc start: 0x1258001eab24, current: 0x1258001e5ef0, vec error info: 0x9700000075, mte error info: 0x203000077, ifu error info: 0xaca0e7160680, ccu error info: 0x99b9807a01000077, cube error info: 0, biu error info: 0, aic error mask: 0x6500020bd00028c, para base: 0x12c100004080, aic cond: 0.
| The extend info: errcode:(0x4000000000000000, 0, 0) errorStr: The address for the VEC instruction to read/write UB is out of bounds. fixp_error0 info: 0x3000077, fixp_error1 info: 0x2, fsmId:0, tslot:0, thread:0, ctxid:0, blk:13, sublk:1, subErrType:4.
| For details, see the troubleshooting document on the Ascend official website. Search for the keyword "AI Core Error".[FUNC:PrintCoreInfo][FILE:device_error_core_proc.cc][LINE:1227]
| An error occurred in the kernel task, retCode=0x26, [aicore exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1030]
| Kernel function query failed. Value PyPTO_bug5_tail_two_steps_pto_0_mix_aic for parameter kernelName is invalid. Reason: The kernel function with this kernelName does not exist.
| The argument is invalid. Reason: rtBinaryGetFunctionByName execution failed.
| rtDeviceSynchronizeWithTimeout execution failed, reason=aicore exception[FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:76]
---- Python 调用栈(仅帧, 异常消息见上) ----
| Traceback (most recent call last):
| File "/home/l00567146/PyPTO_Test/.opencode/skills/pypto-pass-whitebox-analysis/issues/test_pad_local_buffer_issue_2.py", line 195, in main
| torch_npu.npu.synchronize()
| File "/root/miniconda3/envs/py310_ly/lib/python3.10/site-packages/torch_npu/npu/utils.py", line 72, in synchronize
| return torch_npu._C._npu_synchronize()
[BUG-5 尾两步 pow->rec->exp2] FAILURE DETAIL END
Special notes for this issue/备注 (Optional / 选填)