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

Error with Cublas_v2 on build #26

Open
skyler14 opened this issue Sep 20, 2020 · 3 comments
Open

Error with Cublas_v2 on build #26

skyler14 opened this issue Sep 20, 2020 · 3 comments

Comments

@skyler14
Copy link

skyler14 commented Sep 20, 2020

I've been trying to build the caffe library as mentioned during the steps in the readme but I keep getting errors in relation to a part of blas called cublas_v2 not being able to be imported when I use the make file in the script. How should I proceed, here is the full output:

CXX src/caffe/blob.cpp
CXX src/caffe/common.cpp
CXX src/caffe/data_reader.cpp
CXX src/caffe/data_transformer.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:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
          ^~~~~~~~~~~~~
compilation terminated.
In file included from ./include/caffe/common.hpp:19:0,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/data_transformer.hpp:6,
                 from src/caffe/data_transformer.cpp:8:
./include/caffe/util/device_alternate.hpp:34:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/blob.o' failed
make: *** [.build_release/src/caffe/blob.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:575: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
In file included from ./include/caffe/common.hpp:19:0,
                 from src/caffe/data_reader.cpp:6:
./include/caffe/util/device_alternate.hpp:34:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/data_reader.o' failed
make: *** [.build_release/src/caffe/data_reader.o] Error 1
In file included from ./include/caffe/common.hpp:19:0,
                 from src/caffe/common.cpp:7:
./include/caffe/util/device_alternate.hpp:34:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/common.o' failed
make: *** [.build_release/src/caffe/common.o] Error 1

@kezewang
Copy link
Collaborator

Dear skyler14,

According to BVLC/caffe#2704, you may need to do a clean build or build using make Q= to debug.

Thanks
Keze

@skyler14
Copy link
Author

I've tried using make clean and remaking, and I dont quite understand how make Q= does anything different or if I used it properly, output seemed the same when i did make Q= all -j 4 . Should I be able to run the make command without modifying Makefile.config at all or what specific changes are required between every system?

@kezewang
Copy link
Collaborator

Dear skyler14,

I am afraid that your Cuda environment has some issues. Please check that before re-modify the Makefile.config.

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