batch inversion on gpu