[opt warning] fix gpu reduce opt warning.

This allow to move more computation to the gpu.
Merge pull request #2046 from nouiz/local_gpu_careduce

[opt warning] fix gpu reduce opt warning.