def device_memory_depends(devmem, *objs):
 depset = getattr(devmem, '_depends_', [])
 depset.extend(objs)

def device_memory_depends ( devmem , * objs ) : depset = getattr ( devmem , '_depends_' , [ ] ) depset . extend ( objs )
add dependencies to the device memory .