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

Can't run CPU-only mode #4638

Open
coelho-oliva opened this issue Aug 26, 2016 · 2 comments
Open

Can't run CPU-only mode #4638

coelho-oliva opened this issue Aug 26, 2016 · 2 comments

Comments

@coelho-oliva
Copy link

coelho-oliva commented Aug 26, 2016

I'm trying to compile this code I took from http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb . Even when running with IPython, I had to change some syntax such as % and ! functions. I guess they're running fine, since I'm not getting Syntax Error anymore.
I've looked this down including on Github. But the issue #2241 hasn't solved my problem. I'm not sure what's going on. Here's what I'm receiving:
"""
(...)
I0826 13:26:26.135545 13285 upgrade_proto.cpp:52] Attempting to upgrade input file specified using deprecated V1LayerParameter: ../models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel
I0826 13:26:26.404727 13285 upgrade_proto.cpp:60] Successfully upgraded file specified using deprecated V1LayerParameter
I0826 13:26:26.495964 13285 net.cpp:761] Ignoring source layer loss
mean-subtracted values: [('B', 104.0069879317889), ('G', 116.66876761696767), ('R', 122.6789143406786)]
predicted class is: 281
output label: n02123045 tabby, tabby cat
probabilities and labels:
1 loop, best of 3: 2.45 s per loop
LINE 66 RUNNING
F0826 13:26:38.967905 13285 common.cpp:67] Cannot use GPU in CPU-only Caffe: check mode.
*** Check failure stack trace: ***
Aborted
"""
The print "LINE 66 (...)" was made by myself on "common.cpp" just for knowing exactly what was going on on that code.
I've tried the same as they answered on issue #2241 , but didn't solve at all.

Info:

  1. I'm using caffe-master/models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel trained model.
  2. Python version: Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40)
  3. IPython version: IPython 4.2.0 -- An enhanced Interactive Python.

Hopefully, I was clear enough. Anything left unexplained, please let me know ASAP.

@coelho-oliva
Copy link
Author

People, I still did not solve this. I really need help getting this done; would someone, please, save my days?

@sabirdvd
Copy link

sabirdvd commented Oct 1, 2016

I'm still trying to solve this, but still getting this message, any help please ? I Couldn't by pass the GPU mode even tho in the code CPU = 1 Thanks

CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/blob.cpp
In file included from ./include/caffe/common.hpp:19:0,
from ./include/caffe/blob.hpp:8,
from src/caffe/blob.cpp:4:
./include/caffe/util/device_alternate.hpp:34:23: error : cublas_v2.h: No existe

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