#NEWLINE# def test_register( self ) : #NEWLINE# #INDENT# src = np . random . random ( 1024 ) . astype ( np . float32 ) #NEWLINE# hsa . hsa_memory_register ( src . ctypes . data , src . nbytes ) #NEWLINE# hsa . hsa_memory_deregister ( self . ctypes . data , src . nbytes )