-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用gpu训练报错cudaSuccess == cudaStat (0 vs. 38) Cuda Error: no CUDA-capable device is detected #7804
Comments
请问nvidia-smi的运行结果是什么? |
|
应该是驱动没有安装成功。nvidia-smi只是检测GPU是否正常,跟cuda应该没有关系的(但是反过来,cuda正常运行需要驱动正常运行)。 |
@helinwang 折腾了半天,环境已经初始化好了, 现在 报另外一个错, nvidia-smi +-----------------------------------------------------------------------------+ |
@typhoonzero 那两个 我都看了 , 一个是 最后 用了cuda8, 但是 paddle文档上写的是7.5 , 直接pip下来的版本 支持 8吗? 另外一个GPU架构的bug 都不太一样。 |
@Yancey1989 @typhoonzero @helinwang , 为了解决问题, 我安装了最新的 paddle 0.11, cuda8 和cudnn5 但又出现了 新的报错 |
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL) include "driver_types.h" |
升级 cudnn到7 ,问题解决 |
你好,cudnn升级到7,会和cuda8冲突吗?我看官网上cudnn7是对于cuda10的。 |
安装的 pip install paddlepaddle-gpu
cuda-7.5 cudnn5
运行官网例子时用cpu可以成功,切换成gpu会报错
I0124 08:39:10.899049 1337 Util.cpp:166] commandline: --use_gpu=True modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.13.0-31-generic F0124 08:39:10.926606 1337 hl_cuda_device.cc:453] Check failed: cudaSuccess == cudaStat (0 vs. 38) Cuda Error: no CUDA-capable device is detected
检查了下 cuda确实应该是安装成功了
运行的是官网的例子
The text was updated successfully, but these errors were encountered: