CUDA Segmentation fault while performing 2D Convolution

http://stackoverflow.com/q/35016584/5819608