代码:
import torch
import torch_npu
x = torch.randn(2, 2).npu()
y = torch.randn(2, 2).npu()
z = x.mm(y)
print(z)
报错:
E39999: Inner Error!
E39999: [PID: 7142] 2025-05-06-09:57:55.560.451 The error from device(chipId:0, dieId:0), serial number is 6, an exception occurred during AICPU execution, stream_id:3, task_id:0, errcode:11002, msg:open so failed.[FUNC:ProcessStarsAicpuErrorInfo][FILE:device_error_proc.cc][LINE:1479]
TraceBack (most recent call last):
Kernel task happen error, retCode=0x2a, [aicpu exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1356]
Aicpu kernel execute failed, device_id=0, stream_id=3, task_id=0, errorCode=2a.[FUNC:PrintAicpuErrorInfo][FILE:davinci_kernel_task.cc][LINE:1120]
AICPU Kernel task happen error, retCode=0x2a.[FUNC:GetError][FILE:stream.cc][LINE:1124]
Aicpu kernel execute failed, device_id=0, stream_id=3, task_id=0, flip_num=0, kernel_type=1fault so_name=, fault kernel_name=, fault op_name=, extend_info=.[FUNC:GetError][FILE:stream.cc][LINE:1124]
其中:import torch
import torch_npu未报错
代码:
import torch
import torch_npu
x = torch.randn(2, 2).npu()
y = torch.randn(2, 2).npu()
z = x.mm(y)
print(z)
报错:
E39999: Inner Error!
E39999: [PID: 7142] 2025-05-06-09:57:55.560.451 The error from device(chipId:0, dieId:0), serial number is 6, an exception occurred during AICPU execution, stream_id:3, task_id:0, errcode:11002, msg:open so failed.[FUNC:ProcessStarsAicpuErrorInfo][FILE:device_error_proc.cc][LINE:1479]
TraceBack (most recent call last):
Kernel task happen error, retCode=0x2a, [aicpu exception].[FUNC:PreCheckTaskErr][FILE:davinci_kernel_task.cc][LINE:1356]
Aicpu kernel execute failed, device_id=0, stream_id=3, task_id=0, errorCode=2a.[FUNC:PrintAicpuErrorInfo][FILE:davinci_kernel_task.cc][LINE:1120]
AICPU Kernel task happen error, retCode=0x2a.[FUNC:GetError][FILE:stream.cc][LINE:1124]
Aicpu kernel execute failed, device_id=0, stream_id=3, task_id=0, flip_num=0, kernel_type=1fault so_name=, fault kernel_name=, fault op_name=, extend_info=.[FUNC:GetError][FILE:stream.cc][LINE:1124]
其中:import torch
import torch_npu未报错