mathmanu / caffe-jacinto-models

This repository has moved. The new link can be obtained from https://github.com/TexasInstruments/jacinto-ai-devkit
63 stars 47 forks source link

how to build it using CPU_ONLY?? #5

Open heweiSing opened 6 years ago

heweiSing commented 6 years ago

Dear, I try to build with:

USE_CUDNN := 0 CPU_ONLY := 1

But always get error:

CXX src/caffe/blob.cpp In file included from ./include/caffe/common.hpp:48:0, from ./include/caffe/blob.hpp:11, from src/caffe/blob.cpp:6: ./include/caffe/util/device_alternate.hpp:3:23: fatal error: cublas_v2.h: No such file or directory

include

                   ^

compilation terminated. make: *** [.build_release/src/caffe/blob.o] Error 1

How to build it without GPU?

Thanks and best regards He Wei

mathmanu commented 6 years ago

Can you try the base code https://github.com/NVIDIA/caffe with the same flags and let me know if it works?

heweiSing commented 6 years ago

Dear mathmanu

Yes. I can build successfully for both caffe master branch and ssd branch for CPU_ONLY with the above setting. But failed on caffe-jacinto.

Thanks and best regards

mathmanu commented 6 years ago

Hi, please note the url that I mentioned. https://github.com/NVIDIA/caffe

Clone this repository, then git checkout caffe-0.17

Then try to build using the flags that you mentioned.

heweiSing commented 6 years ago

Dear Mahtmanu, It failed for CPU only mode:

In file included from ./include/caffe/common.hpp:48:0, from src/caffe/common.cpp:7: ./include/caffe/util/device_alternate.hpp:4:23: fatal error: cublas_v2.h: No such file or directory

include

                   ^

Thanks and best regards

mathmanu commented 6 years ago

Okay. Can you then file an issue in that repository? https://github.com/NVIDIA/caffe Let us know if you find a solution for this issue.

heweiSing commented 6 years ago

Done and tks.

mathmanu commented 5 years ago

Please see: https://github.com/tidsp/caffe-jacinto/issues/30