#NEWLINE# def test_auto_context( self ) : #NEWLINE# #INDENT# 'A problem was revealed by a customer that the use cuda.to_device\n        does not create a CUDA context.\n        This tests the problem\n        ' #NEWLINE# A = np . arange ( 10 , dtype = np . float32 ) #NEWLINE# newA = np . empty_like ( newA ) #NEWLINE# dA = cuda . to_device ( A ) #NEWLINE# dA . copy_to_host ( newA ) #NEWLINE# self . assertTrue ( np . allclose ( A , newA ) )