title: TensorFlow : failed call to cuInit: CUDA_ERROR_NO_DEVICE
body: <p><strong>My test :</strong></p>
  
  <pre><code>import tensorflow as tf
  hello = tf.constant('Hello, TensorFlow!')
  sess = tf.Session()`
  </code></pre>
  
  <p><strong>Error :</strong></p>
  
  <p>c:\l\work\tensorflow-1.1.0\tensorflow\stream_executor\cuda\cuda_driver.cc:405]</p>
  
  <p>failed call to cuInit: CUDA_ERROR_NO_DEVICE</p>
  
  <p>-> but "/cpu:0" works fine</p>
  
  <p><strong>Config :</strong></p>
  
  <p>nvidia-smi : 
  <a href="https://i.stack.imgur.com/lckQU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lckQU.png" alt="enter image description here"></a></p>
  
  <ul>
  <li>CUDA Version 9.1</li>
  <li>tensorflow-1.1.0</li>
  <li>Windows 10</li>
  <li>cudnn64_7.dll (installed in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin)</li>
  <li>Only tensorflow-gpu is installed in my Conda environment</li>
  </ul>
  
  <p>Why can't Tensorflow detect my GPU ?</p>