debug beta_pw on gpu