def test_nvidia_driver2():
 a = numpy.random.rand(10000).astype('float32')
 cuda.shared_constructor(a)
 assert (theano.sandbox.cuda.use.device_number is not None)

def test_nvidia_driver2 ( ) : a = numpy . random . rand ( 10000 ) . astype ( 'float32' ) cuda . shared_constructor ( a ) assert ( theano . sandbox . cuda . use . device_number is not None )
test that the gpu device is initialized by theano when we manually make a shared variable on the gpu .