<p dir="auto">I'm trying to use tensorflow for this project: <a href="https://github.com/ibab/tensorflow-wavenet">https://github.com/ibab/tensorflow-wavenet</a></p>
<p dir="auto">I've gotten to the point where when I import tensorflow, I get the messages that all the CUDA libraries are successfully opened locally.</p>
<p dir="auto">I can run the following python code from <a href="https://www.tensorflow.org/get_started/os_setup#run_tensorflow_from_the_command_line" rel="nofollow">https://www.tensorflow.org/get_started/os_setup#run_tensorflow_from_the_command_line</a> and it works fine.</p>
<blockquote>
<p dir="auto">import tensorflow as tf<br>
hello = tf.constant('Hello, TensorFlow!')<br>
sess = tf.Session()<br>
print(sess.run(hello))<br>
Hello, TensorFlow!<br>
a = tf.constant(10)<br>
b = tf.constant(32)<br>
print(sess.run(a + b))<br>
42</p>
</blockquote>
<p dir="auto">However when I run the wavenet project, I get the following error messages and then python crashes.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties:
name: GeForce GTX 950
major: 5 minor: 2 memoryClockRate (GHz) 1.19
pciBusID 0000:01:00.0
Total memory: 2.00GiB
Free memory: 1.65GiB
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:906] DMA: 0
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 0:   Y
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX 950, pci bus id: 0000:01:00.0)
WARNING:tensorflow:From train.py:249 in main.: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.
Trying to restore saved checkpoints from ./logdir\train\2017-01-02T16-17-15 ... No checkpoint found.
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_dnn.cc:385] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_dnn.cc:352] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\kernels\conv_ops.cc:532] Check failed: stream-&gt;parent()-GetConvolveAlgorithms(&amp;algorithms)"><pre class="notranslate"><code class="notranslate">c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties:
name: GeForce GTX 950
major: 5 minor: 2 memoryClockRate (GHz) 1.19
pciBusID 0000:01:00.0
Total memory: 2.00GiB
Free memory: 1.65GiB
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:906] DMA: 0
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 0:   Y
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX 950, pci bus id: 0000:01:00.0)
WARNING:tensorflow:From train.py:249 in main.: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.
Trying to restore saved checkpoints from ./logdir\train\2017-01-02T16-17-15 ... No checkpoint found.
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_dnn.cc:385] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\cuda\cuda_dnn.cc:352] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\kernels\conv_ops.cc:532] Check failed: stream-&gt;parent()-GetConvolveAlgorithms(&amp;algorithms)
</code></pre></div>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175517908" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4251" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4251/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4251">#4251</a></p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:<br>
Windows</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
cuDNN v5.1 (August 10, 2016), for CUDA 8.0</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>.<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library cublas64_80.dll locally<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library cudnn64_5.dll locally<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library cufft64_80.dll locally<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library nvcuda.dll locally<br>
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA library curand64_80.dll locally<br>
Traceback (most recent call last):<br>
File "", line 1, in <br>
NameError: name 'tensor' is not defined</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">What other attempted solutions have you tried?</h3>
<p dir="auto">I have tried reinstalling Cuda, different versions of cudnn. Looked at different issues with same error messages but nothing seemed to help.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(279): error: identifier &quot;h2log1p&quot; is undefined

1 error detected in the compilation of &quot;/tmp/tmpxft_00000170_00000000-9_depthtospace_op_gpu.cu.compute_61.cpp1.ii&quot;.
ERROR: /home/wenjian/pkgs/tensorflow/tensorflow/core/kernels/BUILD:1529:1: output 'tensorflow/core/kernels/_objs/depth_space_ops_gpu/tensorflow/core/kernels/depthtospace_op_gpu.cu.pic.o' was not created.
ERROR: /home/wenjian/pkgs/tensorflow/tensorflow/core/kernels/BUILD:1529:1: not all outputs were created.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 112.094s, Critical Path: 108.68s"><pre class="notranslate"><code class="notranslate">external/eigen_archive/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/CUDA/PacketMathHalf.h(279): error: identifier "h2log1p" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00000170_00000000-9_depthtospace_op_gpu.cu.compute_61.cpp1.ii".
ERROR: /home/wenjian/pkgs/tensorflow/tensorflow/core/kernels/BUILD:1529:1: output 'tensorflow/core/kernels/_objs/depth_space_ops_gpu/tensorflow/core/kernels/depthtospace_op_gpu.cu.pic.o' was not created.
ERROR: /home/wenjian/pkgs/tensorflow/tensorflow/core/kernels/BUILD:1529:1: not all outputs were created.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 112.094s, Critical Path: 108.68s
</code></pre></div>
<p dir="auto">so <code class="notranslate">error: identifier "h2log1p" is undefined</code> is the cause, there must be something new in the Eigen library</p>