BVLC/caffe — pull request #202 by blackball (2014-03-11 14:40:48+00:00)
Title: make the kernel mul function more safer. 

Refer to http://devblogs.nvidia.com/parallelforall/cuda-pro-tip-write-flexible-kernels-grid-stride-loops/