#NEWLINE# def test_host_alloc_mapped( self ) : #NEWLINE# #INDENT# ary = cuda . mapped_array ( 10 , dtype = np . uint32 ) #NEWLINE# ary . fill ( 123 ) #NEWLINE# self . assertTrue ( all ( ( ary == 123 ) ) ) #NEWLINE# driver . device_memset ( self , 0 , driver . device_memory_size ( ary ) ) #NEWLINE# self . assertTrue ( all ( ( ary == 0 ) ) )