title: How to write the cuda kernel for convolutions?
body: <p>I am totally new in cuda and I would like to write a cuda kernel that calculates a convolution given an input matrix, convolution (or filter) and an output matrix. </p>
  
  <p>Note: I want each thread of the cuda kernel to calculate one value in the output matrix.</p>
  
  <p>How can I do this?</p>