running reduce kernel.