Dealing with boundary conditions in CUDA

Dealing with boundary conditions in CUDA is encountered, for example, when computing the convolution between and image and a 3 x 3 kernel. When the convolution window comes across the boundary, one has the problem of extending the image outside of its boundaries. Concerning the extension of a signal outside of its boundaries, a useful tool is provided in this case by texture memory thanks to the different provided addressing modes. On our GitHub website an example is provided on how using text...
More