What will happen if reference some point out of the boundary of a 2D texture? 0? pixel on the other side?
It depends on the addressing mode you set for the texture. You can either wrap around or clamp to the edge. Look at cudaTextureAddressMode in 18.104.22.168 of the programming guide.