Tests should be run with device=cpu. They enable the GPU individually when needed.
Make sure to Theano theano 0.9, I think this type of errors got fixed before that release. I would also suggest to the Theanno new gpu back-end: https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29 Fred On Mon, Mar 20, 2017 at 2:04 AM Marcelo Siero <[email protected]> wrote: > I get this error on a new installation. It has a GPU, but I have not > modified my configuration. > It is on a CENTOS 7 machine, and I followed the bleeding edge instructions. > When I run: > THEANO_FLAGS=''; python -c "import theano; theano.test()" > > After a long time, I got this error: > Traceback (most recent call last): > File > "/home/siero/.local/lib/python2.7/site-packages/theano/sandbox/cuda/tests/test_basic_ops.py", > line 1069, in test_adv_sub1_fast > data = rand(*shape) > File "mtrand.pyx", line 1347, in mtrand.RandomState.rand > (numpy/random/mtrand/mtrand.c:19701) > File "mtrand.pyx", line 856, in mtrand.RandomState.random_sample > (numpy/random/mtrand/mtrand.c:15527) > File "mtrand.pyx", line 167, in mtrand.cont0_array > (numpy/random/mtrand/mtrand.c:6127) > TypeError: 'float' object cannot be interpreted as an index > > It then said: > Ran 26010 tests in 15484.861s > > But no summary as to how many other errors. > I would like to run this particular test only. > > I have 2 GPU's and will be enabling them. But for now, I would like to > run just the one unit > test that is failing. I saw no instructions in the FAQs as to how to do > that. > > -Marcelo > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
