def METHOD_NAME(self,platform_id, device_id):
    pyocl_env.Manager.select_device(platform_id,device_id)
    pyocl_env.Manager.clear_events()
    pyocl_env.Pool.reset()
    self.kernels = {}
    self.stmts   = []
    self.inputs  = []
    self.out_shape = None