PaddlePaddle / PaddlePaddle/Paddle
NotImplementedError: (Unimplemented) Place CUDAPlace(0) is not supported. Please check that your paddle compiles with WITH_GPU, WITH_XPU or WITH_ASCEND_CL option or check that your train process set the correct device id if you use Executor. (at /paddle/paddle/fluid/platform/device_context.cc:101)
@Baibaifan is already working on this.
Since Mar 24, 2022.
- Dominant language
- C++
- Stars
- 24.1k
- Forks
- 6k
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 60
Description
为使您的问题得到快速解决,在建立Issues前,请您先通过如下方式搜索是否有相似问题:【搜索issue关键字】【使用labels筛选】【官方文档】
如果您没有查询到相似问题,为快速解决您的提问,建立issue时请提供如下细节信息:
- 标题:简洁、精准概括您的问题,例如“Insufficient Memory xxx" ”
- 版本、环境信息:
1)PaddlePaddle版本:请提供您的PaddlePaddle版本号,例如1.1或CommitID
paddlenlp 2.2.5
paddleocr 2.4.0.3 /root/anaconda3/envs/knowledgegraphcommon-py3.8/lib/python3.8/site-packages
paddlepaddle-gpu 2.2.2
2)CPU:预测若用CPU,请提供CPU型号,MKL/OpenBlas/MKLDNN/等数学库使用情况
48 Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz
3)GPU:预测若用GPU,请提供GPU型号、CUDA和CUDNN版本号

summary_env.py:49: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
plat = distro.linux_distribution()[0]
summary_env.py:50: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
ver = distro.linux_distribution()[1]
Paddle version: 2.2.2
Paddle With CUDA: True
OS: Ubuntu 18.04
Python version: 3.8.12
CUDA version: None
cuDNN version: None.None.None
Nvidia driver version: 470.86

4)系统环境:请您描述系统类型、版本,例如Mac OS 10.14,Python版本
Linux knowledgegraphcommon0305-0 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
注:您可以通过执行summary_env.py获取以上信息。
-
训练信息
1)单机,多卡
2)显存信息
3)Operator信息 -
复现信息:如为报错,请给出复现环境、复现步骤
执行paddleocr\ppstructure\table\predict_structure.py 预测表格

-
问题描述:请详细描述您的问题,同步贴出报错信息、日志、可复现的代码片段
workerlog.0:
C++ Traceback (most recent call last):
No stack trace in paddle, may be caused by external reasons.
Error Message Summary:
FatalError: Segmentation fault is detected by the operating system.
[TimeInfo: *** Aborted at 1648110033 (unix time) try "date -d @1648110033" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 17012 (TID 0x7fd3fd2dc240) from PID 0 ***]
workerlog.1:
Traceback (most recent call last):
File "/home/jovyan/work/knowledgegraphcommon/business/table_structure_recognition/tsr_tlr_tablemaster_tgr_paddlleocr_tgl_paddlleocr.py", line 942, in
tsr_tlr_tablemaster_tgr_paddlleocr_tgl_paddlleocr()
File "/home/jovyan/work/knowledgegraphcommon/business/table_structure_recognition/tsr_tlr_tablemaster_tgr_paddlleocr_tgl_paddlleocr.py", line 934, in tsr_tlr_tablemaster_tgr_paddlleocr_tgl_paddlleocr
tsr_tlr_tablemaster_tgr_paddlleocr_tgl_paddlleocr.predict()
File "/home/jovyan/work/knowledgegraphcommon/business/table_structure_recognition/tsr_tlr_tablemaster_tgr_paddlleocr_tgl_paddlleocr.py", line 430, in predict
return_table_structurer, elapse = table_structurer(input_im_img)
File "/root/anaconda3/envs/knowledgegraphcommon-py3.8/lib/python3.8/site-packages/paddleocr/ppstructure/table/predict_structure.py", line 81, in call
self.input_tensor.copy_from_cpu(img)
File "/root/anaconda3/envs/knowledgegraphcommon-py3.8/lib/python3.8/site-packages/paddle/fluid/inference/wrapper.py", line 35, in tensor_copy_from_cpu
self.copy_from_cpu_bind(data)
NotImplementedError: (Unimplemented) Place CUDAPlace(0) is not supported. Please check that your paddle compiles with WITH_GPU, WITH_XPU or WITH_ASCEND_CL option or check that your train process set the correct device id if you use Executor. (at /paddle/paddle/fluid/platform/device_context.cc:101)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.