I’m trying to use a 2D texture for convolution, but the results at the border are not correct. I use cudaAddressModeBorder to get 0 when I read outside the texture, but it does not seem to work?
tex_Image.normalized = false;
tex_Image.filterMode = cudaFilterModeLinear;
tex_Image.addressMode[0] = cudaAddressModeBorder;
tex_Image.addressMode[1] = cudaAddressModeBorder;