PaddlePaddle/PaddleCustomDevice

编译验证:ValueError: (InvalidArgument) The kernel arange_tensor is not ready for custom kernel registering. (at /paddle/paddle/phi/core/custom_kernel.cc:53)

shirwy opened this issue · 0 comments

shirwy commented

安装这个指导https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/npu/README_cn.md编译了安装包,在验证时报错。
(py39) λ bms-98e4 /workspace/PaddleCustomDevice/backends/npu {develop} python -c "import paddle; print(paddle.device.get_all_custom_device_type())"
I1009 17:56:38.029748 5132 init.cc:232] ENV [CUSTOM_DEVICE_ROOT]=/opt/py39/lib/python3.9/site-packages/paddle_custom_device
I1009 17:56:38.029801 5132 init.cc:141] Try loading custom device libs from: [/opt/py39/lib/python3.9/site-packages/paddle_custom_device]
I1009 17:56:42.466187 5132 custom_device.cc:1042] Successed in loading custom runtime in lib: /opt/py39/lib/python3.9/site-packages/paddle_custom_device/libpaddle-custom-npu.so
Traceback (most recent call last):
File "", line 1, in
File "/opt/py39/lib/python3.9/site-packages/paddle/init.py", line 31, in
from .framework import monkey_patch_variable
File "/opt/py39/lib/python3.9/site-packages/paddle/framework/init.py", line 17, in
from . import random # noqa: F401
File "/opt/py39/lib/python3.9/site-packages/paddle/framework/random.py", line 17, in
from paddle import fluid
File "/opt/py39/lib/python3.9/site-packages/paddle/fluid/init.py", line 211, in
bootstrap()
File "/opt/py39/lib/python3.9/site-packages/paddle/fluid/init.py", line 203, in bootstrap
core.init_devices()
ValueError: (InvalidArgument) The kernel arange_tensor is not ready for custom kernel registering. (at /paddle/paddle/phi/core/custom_kernel.cc:53)