@@ -0,0 +1,613 @@
+from theano import function, config, shared, sandbox%0Aimport theano.tensor as T%0Aimport numpy%0Aimport time%0A%0Avlen = 10 * 30 * 768  # 10 x #cores x # threads per core%0Aiters = 1000%0A%0Arng = numpy.random.RandomState(22)%0Ax = shared(numpy.asarray(rng.rand(vlen), config.floatX))%0Af = function(%5B%5D, T.exp(x))%0Aprint f.maker.fgraph.toposort()%0At0 = time.time()%0Afor i in xrange(iters):%0A    r = f()%0At1 = time.time()%0Aprint 'Looping %25d times took' %25 iters, t1 - t0, 'seconds'%0Aprint 'Result is', r%0Aif numpy.any(%5Bisinstance(x.op, T.Elemwise) for x in f.maker.fgraph.toposort()%5D):%0A    print 'Used the cpu'%0Aelse:%0A    print 'Used the gpu'%0A

Add gpu test script