def device_ctypes_pointer(obj):
 if (obj is None):
  return c_void_p(0)
 require_device_memory(obj)
 return obj.device_ctypes_pointer

def device_ctypes_pointer ( obj ) : if ( obj is None ) : return c_void_p ( 0 ) require_device_memory ( obj ) return obj . device_ctypes_pointer
get the ctypes object for the device pointer .