magpu, a kind of optimization method based on gpu