-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
CPU-only Mode: cannot make GPU call (don't try the GPU in CPU-only mode) #1799
Comments
when the CPU_ONLY option is 1 in Makefile.config, modify the gpu option to cpu in the prototxt file as below $ vi examples/mnist/lenet_solver.prototxt
<<<<<<<<<<<<<<<<<<<< before
24 # solver mode: CPU or GPU
25 solver_mode: GPU
-------------------------------------------
24 # solver mode: CPU or GPU
25 solver_mode: CPU
>>>>>>>>>>>>>>>>>>>>> after |
@stray-leone exactly right, and thanks for following up with your own answer. However please ask usage questions on the caffe-users mailing list next time. |
p.s. 1f7c3de tries to make the error message for attempting GPU computation in CPU-only mode a little more clear. |
I have the same error with you and I solved it by modifying prototxt file .But duing training the new error occurs : what's the matter ? |
hello, i follow your suggestion,and modify the GPU to the CPU in the lenet_solver.prototxt file: solver mode: CPU or GPUsolver_mode: CPU I1020 16:10:16.989020 22222 layer_factory.hpp:76] Creating layer mnist |
I check again,and find that i can't creat lmdb file. Look here:#3223 |
I have solved "can't creat lmdb " . I1022 11:18:55.776268 18873 layer_factory.hpp:76] Creating layer mnist then I enter these; (caffe_root) I found a strange thing: the result shows CUP_ONLY is OFF, but I'm sure i has set CPU_ONLY=1. |
@fanser You need to modify This is partly a usage issue but perhaps also partly a documentation issue. I think we should add the PR message in #1667 to docs, and mention the However please ask these questions on the caffe-users mailing list next time. |
@ronghanghu thank you! It succeed. then type the following to create lmdb data ./examples/mnist/create_mnist.sh However I get error and can't create. If I change the way, type: |
I solved the problem by setting
|
in Makefile.config, uncomment these lines:
if you have compiled, use commands:
to recompile all |
@AlexTS1980 |
so what's the solution? Although I use CPU solver, I get the same error, too. |
But, I recomment CPU_ONLY option and make clean, make pycaffe, make all.
So I think that my GPU try doesn't generate this error.
The text was updated successfully, but these errors were encountered: