-
OS:Ubuntu 20.04 在『2021语言与智能技术竞赛』- 事件抽取任务基线系统 的基线NoteBook中,下载代码到自己机器上运行,运行起来特别慢,而且执行代码时报错:parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device. 有没有大神解释一下什么原因
line13 为最后一行,完整报错: |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
具体的原因没有看出来,麻烦能不能提供一下您的具体的GPU设备的信息,我们来参考设备信息来判断一下 |
Beta Was this translation helpful? Give feedback.
-
GPU 为NVIDIA GeForce RTX 3090,24G显存
|
Beta Was this translation helpful? Give feedback.
-
看起来是CUDA11驱动导致的,这里有个类似的问题 #262 ,也可以先用conda尝试安装一下相应的paddle版本 |
Beta Was this translation helpful? Give feedback.
-
好的,我试试直接安装cuda10.2对应的paddle |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
conda install paddlepaddle-gpu==2.0.2 cudatoolkit=11.0 |
Beta Was this translation helpful? Give feedback.
-
改为 |
Beta Was this translation helpful? Give feedback.
-
重新尝试了以下两种配置,终于可以用了!个人猜测问题核心在于安装
方案二:
|
Beta Was this translation helpful? Give feedback.
-
清华源 需要在配置文件中添加Paddle通道,而且必须是大写的P(官方通道是小写的p). |
Beta Was this translation helpful? Give feedback.
-
感谢您在该问题上输出的宝贵经验,同时我们会考虑在文档上增加FAQ机制,减少后续的使用难度。 |
Beta Was this translation helpful? Give feedback.
重新尝试了以下两种配置,终于可以用了!个人猜测问题核心在于安装
paddlepaddle-gpu==2.0.2.post110
,版本号post110不能少,之前用的清华源,找不到该版本,于是就改为paddlepaddle-gpu==2.0.2
,结果运行不起来。现有配置可能存在多显卡并行不支持的问题(使用 python 或 python3 进入python解释器,输入import paddle ,再输入 paddle.utils.run_check() ,如果出现PaddlePaddle is installed successfully!,说明您已成功安装。)
,但单块卡总算是能跑通了,感谢各位的耐心支持!以下方案二选一即可,其他安装请参考
https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/conda/linux-conda.html
方案一:
方案二:
将以下代码保存为
e…