Skip to content

You are using GPU version PaddlePaddle, but there is no GPU detected on your machine. Maybe CUDA devices is not set properly #6707

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

Closed
lichuantao6626 opened this issue Aug 14, 2023 · 1 comment
Assignees
Labels
question Further information is requested triage

Comments

@lichuantao6626
Copy link

请提出你的问题

环境使用的:registry.baidubce.com/paddlepaddle/paddle:2.5.1-gpu-cuda12.0-cudnn8.9-trt8.6
问题描述:

import paddle
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
/usr/local/lib/python3.10/dist-packages/paddle/fluid/framework.py:549: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
warnings.warn(

cuda:
image

nvcc -V 查看的信息:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Jan__6_16:45:21_PST_2023
Cuda compilation tools, release 12.0, V12.0.140
Build cuda_12.0.r12.0/compiler.32267302_0

安装的驱动:
nvidia-container-toolkit安装的是nvidia-container-toolkit-1.13.5-1.x86_64

docker run --help | grep -i gpus
--gpus gpu-request GPU devices to add to the container ('all' to pass all GPUs)
这里显示,好像GPU驱动应该已经添加到了容器里了

尝试了好几天没解决!!!

@lichuantao6626 lichuantao6626 added the question Further information is requested label Aug 14, 2023
@w5688414
Copy link
Contributor

w5688414 commented May 8, 2024

可以看看以下版本的docker适不适合您:

Server Version: 17.06.2-ce

另外,宿主机可以正常使用gpu吗?

@paddle-bot paddle-bot bot closed this as completed May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage
Projects
None yet
Development

No branches or pull requests

3 participants