-
Notifications
You must be signed in to change notification settings - Fork 30
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
no cuda/cuda_config.h #1
Comments
but there will be much errors then. |
Normally when you complie tensorflow from source, after running |
Thanks for your reply! Then I compiled it with the recommend method: TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())') but when I use the deform_conv.so, there is an error: gcc 5.4.0 |
The same compliing method works on my machine. It seems from this link gcc5 with -D_GLIBCXX_USE_CXX11_ABI=0 is related(I mean with this flag gcc can do this work). Maybe you could try the advice from link:
or simply switch to gcc4 to see if it'll work. |
Thanks, but I have used it and it can't help.
|
Right, just before you reply me I realized I didn't update demo and benchmark when last but one commit, now it should be normal. |
I use g++-4.8 to compile the source file but with the same error:
I install tensorflow via pip. I use |
@hubertlee915 Already fix it by add cuda_config.h in lib. Like what I do in another repo, can you confirm this was fixed? |
It works! Thank you! |
I encounter the same problem (undefined symbol error) as @GitHubShily said before. I've also reinstalled my g++-4.8 but it doesn't help. |
@hubertlee915 sorry I have no idea about how this happens. Except for install tensorflow and this op from source using bazel, or double check the filename of that *.so, I can give you no other advice. |
I had the same issue as @GitHubShily and @hubertlee915
It seems that the flag D_GLIBCXX_USE_CXX11_ABI=0 in g++_complie.sh is not enough. Probably there is a similar flag you need to add to nvcc_compile.sh? I haven't tried further. Thanks for the code anyways! |
It works! Thank you! @cotrane |
@cotrane Thank you for those tips! In this case I will suggest all people who intend to try this repo to use gcc-4.9. |
gcc-4.8 works as well. Adding -ccbin flag to nvcc is the key issue. |
Just as @cotrane said, it still needs to add the flag
This should work fine for gcc5. |
Please tell me where is nvcc_compile.sh and g++_complie.sh, I can't find them. |
@hubertlee915 @cotrane @Zardinality @skyoung |
It is right in |
Hello all, I am using g++ 4.9 and cuda 8.0, cudnn 6.0. I installed tensorflow from
I did as above suggestion by copy
Does it need to reinstall cudnn 5.0? |
@John1231983 I found similiar issue where your last error was fixed by using TF 1.2.1. |
Hi. Thanks for your reply. What tf version did you use? |
@John1231983 1.2.0 , but I have it source installed. |
Hi @Zardinality: Your method worked fine in personal computer by copy
However, for the server, I cannot copy it to the folder because of permission issue. Do you have another way such as link the lib to another folder that does not require permission |
@John1231983 You might be using tensorflow owned by root. Why not install it in your own home directory? |
when compiled with g++:
/python3.4/site-packages/tensorflow/include/tensorflow/stream_executor/dso_loader.h:32:30: fatal error: cuda/cuda_config.h: No such file or directory compilation terminated.
solved by copy a cuda_config.h file from https://insight.io/github.com/tensorflow/tensorflow/blob/master/third_party/toolchains/gpus/cuda/cuda/cuda_config.h?line
The text was updated successfully, but these errors were encountered: