Skip to content
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 version can not run without GPU #7416

Closed
helinwang opened this issue Jan 10, 2018 · 1 comment
Closed

GPU version can not run without GPU #7416

helinwang opened this issue Jan 10, 2018 · 1 comment

Comments

@helinwang
Copy link
Contributor

When I am trying to run the GPU verison PaddlePaddle on a machine that GPU can not be used, it shows me error:

Traceback (most recent call last):
  File "notest_recognize_digits_conv_dist.py", line 4, in <module>
    import paddle.v2.fluid as fluid
  File "/home/helin/.local/lib/python2.7/site-packages/paddle/v2/fluid/__init__.py", line 51, in <module>
    __read_gflags_from_env__()
  File "/home/helin/.local/lib/python2.7/site-packages/paddle/v2/fluid/__init__.py", line 46, in __read_gflags_from_env__
    core.init_devices(["CPU", "GPU:0"])
paddle.v2.fluid.core.EnforceNotMet: cudaGetDeviceCount failed in paddle::platform::GetCUDADeviceCount: no CUDA-capable device is detected at [/home/helin/repo/Paddle/paddle/platform/gpu_info.cc:32]

Please note that I am using CPUPlace() only for the executor, it should just run on CPU as written in code, rather than crashing.

@chengduoZH
Copy link
Contributor

this issue has been solved by #7528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants