<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests.  All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Linux RHL 7.2</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>): cuda 7.5 + cudnn 5</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<p dir="auto">./configure (select to support GPU)<br>
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package  --verbose_failures</p>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<p dir="auto">Rebuild from scratch, still repro.</p>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p>
<p dir="auto">ERROR: /data/tools/tensorflow/core/kernels/BUILD:1509:1: undeclared inclusion(s) in rule '//tensorflow/core/kernels:batchtospace_op_gpu':<br>
this rule is missing dependency declarations for the following files included by 'tensorflow/core/kernels/batchtospace_op_gpu.cu.cc':<br>
'/usr/local/cuda-7.5/include/cuda_runtime.h'<br>
'/usr/local/cuda-7.5/include/host_config.h'<br>
'/usr/local/cuda-7.5/include/builtin_types.h'<br>
'/usr/local/cuda-7.5/include/device_types.h'<br>
'/usr/local/cuda-7.5/include/host_defines.h'<br>
'/usr/local/cuda-7.5/include/driver_types.h'<br>
'/usr/local/cuda-7.5/include/surface_types.h'<br>
'/usr/local/cuda-7.5/include/texture_types.h'<br>
'/usr/local/cuda-7.5/include/vector_types.h'<br>
'/usr/local/cuda-7.5/include/channel_descriptor.h'<br>
'/usr/local/cuda-7.5/include/cuda_runtime_api.h'<br>
'/usr/local/cuda-7.5/include/cuda_device_runtime_api.h'<br>
'/usr/local/cuda-7.5/include/driver_functions.h'<br>
'/usr/local/cuda-7.5/include/vector_functions.h'<br>
'/usr/local/cuda-7.5/include/vector_functions.hpp'<br>
'/usr/local/cuda-7.5/include/common_functions.h'<br>
'/usr/local/cuda-7.5/include/math_functions.h'<br>
'/usr/local/cuda-7.5/include/math_functions.hpp'<br>
'/usr/local/cuda-7.5/include/math_functions_dbl_ptx3.h'<br>
'/usr/local/cuda-7.5/include/math_functions_dbl_ptx3.hpp'<br>
'/usr/local/cuda-7.5/include/cuda_surface_types.h'<br>
'/usr/local/cuda-7.5/include/cuda_texture_types.h'<br>
...</p>
<p dir="auto">It looks like the GPU installation from source got refactored and is failing to compile on my Ubuntu 16.04, CUDA 8.0, cuDNN 5.0, with GTX 1080 GPU.</p>
<p dir="auto">I had the GTX 1080 working with the build from a few days ago, but just pulled from the head and now cannot compile so I am not sure if this is the auto_configure for the GPU or not I saw going though.</p>
<p dir="auto">$ git rev-parse HEAD<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/6d04d601e9e8758ec4642fa9d548b7321d804d63/hovercard" href="https://github.com/tensorflow/tensorflow/commit/6d04d601e9e8758ec4642fa9d548b7321d804d63"><tt>6d04d60</tt></a></p>
<p dir="auto">$ bazel version<br>
Build label: 0.3.1<br>
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br>
Build time: Fri Jul 29 09:09:52 2016 (1469783392)<br>
Build timestamp: 1469783392<br>
Build timestamp as int: 1469783392</p>
<p dir="auto">$ ./configure</p>
<p dir="auto">GPU configured</p>
<p dir="auto">INFO: All external dependencies fetch successfully.<br>
Configuration finished</p>
<p dir="auto">$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package  1&gt;~/initial_output.txt 2&gt;&amp;1<br>
<a href="https://github.com/tensorflow/tensorflow/files/432724/initial_output.txt">initial_output.txt</a></p>
<p dir="auto">GPU CUDA includes were not found so I added line to new file: CROSSTOOL.tpl @ line 66</p>
<p dir="auto">cxx_builtin_include_directory: "/usr/local/cuda-8.0/include"</p>
<p dir="auto">$ bazel build -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package  1&gt;~/second_output.txt 2&gt;&amp;1<br>
<a href="https://github.com/tensorflow/tensorflow/files/432726/second_output.txt">second_output.txt</a></p>
<p dir="auto">I think it is complaining about not finding "crosstool_wrapper_driver_is_not_gcc".</p>
<p dir="auto">I did a "locate" and my version seems to be at the following:<br>
$ locate crosstool_wrapper_driver_is_not_gcc<br>
/home/greg/serving/tensorflow/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc<br>
/home/greg/serving/tf_models/syntaxnet/tensorflow/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc<br>
/home/greg/tensorflow/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl</p>
<p dir="auto">Let me know where the file is that has the path to the crosstool_wrapper.... and I can update the path to test that as a fix unless you know the root cause...</p>
<p dir="auto">EDIT: BTW, the build works fine without the GPU configuration</p>