Test the sampling kernel. Parallel reduction kernel works.