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

cannot solve: Cannot use GPU in CPU-only Caffe: check mode #65

Closed
sunle2009 opened this issue Aug 29, 2016 · 5 comments
Closed

cannot solve: Cannot use GPU in CPU-only Caffe: check mode #65

sunle2009 opened this issue Aug 29, 2016 · 5 comments

Comments

@sunle2009
Copy link

Hi,

When I run: python crfasrnn_demo.py
The problem is as:


Input file is " input.jpg
Output file is " output.png
GPU_DEVICE is " 0
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0829 22:22:03.615937 22095 common.cpp:66] Cannot use GPU in CPU-only Caffe: check mode.
*** Check failure stack trace: ***
Aborted (core dumped)


I have uncommented the CPU_ONLY = 1 in the 'Makefile.config'
Changed CMakeLists.txt: caffe_option(CPU_ONLY "Build Caffe without CUDA support" ON)
changed solver_mode: CPU in .prototxt files


However, the problem is still there.
Would anyone like to help please?
Thanks very much

@bittnt
Copy link
Collaborator

bittnt commented Aug 29, 2016

which version did you try? did you try the latest python code?

@sunle2009
Copy link
Author

Hi Shuai,

Thanks for your reply.
In this demo script:
https://github.com/torrvision/crfasrnn/blob/master/python-scripts/crfasrnn_demo.py
why gpudevice >=0 ?

if gpudevice >=0:
#Do you have GPU device?
has_gpu = 1
#which gpu device is available?
gpu_device=gpudevice

On 29 August 2016 at 23:31, Shuai Zheng notifications@github.com wrote:

which version did you try? did you try the latest python code?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUUq1cqCihA6y0jwjMb1uS_xggbcXSxyks5qkt8wgaJpZM4Jvbe9
.

@bittnt
Copy link
Collaborator

bittnt commented Aug 30, 2016

gpudevice=-1 means you do not have gpu device. If you have at least one GPU, you should be able to use gpudevice=0.

@sunle2009
Copy link
Author

Hi
where is the examples/segmentationcrfasrnn please?
Cannot find it.
Thank you.

@sunle2009
Copy link
Author

found it. Thank you.

@bittnt bittnt closed this as completed Sep 1, 2016
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