caffe-jacinto-models icon indicating copy to clipboard operation
caffe-jacinto-models copied to clipboard

how to build it using CPU_ONLY??

Open heweiSing opened this issue 6 years ago • 7 comments

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 <cublas_v2.h> ^ compilation terminated. make: *** [.build_release/src/caffe/blob.o] Error 1

How to build it without GPU?

Thanks and best regards He Wei

heweiSing avatar Sep 06 '18 02:09 heweiSing

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

mathmanu avatar Sep 07 '18 08:09 mathmanu

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

heweiSing avatar Sep 07 '18 08:09 heweiSing

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.

mathmanu avatar Sep 07 '18 08:09 mathmanu

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 <cublas_v2.h> ^

Thanks and best regards

heweiSing avatar Sep 07 '18 08:09 heweiSing

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.

mathmanu avatar Sep 07 '18 08:09 mathmanu

Done and tks.

heweiSing avatar Sep 07 '18 08:09 heweiSing

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

mathmanu avatar Jan 24 '19 07:01 mathmanu