def deregister(*args):
 for data in args:
  if isinstance(data, np.ndarray):
   _hsadrv.hsa_memory_deregister(data.ctypes.data, data.nbytes)
  else:
   raise TypeError(type(data))

def deregister ( * args ) : for data in args : if isinstance ( data , np . ndarray ) : _hsadrv . hsa_memory_deregister ( data . ctypes . data , data . nbytes ) else : raise TypeError ( type ( data ) )
remove all custom compilers associated with a given :class: .