-
Notifications
You must be signed in to change notification settings - Fork 74.2k
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
Tensorflow GPU installation fails due to Bazel build #4944
Comments
The posting guidelines ask for information that could be very helpful such as: Similar Posts The type of graphic card as well wouldn't hurt. I may suggest a "$ bazel clean" and re-run the "./configure" as well. |
It seems this issue is a duplicate of http://stackoverflow.com/questions/40010981/tensorflow-with-gpu-support-installation-error-the-specified-crosstool-top-i. We recommend Stack Overflow for support questions. We try to keep this issue tracker focused on bugs and feature requests. Also thanks for helping out with support @wagonhelm. |
not solved yet |
Since we're getting multiple reports, I'm going to reopen this issue so it can be triaged again. |
I normally use Ubuntu 14.04 but I had no problems installing from sources using: Ubuntu 16.04 These are the steps I took, and I try to keep them up to date with each new version. I did notice a couple expected problems when trying to build and install using anaconda 3 if you just do conda install pip and use the pip packages from tf's website it works fine. I also notice a couple things that might cause issues with those Nvidia instructions. |
The pointed out nvidia documentation (http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html) says This commit is 4 months old! I assume this is why people need to downgrade their bazel version as well to get it work. Moreover, the documentation is using CUDA 8.0 with that commit. But 8.0 is supported as of r0.11-rc1. Guess, the nvidia documentation should be updated. |
this issue was giving me a lot of headache. After talking to a few experienced computer vision engineers, i was told that the 'docker' installation of tensor-flow is the easiest way to get things going i tried docker and it saved so much of my time. I run everything on that and do not have to worry about the compatibility issues. |
Glad the docker instructions worked for you @Sadrpour Updating the Nvidia website is not something the TensorFlow team can do :). |
I am facing the same issue. I updated the CROSSTOOL file and added Can someone guide me as to how to build GPU enabled TensorFlow? |
I met the similar problem. Any solution or advice? Thanks. |
And anyone knows how to uninstall bazel completely? I suppose it's the bazel problem and want to reinstall it. |
I think this issue is not related with bazel version.
@ian2720 You can remove bazel as the following. (refer link: bazelbuild/bazel#838) |
I've complete to build tensorflow. So, try the the following command The commit info is as the following: |
Folks. |
In my case, --config=cuda7.5 is working |
@dr2mer : tried it your way with both
The specs are Ubuntu 17.04 x64, bazel 0.4.2 CUDA 8.0 and cudnn 5.1. |
@StrangeTcy Commenting out |
@dr2mer worked for cuda8.0. THX! |
@dr2mer I followed your suggestion and the build managed to finish using --config=cuda7.5 . |
I am not sure that setting the flag to something other than --config=cuda gets the job actually done. I ended up solving my problem like this : #7118 |
I agree with @Ettrai. In my case --config=cuda8.0 or --config=cuda8 is working, but the code runs on the CPU only. |
I tried
So apparently it just ignore the cuda8.0 option as if it was not there and therefore is equivalent to |
i had install tensorflow,but it show error in importing tensorflow due to bazel...! any help that i can get? |
In my case '--config=cuda' not working but '--config=cuda8.0' works. I am using a previous version (v0.9) to run some previous codes while v1.2 is out. |
In my case, I use older bazel version and fix this issue |
I've been trying to install tensorflow with GPU support using these steps:
http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html
This is the error message that I'm getting when I try to run the bazel build command for building the tensorflow pip package (with the --config-cuda flag set):
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
i get :
The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite rule
What's strange is that if i remove the --config=cuda flag, I don't get the error message while building and I'm able to install tensorflow successfully - but without GPU support.
The text was updated successfully, but these errors were encountered: