title: Tensorflow: device CUDA:0 not supported by XLA service while setting up XLA_GPU_JIT device number 0
body: <p>I got this when using keras with Tensorflow backend:</p>
  
  <blockquote>
    <p>tensorflow.python.framework.errors_impl.InvalidArgumentError: device CUDA:0 not supported by XLA service
        while setting up XLA_GPU_JIT device number 0</p>
  </blockquote>
  
  <p>Relevant code:</p>
  
  <pre><code>tfconfig = tf.ConfigProto()
  tfconfig.graph_options.optimizer_options.global_jit_level = tf.OptimizerOptions.ON_1
  tfconfig.gpu_options.allow_growth = True
  K.tensorflow_backend.set_session(tf.Session(config=tfconfig))
  </code></pre>
  
  <p>tensorflow version: 1.14.0</p>