I’ve decided to learn how textures work with the simple matrix multiplication problem.
I’ve compared my results with the “matrixMul” example given in the SDK.
(Note: This matrixMul uses shared memory to manage not-coalesced read and write.)
With matrixes of size 1000x5, the use of textures speed-up the multiplication process by a factor 3:
Duration without texture : 151.78ms
Duration with texture : 54.79ms
But with matrixes of size 1000x30, the use of textures slow-down the multiplication process:
Duration without texture : 252.21ms
Duration with texture : 320.64ms
I’d like to understand everything about textures. In my opinion, I think that the textures are not very well documented in the programming guide.
Can you give me some useful informations about how textures work?