title: How configure theano on Windows?
body: <p>I have Installed Theano on Windows machine and followed the configuration <a href="http://deeplearning.net/software/theano/library/config.html" rel="nofollow noreferrer">instructions</a>.</p>
  
  <p>I placed the following .theanorc.txt file in C:\Users\my_username folder:</p>
  
  <pre><code>#!sh
  [global]
  device = gpu
  floatX = float32
  
  [nvcc]
  fastmath = True
  # flags=-m32 # we have this hard coded for now
  
  [blas]
  ldflags =
  # ldflags = -lopenblas # placeholder for openblas support
  </code></pre>
  
  <p>I tried to run the test, but haven't managed to run it on GPU. I guess the values from .theanorc.txt are not read, because I added the line print config.device and it outputs "cpu".</p>
  
  <p>Below is the basic test script and the output:</p>
  
  <pre><code>from theano import function, config, shared, sandbox
  import theano.tensor as T
  import numpy
  import time
  
  print config.device
  
  
  vlen = 10 * 30 * 768  # 10 x #cores x # threads per core
  iters = 1000
  
  rng = numpy.random.RandomState(22)
  x = shared(numpy.asarray(rng.rand(vlen), config.floatX))
  f = function([], T.exp(x))
  print f.maker.fgraph.toposort()
  t0 = time.time()
  for i in xrange(iters):
      r = f()
  t1 = time.time()
  print 'Looping %d times took' % iters, t1 - t0, 'seconds'
  print 'Result is', r
  if numpy.any([isinstance(x.op, T.Elemwise) for x in f.maker.fgraph.toposort()]):
      print 'Used the cpu'
  else:
      print 'Used the gpu'
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>pydev debugger: starting (pid: 9564)
  cpu
  [Elemwise{exp,no_inplace}(&lt;TensorType(float64, vector)&gt;)]
  Looping 1000 times took 10.0310001373 seconds
  Result is [ 1.23178032  1.61879341  1.52278065 ...,  2.20771815  2.29967753
    1.62323285]
  Used the cpu
  </code></pre>
  
  <p>I have installed CUDA Toolkit successfully but haven't managed to install pyCUDA. I guess Theano should work without pyCUDA installed anyway.</p>
  
  <p>I would be very thankful if anyone could help out solving this problem. I have followed <a href="https://stackoverflow.com/questions/25729969/installing-theano-on-windows-8-with-gpu-enabled">these</a> instructions but don't know why the configuration values in the program don't match the values in .theanorc.txt file.</p>