When to use cudaBindTexture2D?

Hi,
I am beginner in Cuda Programming, trying to parallelize image processing algorithms.

Can anyone please tell when one should use cudaBindTexture2D ?

Thanks,
Tushar

You would use it if you want to do 2D texturing operations. That is an optimization to a program which can provide improved cache access to read-only data, and also some special functions such as interpolation and clamping. It’s certainly possible to do image processing algorithms without using 2D texturing, and 2D texturing may not provide improvement in all cases.