buggy gaussian quadrature on GPU