More verbose version of the code.
Fix crash reported by Arjun Jain on the mailing list with gpu reduction 1111 and strided inputs.
Merge pull request #1480 from nouiz/crash_gpu_reduce_1111

Crash gpu reduce 1111