76 Star 585 Fork 1.1K

Ascend/pytorch

RuntimeError: Initialize:/devcloud/slavespace/slave1-new/workspace/j_Z72vQzbI/pytorch/torch_npu/csrc/core/npu/sys_ctrl/npu_sys_ctrl.cpp:208 NPU error, error code is 4294967295.

DONE
Bug-Report
创建于  
2023-10-23 23:52

一、问题现象(附报错日志上下文):
import torch
import torch_npu
正常

x = torch.randn(2, 2).npu()
报错。

日志:
Traceback (most recent call last):
File "test.py", line 24, in
x = torch.randn(2, 2).npu()
File "/root/miniconda3/envs/yzh/lib/python3.8/site-packages/torch_npu/utils/device_guard.py", line 45, in wrapper
return func(*args, **kwargs)
File "/root/miniconda3/envs/yzh/lib/python3.8/site-packages/torch_npu/utils/tensor_methods.py", line 74, in _npu
return torch_npu._C.npu(self, *args, **kwargs)
RuntimeError: Initialize:/devcloud/slavespace/slave1-new/workspace/j_Z72vQzbI/pytorch/torch_npu/csrc/core/npu/sys_ctrl/npu_sys_ctrl.cpp:208 NPU error, error code is 4294967295.
EC0010: Failed to import Python module [ModuleNotFoundError: No module named 'decorator'.].
Solution: Check that all required components are properly installed and the specified Python path matches the Python installation directory. (If the path does not match the directory, run set_env.sh in the installation package.)
TraceBack (most recent call last):
[GraphOpt][InitializeInner][InitTbeFunc] Failed to init tbe.[FUNC:InitializeInner][FILE:tbe_op_store_adapter.cc][LINE:1641]
[SubGraphOpt][PreCompileOp][InitAdapter] InitializeAdapter adapter [tbe_op_adapter] failed! Ret [4294967295][FUNC:InitializeAdapter][FILE:op_store_adapter_manager.cc][LINE:86]
[SubGraphOpt][PreCompileOp][Init] Initialize op store adapter failed, OpsStoreName[tbe-custom].[FUNC:Initialize][FILE:op_store_adapter_manager.cc][LINE:133]
[FusionMngr][Init] Op store adapter manager init failed.[FUNC:Initialize][FILE:fusion_manager.cc][LINE:109]
PluginManager InvokeAll failed.[FUNC:Initialize][FILE:ops_kernel_manager.cc][LINE:104]
OpsManager initialize failed.[FUNC:InnerInitialize][FILE:gelib.cc][LINE:236]
GELib::InnerInitialize failed.[FUNC:Initialize][FILE:gelib.cc][LINE:164]

二、软件版本:
-- CANN 版本 (e.g., CANN 3.0.x,5.x.x): CANN 6.3.RC2
--Tensorflow/Pytorch/MindSpore 版本: torch 1.11.0
--Python 版本 (e.g., Python 3.7.5): Python 3.8.18
--操作系统版本 (e.g., Ubuntu 18.04): Ubuntu 18.04
--torch-npu 版本 : 1.11.0.post2

三、测试步骤:
import torch
import torch_npu

x = torch.randn(2, 2).npu()
报错

四、日志信息:
Traceback (most recent call last):
File "test.py", line 24, in
x = torch.randn(2, 2).npu()
File "/root/miniconda3/envs/yzh/lib/python3.8/site-packages/torch_npu/utils/device_guard.py", line 45, in wrapper
return func(*args, **kwargs)
File "/root/miniconda3/envs/yzh/lib/python3.8/site-packages/torch_npu/utils/tensor_methods.py", line 74, in _npu
return torch_npu._C.npu(self, *args, **kwargs)
RuntimeError: Initialize:/devcloud/slavespace/slave1-new/workspace/j_Z72vQzbI/pytorch/torch_npu/csrc/core/npu/sys_ctrl/npu_sys_ctrl.cpp:208 NPU error, error code is 4294967295.
EC0010: Failed to import Python module [ModuleNotFoundError: No module named 'decorator'.].
Solution: Check that all required components are properly installed and the specified Python path matches the Python installation directory. (If the path does not match the directory, run set_env.sh in the installation package.)
TraceBack (most recent call last):
[GraphOpt][InitializeInner][InitTbeFunc] Failed to init tbe.[FUNC:InitializeInner][FILE:tbe_op_store_adapter.cc][LINE:1641]
[SubGraphOpt][PreCompileOp][InitAdapter] InitializeAdapter adapter [tbe_op_adapter] failed! Ret [4294967295][FUNC:InitializeAdapter][FILE:op_store_adapter_manager.cc][LINE:86]
[SubGraphOpt][PreCompileOp][Init] Initialize op store adapter failed, OpsStoreName[tbe-custom].[FUNC:Initialize][FILE:op_store_adapter_manager.cc][LINE:133]
[FusionMngr][Init] Op store adapter manager init failed.[FUNC:Initialize][FILE:fusion_manager.cc][LINE:109]
PluginManager InvokeAll failed.[FUNC:Initialize][FILE:ops_kernel_manager.cc][LINE:104]
OpsManager initialize failed.[FUNC:InnerInitialize][FILE:gelib.cc][LINE:236]
GELib::InnerInitialize failed.[FUNC:Initialize][FILE:gelib.cc][LINE:164]

评论 (1)

闫梓涵 创建了Bug-Report 2年前
闫梓涵 修改了描述 2年前
闫梓涵 修改了描述 2年前
闫梓涵 修改了描述 2年前
展开全部操作日志

输入图片说明
尝试安装这个依赖

Destiny 任务状态TODO 修改为ACCEPTED 2年前
Destiny 任务状态ACCEPTED 修改为Analysing 2年前
huangyunlong 任务状态Analysing 修改为DONE 9个月前

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
Destiny-wx1103340 闫梓涵-yzh_sugar
Python
1
https://gitee.com/ascend/pytorch.git
git@gitee.com:ascend/pytorch.git
ascend
pytorch
pytorch

搜索帮助