title: Running python code on CUDA
body: <p>While trying to run this code <a href="https://wltrimbl.github.io/2014-06-10-spelman/intermediate/python/04-multiprocessing.html" rel="nofollow noreferrer">https://wltrimbl.github.io/2014-06-10-spelman/intermediate/python/04-multiprocessing.html</a> on my GPU system which has 300 cores, i used the comment with tf.device('/GPU:0') on the beginning of code. But found that it does not run on GPU. Then i tried</p>
  
  <pre><code>import tensorflow as tf
  tf.device('/GPU:0'): # for run in GPU
           init = tf.initialize_all_variables()
            # initializing all variables
             sess = tf.Session(
              config=tf.ConfigProto(
               intra_op_parallelism_threads=1))
  </code></pre>
  
  <p>Does this code run in GPU? or is there any method for run a python code on GPU.</p>