Skip to content

NvidiaH20, Paddlepaddle无法检测到gpu #75821

@yvmilir

Description

@yvmilir

bug描述 Describe the Bug

使用的镜像版本是ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:3.0.0-gpu-cuda12.6-cudnn9.5-trt10.5,

Image 之前在另一个镜像中,使用torch可以检测到8张卡,但paddle不行,所以切换为了官方镜像,但还是报错。 之前的容器截图: Image

卡是H20

其他补充信息 Additional Supplementary Information

λ h20next-ffr375m4-0000 /home python -c "
> import os
> os.environ['CUDA_VISIBLE_DEVICES'] = '0'  # 必须提前设置!
> 
> import paddle
> 
> print('Paddle version:', paddle.__version__)
> print('Compiled with CUDA:', paddle.is_compiled_with_cuda())
> 
> try:
>     paddle.device.set_device('gpu:0')
>     print('✅ GPU device set successfully!')
> except Exception as e:
>     print('❌ Error when setting GPU:')
>     print(e)
> "
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script


/usr/local/lib/python3.10/dist-packages/paddle/base/framework.py:805: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
  warnings.warn(
Paddle version: 3.0.0
Compiled with CUDA: True
E1013 11:42:53.398718  1366 place.cc:321] Cannot use GPU because there is no GPU detected on your machine.

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions